/* SuperAI website — restrained editorial layout. Tokens first; light and dark. */
:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --alt: #f1f1ed;
  --ink: #0b0d12;
  --ink-2: #353a45;
  --muted: #5a606c;
  --line: rgba(11, 13, 18, 0.11);
  --line-2: rgba(11, 13, 18, 0.2);
  --accent: #2346e0;
  --accent-ink: #ffffff;
  --accent-soft: rgba(35, 70, 224, 0.09);
  --ok: #157a4a;
  --warn: #9a5b00;
  --focus: #2346e0;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11, 13, 18, 0.04), 0 12px 32px -12px rgba(11, 13, 18, 0.14);
  --f-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --track: -0.025em;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b0d12; --surface: #12151c; --alt: #0f1218; --ink: #f1f2f4; --ink-2: #c6cad2; --muted: #9ba2ae;
    --line: rgba(255, 255, 255, 0.1); --line-2: rgba(255, 255, 255, 0.2);
    --accent: #8ea5ff; --accent-ink: #0b0d12; --accent-soft: rgba(142, 165, 255, 0.12);
    --ok: #5fd39a; --warn: #f0b45c; --focus: #8ea5ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0b0d12; --surface: #12151c; --alt: #0f1218; --ink: #f1f2f4; --ink-2: #c6cad2; --muted: #9ba2ae;
  --line: rgba(255, 255, 255, 0.1); --line-2: rgba(255, 255, 255, 0.2);
  --accent: #8ea5ff; --accent-ink: #0b0d12; --accent-soft: rgba(142, 165, 255, 0.12);
  --ok: #5fd39a; --warn: #f0b45c; --focus: #8ea5ff; color-scheme: dark;
}
/* Always-dark surfaces (hero, teams band) */
.hero, .dark {
  --bg: #0b0d12; --surface: #141823; --alt: #0f1218; --ink: #f1f2f4; --ink-2: #c6cad2; --muted: #a0a7b3;
  --line: rgba(255, 255, 255, 0.1); --line-2: rgba(255, 255, 255, 0.22);
  --accent: #8ea5ff; --accent-ink: #0b0d12; --accent-soft: rgba(142, 165, 255, 0.13);
  --ok: #5fd39a; --warn: #f0b45c; --focus: #8ea5ff;
  background: var(--bg); color: var(--ink); color-scheme: dark;
}

/* Locale fonts */
:lang(zh-Hant) { --f-text: 'Inter', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif; --f-display: 'Inter Tight', 'Noto Sans TC', 'PingFang TC', sans-serif; --track: 0; }
:lang(ar) { --f-text: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif; --f-display: 'Noto Sans Arabic', system-ui, sans-serif; --track: 0; }
/* Mono labels have no Arabic/Thai/CJK glyphs: use the text face, no tracking */
:is(:lang(ar), :lang(th), :lang(zh-Hant)) :is(.kicker, .col-title, .f-h, .tag, .tag-pop, .run-live, .route-list em, .run-route em, .route-head, .route-foot, .ph-task) { font-family: var(--f-text); letter-spacing: 0; text-transform: none; }
:lang(th) { --f-text: 'Inter', 'Noto Sans Thai', system-ui, sans-serif; --f-display: 'Inter Tight', 'Noto Sans Thai', sans-serif; --track: 0; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-text);
  font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; letter-spacing: var(--track); color: var(--ink); }
