/* ═══════════════════════════════════════════════════════════════════════════
   SourceCiv — Marketing Site
   Design system aligned with the SourceCiv desktop app.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  /* Graphite chrome (from app) */
  --bg:            #0b0c0e;
  --bg-1:          #0f1114;
  --bg-2:          #14171b;
  --bg-3:          #1c1f24;
  --surface:       #16181c;
  --surface-hi:    #1b1e23;
  --surface-soft:  rgba(255,255,255,.03);

  /* Borders / dividers */
  --line:          rgba(255,255,255,.07);
  --line-strong:   rgba(255,255,255,.12);
  --line-soft:     rgba(255,255,255,.04);

  /* Text */
  --text:          #eef1f6;
  --text-2:        #c5ccd6;
  --text-3:        #8b95a4;
  --text-4:        #636d7b;
  --text-muted:    #4b5461;

  /* Accent — refined indigo (brand) */
  --accent:        #5b74ff;
  --accent-hi:     #7a8dff;
  --accent-lo:     #3b5bdb;
  --accent-glow:   rgba(91,116,255,.35);
  --accent-soft:   rgba(91,116,255,.12);

  /* Typography */
  --font-sans: 'Inter', 'Inter Tight', -apple-system, BlinkMacSystemFont,
               'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype',
                'Georgia', serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, Consolas, monospace;

  /* Layout */
  --container:     1160px;
  --container-nar: 860px;
  --nav-h:         64px;

  /* Radii */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  22px;
  --r-2xl: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.03) inset;
  --shadow-md: 0 8px 24px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04) inset;
  --shadow-lg: 0 24px 64px rgba(0,0,0,.5),  0 0 0 1px rgba(255,255,255,.05) inset;
  --glow:      0 0 0 1px rgba(91,116,255,.35), 0 12px 40px rgba(91,116,255,.18);

  /* Motion */
  --t-fast: 140ms;
  --t-base: 240ms;
  --t-slow: 480ms;
  --ease:   cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); }

/* ─── Base ──────────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11","ss01","ss03";
  overflow-x: hidden;

  /* Subtle global texture */
  background-image:
    radial-gradient(1200px 800px at 80% -10%, rgba(91,116,255,.08), transparent 60%),
    radial-gradient(900px 700px at -10% 20%, rgba(91,116,255,.05), transparent 60%);
  background-attachment: fixed;
}

::selection { background: var(--accent); color: white; }

/* Ambient grain — very subtle film-noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Cursor-follower accent glow (injected by JS) */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 520px; height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(91,116,255,.18), rgba(91,116,255,0) 70%);
  mix-blend-mode: screen;
  filter: blur(30px);
  opacity: 0;
  transition: opacity 600ms var(--ease);
  will-change: transform;
}
.cursor-glow.visible { opacity: 1; }
@media (hover: none) { .cursor-glow { display: none; } }

/* ─── Typography ────────────────────────────────────────────────────────── */
.h-display, h1.hero-title {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--text);
}
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(40px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; }
h3 { font-size: 20px; line-height: 1.3; }
h4 { font-size: 16px; line-height: 1.4; }

p { margin: 0; color: var(--text-2); }

.serif-em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow::before {
  content: "";
  width: 14px; height: 1px;
  background: var(--text-3);
}
.eyebrow.no-bar::before { display: none; }

.mono { font-family: var(--font-mono); font-feature-settings: "ss01","cv11"; }

