/* ════════════════════════════════════════════════════════════════════════════
   Hilal PDF — Premium modern tech aesthetic
   Geist · Dark canvas · Refined blue · Glass surfaces · Glow effects
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  /* Canvas */
  --bg:         #09090B;
  --bg-2:       #0C0C10;
  --surface:    #111116;
  --surface-2:  #16161C;
  --surface-3:  #1C1C24;
  --surface-4:  #22222B;

  /* Borders */
  --border:        rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-hover:  rgba(255, 255, 255, 0.18);
  --border-accent: rgba(96, 165, 250, 0.35);

  /* Text */
  --text:   #FAFAFA;
  --text-2: #C7C7CC;
  --text-3: #8E8E93;
  --text-4: #5C5C63;
  --text-5: #3D3D43;

  /* Accent — refined blue */
  --blue:        #3B82F6;
  --blue-2:      #60A5FA;
  --blue-3:      #93C5FD;
  --blue-deep:   #1D4ED8;
  --blue-soft:   rgba(59, 130, 246, 0.14);
  --blue-softer: rgba(59, 130, 246, 0.06);
  --blue-glow:   rgba(96, 165, 250, 0.35);

  /* Additional icon palette (tasteful multi-color) */
  --emerald: #10B981;
  --amber:   #F59E0B;
  --violet:  #8B5CF6;
  --rose:    #F43F5E;

  /* Signal */
  --signal:      #22C55E;
  --signal-soft: rgba(34, 197, 94, 0.14);
  --marker:      #FBBF24;

  /* Paper (for PDF mockup) */
  --paper:     #FAFAF7;
  --paper-2:   #EAEAE2;
  --paper-ink: #1B1B1B;

  /* Typography */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;

  /* Motion */
  --ease:     cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --wrap: 1240px;
  --pad:  clamp(20px, 3.2vw, 48px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--blue); color: #fff; }

/* ─── Background: large soft gradient glows + fine grid ───────────────── */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(59, 130, 246, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 28%, rgba(139, 92, 246, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 35%, rgba(96, 165, 250, 0.05), transparent 70%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 10%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 10%, #000 40%, transparent 80%);
}

/* ╭─────────────────────── TOP PROMO BAR ────────────────────────────────╮ */

.topbar {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(59,130,246,0.08), transparent);
}
.topbar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  transition: color 200ms var(--ease);
}
.topbar-banner:hover { color: var(--text); }
.topbar-banner:hover .topbar-arrow { transform: translateX(3px); }
.topbar-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--blue-soft);
  color: var(--blue-2);
  border: 1px solid var(--border-accent);
}
.topbar-text {
  font-weight: 400;
}
.topbar-arrow {
  color: var(--blue-2);
  transition: transform 200ms var(--ease);
  font-size: 14px;
}

@media (max-width: 640px) {
  .topbar-text { font-size: 12px; }
}

/* ╭─────────────────────── NAVIGATION ──────────────────────────────────╮ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.nav-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.nav-name { color: var(--text); }
.nav-name em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 4px;
}
@media (max-width: 520px) {
  .nav-brand { font-size: 18px; gap: 10px; }
  .nav-mark { width: 32px; height: 32px; }
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-3);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 200ms var(--ease), background 200ms var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ╭─────────────────────── BUTTONS ──────────────────────────────────────╮ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: transform 180ms var(--ease), background 220ms var(--ease), color 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.btn-sm { padding: 7px 14px; font-size: 12.5px; gap: 7px; border-radius: 8px; }
.btn-sm svg { width: 12px; height: 12px; }

.btn-lg { padding: 15px 22px; font-size: 15px; gap: 12px; border-radius: 12px; }

.btn-primary {
  background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 6px 16px -6px rgba(59, 130, 246, 0.6),
    0 12px 36px -8px rgba(59, 130, 246, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #60A5FA 0%, #3B82F6 100%);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 8px 22px -4px rgba(59, 130, 246, 0.65),
    0 16px 48px -8px rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-primary .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 2px;
  margin-left: -6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary .btn-icon svg { width: 16px; height: 16px; }

.btn-primary .btn-label {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  text-align: left;
}
.btn-primary .btn-hint {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
}

/* ╭─────────────────────── TYPOGRAPHY ──────────────────────────────────╮ */