p { margin: 0; }
code, .mono { font-family: var(--f-mono); font-size: 0.86em; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.fine { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 8px; font: 600 15px/1 var(--f-text); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 var(--f-display); letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: auto; }
.nav-links { display: flex; gap: 24px; margin-inline-end: auto; }
.nav-links a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; padding: 6px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-tools { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.nav-links + .nav-tools { margin-inline-start: 0; }
.lang { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding-inline: 10px 6px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink-2); }
.lang:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.lang svg { fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.lang select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--ink); font: 500 14px var(--f-text); padding-inline-end: 18px; cursor: pointer; max-width: 150px; outline: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 9px) 52%, calc(100% - 5px) 52%; background-size: 4px 4px; background-repeat: no-repeat; }
[dir='rtl'] .lang select { background-position: 5px 52%, 9px 52%; padding-inline-end: 0; padding-inline-start: 18px; }
.lang select option { color: #0b0d12; background: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; cursor: pointer; padding: 0; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--ink); transition: transform 0.2s; }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid-bg { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%); opacity: 0.55; }
.hero::after { content: ''; position: absolute; width: 720px; height: 720px; inset-inline-end: -180px; top: -260px; background: radial-gradient(closest-side, rgba(142, 165, 255, 0.22), transparent); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; padding-block: 104px 112px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 28px; }
[dir='rtl'] .pill { padding: 5px 5px 5px 12px; }
.pill-v { font: 500 12px/1 var(--f-mono); background: var(--accent-soft); color: var(--accent); padding: 5px 8px; border-radius: 999px; }
.hero h1 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.02; font-weight: 600; letter-spacing: calc(var(--track) * 1.4); }
:lang(zh-Hant) .hero h1, :lang(ar) .hero h1, :lang(th) .hero h1 { line-height: 1.18; }
.accent { color: var(--accent); }
.lead { margin-top: 24px; font-size: 18.5px; line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .fine { margin-top: 16px; }
.hero-fine { font-family: var(--f-text); }

/* Agent run illustration */
.run { margin: 0; background: linear-gradient(180deg, #161a26, #10131b); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06); overflow: hidden; font-size: 14px; }
.run-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.run-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.run-bar span { margin-inline-start: 10px; }
.run-live { margin-inline-start: auto; font: 500 11.5px var(--f-mono); color: var(--ok); font-style: normal; display: inline-flex; align-items: center; gap: 6px; }
.run-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.run-prompt { margin: 18px 18px 6px; padding: 12px 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); line-height: 1.5; }
.run-steps { list-style: none; margin: 0; padding: 12px 18px 20px; display: grid; gap: 4px; }
.run-steps li { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 9px 0 9px 26px; color: var(--ink-2); transition: opacity 0.45s ease, transform 0.45s ease; }
[dir='rtl'] .run-steps li { padding: 9px 26px 9px 0; }
.run-steps li::before { content: ''; position: absolute; inset-inline-start: 5px; top: 22px; bottom: -14px; width: 1px; background: var(--line-2); }
.run-steps li:last-child::before { display: none; }
.run-steps .dot { position: absolute; inset-inline-start: 0; top: 14px; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--accent); background: #10131b; }
.run[data-stage] li { opacity: 0.32; transform: translateY(2px); }
.run[data-stage='1'] li:nth-child(-n+1), .run[data-stage='2'] li:nth-child(-n+2), .run[data-stage='3'] li:nth-child(-n+3),
.run[data-stage='4'] li:nth-child(-n+4), .run[data-stage='5'] li { opacity: 1; transform: none; }
.run[data-stage='1'] li:nth-child(-n+1) .dot, .run[data-stage='2'] li:nth-child(-n+2) .dot, .run[data-stage='3'] li:nth-child(-n+3) .dot,
.run[data-stage='4'] li:nth-child(-n+4) .dot, .run[data-stage='5'] li .dot { background: var(--accent); }
.chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.chips b, .files b { font: 500 11.5px/1 var(--f-mono); padding: 5px 7px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); }
.chips b.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.run-route em { font: 500 11.5px var(--f-mono); color: var(--accent); font-style: normal; }
.files { display: inline-flex; gap: 4px; }
.files .docx { color: #9db6ff; border-color: rgba(157, 182, 255, 0.4); }
.files .xlsx { color: #7fd8a6; border-color: rgba(127, 216, 166, 0.4); }
.ap { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; border: 1px solid rgba(240, 180, 92, 0.35); background: rgba(240, 180, 92, 0.07); border-radius: 10px; }
.ap strong { color: var(--ink); font-weight: 600; }
.tag { font: 500 11px/1 var(--f-mono); font-style: normal; text-transform: uppercase; letter-spacing: 0.04em; color: var(--warn); border: 1px solid currentColor; border-radius: 4px; padding: 3px 5px; }
.ap-btns { margin-inline-start: auto; display: inline-flex; gap: 6px; }
.ap-btns b, .ph-btns b { font: 600 12.5px/1 var(--f-text); padding: 8px 12px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--ink); }
.ap-btns b.pri, .ph-btns b.pri { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Sections */
.section { padding-block: 120px; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--alt); }
.sec-head { display: grid; grid-template-columns: 3fr 9fr; gap: 24px; margin-bottom: 64px; }
.sec-head.stacked { display: block; margin-bottom: 36px; }
.sec-head.stacked .kicker { margin-bottom: 20px; }
.kicker { display: flex; gap: 12px; align-items: baseline; font: 500 13px/1.4 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 10px; }
.kicker span:first-child { color: var(--accent); }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; font-weight: 600; max-width: 20em; }
:lang(zh-Hant) .sec-head h2, :lang(ar) .sec-head h2, :lang(th) .sec-head h2 { line-height: 1.3; }
.sec-lead { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 40em; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.steps li { padding: 28px 32px 8px 0; }
.steps li + li { padding-inline-start: 32px; border-inline-start: 1px solid var(--line); }
.step-n { display: block; font: 500 13px var(--f-mono); color: var(--accent); margin-bottom: 36px; }
.steps h3, .pillar h3 { font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 10px; }
.steps p, .pillar p { color: var(--ink-2); font-size: 15.5px; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); border-inline-start: 1px solid var(--line-2); }
.pillar { padding: 32px 28px 36px; border-inline-end: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--surface); transition: background-color 0.2s; }
.pillar:hover { background: color-mix(in srgb, var(--surface) 92%, var(--accent)); }
.ic { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 40px; }
.pillar h3 { font-size: 18px; }
.pillar p { font-size: 14.5px; }