/* ─── Layout primitives ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 3;
}
.container-narrow {
  max-width: var(--container-nar);
}

.section { padding: 120px 0; position: relative; z-index: 3; }
.section-tight { padding: 80px 0; }

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .section-tight { padding: 56px 0; }
  .container { padding: 0 20px; }
}

/* ─── Navigation ────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 50;
  transition: background var(--t-base) var(--ease), border-color var(--t-base), backdrop-filter var(--t-base);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11,12,14,.72);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-brand .brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(180deg, #1f2328, #0f1113);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 4px 10px rgba(0,0,0,.5);
}
.nav-brand .brand-mark svg {
  width: 15px; height: 15px; color: #e6eaf1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-3);
  font-size: 14px;
  transition: color var(--t-fast);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }

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

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-2);
}
.nav-toggle:hover { background: var(--surface-soft); color: var(--text); }

@media (max-width: 820px) {
  .nav-inner { padding: 0 20px; gap: 12px; }
  .nav-links { display: none; }
  .nav-cta .btn:not(.btn-primary) { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    gap: 4px;
    background: rgba(11,12,14,.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 16px;
  }
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  position: relative;
  transition:
    background var(--t-base) var(--ease),
    color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    transform var(--t-fast) var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, #6a81ff, #4a65ee);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12) inset,
    0 1px 0 rgba(255,255,255,.25) inset,
    0 10px 24px rgba(70,90,220,.35),
    0 1px 3px rgba(0,0,0,.4);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #7a8dff, #5873f2);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.18) inset,
    0 1px 0 rgba(255,255,255,.3) inset,
    0 14px 34px rgba(70,90,220,.45),
    0 1px 3px rgba(0,0,0,.4);
}

.btn-ghost {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--line-strong);
}

.btn-subtle {
  color: var(--text-2);
}
.btn-subtle:hover { color: var(--text); }

.btn-large {
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
}

.btn svg { width: 16px; height: 16px; }
.btn .arrow {
  transition: transform var(--t-base) var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

.btn.is-disabled,
.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  filter: saturate(.6);
  box-shadow: 0 0 0 1px var(--line) inset, 0 0 0 1px rgba(255,255,255,.04) inset !important;
  background: #22262d !important;
  color: var(--text-3) !important;
  transform: none !important;
}
input[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 120px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  mix-blend-mode: screen;
}
.hero-bg::before {
  width: 720px; height: 720px;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(91,116,255,.45), rgba(91,116,255,0) 70%);
  animation: float-a 14s ease-in-out infinite;
}
.hero-bg::after {
  width: 520px; height: 520px;
  top: 120px; right: -140px;
  background: radial-gradient(closest-side, rgba(150,100,255,.28), rgba(150,100,255,0) 70%);
  animation: float-b 18s ease-in-out infinite;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 80%);
  z-index: 0;
}

@keyframes float-a {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 30px); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-20px, 40px); }
}

.hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hero-eyebrow {
  justify-content: center;
  margin-bottom: 28px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.01em;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before { display: none; }
.hero-eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.hero-eyebrow .v {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
}

.hero-title {
  font-size: clamp(44px, 7.5vw, 92px);
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--text);
}
.hero-title .serif-em { color: var(--text); }
.hero-title .accent { color: var(--accent-hi); }

.hero-sub {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--text-2);
}

.hero-ctas {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-meta {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--text-4);
  font-size: 13px;
}
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); }

/* ─── Product window mockup ─────────────────────────────────────────────── */
.product-stage {
  margin: 80px auto 0;
  max-width: 1100px;
  position: relative;
  padding: 0 16px;
}
.product-stage::before {
  content: "";
  position: absolute;
  inset: -8% -8% auto -8%;
  height: 80%;
  background: radial-gradient(ellipse at 50% 0%, rgba(91,116,255,.22), transparent 65%);
  z-index: 0;
  filter: blur(20px);
}

.app-window {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow:
    0 60px 120px rgba(0,0,0,.6),
    0 20px 40px rgba(0,0,0,.4),
    0 0 0 1px rgba(255,255,255,.04) inset;
  z-index: 2;
}