.display {
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--text);
}
.display-grad {
  background: linear-gradient(180deg, var(--blue-3) 0%, var(--blue) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.h-display {
  font-weight: 600;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  margin: 0 0 12px;
  color: var(--text);
}
.h-muted {
  color: var(--text-3);
  font-weight: 500;
}

.lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 54ch;
  margin: 0 0 36px;
  font-weight: 400;
}

.section-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 58ch;
  margin: 16px 0 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-2);
  padding: 5px 12px;
  background: var(--blue-soft);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  margin-bottom: 20px;
}

/* ╭─────────────────────── HERO ────────────────────────────────────────╮ */

.hero {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(52px, 8vw, 110px) var(--pad) clamp(40px, 6vw, 72px);
  z-index: 5;
  text-align: center;
}
.hero-inner {
  max-width: 920px;
  margin: 0 auto;
}
.hero .display { max-width: 14ch; margin: 0 auto 24px; }
.hero .lead    { margin: 0 auto 36px; text-align: center; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
}
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
  animation: pulse 2.4s infinite;
}
.eyebrow-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: 0.02em;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.cta-group {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 32px;
}

.trust-row {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
  color: var(--text-3);
  margin: 0 auto;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.trust-item svg {
  width: 13px;
  height: 13px;
  color: var(--blue-2);
}
.trust-sep {
  width: 1px; height: 14px;
  background: var(--border-strong);
}
@media (max-width: 620px) {
  .trust-sep { display: none; }
  .trust-row { gap: 14px; }
}

/* ─── Hero mockup wrap (centered below hero) ─── */
.hero-mockup-wrap {
  position: relative;
  margin: clamp(48px, 7vw, 72px) auto 0;
  max-width: 1120px;
  perspective: 1800px;
}
.mockup-glow {
  position: absolute;
  inset: -40px -20px -60px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(59, 130, 246, 0.28), transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(139, 92, 246, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(96, 165, 250, 0.12), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

/* ── The mockup — refined ── */
.mockup {
  position: relative;
  z-index: 1;
  text-align: left;
  background: #0B0B0E;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl);
  overflow: hidden;
  font-size: 13px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 60px 120px -30px rgba(59, 130, 246, 0.18);
  transform: translateY(0);
  transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out);
}

.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: linear-gradient(180deg, #17171D 0%, #121217 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #2B2B30;
}
.mockup-dots span:nth-child(1) { background: #FF5F57; }
.mockup-dots span:nth-child(2) { background: #FEBC2E; }
.mockup-dots span:nth-child(3) { background: #28C840; }
.mockup-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.01em;
}
.mockup-version {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--blue-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  background: var(--blue-soft);
}

.mockup-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #0D0D11;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tb-group { display: flex; gap: 2px; }
.tb-btn {
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-3);
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.tb-btn svg { width: 14px; height: 14px; }
.tb-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-2); }
.tb-btn.active {
  background: var(--blue-soft);
  color: var(--blue-2);
  box-shadow: inset 0 0 0 1px var(--border-accent);
}
.tb-sep { width: 1px; height: 18px; background: rgba(255,255,255,0.08); }
.tb-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 200px;
}
.tb-search svg { width: 12px; height: 12px; color: var(--text-3); }
.tb-search input {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 12px;
  flex: 1;
  outline: none;
  padding: 2px 0;
  font-family: var(--font-mono);
}
.tb-search-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--blue-2);
  background: var(--blue-soft);
  padding: 2px 7px;
  border-radius: 4px;
}

.mockup-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 440px;
}

.mockup-sidebar {
  background: #08080A;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mockup-sidebar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-4);
  letter-spacing: 0.12em;
  padding: 4px 4px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 4px;
}

.mockup-thumb {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 8px;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 200ms var(--ease);
}
.mockup-thumb.active {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 1px var(--border-accent), 0 0 16px -2px var(--blue-glow);
}
.thumb-head {
  height: 4px;
  width: 60%;
  background: #4A4A52;
  border-radius: 2px;
}
.thumb-rows { display: flex; flex-direction: column; gap: 3px; }
.thumb-rows span {
  height: 2px;
  background: #3A3A42;
  border-radius: 2px;
}
.thumb-rows span:nth-child(1) { width: 92%; }
.thumb-rows span:nth-child(2) { width: 84%; }
.thumb-rows span:nth-child(3) { width: 76%; }
.thumb-rows span:nth-child(4) { width: 68%; }
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.thumb-grid span {
  aspect-ratio: 1/1;
  background: #3A3A42;
  border-radius: 2px;
}
.thumb-num {
  position: absolute;
  bottom: 5px;
  right: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-4);
}
.mockup-thumb-add {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-4);
  text-align: center;
  padding: 9px;
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 6px;
}

