/* =====================
   Tokens
===================== */
:root {
  color-scheme: light dark;
  --brand-blue: #3b82f6;
  --brand-purple: #a855f7;
  --brand-orange: #fb923c;
  --brand-blue-soft: rgba(59, 130, 246, 0.45);
  --brand-purple-soft: rgba(168, 85, 247, 0.4);
  --brand-orange-soft: rgba(251, 146, 60, 0.3);
  --brand-gradient: linear-gradient(135deg, var(--brand-blue), var(--brand-purple) 55%, rgba(251, 146, 60, 0.85));
  --brand-aurora: radial-gradient(900px 600px at 15% 0%, var(--brand-blue-soft), transparent 60%),
    radial-gradient(900px 600px at 85% 10%, var(--brand-purple-soft), transparent 60%),
    radial-gradient(900px 600px at 55% 90%, var(--brand-orange-soft), transparent 65%);
  --spark: rgba(251, 146, 60, 0.22);
  --font-display: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg: #f5f2ee;
  --bg-alt: #fdfbf8;
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --text: #0f141d;
  --muted: #5e6676;
  --line: rgba(15, 23, 42, 0.08);
  --accent: var(--brand-blue);
  --accent-2: var(--brand-purple);
  --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 30px 70px rgba(15, 23, 42, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.3'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-blue-soft: rgba(59, 130, 246, 0.55);
    --brand-purple-soft: rgba(168, 85, 247, 0.5);
    --brand-orange-soft: rgba(251, 146, 60, 0.32);
    --brand-aurora: radial-gradient(900px 600px at 15% 0%, var(--brand-blue-soft), transparent 62%),
      radial-gradient(900px 600px at 85% 10%, var(--brand-purple-soft), transparent 62%),
      radial-gradient(900px 600px at 55% 90%, var(--brand-orange-soft), transparent 68%);
    --spark: rgba(251, 146, 60, 0.26);
    --bg: #0c0f15;
    --bg-alt: #0f131a;
    --surface: #111827;
    --surface-2: #131c2a;
    --text: #e6edf6;
    --muted: #a6b0c3;
    --line: rgba(231, 237, 246, 0.12);
    --shadow-soft: 0 26px 60px rgba(0, 0, 0, 0.35);
    --shadow-strong: 0 40px 90px rgba(0, 0, 0, 0.5);
  }
}

/* =====================
   Base
===================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  background: var(--brand-aurora), var(--bg);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" 1, "cv11" 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.18;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
}

h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.028em;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: rgba(168, 85, 247, 0.25);
}

.container {
  width: min(100% - 32px, var(--maxw));
  margin: 0 auto;
}

.section {
  padding: var(--space-7) 0;
}

.section-header {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  max-width: 720px;
}

.lead {
  font-size: 1.08rem;
}

.text-lead {
  font-size: 1.08rem;
}

.muted {
  color: var(--muted);
}

.eyebrow,
.text-eyebrow {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.text-small {
  font-size: 0.92rem;
}

.kicker {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

/* =====================
   Components
===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-alt) 85%, transparent);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--brand-purple);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 14px 40px rgba(59, 130, 246, 0.22), 0 10px 30px rgba(168, 85, 247, 0.16);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 50px rgba(59, 130, 246, 0.28), 0 14px 36px rgba(168, 85, 247, 0.2);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(140px 140px at 80% 20%, var(--spark), transparent 70%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35), 0 0 0 6px rgba(168, 85, 247, 0.25),
    0 14px 40px rgba(59, 130, 246, 0.22), 0 10px 30px rgba(168, 85, 247, 0.16);
}

.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: rgba(14, 165, 233, 0.4);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.frame {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.frame-compact {
  width: clamp(240px, 82vw, 440px);
  margin-inline: auto;
}

.frame img {
  border-radius: calc(var(--radius-xl) - 14px);
  width: 100%;
  height: auto;
  display: block;
}

.window-dots {
  position: absolute;
  top: 16px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 16px 0 0 #fbbf24, 32px 0 0 #34d399;
  z-index: 2;
}

/* =====================
   Hero
===================== */
.hero {
  padding: var(--space-8) 0 var(--space-7);
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  align-items: center;
}

