/* sodalite marketing landing.
   one dark navy palette throughout. corporate-but-quiet structure
   borrowed from the discord-style homepage playbook: big sticky
   nav, hero with side-by-side CTAs + mockup, generous section
   spacing, no whiplash palette switching between sections.
   per-section variation is limited to a soft accent gradient. */

* { box-sizing: border-box; margin: 0; padding: 0; }

/* visible focus indicator for keyboard users. mouse clicks don't
   paint the ring thanks to :focus-visible. */
:where(a, button, [role="button"], input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--accent, #5fb6ff);
  outline-offset: 3px;
  border-radius: 4px;
}

:root {
  --bg: #0c0d12;
  --bg-elev: #14151c;
  --fg: #f2f2f4;
  --muted: #8a8a92;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #c19dff;
  --accent-soft: rgba(193, 157, 255, 0.16);
  --ease-liquid: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t: 420ms;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}
html, body {
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body { background: transparent; }

/* one soft gradient blob behind everything. fixed so it follows the
   viewport instead of scrolling away. low opacity = it reads as
   ambient lighting, not animation. */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 700px at 18% 8%, rgba(193, 157, 255, 0.12), transparent 60%),
    radial-gradient(900px 700px at 82% 92%, rgba(95, 182, 255, 0.10), transparent 65%);
}

/* sticky nav: glass-blur, brand left, centered links, primary
   pill CTA right. mobile burger drawer (existing pattern). */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.025em;
  color: var(--fg);
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: color 160ms var(--ease-liquid);
}
.nav-link:hover { color: var(--fg); }

/* primary nav CTA: white pill on dark navy. mirrors the hero
   primary so the eye recognizes the same shape twice. */
.cta-mini {
  color: var(--bg);
  background: var(--fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--fg);
  transition: transform 200ms var(--ease-spring), background 200ms var(--ease-liquid);
}
.cta-mini:hover { transform: scale(1.04); }

.nav-burger {
  display: none;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--fg);
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 18px;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms var(--ease-liquid), opacity 220ms var(--ease-liquid);
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-link:last-child { border-bottom: 0; }
  .nav-burger { display: inline-flex; }
  .cta-mini { display: none; }
}

/* generic section. ~120px vertical on desktop, ~80px on mobile.
   no min-height: 100vh — discord doesn't do that either, it lets
   content size itself. */
.section {
  padding: 120px 32px;
  position: relative;
  display: flex;
  justify-content: center;
}
@media (max-width: 820px) {
  .section { padding: 80px 24px; }
}

/* hero: two-column on desktop, copy left + mockup right. center
   stacked on mobile. typography is the load-bearing element. */
.hero-section {
  padding-top: 180px;
  padding-bottom: 140px;
}
.hero-inner {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}
/* Subpages (parents, tech, whoweare, etc.) have their hero content as
   bare children of .hero-inner — no .hero-mockup-wrap column. Without
   this rule the headline would land in column 2 and the kicker/lede
   would scatter into column 1 across multiple rows. :has() collapses
   the layout to a single content column whenever the mockup is absent. */
.hero-inner:not(:has(.hero-mockup-wrap)) {
  display: block;
  max-width: 820px;
}
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
    justify-items: center;
  }
}
.hero-copy { max-width: 640px; }
.headline {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: var(--fg);
}
.hl-accent {
  display: inline-block;
  background: linear-gradient(95deg, #c19dff 0%, #5fb6ff 60%, #7cc98a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin-top: 22px;
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--muted);
  line-height: 1.55;
  max-width: 560px;
}
@media (max-width: 980px) {
  .lede { margin-left: auto; margin-right: auto; }
}

/* CTA row: primary + secondary, side by side. */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
@media (max-width: 980px) {
  .cta-row { justify-content: center; }
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--fg);
  color: var(--bg);
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--fg);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  transition: transform 220ms var(--ease-spring), background 200ms var(--ease-liquid), color 200ms var(--ease-liquid);
}
.btn-cta:hover { transform: scale(1.04); }
.btn-cta.huge { padding: 18px 34px; font-size: 17px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--fg);
  background: transparent;
  padding: 13.5px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  transition: background 200ms var(--ease-liquid), color 200ms var(--ease-liquid), border-color 200ms var(--ease-liquid);
}
.btn-ghost:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn-ghost.huge { padding: 16.5px 32px; font-size: 17px; }

.hero-meta {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}
.tabular { font-variant-numeric: tabular-nums; }

.hero-mockup-wrap {
  display: flex;
  justify-content: center;
}
.hero-mockup {
  width: 100%;
  max-width: 460px;
}
@media (max-width: 980px) {
  .hero-mockup { max-width: 420px; }
}

/* feature grid: copy + mockup, alternating sides. one palette. */
.feature-section {
  align-items: center;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1180px;
  width: 100%;
  align-items: center;
}
.feature-grid.reverse .feature-copy { order: 2; }
@media (max-width: 920px) {
  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid.reverse .feature-copy { order: 0; }
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.feature-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--fg);
}
.feature-body {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 12px;
}
.feature-body:last-child { margin-bottom: 0; }

