/* ═══════════════════════════════════════════════════════════════════════
   Wejha | وجهة – marketing site
   Palette is taken from the logo (lime → deep green).
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #06120b;
  --bg-alt: #0a1a11;
  --surface: #0f2217;
  --surface-2: #142b1d;
  --border: #1f3a29;
  --text: #f1f7f2;
  --muted: #9db3a5;
  --brand-lime: #8dc63f;
  --brand: #3fb950;
  --brand-deep: #1f8a3f;
  --on-brand: #04140a;
  --accent-blue: #3b82f6;
  --grad: linear-gradient(135deg, #a5d64c 0%, #3fb950 55%, #1f8a3f 100%);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7faf6;
    --bg-alt: #eef5ec;
    --surface: #ffffff;
    --surface-2: #f2f7f0;
    --border: #dbe7d7;
    --text: #0d1f14;
    --muted: #4f6657;
    --brand: #2f9e44;
    --brand-deep: #1c7a35;
    --on-brand: #ffffff;
    --shadow: 0 20px 50px -24px rgba(20, 60, 30, .25);
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #f7faf6;
  --bg-alt: #eef5ec;
  --surface: #ffffff;
  --surface-2: #f2f7f0;
  --border: #dbe7d7;
  --text: #0d1f14;
  --muted: #4f6657;
  --brand: #2f9e44;
  --brand-deep: #1c7a35;
  --on-brand: #ffffff;
  --shadow: 0 20px 50px -24px rgba(20, 60, 30, .25);
  color-scheme: light;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand-lime); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(860px, 100% - 32px); }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 4px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}
.en { display: block; font-size: 13px; font-weight: 500; color: var(--muted); direction: ltr; text-align: right; margin-top: 4px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-primary { background: var(--grad); color: #04140a; box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px color-mix(in srgb, var(--brand) 90%, transparent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover svg { stroke: var(--brand); }
.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .i-sun { display: none; }
  :root:not([data-theme="dark"]) .i-moon { display: block; }
}

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, background-color .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; border-radius: 11px; background: #fff; }
.brand-name { font-size: 24px; font-weight: 800; }

.main-nav { flex: 1; display: flex; align-items: center; justify-content: center; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a:not(.btn) {
  display: block; white-space: nowrap; padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color .2s ease, background-color .2s ease;
}
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--text); background: var(--surface); }
.main-nav a.active { color: var(--brand); }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative; padding: 64px 0 40px; overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
    radial-gradient(40% 40% at 10% 80%, color-mix(in srgb, var(--brand-lime) 10%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 20px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 640px; }
.lead strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }

.hero-visual { position: relative; margin: 0; justify-self: center; width: min(340px, 100%); }
.phone { width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .45)); }
.ph-frame { fill: #0b1510; stroke: #2a4535; stroke-width: 2; }
.ph-screen { fill: #f4f8f3; }
.ph-notch { fill: #0b1510; }
.ph-walls rect, .ph-walls path { fill: none; stroke: #c9d8cc; stroke-width: 3; stroke-linecap: round; }
.ph-rooms rect { fill: #e6efe4; }
.ph-label { font: 700 12px "Tajawal", sans-serif; fill: #5c7364; text-anchor: middle; }
.ph-route { stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 12 10; animation: dash 1.6s linear infinite; }
.ph-dest { fill: #1f8a3f; stroke: #fff; stroke-width: 3; }
.ph-dot { fill: var(--accent-blue); stroke: #fff; stroke-width: 3; }
.ph-pulse { transform-origin: 150px 455px; animation: pulse 2s ease-out infinite; }
.ph-card { fill: #0f2217; }
.ph-card-title { font: 800 15px "Tajawal", sans-serif; fill: #fff; text-anchor: start; }
.ph-card-sub { font: 500 12px "Tajawal", sans-serif; fill: #9db3a5; text-anchor: start; }
@keyframes dash { to { stroke-dashoffset: -44; } }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.float-chip {
  position: absolute; padding: 10px 16px; border-radius: 14px; font-size: 14px; color: var(--muted);
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border);
  box-shadow: var(--shadow); backdrop-filter: blur(8px); white-space: nowrap;
}
.float-chip b { color: var(--text); margin-inline-end: 4px; }
.chip-a { top: 18%; inset-inline-start: -70px; }
.chip-b { bottom: 24%; inset-inline-end: -60px; }

.stats {
  margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.stats > div { padding: 22px 24px; display: flex; flex-direction: column-reverse; gap: 2px; }
.stats > div + div { border-inline-start: 1px solid var(--border); }
.stats dt { color: var(--muted); font-size: 14px; }
.stats dd { margin: 0; font-size: 28px; font-weight: 800; color: var(--brand); }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 18px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: var(--shadow); }
.card h3 { font-size: 19px; }
.card p { color: var(--muted); font-size: 16px; margin: 0; }
.card-lg { padding: 32px; }
.card-lg h3 { font-size: 22px; }
.card-icon {
  width: 48px; height: 48px; display: grid; place-items: center; flex-shrink: 0; margin-bottom: 16px;
  border-radius: 14px; background: color-mix(in srgb, var(--brand) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.checks li { position: relative; padding-inline-start: 28px; margin-bottom: 10px; color: var(--muted); font-size: 16px; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 18%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233fb950' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.checks strong { color: var(--text); }

/* Sectors */
.sector { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.sector-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.sector-head .card-icon { margin: 0; }
.sector-head h3 { font-size: 22px; margin-bottom: 4px; }
.sector-head p { color: var(--muted); margin: 0; font-size: 16px; }
.sector h4 { font-size: 15px; color: var(--brand); margin: 18px 0 10px; }

.also { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.also h3 { font-size: 18px; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 7px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 15px; color: var(--muted); }
.tags-links li { padding: 0; }
.tags-links a { display: block; padding: 7px 16px; border-radius: 999px; transition: color .2s, border-color .2s; }
.tags-links li:hover { border-color: var(--brand); }
.tags-links li:hover a { color: var(--brand); }

/* Platform */
.platform { display: grid; gap: 28px; }
.platform-row {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 36px;
}
.platform-row.reverse .platform-media { order: -1; }
.platform-copy h3 { font-size: 26px; }
.platform-copy > p { color: var(--muted); }
.platform-media img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface-2); }
.media-phone { display: grid; place-items: center; }
.media-phone img { width: min(300px, 80%); border-radius: 36px; border: 8px solid #13251a; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 8px 0; font-weight: 700; color: var(--brand); }
.link-arrow::after { content: "←"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(-4px); }
.platform-extra { margin-top: 28px; }
.modules { margin-top: 40px; }
.modules h3 { font-size: 18px; margin-bottom: 14px; }

/* Technology */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; margin-bottom: 28px; }
.step { position: relative; padding: 30px 26px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-num { display: inline-block; font-size: 15px; font-weight: 800; color: var(--on-brand); background: var(--grad); padding: 2px 12px; border-radius: 999px; margin-bottom: 14px; }
.step h3 { font-size: 20px; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }
.tech-grid { margin-bottom: 28px; }

.hardware {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 36px; border-radius: 24px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 14%, var(--surface)), var(--surface) 60%);
  border: 1px solid var(--border);
}
.hardware h3 { font-size: 24px; }
.hardware-copy > p { color: var(--muted); }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.specs li { padding: 16px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 50%, transparent); border: 1px solid var(--border); }
.specs b { display: block; font-size: 22px; color: var(--brand); }
.specs span { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ROI */
.roi-num { display: block; font-size: 34px; font-weight: 800; line-height: 1; margin-bottom: 14px; }
.roi-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Process timeline */
.timeline { counter-reset: tl; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.timeline li { counter-increment: tl; position: relative; padding: 70px 24px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.timeline li::before {
  content: counter(tl); position: absolute; top: 22px; inset-inline-start: 24px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: var(--on-brand); background: var(--grad);
}
.timeline h3 { font-size: 19px; }
.timeline p { color: var(--muted); font-size: 16px; margin: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 500; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Contact */
.contact { background: radial-gradient(50% 60% at 90% 30%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-copy h2 { font-size: clamp(28px, 3.6vw, 42px); }
.contact-copy > p { color: var(--muted); font-size: 18px; }
.contact-list { display: grid; gap: 14px; margin-top: 26px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.contact-list svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a:hover { color: var(--brand); }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 32px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow);
}
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.field [dir="ltr"] { text-align: right; }
.form-error { grid-column: 1 / -1; margin: 0; color: #ef6b6b; font-weight: 700; font-size: 15px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { color: var(--muted); margin-top: 16px; font-size: 15px; max-width: 340px; }
.footer-title { font-size: 16px; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 2px; }
.site-footer ul a { display: inline-block; padding: 7px 0; color: var(--muted); font-size: 15px; transition: color .2s; }
.site-footer ul a:hover { color: var(--brand); }
.footer-bottom { margin-top: 48px; padding: 22px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer-bottom p { margin: 0; }

.wa-float {
  position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Before / after */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.compare-col { border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); background: var(--surface); }
.compare-col h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.compare-col li { position: relative; padding-inline-start: 28px; margin-bottom: 10px; color: var(--muted); }
.compare-col li::before { position: absolute; inset-inline-start: 0; top: 0; font-weight: 800; }
.compare-before li::before { content: "✕"; color: #e06c6c; }
.compare-after { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), var(--surface) 70%); }
.compare-after li::before { content: "✓"; color: var(--brand); }

/* Other sectors */
.sub-title { font-size: 22px; margin: 48px 0 18px; }
.card.mini { padding: 22px; }
.card.mini h4 { font-size: 18px; margin-bottom: 12px; }
.card.mini .checks li { font-size: 15px; margin-bottom: 8px; }
.mini-cta { display: flex; flex-direction: column; justify-content: center; border-style: dashed; }
.mini-cta p { margin-bottom: 8px; }

/* Demo band */
.demo-band {
  margin-top: 40px; padding: 32px; border-radius: 24px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px;
  border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--border));
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 12%, var(--surface)), var(--surface) 65%);
}
.demo-band-head h3 { font-size: 24px; }
.demo-band-head p { color: var(--muted); }
.demo-groups { display: grid; gap: 18px; }
.demo-groups h4 { font-size: 15px; color: var(--brand); margin-bottom: 10px; }

.specs-grid .card h3 { margin-bottom: 14px; }
.specs-grid .checks li { font-size: 15px; margin-bottom: 8px; }

.form-note { margin: 0; font-size: 14px; color: var(--muted); }
.form-note a, .footer-bottom a { color: var(--brand); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.header-demo { display: none; }
@media (min-width: 1240px) { .header-demo { display: inline-flex; } }

/* Reveal on scroll (content stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .chip-a { inset-inline-start: -20px; }
  .chip-b { inset-inline-end: -20px; }
}

@media (max-width: 1100px) {
  .menu-btn { display: inline-grid; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 12px;
    padding: 16px; background: var(--bg); border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .main-nav a:not(.btn) { padding: 12px 14px; font-size: 17px; }
  .nav-cta { display: inline-flex; }
  .header-inner { justify-content: space-between; }
}

@media (max-width: 960px) {

  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { width: min(300px, 80%); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-inline-start: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--border); }

  .grid-2, .grid-3, .steps, .compare, .demo-band { grid-template-columns: 1fr; }
  .platform-row, .hardware, .contact-grid { grid-template-columns: 1fr; padding: 24px; gap: 28px; }
  .platform-row.reverse .platform-media { order: 0; }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid-4, .timeline, .specs { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 22px; }
  .compare-col, .demo-band { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .float-chip { font-size: 13px; padding: 8px 12px; }
  .chip-a { inset-inline-start: -8px; }
  .chip-b { inset-inline-end: -8px; }
  .stats dd { font-size: 22px; }
  .sector, .card { padding: 22px; }
  .form-actions .btn { flex: 1 1 100%; }
  .brand-name { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Legal pages */
.legal h1 { font-size: clamp(30px, 4vw, 44px); }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p { color: var(--muted); }
.legal a { color: var(--brand); }