.mockup-page-wrap {
  background: #0F0F13;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.mockup-page {
  position: relative;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 6px;
  padding: 26px 30px 42px;
  min-height: 380px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05),
    0 24px 60px -16px rgba(0,0,0,0.55);
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.page-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.page-title {
  font-size: 21px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--paper-ink);
}
.page-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #6D6D62;
  letter-spacing: 0.1em;
}
.page-divider {
  height: 1px;
  background: rgba(0,0,0,0.14);
  margin: 14px 0 18px;
}
.page-para {
  font-size: 12.5px;
  line-height: 1.65;
  margin: 0 0 14px;
  color: #2D2D28;
}
.page-para span { display: block; }
.search-hl {
  display: inline !important;
  background: #FFD74A;
  padding: 1px 3px;
  border-radius: 2px;
  color: var(--paper-ink);
  font-weight: 500;
}
.page-callout {
  display: flex;
  gap: 10px;
  background: linear-gradient(180deg, rgba(59,130,246,0.10), rgba(59,130,246,0.04));
  border-left: 2px solid var(--blue);
  padding: 10px 14px;
  margin: 12px 0 16px;
  border-radius: 0 6px 6px 0;
}
.callout-mark { color: var(--blue); font-weight: 700; }
.callout-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #6D6D62;
  text-transform: uppercase;
}
.callout-text {
  font-size: 12.5px;
  color: var(--paper-ink);
  font-weight: 500;
}
.page-sticky {
  position: absolute;
  top: 78px;
  right: 18px;
  transform: rotate(6deg);
}
.page-sticky svg { width: 26px; height: 26px; }
.page-signature { margin-top: 28px; }
.sig-name {
  font-family: 'Geist', serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  color: #1E3A8A;
  transform: rotate(-2deg);
  display: inline-block;
  margin-bottom: 4px;
}
.sig-line {
  height: 1px;
  width: 140px;
  background: #1B1B1B;
}
.sig-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #5A5A52;
  letter-spacing: 0.04em;
}
.sig-meta svg { width: 11px; height: 11px; }

.mockup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #08080A;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
}
.foot-zoom, .foot-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.zoom-val { color: var(--text-2); }
.foot-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 2px var(--signal-soft);
}

/* ─── Hero stats ─── */
.hero-stats {
  max-width: var(--wrap);
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding: 28px var(--pad);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  z-index: 3;
}
.stat {
  padding: 4px 18px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}
.stat-val {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1;
}
.stat-val em {
  font-style: normal;
  color: var(--text-3);
  font-weight: 500;
  font-size: 0.8em;
}
.stat-lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 16px 12px; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 420px) {
  .hero-stats { grid-template-columns: 1fr; padding: 0; }
}

@media (max-width: 900px) {
  .mockup-body { grid-template-columns: 110px 1fr; }
  .mockup-page { padding: 20px 20px 32px; }
}
@media (max-width: 600px) {
  .mockup-sidebar { display: none; }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-toolbar { overflow-x: auto; }
  .tb-search { display: none; }
}

/* ╭─────────────────────── SECTIONS (base) ────────────────────────────╮ */

section {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--pad) 0;
  z-index: 5;
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(44px, 6vw, 72px);
}
.section-head .section-tag { margin-bottom: 18px; }