/* Models */
.models-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.route { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.route-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.dim { color: var(--muted); }
.route-list { list-style: none; margin: 0; padding: 8px 0; }
.route-list li { display: grid; grid-template-columns: 8.5em 1fr 7em; align-items: center; gap: 14px; padding: 12px 0; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.route-list em { font: 500 12px var(--f-mono); font-style: normal; color: var(--muted); }
.route-list em.best { color: var(--accent); }
.skip-row { opacity: 0.55; }
.bar { height: 6px; border-radius: 3px; background: var(--alt); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: var(--ink-2); transform-origin: left; animation: grow 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
[dir='rtl'] .bar i { transform-origin: right; margin-inline-start: 0; }
.route-list li:first-child .bar i { background: var(--accent); }
.route-foot { padding-top: 14px; color: var(--muted); font-size: 12.5px; }
.sources { display: grid; gap: 28px; }
.sources article { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.sources h3 { display: flex; gap: 12px; align-items: baseline; font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.sources .n { color: var(--accent); font-size: 12px; }
.sources p { color: var(--ink-2); font-size: 15.5px; }

/* Teams (dark band) */
.dark .sec-lead { color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.col-title { font: 500 13px var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.spec { list-style: none; margin: 0; padding: 0; }
.spec li { display: grid; grid-template-columns: 13em 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.spec b { font-weight: 600; font-size: 15.5px; }
.spec span { color: var(--ink-2); font-size: 15px; }

/* Mobile */
.mobile-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 72px; align-items: center; }
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checks li { position: relative; padding: 16px 0 16px 28px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15.5px; }
[dir='rtl'] .checks li { padding: 16px 28px 16px 0; }
.checks li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 25px; width: 10px; height: 6px; border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(-45deg); }
.checks b { color: var(--ink); font-weight: 600; }
.phone { justify-self: center; width: 300px; max-width: 100%; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 10px; background: #0b0d12; box-shadow: 0 0 0 1px var(--line-2), var(--shadow), 0 40px 80px -40px rgba(11, 13, 18, 0.45); }
.phone-screen { --ink: #0b0d12; --ink-2: #353a45; --muted: #5a606c; --line-2: rgba(11, 13, 18, 0.18); --bg: #fff; height: 100%; border-radius: 35px; background: #f3f3f0; padding: 14px 16px; overflow: hidden; color: var(--ink); display: flex; flex-direction: column; }
.ph-tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 12px 4px 6px; border-top: 1px solid rgba(11, 13, 18, 0.08); }
.ph-tabs svg { width: 22px; height: 22px; fill: none; stroke: #8a8f99; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ph-tabs svg.on { stroke: #2346e0; }
.ph-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 2px 8px 18px; }
.ph-notch { width: 84px; height: 24px; background: #0b0d12; border-radius: 14px; }
.ph-h { font: 700 26px/1.1 var(--f-display); letter-spacing: -0.02em; margin: 6px 4px 16px; }
.ph-card { background: #fff; border-radius: 16px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.ph-card.muted { opacity: 0.75; }
.ph-task { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.ph-q { font-weight: 600; font-size: 15px; line-height: 1.35; }
.ph-meta { display: flex; gap: 8px; align-items: center; margin: 10px 0 14px; font-size: 11px; color: var(--muted); }
.ph-meta .tag { color: #8a5200; }
.ph-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-btns b { text-align: center; padding: 11px 0; font-size: 13.5px; border-radius: 10px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.tag-pop { position: absolute; top: -11px; inset-inline-start: 22px; font: 500 11.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.05em; background: var(--accent); color: var(--accent-ink); padding: 6px 9px; border-radius: 5px; }
.plan h3 { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.price { margin-top: 18px; }
.price b { font: 600 40px/1 var(--f-display); letter-spacing: -0.03em; }
.per { font-size: 13.5px; color: var(--muted); margin-top: 6px; min-height: 1.5em; }
.plan ul { list-style: none; margin: 24px 0 28px; padding: 0; flex: 1; border-top: 1px solid var(--line); }
.plan li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.plan .btn { width: 100%; }
.price-note { margin-top: 28px; max-width: 60em; }

/* Downloads */
.dl-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 32px; }
.downloads { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.dl { display: flex; flex-direction: column; gap: 4px; padding: 20px; min-height: 150px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.15s; }
a.dl:hover { border-color: var(--ink); }
.dl b { font: 600 17px var(--f-display); }
.dl span { font-size: 14px; color: var(--ink-2); }
.dl em { margin-top: auto; padding-top: 14px; font: 500 12.5px var(--f-mono); font-style: normal; color: var(--accent); }
.dl.soon { background: transparent; border-style: dashed; }
.dl.soon em { color: var(--muted); }
.dl.recommended { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.dl-sha { font-size: 11px; color: var(--muted); word-break: break-all; }
.dl-sha:empty { display: none; }
.install-guide { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-inline-start: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.install-guide h3 { font-size: 17px; margin-bottom: 10px; }
.install-guide ol { margin: 0 0 12px; padding-inline-start: 20px; color: var(--ink-2); }
.install-guide li { padding: 3px 0; }
#dl-version { margin-top: 24px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font: 600 17px/1.4 var(--f-display); letter-spacing: calc(var(--track) * 0.4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 22px/1 var(--f-mono); color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 44em; }

/* Footer */
.footer { padding-block: 64px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.f-brand .fine { margin-top: 14px; max-width: 22em; }
.f-col { display: flex; flex-direction: column; gap: 10px; }
.f-col a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.f-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.f-h { font: 500 12.5px var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
.draft { font-style: normal; color: var(--warn); border: 1px solid currentColor; border-radius: 4px; padding: 1px 5px; margin-inline-start: 6px; font-size: 11px; }
.f-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; }

/* Motion */
@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Responsive */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .downloads { grid-template-columns: repeat(3, 1fr); }
  .spec li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; top: 64px; inset-inline: 0; flex-direction: column; gap: 0; padding: 8px 24px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .menu-btn { display: block; }
  .nav-links + .nav-tools { margin-inline-start: auto; }
  .faq-grid { gap: 0; }
  .hero-inner, .models-grid, .two-col, .mobile-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 72px 80px; gap: 48px; }
  .sec-head { grid-template-columns: 1fr; margin-bottom: 44px; }
  .section { padding-block: 88px; }
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .nav-inner { gap: 12px; }
  .nav-cta { display: none; }
  .lang select { max-width: 92px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-inline-start: 0; border-bottom: 1px solid var(--line); }
  .step-n { margin-bottom: 14px; }
  .pillars, .plans, .downloads { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .route-list li { grid-template-columns: 7em 1fr; }
  .route-list em { grid-column: 2; }
  .section { padding-block: 72px; }
  .lead { font-size: 17px; }
  .dl { min-height: 0; }
}
@media (max-width: 360px) {
  .nav .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang { padding-inline: 8px 4px; }
}
