@font-face {
  font-family: 'Montserrat';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/Montserrat-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/Montserrat-ExtraBold.woff2') format('woff2');
}

:root {
  --primary: #4D44E0;
  --primary-rgb: 77, 68, 224;
  --on-primary: #FFFFFF;
  --bg: #F7F7F5;
  --card: #FFFFFF;
  --success: #0D9668;
  --danger: #DC3545;
  --ink: #17151F;
  --ink-muted: #625E70;
  --ink-faint: #918C9C;
  --border: #E6E2E9;
  --rule: #201D2B;
  --primary-tint: rgba(77, 68, 224, 0.08);

  /* logo palette, top to bottom — used structurally (numerals, avatars, the animated word), never randomly */
  --logo-1: #6365EF;
  --logo-2: #8A5BF4;
  --logo-3: #E64896;
  --logo-4: #4D44E0;

  /* fixed print-poster panels — same tone in both themes, the graphic backbone of the page */
  --panel-indigo: #4339CC;
  --panel-indigo-deep: #1F1D4A;
  --panel-ink: #17151F;
  --on-panel: #FFFFFF;
  --on-panel-muted: rgba(255, 255, 255, 0.72);
  --panel-rule: rgba(255, 255, 255, 0.25);
  --pop: #8A5BF4;
  --pop-ink: #17151F;

  --radius-block: 4px;
  --radius-btn: 6px;

  --font-display: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;

  --container: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #8A5BF4;
    --primary-rgb: 138, 91, 244;
    --on-primary: #18181B;
    --bg: #18181B;
    --card: #232227;
    --success: #34D399;
    --danger: #F87171;
    --ink: #F1F0F5;
    --ink-muted: #ACA7B8;
    --ink-faint: #716C7D;
    --border: #38343F;
    --rule: #F1F0F5;
    --primary-tint: rgba(138, 91, 244, 0.16);
    --panel-indigo: #2A2470;
  }
}

:root[data-theme="dark"] {
  --primary: #8A5BF4;
  --primary-rgb: 138, 91, 244;
  --on-primary: #18181B;
  --bg: #18181B;
  --card: #232227;
  --success: #34D399;
  --danger: #F87171;
  --ink: #F1F0F5;
  --ink-muted: #ACA7B8;
  --ink-faint: #716C7D;
  --border: #38343F;
  --rule: #F1F0F5;
  --primary-tint: rgba(138, 91, 244, 0.16);
  --panel-indigo: #2A2470;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

section { position: relative; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-block);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-faint); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-btn);
  padding: 14px 26px;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 0.96rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -10px rgba(var(--primary-rgb), 0.55); }
.btn-onpanel { background: var(--on-panel); color: var(--panel-ink); }
.btn-onpanel:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.35); }