/* ╭─────────────────────── FEATURES ───────────────────────────────────╮ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  position: relative;
  padding: 26px 24px 28px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 260ms var(--ease), border-color 260ms var(--ease), background 260ms var(--ease);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle 140px at var(--mx, 50%) var(--my, 0%), rgba(96, 165, 250, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 260ms var(--ease);
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}
.feature-card:hover::before { opacity: 1; }

.fc-large {
  grid-column: span 2;
  padding: 30px 32px;
}

.fc-accent {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.09) 0%, rgba(59, 130, 246, 0.02) 100%);
  border-color: var(--border-accent);
}
.fc-accent:hover {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0.04) 100%);
  border-color: rgba(96, 165, 250, 0.5);
}

.fc-theme { padding-bottom: 22px; }

.fc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  isolation: isolate;
}
.fc-icon svg { width: 22px; height: 22px; }
.fc-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  filter: blur(14px);
  opacity: 0.3;
  z-index: -1;
}

.fc-icon-blue {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.20), rgba(59, 130, 246, 0.08));
  box-shadow: inset 0 1px 0 rgba(96, 165, 250, 0.2), inset 0 0 0 1px rgba(96, 165, 250, 0.22);
  color: var(--blue-2);
}
.fc-icon-emerald {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.06));
  box-shadow: inset 0 1px 0 rgba(52, 211, 153, 0.2), inset 0 0 0 1px rgba(52, 211, 153, 0.22);
  color: #34D399;
}
.fc-icon-amber {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.06));
  box-shadow: inset 0 1px 0 rgba(251, 191, 36, 0.22), inset 0 0 0 1px rgba(251, 191, 36, 0.24);
  color: #FBBF24;
}
.fc-icon-violet {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.06));
  box-shadow: inset 0 1px 0 rgba(167, 139, 250, 0.22), inset 0 0 0 1px rgba(167, 139, 250, 0.24);
  color: #A78BFA;
}
.fc-icon-rose {
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.18), rgba(244, 63, 94, 0.06));
  box-shadow: inset 0 1px 0 rgba(251, 113, 133, 0.22), inset 0 0 0 1px rgba(251, 113, 133, 0.24);
  color: #FB7185;
}

.fc-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
}
.fc-large .fc-title { font-size: 22px; }

.fc-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-3);
  margin: 0;
  flex: 1;
}
.fc-desc code, .fc-desc kbd {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--surface-3);
  color: var(--text);
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.fc-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--blue);
  color: #fff;
  border-radius: 100px;
  font-weight: 600;
  box-shadow: 0 4px 12px -4px rgba(59, 130, 246, 0.6);
}

.fc-demo {
  margin-top: auto;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
}
.demo-search svg { width: 11px; height: 11px; color: var(--text-3); }
.demo-search > span:nth-of-type(1) { flex: 1; }
.demo-count {
  font-size: 10.5px;
  color: var(--blue-2);
  background: var(--blue-soft);
  padding: 2px 7px;
  border-radius: 4px;
}
.demo-match {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
  padding: 0 4px;
}
.demo-match em {
  display: inline;
  font-style: normal;
  background: #FFD74A;
  color: var(--paper-ink);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 500;
}

.fc-theme-toggle {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}
.theme-sample {
  flex: 1;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 82px;
  border: 1px solid var(--border);
}
.theme-sample.theme-light { background: #FAFAF7; }
.theme-sample.theme-dark  { background: #18181B; }
.ts-head { display: flex; gap: 3px; }
.ts-head span { width: 8px; height: 4px; border-radius: 2px; }
.theme-light .ts-head span { background: #9A9A92; }
.theme-dark  .ts-head span { background: #5C5C63; }
.ts-body { display: flex; flex-direction: column; gap: 3px; margin-top: auto; }
.ts-body span { height: 2px; border-radius: 2px; }
.theme-light .ts-body span { background: #D0D0C8; }
.theme-dark  .ts-body span { background: #3B3B42; }
.theme-light .ts-body span:nth-child(1) { width: 92%; }
.theme-light .ts-body span:nth-child(2) { width: 72%; }
.theme-light .ts-body span:nth-child(3) { width: 50%; }
.theme-dark  .ts-body span:nth-child(1) { width: 92%; }
.theme-dark  .ts-body span:nth-child(2) { width: 72%; }
.theme-dark  .ts-body span:nth-child(3) { width: 50%; }

@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .fc-large { grid-column: span 2; }
}
@media (max-width: 620px) {
  .feature-grid { grid-template-columns: 1fr; }
  .fc-large { grid-column: span 1; }
}

/* ╭─────────────────────── WORKFLOW ───────────────────────────────────╮ */