/* mockup card. dark surface lifted off the page background. */
.mockup {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 80px rgba(0, 0, 0, 0.45);
}
.mock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.mock-eyebrow {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 600;
}
.mock-handle {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.mock-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--fg);
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
}
.mock-body {
  padding: 18px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-section-head {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 2px;
  font-weight: 600;
}
.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  color: var(--fg);
}
.mock-row .muted { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.stat-num {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.stat-lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.mock-chat { min-height: 240px; gap: 6px; }
.mock-msg { display: flex; }
.mock-msg.me { justify-content: flex-end; }
.mock-msg.them { justify-content: flex-start; }
.mock-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  max-width: 75%;
  line-height: 1.45;
}
.mock-msg.me .mock-bubble {
  background: var(--fg);
  color: var(--bg);
  border-bottom-right-radius: 6px;
}
.mock-msg.them .mock-bubble {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
  border-bottom-left-radius: 6px;
}

/* testimonial section (third-party iframe) */
.testimonial-section { padding-top: 60px; padding-bottom: 60px; }
.testimonial-inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
.testimonial-inner .eyebrow {
  text-align: center;
  margin-bottom: 4px;
}
.testimonial-inner iframe {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

/* privacy + FAQ blocks */
.privacy-inner {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
}
.privacy-inner .feature-title { margin-bottom: 18px; }
.privacy-inner .feature-body { margin-bottom: 14px; max-width: 760px; }
.privacy-inner .feature-body.privacy-pull {
  margin-top: 24px;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 14px 14px 0;
  color: var(--fg);
  font-weight: 500;
}

.faq-inner {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
}
.faq-inner .feature-title { margin-bottom: 28px; }
.faq-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.faq-q {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 0 8px;
}
.faq-a {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.faq-a a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.faq-a a:hover { opacity: 0.85; }

/* simple-manifesto card used in feature 06 */
.first-mockup {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px 36px 32px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 80px rgba(0, 0, 0, 0.45);
}
.first-manifesto {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.fm-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--muted);
  margin: 0;
}
.fm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.fm-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.fm-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex: 0 0 24px;
}
.fm-word {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--fg);
}
.fm-footer {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* parental-controls row inside the safety section mockup */
.pc-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.pc-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fg);
  font-weight: 600;
}
.pc-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}
.pc-handle { flex: 0 0 auto; }
.pc-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  margin-left: auto;
}
.pc-toggles {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pc-chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pc-chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.pc-chip.on {
  background: var(--accent-soft);
  color: var(--fg);
}
.pc-chip.on::before { background: #3ec97c; }
.pc-chip.off {
  background: rgba(138, 138, 146, 0.18);
  color: var(--muted);
}
.pc-chip.off::before { background: rgba(138, 138, 146, 0.7); }

/* theme preview chips (the section where users can flip the
   page accent). swatches kept; selection toggles --accent only. */
.mock-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.theme-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  transition:
    transform 220ms var(--ease-spring),
    border-color 200ms var(--ease-liquid),
    background 200ms var(--ease-liquid);
}
.chip:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}
.chip:active { transform: translateY(0) scale(0.97); }
.chip.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.chip-swatch {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
}
.chip[data-theme="mono"]   .chip-swatch { background: linear-gradient(135deg, #fafafa 0%, #0a0a0a 100%); }
.chip[data-theme="nebula"] .chip-swatch { background: linear-gradient(135deg, #c19dff 0%, #0a0014 100%); }
.chip[data-theme="sunset"] .chip-swatch { background: linear-gradient(135deg, #ff8a61 0%, #fff3ea 100%); }
.chip[data-theme="forest"] .chip-swatch { background: linear-gradient(135deg, #7cc98a 0%, #0c1a12 100%); }
.chip[data-theme="glass"]  .chip-swatch { background: linear-gradient(135deg, #ff6aa9 0%, #5fb6ff 100%); }
.chip[data-theme="galaxy"] .chip-swatch { background: radial-gradient(circle at 30% 30%, #ff5478 0%, #4a2078 45%, #05020e 90%); }

/* final CTA section */
.cta-section {
  padding: 160px 32px;
}
.cta-inner {
  max-width: 820px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cta-headline {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: var(--fg);
  margin-bottom: 6px;
}
.cta-sub {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 18px;
}
.cta-inner .cta-row { justify-content: center; }

/* footer */
.foot {
  padding: 80px 32px 48px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.foot-cols {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 760px) {
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-brand {
  font-weight: 900;
  font-size: 19px;
  color: var(--fg);
  letter-spacing: -0.025em;
  text-decoration: none;
}
.foot-tag { font-size: 13px; color: var(--muted); margin: 0; max-width: 240px; line-height: 1.5; }
.foot-col .foot-head {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg);
  margin: 0 0 4px;
}
.foot-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 160ms var(--ease-liquid);
}
.foot-col a:hover { color: var(--fg); }
.foot-bottom {
  margin: 56px auto 0;
  text-align: center;
  font-size: 12px;
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

/* fade-in on scroll. kept lightweight - no blur, no scale, just a
   short translate. honors prefers-reduced-motion. */
.feature-copy, .mockup, .first-mockup, .cta-inner, .hero-copy, .hero-mockup-wrap, .testimonial-inner, .privacy-inner, .faq-inner {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 600ms var(--ease-liquid),
    transform 600ms var(--ease-liquid);
}
.section.in-view .feature-copy,
.section.in-view .mockup,
.section.in-view .first-mockup,
.section.in-view .cta-inner,
.section.in-view .hero-copy,
.section.in-view .hero-mockup-wrap,
.section.in-view .testimonial-inner,
.section.in-view .privacy-inner,
.section.in-view .faq-inner {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.section.in-view .hero-mockup-wrap { transition-delay: 120ms; }
.section.in-view .feature-grid.reverse .mockup { transition-delay: 120ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-copy, .mockup, .first-mockup, .cta-inner, .hero-copy, .hero-mockup-wrap, .testimonial-inner, .privacy-inner, .faq-inner {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
