/* ============================================================
   RecruiterOS — Design System
   The AI Operating System for Recruiting
   ============================================================ */

:root {
  /* Brand palette */
  --bg: #0a0a12;
  --bg-soft: #11111d;
  --surface: #16161f;
  --surface-2: #1d1d2b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f4f4f8;
  --text-muted: #a3a3b8;
  --text-dim: #6c6c82;

  --brand: #7c5cff;       /* violet */
  --brand-2: #4dd0ff;     /* cyan */
  --brand-3: #ff7ac6;     /* pink */
  --accent-green: #38e0a6;
  --accent-amber: #ffc24d;
  --accent-red: #ff6b6b;

  --grad: linear-gradient(120deg, #7c5cff 0%, #4dd0ff 100%);
  --grad-warm: linear-gradient(120deg, #ff7ac6 0%, #ffc24d 100%);
  --grad-text: linear-gradient(120deg, #b9a6ff 0%, #8be7ff 60%, #ffb3e3 100%);

  /* Legacy aliases: a lot of inline-styled chrome (setup tabs/steps, pills,
     pickers) was written against --line/--muted/--card with hardcoded dark
     fallbacks. They were never defined, so they pinned to dark in BOTH themes.
     Define them here (matching the old fallbacks → dark is unchanged) and
     re-map them in the light block so that chrome re-skins cleanly. */
  --line: #262a33;
  --muted: #8b93a1;
  --card: #16161f;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 60px -10px rgba(124, 92, 255, 0.45);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, Menlo, monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(700px 500px at 12% -5%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(680px 480px at 90% 0%, rgba(77, 208, 255, 0.16), transparent 60%),
    radial-gradient(900px 700px at 70% 110%, rgba(255, 122, 198, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
   NEXT-LEVEL FX — aurora, grid, particles, noise, shimmer
   ============================================================ */

/* Animated aurora blobs */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; mix-blend-mode: screen; }
.aurora .b1 { width: 560px; height: 560px; background: radial-gradient(circle, #7c5cff, transparent 70%); top: -160px; left: -120px; animation: drift1 22s ease-in-out infinite; }
.aurora .b2 { width: 520px; height: 520px; background: radial-gradient(circle, #4dd0ff, transparent 70%); top: -80px; right: -140px; animation: drift2 26s ease-in-out infinite; }
.aurora .b3 { width: 480px; height: 480px; background: radial-gradient(circle, #ff7ac6, transparent 70%); top: 40%; left: 50%; animation: drift3 30s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(120px, 80px) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-100px, 120px) scale(1.1); } }
@keyframes drift3 { 0%,100% { transform: translate(-50%,0) scale(1); } 50% { transform: translate(-60%, -90px) scale(1.2); } }

/* Moving dot grid */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  animation: gridmove 28s linear infinite;
}
@keyframes gridmove { from { background-position: 0 0; } to { background-position: 38px 38px; } }

/* Hero particle canvas */
#fxCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero .container { position: relative; z-index: 2; }

/* Film-grain noise */
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Shimmer sweep on gradient text */
.gradient-text {
  background: linear-gradient(110deg, #b9a6ff 20%, #8be7ff 40%, #ffffff 50%, #8be7ff 60%, #ffb3e3 80%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

/* Animated gradient border for featured/preview cards */
.glow-border { position: relative; }
.glow-border::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, #7c5cff, #4dd0ff, #ff7ac6, #7c5cff);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: borderflow 8s linear infinite; opacity: .8; pointer-events: none;
}
@keyframes borderflow { to { background-position: 300% 50%; } }

/* Card hover sheen */
.feature-card { position: relative; overflow: hidden; }
.feature-card::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.07), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
.feature-card:hover::after { left: 130%; }

/* Floating badge animation */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.eyebrow { animation: floaty 5s ease-in-out infinite; }

/* Logo marquee */
.logos-row { animation: none; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; gap: 56px; width: max-content; animation: scrollx 26s linear infinite; }
.marquee .track span { font-weight: 700; font-size: 19px; color: var(--text-muted); letter-spacing: -0.02em; opacity: .65; }
@keyframes scrollx { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .aurora .blob, .grid-bg, .gradient-text, .glow-border::before, .eyebrow, .marquee .track, .wave i { animation: none !important; }
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad);
  color: #0a0a12;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 80px -8px rgba(124, 92, 255, 0.6); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: var(--brand); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 18, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand .logo {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #0a0a12; font-weight: 900; font-size: 17px;
  box-shadow: var(--shadow-glow);
}
.brand .os { color: var(--text-dim); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 60px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  margin-bottom: 28px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-green); box-shadow: 0 0 10px var(--accent-green); }
h1.hero-title {
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 900px;
  margin: 0 auto 22px;
}
.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 13px; color: var(--text-dim); }

/* Hero search demo */
.hero-search {
  max-width: 720px;
  margin: 44px auto 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 10px 10px 10px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
}
.hero-search .ico { color: var(--brand-2); font-size: 20px; }
.hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}
.hero-search input::placeholder { color: var(--text-dim); }

.hero-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.chip {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted); font-size: 13px;
  cursor: pointer; transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--brand); background: rgba(124,92,255,0.1); }

/* ---------- Logos strip ---------- */
.logos { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 70px; }
.logos p { text-align: center; color: var(--text-dim); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 22px; }
.logos-row { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; opacity: .7; }
.logos-row span { font-weight: 700; font-size: 19px; color: var(--text-muted); letter-spacing: -0.02em; }

/* ---------- Section ---------- */
section { padding: 90px 0; position: relative; z-index: 1; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: 18px; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease, background .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.feature-card .ficon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 22px; margin-bottom: 18px;
  background: rgba(124,92,255,0.14);
  border: 1px solid rgba(124,92,255,0.3);
}
.feature-card h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { color: var(--text-muted); font-size: 15px; }
.feature-card.span-2 { grid-column: span 2; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step .num {
  font-family: var(--mono); font-size: 14px; font-weight: 700;
  color: var(--brand-2); margin-bottom: 14px; display: inline-block;
  padding: 4px 10px; border-radius: 8px; background: rgba(77,208,255,0.1); border: 1px solid rgba(77,208,255,0.25);
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15px; }

/* ---------- App preview mock ---------- */
.preview-wrap {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}
.preview-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.preview-bar .dot { width: 12px; height: 12px; border-radius: 50%; }
.preview-bar .dot.r { background: #ff5f57; }
.preview-bar .dot.y { background: #febc2e; }
.preview-bar .dot.g { background: #28c840; }
.preview-bar .url { margin-left: 14px; font-size: 13px; color: var(--text-dim); font-family: var(--mono); }
.preview-body { padding: 0; }
.preview-body img { width: 100%; }

/* mini table inside preview (rendered with divs) */
.mini-table { font-size: 13px; }
.mini-row { display: grid; grid-template-columns: 1.6fr 1.6fr 1.2fr 1fr 0.8fr; border-bottom: 1px solid var(--border); }
.mini-row.head { background: var(--surface); color: var(--text-dim); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.mini-cell { padding: 13px 16px; border-right: 1px solid var(--border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.mini-cell:last-child { border-right: none; }
.pill { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.pill.green { background: rgba(56,224,166,0.14); color: var(--accent-green); }
.pill.amber { background: rgba(255,194,77,0.14); color: var(--accent-amber); }
.pill.violet { background: rgba(124,92,255,0.16); color: #b9a6ff; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #0a0a12; flex: none; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.quote p { font-size: 16px; margin-bottom: 20px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who .avatar { width: 38px; height: 38px; font-size: 14px; }
.quote .who b { display: block; font-size: 14px; }
.quote .who span { font-size: 13px; color: var(--text-dim); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 32px;
  display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow-glow); background: linear-gradient(180deg, rgba(124,92,255,0.08), var(--surface)); position: relative; }
.plan .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #0a0a12; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.plan h3 { font-size: 20px; margin-bottom: 6px; }
.plan .price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 4px; }
.plan .price span { font-size: 16px; font-weight: 500; color: var(--text-dim); }
.plan .desc { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; }
.plan ul { list-style: none; margin: 0 0 26px; display: grid; gap: 12px; }
.plan li { font-size: 14px; color: var(--text-muted); display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: "✓"; color: var(--accent-green); font-weight: 800; }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-inner {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(124,92,255,0.25), transparent 70%),
    var(--surface);
}
.cta-inner h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; margin-bottom: 16px; }
.cta-inner p { color: var(--text-muted); font-size: 18px; margin-bottom: 30px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
.footer-grid .brand { margin-bottom: 14px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; margin-bottom: 10px; transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13px; flex-wrap: wrap; gap: 12px; }
.footer-blurb { color: var(--text-muted); font-size: 14px; max-width: 280px; }

/* ============================================================
   OS-VISION SECTIONS
   ============================================================ */

/* Fragmentation: scattered tools -> one OS */
.frag-wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 36px; align-items: center; }
.frag-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.frag-tool {
  padding: 9px 14px; border-radius: 10px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  position: relative; opacity: .75;
}
.frag-tool::after {
  content: ""; position: absolute; left: 8px; right: 8px; top: 50%;
  height: 1px; background: var(--accent-red); transform: rotate(-7deg); opacity: .5;
}
.frag-arrow { font-size: 30px; color: var(--brand-2); text-align: center; }
.frag-os {
  border: 1px solid var(--brand); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(124,92,255,0.12), var(--surface));
  padding: 30px; text-align: center; box-shadow: var(--shadow-glow);
}
.frag-os .logo-big { width: 56px; height: 56px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; color: #0a0a12; font-weight: 900; font-size: 28px; margin: 0 auto 14px; }
.frag-os b { font-size: 19px; display: block; margin-bottom: 6px; }
.frag-os span { font-size: 14px; color: var(--text-muted); }

/* Two engines split */
.engines { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.engine { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 30px; }
.engine .tag { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 8px; margin-bottom: 16px; }
.engine.recruit .tag { background: rgba(124,92,255,0.16); color: #b9a6ff; border: 1px solid rgba(124,92,255,0.3); }
.engine.bd .tag { background: rgba(77,208,255,0.14); color: var(--brand-2); border: 1px solid rgba(77,208,255,0.3); }
.engine h3 { font-size: 22px; margin-bottom: 14px; }
.engine ul { list-style: none; display: grid; gap: 10px; }
.engine li { font-size: 15px; color: var(--text-muted); display: flex; gap: 10px; }
.engine li b { color: var(--text); font-weight: 600; }
.engine li::before { content: "→"; color: var(--brand-2); }
.shared-infra {
  margin-top: 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius);
  padding: 22px; text-align: center; background: rgba(255,255,255,0.02);
}
.shared-infra b { display: block; margin-bottom: 12px; font-size: 14px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; }
.shared-infra .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.shared-infra .row span { padding: 7px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }

/* Signal before/after */
.signal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.signal-card { border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); }
.signal-card.bad { background: rgba(255,107,107,0.04); border-color: rgba(255,107,107,0.25); }
.signal-card.good { background: rgba(56,224,166,0.05); border-color: rgba(56,224,166,0.3); }
.signal-card .lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.signal-card.bad .lbl { color: var(--accent-red); }
.signal-card.good .lbl { color: var(--accent-green); }
.signal-card .msg { font-size: 16px; line-height: 1.6; color: var(--text); font-style: italic; }
.signal-card .meta { margin-top: 16px; font-size: 13px; color: var(--text-dim); }
.signal-flow { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.signal-flow span { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.signal-flow .arr { background: transparent; border: none; color: var(--brand-2); font-size: 18px; padding: 8px 0; }

/* The full signal catalog (mirrors integration/lib/signals/registry.ts) */
.cat-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: center; margin: 0 auto 30px; max-width: 860px; font-size: 13px; color: var(--text-dim); }
.cat-legend .legend-sep { color: var(--border-strong); margin: 0 4px; }
.cat-legend .legend-meter { display: inline-block; width: 40px; height: 5px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; vertical-align: middle; }
.cat-legend .legend-meter .bar { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.catalog { display: flex; flex-direction: column; gap: 24px; }
.cat { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 26px; }
.cat-head { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; flex-wrap: wrap; }
.cat-head .cat-ic { font-size: 22px; line-height: 1; }
.cat-head h3 { font-size: 19px; letter-spacing: -0.01em; }
.cat-motion { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.cat-motion.bd { background: rgba(77,208,255,0.14); color: var(--brand-2); }
.cat-motion.rec { background: rgba(124,92,255,0.16); color: #b9a6ff; }
.cat-count { margin-left: auto; font-size: 12px; color: var(--text-dim); font-family: var(--mono); }
.sig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.sigx { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-soft); padding: 16px; transition: border-color .15s, transform .15s; }
.sigx:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.sigx-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sigx-top b { font-size: 14.5px; }
.fresh { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.sigx-top .fresh { margin-left: auto; }
.fresh.realtime { background: rgba(56,224,166,0.14); color: var(--accent-green); }
.fresh.daily { background: rgba(77,208,255,0.12); color: var(--brand-2); }
.fresh.ongoing { background: rgba(255,255,255,0.06); color: var(--text-dim); }
.sigx p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; }
.sigx-meter { height: 4px; border-radius: 99px; background: rgba(255,255,255,0.07); overflow: hidden; }
.sigx-meter .bar { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
@media (max-width: 640px) { .sig-grid { grid-template-columns: 1fr; } .cat { padding: 20px; } }

/* SMS phone mock */
.sms-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: center; }
.sms-copy h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.03em; margin-bottom: 16px; }
.sms-copy p { color: var(--text-muted); font-size: 17px; margin-bottom: 18px; }
.sms-copy ul { list-style: none; display: grid; gap: 12px; }
.sms-copy li { display: flex; gap: 12px; font-size: 15px; color: var(--text-muted); }
.sms-copy li b { color: var(--text); }
.sms-copy li::before { content: "✦"; color: var(--brand-3); }
.phone {
  width: 320px; margin: 0 auto; border-radius: 38px; border: 10px solid #1c1c28;
  background: #07070d; box-shadow: var(--shadow); padding: 18px 14px 24px; position: relative;
}
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #1c1c28; border-radius: 0 0 14px 14px; }
.phone .sms-head { text-align: center; padding: 14px 0 12px; font-size: 13px; color: var(--text-dim); border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.phone .sms-head b { display: block; color: var(--text); font-size: 15px; }
.bubble { max-width: 80%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; margin-bottom: 10px; }
.bubble.out { background: var(--grad); color: #0a0a12; margin-left: auto; border-bottom-right-radius: 5px; font-weight: 500; }
.bubble.in { background: var(--surface-2); color: var(--text); border-bottom-left-radius: 5px; }
.bubble.note { background: transparent; border: 1px dashed var(--border-strong); color: var(--text-dim); font-size: 12px; text-align: center; max-width: 100%; font-style: italic; }

/* Voice call screen (inside .phone) */
.phone .call-head { text-align: center; padding: 14px 0 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.phone .call-head .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-2); }
.phone .call-head b { display: block; color: var(--text); font-size: 17px; margin: 6px 0 2px; }
.phone .call-head .num { color: var(--text-dim); font-size: 13px; font-family: var(--mono); }
.call-avatar { width: 76px; height: 76px; border-radius: 50%; margin: 2px auto 14px; background: var(--grad); color: #0a0a12; font-weight: 800; font-size: 26px; display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(124, 92, 255, .12); }
.call-status { text-align: center; margin-bottom: 14px; }
.call-status .timer { font-family: var(--mono); font-size: 15px; color: var(--text); }
.call-status .live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent-green); margin-top: 5px; }
.call-status .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-green); box-shadow: 0 0 10px var(--accent-green); }
.amd-badge { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); font-size: 11px; font-weight: 700; letter-spacing: .04em; margin-bottom: 14px; }
.amd-badge.human { color: var(--accent-green); border-color: rgba(56, 224, 166, .4); background: rgba(56, 224, 166, .08); }
.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 30px; margin-bottom: 14px; }
.wave i { width: 3px; height: 8px; border-radius: 3px; background: var(--grad); animation: wave 1.1s ease-in-out infinite; }
@keyframes wave { 0%, 100% { height: 7px; } 50% { height: 26px; } }
.callpop { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 11px 12px; font-size: 12px; line-height: 1.5; color: var(--text-muted); margin-bottom: 14px; }
.callpop b { color: var(--text); }
.call-actions { display: flex; gap: 8px; margin-bottom: 16px; }
.call-actions button { flex: 1; border: none; cursor: default; border-radius: 12px; padding: 11px 0; font-size: 11px; color: var(--text-muted); background: var(--surface-2); display: grid; gap: 4px; place-items: center; font-family: inherit; }
.call-actions button .ic { font-size: 17px; }
.call-actions .transfer { background: var(--grad); color: #0a0a12; font-weight: 700; }
.call-actions .end { background: #ff5f57; color: #fff; }
.call-queue { border-top: 1px solid var(--border); padding-top: 12px; display: grid; gap: 9px; }
.call-queue .ql { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.call-queue .qrow { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; }
.call-queue .qrow .qi { width: 24px; height: 24px; border-radius: 7px; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.call-queue .qrow b { color: var(--text); }
.call-queue .qrow p { margin: 1px 0 0; color: var(--text-dim); font-size: 11px; }

/* Stat band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat .big { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; }
.stat .lbl { font-size: 14px; color: var(--text-muted); margin-top: 6px; }

/* Compare warehouse/factory */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-card { padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.compare-card.dim { opacity: .8; }
.compare-card .k { font-family: var(--mono); font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }
.compare-card h3 { font-size: 24px; margin-bottom: 14px; }
.compare-card.bright { border-color: var(--brand); box-shadow: var(--shadow-glow); background: linear-gradient(180deg, rgba(124,92,255,0.08), var(--surface)); }
.compare-card ul { list-style: none; display: grid; gap: 8px; }
.compare-card li { font-size: 15px; color: var(--text-muted); }

@media (max-width: 900px) {
  .frag-wrap, .engines, .signal-cols, .sms-wrap, .compare { grid-template-columns: 1fr; }
  .frag-arrow { transform: rotate(90deg); }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   SUBPAGE LAYOUTS (feature pages)
   ============================================================ */

/* Nav dropdown */
.has-drop { position: relative; }
.has-drop > a::after { content: " ▾"; font-size: 11px; color: var(--text-dim); }
.drop {
  position: absolute; top: 130%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
  padding: 10px; width: 300px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: all .18s; z-index: 60;
}
.has-drop:hover .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop a { display: flex; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--text-muted); }
.drop a:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.drop a .di { font-size: 18px; flex: none; }
.drop a b { display: block; color: var(--text); font-size: 14px; }
.drop a span { font-size: 12px; color: var(--text-dim); }

/* Mega menu (structured nav) */
.drop.mega {
  width: 680px; left: 0;
  transform: translateX(0) translateY(8px);
  display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 2px 12px;
  padding: 18px;
}
.has-drop:hover .drop.mega { transform: translateX(0) translateY(0); }
.drop .mcol { min-width: 0; }
.drop .mcol + .mcol { border-left: 1px solid var(--border); padding-left: 12px; }
.drop .mcol h5 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-dim); font-weight: 700; margin: 4px 12px 8px;
}
.drop.mega a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
}
.drop.mega a:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.drop.mega a .di { font-size: 16px; width: 20px; text-align: center; flex: none; }
@media (max-width: 900px) { .drop.mega { display: none; } }

/* Two-OS mega menus (Recruiter OS / BD OS) */
.drop.os-mega {
  width: 720px; left: 0;
  transform: translateX(0) translateY(8px);
  display: grid; grid-template-columns: 232px 1fr; gap: 16px; padding: 16px;
}
.has-drop:hover .drop.os-mega { transform: translateX(0) translateY(0); }
.os-feature {
  display: flex !important; flex-direction: column; gap: 7px;
  padding: 20px !important; border-radius: 14px;
  background: linear-gradient(160deg, rgba(124,92,255,0.20), rgba(124,92,255,0.03));
  border: 1px solid rgba(124,92,255,0.35);
}
.drop.os-mega.bd .os-feature {
  background: linear-gradient(160deg, rgba(77,208,255,0.20), rgba(77,208,255,0.03));
  border-color: rgba(77,208,255,0.35);
}
.os-feature:hover { background: linear-gradient(160deg, rgba(124,92,255,0.28), rgba(124,92,255,0.06)) !important; }
.drop.os-mega.bd .os-feature:hover { background: linear-gradient(160deg, rgba(77,208,255,0.28), rgba(77,208,255,0.06)) !important; }
.os-feature .os-badge { font-weight: 800; font-size: 14px; color: var(--text); letter-spacing: -0.01em; }
.os-feature b { font-size: 19px; color: var(--text); letter-spacing: -0.02em; }
.os-feature .os-tag { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.os-feature .os-go { margin-top: 6px; color: var(--brand-2); font-weight: 700; font-size: 13px; }
.drop.os-mega.bd .os-feature .os-go { color: var(--brand-2); }
.os-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.os-cols .mcol + .mcol { border-left: 1px solid var(--border); padding-left: 14px; }
.os-cols h5 { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); font-weight: 700; margin: 4px 12px 8px; }
.drop.os-mega a:not(.os-feature) {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500; color: var(--text-muted);
}
.drop.os-mega a:not(.os-feature):hover { background: rgba(255,255,255,0.05); color: var(--text); }
@media (max-width: 980px) { .drop.os-mega { display: none; } }

/* Page hero */
.page-hero { padding: 80px 0 40px; text-align: center; }
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.035em; line-height: 1.06; max-width: 820px; margin: 0 auto 20px; }
.page-hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-muted); max-width: 620px; margin: 0 auto 30px; }
.page-hero .hero-actions { margin-bottom: 0; }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.split.reverse .split-text { order: 2; }
.split-text .kicker { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--brand-2); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .08em; }
.split-text h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px; }
.split-text p { color: var(--text-muted); font-size: 17px; margin-bottom: 20px; }
.split-text ul { list-style: none; display: grid; gap: 12px; }
.split-text li { display: flex; gap: 12px; font-size: 15px; color: var(--text-muted); }
.split-text li b { color: var(--text); }
.split-text li::before { content: "✓"; color: var(--accent-green); font-weight: 800; flex: none; }

/* Generic mock panel */
.mock {
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: var(--bg-soft); box-shadow: var(--shadow); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.mock-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-bar .r { background: #ff5f57; } .mock-bar .y { background: #febc2e; } .mock-bar .g { background: #28c840; }
.mock-bar .lbl { margin-left: 10px; font-size: 12px; color: var(--text-dim); font-family: var(--mono); }
.mock-body { padding: 20px; }

/* Pillar grid (platform hub) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  padding: 26px; transition: all .2s; display: block;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--brand); background: var(--surface-2); }
.pillar .pic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: rgba(124,92,255,0.14); border: 1px solid rgba(124,92,255,0.3); margin-bottom: 16px; }
.pillar h3 { font-size: 19px; margin-bottom: 8px; }
.pillar p { color: var(--text-muted); font-size: 14px; margin-bottom: 14px; }
.pillar .more { color: var(--brand-2); font-size: 14px; font-weight: 600; }

/* Step flow vertical */
.flow { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.flow-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.flow-item .fn { width: 38px; height: 38px; border-radius: 10px; background: var(--grad); color: #0a0a12; font-weight: 800; display: grid; place-items: center; flex: none; }
.flow-item h3 { font-size: 18px; margin-bottom: 6px; }
.flow-item p { color: var(--text-muted); font-size: 15px; }

/* Logo cloud / providers */
.provider-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.provider { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 20px; text-align: center; transition: all .15s; }
.provider:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.provider .pi { font-size: 26px; margin-bottom: 10px; }
.provider b { font-size: 15px; display: block; }
.provider span { font-size: 12px; color: var(--text-dim); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 4px 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-2); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-muted); font-size: 15px; padding: 0 0 18px; }

/* ---------- Wordmark logo (no badge) ---------- */
.brand { gap: 0; font-weight: 800; letter-spacing: -0.035em; font-size: 22px; }
.brand .logo { display: none; }                 /* drop the R badge */
.brand > span:last-child {
  background: linear-gradient(110deg, #ffffff 8%, #b9a6ff 34%, #8be7ff 60%, #ffb3e3 86%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 18px rgba(124, 92, 255, 0.45));
  animation: shimmer 7s linear infinite;
}
.brand .os {                                     /* "OS" rides the same gradient, heavier */
  color: inherit;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.nav .brand { font-size: 23px; }
.brand:hover > span:last-child { filter: drop-shadow(0 2px 24px rgba(124, 92, 255, 0.7)); }
@media (prefers-reduced-motion: reduce) { .brand > span:last-child { animation: none; } }

/* Rapport ladder + example messages */
.ladder { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.rung { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 22px 24px; position: relative; transition: border-color .2s, transform .2s; }
.rung:hover { border-color: var(--border-strong); transform: translateX(4px); }
.rung .rhead { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rung .rnum { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #0a0a12; font-weight: 800; display: grid; place-items: center; flex: none; font-size: 15px; }
.rung .rtag { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 7px; background: rgba(124,92,255,0.14); color: #b9a6ff; border: 1px solid rgba(124,92,255,0.3); }
.rung .rtag.ask { background: rgba(56,224,166,0.14); color: var(--accent-green); border-color: rgba(56,224,166,0.3); }
.rung h3 { font-size: 18px; }
.rung .rwhy { color: var(--text-muted); font-size: 14px; margin: 0 0 12px; }
.rung .example { padding: 13px 16px; border-left: 3px solid var(--brand); background: rgba(124,92,255,0.06); border-radius: 0 9px 9px 0; font-style: italic; color: var(--text); font-size: 15px; line-height: 1.6; }
.rung .example .who { display: block; font-style: normal; font-size: 12px; color: var(--text-dim); margin-top: 8px; }
.rung.pitch { border-color: rgba(56,224,166,0.35); background: linear-gradient(180deg, rgba(56,224,166,0.05), var(--surface)); }
.rung.pitch .example { border-left-color: var(--accent-green); background: rgba(56,224,166,0.07); }

/* Features matrix page */
.feat-module { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 28px; margin-bottom: 20px; }
.feat-module .fm-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.feat-module .fm-ic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-size: 24px; background: rgba(124,92,255,0.14); border: 1px solid rgba(124,92,255,0.3); flex: none; }
.feat-module .fm-head h3 { font-size: 21px; letter-spacing: -0.01em; }
.feat-module .fm-head .sub { color: var(--text-dim); font-size: 14px; }
.feat-module .fm-head .more { margin-left: auto; color: var(--brand-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.feat-cols { columns: 2; column-gap: 32px; }
.feat-cols .fitem { break-inside: avoid; display: flex; gap: 11px; padding: 9px 0; font-size: 15px; color: var(--text-muted); line-height: 1.5; }
.feat-cols .fitem::before { content: "✓"; color: var(--accent-green); font-weight: 800; flex: none; }
.feat-cols .fitem b { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .feat-cols { columns: 1; } }

/* Delivery / build-or-integrate callout */
.delivery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.delivery .dcard { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 26px; }
.delivery .dcard h3 { font-size: 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.delivery .dcard p { color: var(--text-muted); font-size: 15px; }
@media (max-width: 760px) { .delivery { grid-template-columns: 1fr; } }

/* Story / prose */
.story { max-width: 720px; margin: 0 auto; }
.story p { font-size: 18px; line-height: 1.75; color: var(--text-muted); margin-bottom: 22px; }
.story p.lead-in { font-size: 22px; color: var(--text); font-weight: 500; }
.story h2 { font-size: 28px; letter-spacing: -0.02em; margin: 44px 0 18px; }
.story .pull { font-size: 26px; line-height: 1.4; font-weight: 600; color: var(--text); text-align: center; margin: 40px 0; padding: 28px; border-left: none; }
.story .pull.bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Section tints */
.tint { background: rgba(255,255,255,0.015); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; padding: 36px 0; }
  .split.reverse .split-text { order: 0; }
  .pillars, .provider-grid { grid-template-columns: 1fr; }
  .drop { display: none; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .feature-grid, .steps, .quotes, .pricing { grid-template-columns: 1fr; }
  .feature-card.span-2 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mini-row { grid-template-columns: 1.6fr 1.4fr 1fr; }
  .mini-cell:nth-child(4), .mini-cell:nth-child(5) { display: none; }
}

/* ============================================================
   COMMERCIAL-GRADE POLISH LAYER (SaaS standard)
   Appended: applies uniformly to every page via styles.css
   ============================================================ */

/* --- Accessibility: visible focus rings for keyboard users --- */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
  border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }

/* --- Text selection --- */
::selection { background: rgba(124, 92, 255, 0.35); color: #fff; }

/* --- Refined custom scrollbar --- */
* { scrollbar-width: thin; scrollbar-color: rgba(124,92,255,0.45) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(124,92,255,0.55), rgba(77,208,255,0.45));
  border: 3px solid var(--bg);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(124,92,255,0.8), rgba(77,208,255,0.7)); }

/* --- Scroll progress bar (top of viewport) --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad); z-index: 200; pointer-events: none;
  box-shadow: 0 0 12px rgba(124,92,255,0.7);
  transition: width .08s linear;
}

/* --- Sticky nav gains depth once you scroll --- */
.nav { transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.nav.scrolled {
  background: rgba(10, 10, 18, 0.86);
  box-shadow: 0 10px 34px -22px rgba(0,0,0,0.9);
  border-bottom-color: var(--border-strong);
}

/* --- Primary button: sheen sweep on hover --- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-18deg); transition: left .55s ease;
}
.btn-primary:hover::after { left: 140%; }

/* --- Card lift consistency for feature/quote/plan/step/pillar --- */
.feature-card, .quote, .plan, .step, .pillar, .feat-module, .provider, .rstat, .stat {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.quote:hover, .step:hover, .rstat:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 40px -28px rgba(0,0,0,0.85);
}

/* --- Mobile nav: hamburger + slide-in drawer --- */
/* The drawer mirrors the header CTAs; hide that clone on desktop so the
   Log in / Open app buttons never appear twice. */
.nav-mobile-cta { display: none; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 11px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-strong);
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-scrim {
  position: fixed; inset: 0; background: rgba(5,5,10,0.6); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 90;
}
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100dvh; width: min(86vw, 360px);
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg-soft); border-left: 1px solid var(--border-strong);
    padding: 84px 18px 28px; z-index: 95; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: -30px 0 60px -30px rgba(0,0,0,0.9);
  }
  body.nav-open .nav-links { transform: translateX(0); }
  .nav-links > a, .nav-links .has-drop > a {
    display: block; padding: 14px 14px; border-radius: 11px; font-size: 16px;
    border: 1px solid transparent;
  }
  .nav-links > a:hover, .nav-links .has-drop > a:hover { background: rgba(255,255,255,0.05); }
  /* show OS sub-links inline (flatten the mega menu on mobile) */
  .has-drop .drop.os-mega {
    position: static; display: block; opacity: 1; visibility: visible; transform: none;
    width: auto; background: transparent; border: none; box-shadow: none; padding: 4px 0 10px 10px;
  }
  .drop.os-mega .os-feature { display: none !important; }
  .drop.os-mega .os-cols { display: block; }
  .drop.os-mega .os-cols .mcol + .mcol { border-left: none; padding-left: 0; }
  .drop.os-mega a:not(.os-feature) { font-size: 14px; padding: 9px 10px; }
  .nav-mobile-cta { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
  .nav-mobile-cta .btn { width: 100%; justify-content: center; }
}

/* --- Honor reduced-motion globally --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* --- Image rendering + lazy media polish --- */
img { height: auto; }

/* --- Print: clean, ink-friendly --- */
@media print {
  .aurora, .grid-bg, .noise, .scroll-progress, .nav, footer { display: none !important; }
  body { background: #fff; color: #000; }
}