.wf-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.wf-line {
  position: absolute;
  top: 38px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 15%, var(--border-strong) 85%, transparent);
  z-index: 0;
  pointer-events: none;
}
.wf-step {
  position: relative;
  z-index: 1;
  padding: 22px 20px 24px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 260ms var(--ease), transform 260ms var(--ease);
}
.wf-step:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.wf-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-2);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(96, 165, 250, 0.25),
    inset 0 0 0 1px rgba(96, 165, 250, 0.3),
    0 0 20px -4px rgba(59, 130, 246, 0.35);
  margin-bottom: 4px;
}
.wf-step h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
}
.wf-step p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-3);
  margin: 0;
  flex: 1;
}
.wf-step code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface-3);
  color: var(--text);
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.wf-code {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.wf-chips li {
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 100px;
}

@media (max-width: 1000px) {
  .wf-grid { grid-template-columns: repeat(2, 1fr); }
  .wf-line { display: none; }
}
@media (max-width: 600px) {
  .wf-grid { grid-template-columns: 1fr; }
}

/* ╭─────────────────────── KEYBOARD ───────────────────────────────────╮ */

.kbd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.kbd-group {
  padding: 22px 22px 14px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 260ms var(--ease);
}
.kbd-group:hover { border-color: var(--border-hover); }

.kbd-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  letter-spacing: -0.005em;
}
.kbd-group-title svg {
  width: 14px;
  height: 14px;
  color: var(--blue-2);
}

.kbd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.kbd-row:last-child { border-bottom: 0; }
.kbd-label {
  font-size: 13px;
  color: var(--text-2);
}
.kbd-keys {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-4);
  font-size: 10px;
}
.kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text);
  padding: 3px 7px;
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}
.kbd-inline {
  display: inline-block;
  margin: 0 2px;
  vertical-align: baseline;
}
.kbd-plus {
  color: var(--text-4);
  padding: 0 1px;
  font-family: var(--font-mono);
  font-size: 10px;
}

@media (max-width: 1000px) { .kbd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .kbd-grid { grid-template-columns: 1fr; } }

/* ╭─────────────────────── DOWNLOAD ───────────────────────────────────╮ */

.dl-head {
  text-align: left;
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.dl-head .section-tag { margin-bottom: 16px; }
.dl-version-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  padding: 16px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  min-width: 220px;
}
.dl-ver-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
}
.dl-ver {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.dl-ver-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.03em;
}

.dl-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
}
.dl-card {
  position: relative;
  padding: 24px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 260px;
  transition: border-color 260ms var(--ease), transform 260ms var(--ease), background 260ms var(--ease);
}
.dl-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.dl-primary {
  background:
    radial-gradient(ellipse 60% 60% at 100% 0%, rgba(59, 130, 246, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.04) 100%),
    var(--surface);
  border-color: var(--border-accent);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.18), 0 12px 40px -12px rgba(59, 130, 246, 0.3);
}
.dl-primary:hover {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.3), 0 16px 56px -12px rgba(59, 130, 246, 0.45);
}

.dl-recommended {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin: 0;
}
.dl-rec-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
  animation: pulse 2.4s infinite;
}

.dl-head-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dl-os-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.dl-os-badge svg { width: 26px; height: 26px; }
.dl-primary .dl-os-badge {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.08));
  border-color: var(--border-accent);
  color: var(--blue-2);
}

.dl-text { display: flex; flex-direction: column; gap: 4px; }
.dl-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.dl-sub {
  font-size: 13px;
  color: var(--text-3);
}

.dl-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-3);
}
.dl-meta code {
  font-family: var(--font-mono);
  background: var(--surface-3);
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
}
.dl-sep { color: var(--text-5); }

.dl-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.3),
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 6px 16px -6px rgba(59, 130, 246, 0.6);
}
.dl-action:hover {
  background: linear-gradient(180deg, #60A5FA 0%, #3B82F6 100%);
  box-shadow:
    0 0 0 1px rgba(96,165,250,0.4),
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 10px 24px -6px rgba(59, 130, 246, 0.7);
  transform: translateY(-1px);
}
.dl-action svg { width: 15px; height: 15px; }

.dl-action-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.dl-action-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
  box-shadow: none;
}