/* ---------- Hero — fixed indigo poster panel ---------- */
.hero {
  background: var(--panel-indigo);
  color: var(--on-panel);
  padding: 64px 0 0;
  overflow: clip;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-inner { position: relative; z-index: 1; padding: 64px 0 0; max-width: 760px; }
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C7C2FF;
  border-top: 2px solid #C7C2FF;
  padding-top: 10px;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.6rem, 4.6vw + 1rem, 4.6rem);
  line-height: 0.98;
  margin: 24px 0 0;
}
.word-color { display: inline-block; color: #E64896; }
.word-color .letter {
  display: inline-block;
  animation: letter-float 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.1s);
}
@keyframes letter-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.hero-sub {
  margin: 26px 0 0;
  color: var(--on-panel-muted);
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.2rem);
  line-height: 1.65;
  max-width: 48ch;
}
.hero-cta { margin-top: 36px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-cta-note { font-size: 0.85rem; color: var(--on-panel-muted); }
.hero-ticker {
  position: relative;
  z-index: 1;
  margin-top: 76px;
  border-top: 1px solid var(--panel-rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.hero-ticker div { padding: 20px 0 30px; border-left: 1px solid var(--panel-rule); padding-left: 22px; }
.hero-ticker div:first-child { border-left: none; padding-left: 0; }
.hero-ticker b {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.45rem;
  display: block;
  font-weight: 700;
}
.hero-ticker span { font-size: 0.8rem; color: var(--on-panel-muted); }

/* ---------- Section shells ---------- */
.section-head { max-width: 620px; margin: 0 0 50px; }
.section-head.align-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.align-center p { margin-left: auto; margin-right: auto; }
.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.7rem, 1.6vw + 1rem, 2.4rem); font-weight: 800; }
.section-head p { color: var(--ink-muted); font-size: 1.05rem; margin: 14px 0 0; max-width: 60ch; }

.reveal { transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.pending { opacity: 0; transform: translateY(14px); }


/* ---------- Features — the app's flow, four cards ---------- */
.features { padding: 100px 0 108px; }
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow-card {
  background: var(--card);
  border: 2px solid var(--rule);
  border-radius: var(--radius-block);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.flow-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--stroke, var(--primary));
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.85;
}
.flow-card h3 { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; }
.flow-card p { margin: 10px 0 0; color: var(--ink-muted); font-size: 0.88rem; line-height: 1.58; }
.flow-note {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.flow-note strong { color: var(--primary); font-weight: 700; }

/* ---------- Mission — fixed ink poster panel ---------- */
.mission {
  padding: 100px 0;
  color: var(--on-panel);
  background-color: #221E36;
  background-image: url("../assets/topography.svg");
  background-size: 600px 600px;
}
.mission .section-kicker { color: #A79CFF; }
.mission-inner { max-width: 100%; margin-left: auto; text-align: right; }
.mission-inner p { margin-left: auto; }
.mission-security { justify-content: flex-end; }
.mission h2 { margin-top: 14px; font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem); font-weight: 800; color: var(--on-panel); }
.mission p { margin-top: 20px; color: var(--on-panel-muted); font-size: 1.08rem; line-height: 1.75; max-width: 65ch; }
.mission-security {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--panel-rule);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.mission-security-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-block);
  background: rgba(255, 255, 255, 0.1);
  color: var(--on-panel);
  display: grid;
  place-items: center;
  flex: none;
}
.mission-security-icon svg { width: 20px; height: 20px; }
.mission-security p { margin: 0; color: var(--on-panel-muted); font-size: 0.92rem; line-height: 1.6; max-width: 56ch; text-align: right; }

/* ---------- Pricing — bold-bordered blocks, one highlighted ---------- */
.pricing { padding: 108px 0; background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 780px; }
.price-card {
  background: var(--bg);
  border: 2px solid var(--rule);
  border-radius: var(--radius-block);
  padding: 30px;
  position: relative;
}
.price-card.featured { border-color: var(--primary); }
.price-badge {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink-muted); }
.price-amount {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.price-amount b { font-size: 2.4rem; font-weight: 700; color: var(--ink); }
.price-amount span { font-size: 0.9rem; color: var(--ink-faint); }
.price-alt { margin: 8px 0 0; font-size: 0.84rem; color: var(--ink-faint); }
.price-alt strong { color: var(--primary); font-weight: 700; }
.price-list { list-style: none; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.price-list li { font-size: 0.92rem; color: var(--ink-muted); padding-left: 20px; position: relative; }
.price-list li::before { content: "+"; position: absolute; left: 0; color: var(--primary); font-weight: 700; font-family: var(--font-mono); }

/* ---------- CTA band — deep indigo poster panel ---------- */
.cta-band {
  padding: 100px 0;
  text-align: center;
  background: var(--panel-indigo-deep);
  color: var(--on-panel);
}
.cta-band h2 { font-size: clamp(1.7rem, 1.8vw + 1rem, 2.4rem); font-weight: 800; max-width: 22ch; margin: 0 auto; color: var(--on-panel); }
.cta-band p { color: var(--on-panel-muted); margin: 16px auto 0; max-width: 50ch; font-size: 1.02rem; }
.cta-band .hero-cta { justify-content: center; margin-top: 32px; }

/* ---------- Footer ---------- */
footer { border-top: 2px solid var(--rule); padding: 52px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: var(--ink-muted); font-size: 0.92rem; max-width: 30ch; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; margin: 0 0 14px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--ink-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 0.84rem;
  font-family: var(--font-mono);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .flow-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 420px; }
  .section-head.align-center { text-align: left; margin-left: 0; }
  .section-head.align-center p { margin-left: 0; }
  .mission-inner { margin-left: 0; text-align: left; }
  .mission-inner p { margin-left: 0; }
  .mission-security { justify-content: flex-start; }
  .mission-security p { text-align: left; }
  .mission-security { flex-direction: column; gap: 12px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hero-ticker { grid-template-columns: 1fr; }
  .hero-ticker div { border-left: none; padding-left: 0; border-top: 1px solid var(--panel-rule); padding-top: 16px; }
  .hero-ticker div:first-child { border-top: none; padding-top: 0; }
}