.hero-text {
  max-width: 520px;
}

.subhead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: var(--space-3) 0 var(--space-4);
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: center;
  --parallax-x: 0px;
  --parallax-y: 0px;
  --parallax-x-2: 0px;
  --parallax-y-2: 0px;
}

.hero-visual .frame {
  box-shadow: var(--shadow-strong);
}

.frame-main {
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0);
  transition: transform 0.25s ease;
  z-index: 2;
  width: clamp(240px, 92vw, 520px)
}

.frame-secondary {
  position: absolute;
  width: 72%;
  right: -6%;
  top: -16%;
  opacity: 0.92;
  transform: translate3d(var(--parallax-x-2), var(--parallax-y-2), 0) rotate(-6deg);
  transition: transform 0.25s ease;
  z-index: 1;
}

/* =====================
   Sections
===================== */
.full-bleed {
  margin-top: var(--space-5);
}

.full-bleed .frame {
  width: min(1240px, 96vw);
  margin: 0 auto;
}

.story-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.story-text p {
  margin: var(--space-2) 0 var(--space-3);
}

.story-text ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: var(--space-1);
}

.story-media .frame {
  box-shadow: var(--shadow-strong);
}

.trust h2 {
  margin-bottom: var(--space-2);
}

.use-cases-grid {
  display: grid;
  gap: var(--space-3);
}

.use-case-card {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
}

.legal-content {
  max-width: 860px;
}

.legal-header {
  margin-bottom: var(--space-4);
}

.legal-subtitle {
  margin-top: var(--space-1);
}

.effective-date {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-section {
  padding-top: var(--space-3);
  margin-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  letter-spacing: -0.02em;
}

.legal-section h3 {
  font-size: 1.05rem;
  margin-top: var(--space-3);
}

.legal-section p,
.legal-section ul {
  margin-top: var(--space-2);
}

.legal-list {
  padding-left: 20px;
  color: var(--muted);
}

.trust-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.trust-card {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
}

.screens-stack {
  display: grid;
  gap: var(--space-4);
}

.screens .section-header h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.5rem);
}

.screen-item figcaption {
  margin-top: 16px;
  color: var(--text);
  text-align: left;
}

.screen-caption {
  display: grid;
  gap: 6px;
}

.screen-caption-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.screen-caption-subtitle {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.45;
}

.pricing-grid {
  display: grid;
  gap: var(--space-3);
}

.pricing-card {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: var(--space-2);
  position: relative;
}

.pricing-card.featured {
  background: linear-gradient(140deg, rgba(59, 130, 246, 0.12), rgba(168, 85, 247, 0.1));
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 26px 60px rgba(59, 130, 246, 0.18), 0 18px 40px rgba(168, 85, 247, 0.14);
}

.badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(168, 85, 247, 0.16));
  border: 1px solid rgba(168, 85, 247, 0.28);
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}

.badge::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.35);
}
.price-line {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  min-height: 2.7rem;
  white-space: nowrap;
}

.faq-list {
  display: grid;
  gap: var(--space-2);
}

details {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}

details:first-child {
  border-top: 1px solid var(--line);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.faq-chevron svg {
  width: 100%;
  height: 100%;
}

details[open] .faq-chevron {
  transform: rotate(180deg);
}

.footer {
  padding: var(--space-5) 0 var(--space-6);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--brand-purple);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}


/* =====================
   Motion
===================== */
.reveal {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 900px) {
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story.reverse .story-text {
    order: 2;
  }

  .story.reverse .story-media {
    order: 1;
  }

  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .use-cases-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .hero {
    padding-top: var(--space-7);
  }

  .frame-secondary {
    right: -2%;
    top: -10%;
    width: 82%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