.dl-variants {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dl-variant {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 200ms var(--ease);
}
.dl-variant:hover {
  background: var(--surface-3);
  border-color: var(--border-accent);
  transform: translateX(2px);
}

/* Featured variant — the primary recommendation inside a card */
.dl-variant-featured {
  background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);
  border-color: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 6px 18px -6px rgba(59, 130, 246, 0.55);
}
.dl-variant-featured:hover {
  background: linear-gradient(180deg, #60A5FA 0%, #3B82F6 100%);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateX(2px) translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 10px 24px -6px rgba(59, 130, 246, 0.65);
}
.dl-variant-featured .dl-variant-label strong { color: #FFFFFF; }
.dl-variant-featured .dl-variant-label span   { color: rgba(255, 255, 255, 0.75); }
.dl-variant-featured .dl-variant-meta         { color: rgba(255, 255, 255, 0.85); }
.dl-variant-featured .dl-variant-meta code {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.16);
}
.dl-variant-featured .dl-variant-meta svg { opacity: 1; }
.dl-variant-featured:hover .dl-variant-meta { color: #FFFFFF; }

.dl-variant-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.dl-variant-label strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.dl-variant-label span {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0;
}
.dl-variant-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  transition: color 200ms var(--ease);
  flex-shrink: 0;
}
.dl-variant-meta code {
  font-family: var(--font-mono);
  background: var(--surface-3);
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
}
.dl-variant-meta svg { width: 13px; height: 13px; opacity: 0.7; transition: transform 200ms var(--ease); }
.dl-variant:hover .dl-variant-meta { color: var(--blue-2); }
.dl-variant:hover .dl-variant-meta svg { transform: translateY(2px); opacity: 1; }
.dl-variant-featured:hover .dl-variant-meta svg { transform: translateY(2px); }

/* ─── macOS "coming soon" card ─── */
.dl-soon { position: relative; }
.dl-soon:hover { transform: none; }

.dl-soon-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.06));
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 100px;
}
.dl-soon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FBBF24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
  animation: pulse 2.4s infinite;
}

.dl-os-badge-muted {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: var(--border);
  color: var(--text-3);
  opacity: 0.75;
}

.dl-soon-body {
  margin-top: auto;
  padding: 18px;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dl-soon-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.dl-soon-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-2);
  align-self: flex-start;
  transition: all 200ms var(--ease);
}
.dl-soon-email svg { width: 14px; height: 14px; flex-shrink: 0; }
.dl-soon-email svg:last-child { transition: transform 200ms var(--ease); }
.dl-soon-email:hover {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(96, 165, 250, 0.5);
  color: var(--blue-3);
}
.dl-soon-email:hover svg:last-child { transform: translateX(2px); }