.app-chrome {
  height: 40px;
  background: linear-gradient(180deg, #1c1f24, #141719);
  border-bottom: 1px solid rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
}
.app-dots { display: flex; gap: 7px; }
.app-dot { width: 11px; height: 11px; border-radius: 50%; background: #3a3f47; }
.app-dot:nth-child(1) { background: #ff5f57; }
.app-dot:nth-child(2) { background: #febc2e; }
.app-dot:nth-child(3) { background: #28c840; }
.app-title {
  margin: 0 auto;
  font-size: 12px;
  color: var(--text-4);
  letter-spacing: -0.005em;
}

.app-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 440px;
  background: #14171b;
}
.app-side {
  border-right: 1px solid rgba(0,0,0,.4);
  background: #0f1114;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-side .app-side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  color: #7c8593;
  font-size: 12.5px;
  transition: color var(--t-fast), background var(--t-fast);
}
.app-side .app-side-item svg { width: 14px; height: 14px; opacity: .8; }
.app-side .app-side-item.active {
  background: rgba(255,255,255,.05);
  color: #dbe1ec;
}

.app-main {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.app-main-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.app-main-head h4 {
  font-size: 14px; color: #e7ecf3; font-weight: 500;
}
.app-chip {
  font-size: 11px;
  color: var(--text-3);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 999px;
}
.app-rows { display: flex; flex-direction: column; gap: 8px; }
.app-row {
  display: grid;
  grid-template-columns: 18px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: #181b1f;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  color: #c3cbd8;
}
.app-row .swatch {
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.app-row .date { color: var(--text-4); font-family: var(--font-mono); font-size: 11.5px; }
.app-row .tag {
  font-size: 11px; color: var(--accent-hi);
  background: var(--accent-soft);
  padding: 2px 8px; border-radius: 999px;
}

@media (max-width: 720px) {
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .app-main { padding: 18px; }
}

/* ─── Logo cloud ────────────────────────────────────────────────────────── */
.logo-band {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.015);
}
.logo-band-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px 64px;
  color: var(--text-4);
  font-size: 13px;
}
.logo-band-label {
  color: var(--text-3);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Section header ────────────────────────────────────────────────────── */
.sec-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.sec-head.left { text-align: left; margin-left: 0; }
.sec-head h2 {
  margin-top: 14px;
  margin-bottom: 18px;
}
.sec-head p {
  color: var(--text-3);
  font-size: 17px;
  line-height: 1.55;
}

/* ─── Feature grid ──────────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 920px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
  position: relative;
  padding: 28px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base), transform var(--t-base) var(--ease-out);
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at var(--mx,50%) 0%, rgba(91,116,255,.12), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.feature:hover::before { opacity: 1; }

.feature-icon {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: linear-gradient(180deg, #23272e, #171a1e);
  border: 1px solid var(--line-strong);
  color: var(--accent-hi);
  margin-bottom: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
}
.feature-icon svg { width: 18px; height: 18px; }

.feature h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.55;
}

/* ─── Split / value prop ────────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse > :first-child { order: 0; }
}

.split h2 { margin-bottom: 20px; }
.split p { color: var(--text-3); font-size: 16px; line-height: 1.65; margin-bottom: 16px; }

.split-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface), #0e1014);
  border: 1px solid var(--line);
  padding: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.split-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 -30% 0;
  height: 60%;
  background: radial-gradient(ellipse at 50% 0%, rgba(91,116,255,.16), transparent 60%);
  filter: blur(10px);
}

/* Lineup list (e.g. "Built for...") */
.bullet-list { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.bullet-list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
}
.bullet-list .b-mark {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-hi);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bullet-list .b-mark svg { width: 10px; height: 10px; }

/* ─── Workflow preview (mini app-like card used in split) ───────────────── */
.mini-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  font-size: 13px;
  color: var(--text-2);
  transition: border-color var(--t-base), background var(--t-base);
}
.mini-row:hover { border-color: var(--line-strong); background: rgba(255,255,255,.04); }
.mini-row .mini-left { display: flex; gap: 10px; align-items: center; }
.mini-row .mini-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.mini-row .mini-date { color: var(--text-4); font-family: var(--font-mono); font-size: 12px; }
.mini-row .mini-state {
  font-size: 11px; font-weight: 500;
  padding: 2px 8px; border-radius: 999px;
  color: var(--text-3);
  border: 1px solid var(--line);
}

/* ─── Why strip (stats) ─────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 36px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
.stat-value {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--text);
}
.stat-label {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.5;
}

/* ─── CTA / Download banner ─────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  padding: 72px 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(80% 140% at 50% -20%, rgba(91,116,255,.22), transparent 60%),
    linear-gradient(180deg, #161920, #0d0f12);
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { color: var(--text-3); max-width: 520px; margin: 0 auto 28px; }
.cta-banner .hero-ctas { position: relative; z-index: 2; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.footer {
  padding: 64px 0 36px;
  border-top: 1px solid var(--line);
  background: #0a0b0d;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  align-items: start;
}
.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-3);
  font-size: 13px;
}
.footer-brand-block .brand-row {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 600; font-size: 15px;
}
.footer-brand-block .brand-row .brand-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(180deg, #1f2328, #0f1113);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset;
}
.footer-brand-block .brand-row svg { width: 15px; height: 15px; color: #e6eaf1; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col h5 {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--text-2);
  font-size: 14px;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-4);
  font-size: 12.5px;
}

@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Scroll-reveal ─────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 270ms; }
.reveal-delay-4 { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .cursor-glow { display: none; }
  .hero-bg::before, .hero-bg::after { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ─── Auth / form pages ─────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  position: relative;
  overflow: hidden;
}
.auth-page .hero-bg { position: absolute; inset: 0; }
.auth-card {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, #14171c, #0e1013);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px;
  position: relative;
  z-index: 3;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 {
  font-size: 28px;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.auth-card .auth-sub {
  color: var(--text-3);
  font-size: 14.5px;
  margin-bottom: 32px;
}

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label {
  font-size: 12.5px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.field input {
  height: 44px;
  background: #0c0e11;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  color: var(--text);
  font-size: 14px;
  transition: border-color var(--t-base), background var(--t-base), box-shadow var(--t-base);
  outline: none;
}
.field input::placeholder { color: var(--text-4); }
.field input:hover { border-color: var(--line-strong); }
.field input:focus {
  border-color: var(--accent);
  background: #0d1116;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-row {
  display: flex;
  gap: 12px;
}
.field-row .field { flex: 1; }

.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-3);
  margin-top: 6px;
}
.form-foot a { color: var(--accent-hi); }
.form-foot a:hover { color: var(--text); }

.btn-submit {
  width: 100%;
  margin-top: 20px;
  height: 46px;
  font-size: 14.5px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-4);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-legal {
  text-align: center;
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--text-4);
}
.auth-legal a { color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }
.auth-legal a:hover { color: var(--text); }

.auth-note {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(91,116,255,.06);
  border-radius: 10px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.auth-note b { color: var(--text); font-weight: 600; }

.form-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(80,180,120,.08); color: #9be0b5; border: 1px solid rgba(80,180,120,.25); }
.form-status.err { background: rgba(220,90,90,.08); color: #f1a5a5; border: 1px solid rgba(220,90,90,.25); }

/* ─── Download page ─────────────────────────────────────────────────────── */
.download-hero {
  padding: calc(var(--nav-h) + 80px) 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download-card {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 32px;
  background: linear-gradient(180deg, #14171c, #0e1013);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  text-align: left;
}
.download-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.download-card-head .platform-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #23272e, #171a1e);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.download-card-head .platform-icon svg { width: 20px; height: 20px; }
.download-card-head h3 { font-size: 16px; }
.download-card-head .meta { font-size: 13px; color: var(--text-3); }
.download-card-head .meta .mono { color: var(--text-2); }

.download-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 640px) { .download-details { grid-template-columns: 1fr; } }
.download-details .detail {
  padding: 14px;
  background: rgba(255,255,255,.015);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.detail-label { font-size: 11px; color: var(--text-4); letter-spacing: 0.06em; text-transform: uppercase; }
.detail-value { margin-top: 4px; font-size: 13.5px; color: var(--text); }

.download-note {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
  padding: 14px;
  background: rgba(91,116,255,.04);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  margin: 48px auto 0;
  text-align: left;
}
.checklist-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.015);
}
.checklist-row .num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-hi);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  flex-shrink: 0;
}
.checklist-row h4 { font-size: 14px; margin: 0 0 2px; }
.checklist-row p { font-size: 13px; color: var(--text-3); }

/* ─── Dashboard / account (stub) ────────────────────────────────────────── */
.dash {
  padding: calc(var(--nav-h) + 48px) 0 80px;
  position: relative;
  overflow: hidden;
}
.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-card {
  background: linear-gradient(180deg, #14171c, #0e1013);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.dash-card h3 { margin-bottom: 8px; font-size: 18px; }
.dash-card p { color: var(--text-3); font-size: 14px; margin-bottom: 16px; }

.dash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.dash-row:last-child { border-bottom: 0; }
.dash-row .label { color: var(--text-3); }
.dash-row .value { color: var(--text); font-family: var(--font-mono); font-size: 13px; }

/* ─── Utilities ─────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }
.text-muted { color: var(--text-3); }
.center { text-align: center; }
