/* KAROMAX website - one visual world from the approved logo: dark charcoal, warm gold, ivory.
   Layout idea: a quiet engineering-software site - wide margins, a technical grid, real screenshots in framed panels,
   gold used only for what matters (the brand half "MAX", calls to action, small rules). */
:root {
  --ink: #0f1418;          /* page */
  --charcoal: #1f2c34;     /* the logo's charcoal: panels */
  --panel: #18222a;        /* cards, frames */
  --line: #2c3a44;         /* hairlines */
  --gold: #c38b2e;         /* the logo's gold: accents and actions */
  --gold-soft: #e0b05f;    /* gold on dark text */
  --ivory: #f2eee6;        /* headings */
  --text: #cfd6dc;         /* running text */
  --muted: #8a97a3;        /* secondary text */
  --display: "Saira", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --arabic: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --radius: 10px;
  --wrap: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body { font-family: var(--arabic); font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ivory); font-family: var(--display); font-weight: 700; line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-family: var(--arabic); line-height: 1.35; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.eyebrow { font: 600 .78rem/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
html[dir="rtl"] .eyebrow { font-family: var(--arabic); letter-spacing: 0; font-size: .9rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(15, 20, 24, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; margin-inline-start: auto; align-items: center; }
.nav a { color: var(--text); font-weight: 500; font-size: .95rem; }
.nav a[aria-current="page"] { color: var(--ivory); box-shadow: inset 0 -2px var(--gold); }
.nav a:hover { color: var(--ivory); text-decoration: none; }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .9rem; color: var(--ivory) !important; }
.menu-toggle { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line); color: var(--ivory); border-radius: 8px; padding: 6px 10px; font: inherit; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding: 8px 0 16px; }
  .nav.open { display: flex; }
  .site-header .wrap { flex-wrap: wrap; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 8px; padding: 12px 22px; font-weight: 600; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; }
.btn-gold { background: var(--gold); color: #16110a; }
.btn-gold:hover { background: var(--gold-soft); text-decoration: none; }
.btn-line { border-color: var(--line); color: var(--ivory); background: transparent; }
.btn-line:hover { border-color: var(--gold); text-decoration: none; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* hero */
.hero { padding: 72px 0 40px; background:
  linear-gradient(180deg, rgba(31, 44, 52, .55), rgba(15, 20, 24, 0) 70%),
  repeating-linear-gradient(0deg, transparent 0 47px, rgba(255,255,255,.03) 47px 48px),
  repeating-linear-gradient(90deg, transparent 0 47px, rgba(255,255,255,.03) 47px 48px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.15rem; color: var(--text); }
.hero-shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.hero-shot figcaption, .shot figcaption { font-size: .82rem; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 44px; } }

/* sections */
section { padding: 64px 0; }
.section-head { margin-bottom: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { display: flex; align-items: baseline; gap: 10px; }
.card .num { font: 600 .8rem/1 var(--display); color: var(--gold); letter-spacing: .1em; }
.card p { color: var(--text); margin: 0; font-size: .97rem; }
.band { background: var(--charcoal); border-block: 1px solid var(--line); }
.shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); margin: 0; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs div { background: var(--panel); padding: 18px; }
.specs b { display: block; color: var(--ivory); font-family: var(--display); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.specs span { color: var(--muted); font-size: .88rem; }
@media (max-width: 760px) { .specs { grid-template-columns: 1fr 1fr; } }
.list { padding-inline-start: 1.1em; margin: 0; }
.list li { margin: .35em 0; }
.list li::marker { color: var(--gold); }
.note { border-inline-start: 3px solid var(--gold); padding: 12px 16px; background: rgba(195, 139, 46, .08); border-radius: 6px; color: var(--text); }

/* pricing */
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan .price { font: 700 1.5rem/1.2 var(--display); color: var(--ivory); }
.plan .price small { font-size: .85rem; color: var(--muted); font-weight: 400; }
.plan .tag { align-self: flex-start; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(195,139,46,.5); border-radius: 999px; padding: 3px 10px; }
.plan .list { flex: 1; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; color: var(--ivory); font-weight: 600; }
details p { margin: 10px 0 0; }

/* forms */
form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
label { color: var(--ivory); font-weight: 500; font-size: .95rem; }
input, select, textarea { background: #10171c; color: var(--ivory); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }

/* legal */
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal .draft { margin-bottom: 26px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; color: var(--muted); font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 26px; }
.site-footer h4 { color: var(--ivory); font-size: .95rem; margin: 0 0 10px; font-family: var(--display); letter-spacing: .04em; }
html[dir="rtl"] .site-footer h4 { font-family: var(--arabic); letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ivory); }
.site-footer .legal-line { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* additions */
.skip { position: absolute; inset-inline-start: -9999px; top: 8px; background: var(--gold); color: #16110a; padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { inset-inline-start: 12px; }
.muted { color: var(--muted); font-size: .9rem; }
.lead { font-size: 1.12rem; }
ol.list li::marker { font-family: var(--display); font-weight: 600; }
.card .actions { margin-top: 18px; }
.plan .btn { align-self: flex-start; margin-top: 8px; }
.site-footer .cols img { height: 34px; width: auto; margin-bottom: 12px; }
html[dir="rtl"] .eyebrow, html[dir="rtl"] .plan .tag { text-transform: none; letter-spacing: 0; }
html[dir="rtl"] .specs b { text-align: right; }
figure { margin: 0; }