/* Primary CTA variant when mac detected (softer, still prominent) */
.btn-primary.btn-soon {
  background: linear-gradient(180deg, #2C2C35 0%, #1C1C22 100%);
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 20px -8px rgba(251, 191, 36, 0.25);
}
.btn-primary.btn-soon:hover {
  background: linear-gradient(180deg, #34343F 0%, #22222A 100%);
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 28px -8px rgba(251, 191, 36, 0.35);
}
.btn-primary.btn-soon .btn-icon {
  background: rgba(251, 191, 36, 0.14);
  color: #FBBF24;
}
.btn-primary.btn-soon .btn-hint {
  color: rgba(251, 191, 36, 0.75);
}

/* Primary download card — non-featured variants get dark background */
.dl-primary .dl-variant:not(.dl-variant-featured) {
  background: rgba(10, 10, 13, 0.5);
  border-color: rgba(255, 255, 255, 0.08);
}
.dl-primary .dl-variant:not(.dl-variant-featured):hover {
  background: rgba(10, 10, 13, 0.75);
  border-color: var(--border-hover);
}

.specs-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin-top: 40px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.spec {
  padding: 18px 18px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
}
.spec-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}

@media (max-width: 1000px) {
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .dl-primary { grid-column: span 2; }
  .specs-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .dl-grid { grid-template-columns: 1fr; }
  .dl-primary { grid-column: span 1; }
  .specs-strip { grid-template-columns: repeat(2, 1fr); }
  .dl-version-block { min-width: 0; width: 100%; align-items: flex-start; text-align: left; }
}

/* ╭─────────────────────── FOOTER ─────────────────────────────────────╮ */

.footer {
  max-width: var(--wrap);
  margin: clamp(80px, 10vw, 140px) auto 0;
  padding: clamp(48px, 6vw, 72px) var(--pad) clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 5;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.footer-brand .nav-mark { width: 46px; height: 46px; flex-shrink: 0; }
.footer-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.footer-name em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 3px;
}
.footer-soon em {
  font-style: normal;
  color: var(--amber, #FBBF24);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.footer-tag {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-3);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
  font-weight: 500;
}
.footer-col a {
  font-size: 13.5px;
  color: var(--text-2);
  transition: color 200ms var(--ease);
}
.footer-col a:hover { color: var(--blue-2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  flex-wrap: wrap;
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}
.dot-sep { color: var(--text-5); }
.footer-notes {
  font-size: 11.5px;
  color: var(--text-4);
  max-width: 54ch;
}

@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

/* ╭─────────────────────── ENTRY ANIMATIONS ───────────────────────────╮ */

@media (prefers-reduced-motion: no-preference) {
  .hero-inner > *,
  .hero-mockup-wrap {
    animation: rise 760ms var(--ease-out) both;
  }
  .hero-eyebrow       { animation-delay: 40ms; }
  .hero .display      { animation-delay: 140ms; }
  .hero .lead         { animation-delay: 240ms; }
  .cta-group          { animation-delay: 320ms; }
  .trust-row          { animation-delay: 400ms; }
  .hero-mockup-wrap   { animation-delay: 460ms; animation-duration: 900ms; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .features, .workflow, .keyboard, .download, .footer {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 700ms var(--ease-out),
      transform 700ms var(--ease-out);
  }
  .features.is-visible,
  .workflow.is-visible,
  .keyboard.is-visible,
  .download.is-visible,
  .footer.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .is-visible .feature-card,
  .is-visible .wf-step,
  .is-visible .kbd-group,
  .is-visible .dl-card {
    animation: rise 600ms var(--ease-out) both;
  }
  .is-visible .feature-card:nth-child(1)  { animation-delay: 0ms; }
  .is-visible .feature-card:nth-child(2)  { animation-delay: 50ms; }
  .is-visible .feature-card:nth-child(3)  { animation-delay: 100ms; }
  .is-visible .feature-card:nth-child(4)  { animation-delay: 150ms; }
  .is-visible .feature-card:nth-child(5)  { animation-delay: 200ms; }
  .is-visible .feature-card:nth-child(6)  { animation-delay: 250ms; }
  .is-visible .feature-card:nth-child(7)  { animation-delay: 300ms; }
  .is-visible .feature-card:nth-child(8)  { animation-delay: 350ms; }
  .is-visible .feature-card:nth-child(9)  { animation-delay: 400ms; }
  .is-visible .feature-card:nth-child(10) { animation-delay: 450ms; }
  .is-visible .feature-card:nth-child(11) { animation-delay: 500ms; }
  .is-visible .feature-card:nth-child(12) { animation-delay: 550ms; }

  .is-visible .wf-step:nth-child(2) { animation-delay: 0ms; }
  .is-visible .wf-step:nth-child(3) { animation-delay: 80ms; }
  .is-visible .wf-step:nth-child(4) { animation-delay: 160ms; }
  .is-visible .wf-step:nth-child(5) { animation-delay: 240ms; }

  .is-visible .kbd-group:nth-child(1) { animation-delay: 0ms; }
  .is-visible .kbd-group:nth-child(2) { animation-delay: 80ms; }
  .is-visible .kbd-group:nth-child(3) { animation-delay: 160ms; }
  .is-visible .kbd-group:nth-child(4) { animation-delay: 240ms; }

  .is-visible .dl-card:nth-child(1) { animation-delay: 0ms; }
  .is-visible .dl-card:nth-child(2) { animation-delay: 100ms; }
  .is-visible .dl-card:nth-child(3) { animation-delay: 200ms; }

  /* Mockup float on hover */
  .hero-mockup-wrap:hover .mockup {
    transform: translateY(-4px);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.06),
      0 40px 100px -20px rgba(0, 0, 0, 0.75),
      0 70px 140px -30px rgba(59, 130, 246, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .features, .workflow, .keyboard, .download, .footer {
    opacity: 1 !important;
    transform: none !important;
  }
  * { animation: none !important; transition: none !important; }
}

/* ╭─────────────────────── SCROLLBAR ──────────────────────────────────╮ */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border: 2px solid var(--bg);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--surface-4); }

/* ╭─────────────────────── FOCUS ──────────────────────────────────────╮ */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 3px;
  border-radius: 4px;
}
