@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Hanken+Grotesk:wght@600;700&display=swap');

:root {
  --bg: #111417;
  --bg-elevated: #0B0E11;
  --card: #191C1F;
  --card-hover: #1D2023;
  --border: #404752;
  --text: #E1E2E7;
  --text-dim: #C0C7D4;
  --muted: #8A919E;
  --accent: #A3C9FF;
  --accent-dim: #0060AB;
  --accent-glow: rgba(163, 201, 255, 0.18);
  --green: #42E355;
  --green-dim: rgba(66, 227, 85, 0.14);
  --radius: 2px;
  --mono: "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a { color: var(--accent); text-decoration: none; position: relative; }

/* nav links get an animated underline on hover, buttons/logo excluded */
.links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px;
  background: var(--text); transition: right .2s cubic-bezier(.4,0,.2,1);
}
.links a:hover::after { right: 0; }

/* ---------- Reveal-on-scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-group .reveal:nth-child(1) { transition-delay: .04s; }
.reveal-group .reveal:nth-child(2) { transition-delay: .12s; }
.reveal-group .reveal:nth-child(3) { transition-delay: .2s; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-anim { animation: hero-in .6s cubic-bezier(.4,0,.2,1) both; }
.hero-anim:nth-of-type(1) { animation-delay: .02s; }
.hero-anim:nth-of-type(2) { animation-delay: .1s; }
.hero-anim:nth-of-type(3) { animation-delay: .18s; }
.hero-anim:nth-of-type(4) { animation-delay: .26s; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */

nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(155deg, var(--accent), #0078D4);
}
nav .links { display: flex; gap: 28px; font-size: 13px; font-weight: 600; color: var(--muted); }
nav .links a:hover { color: var(--text); }

/* ---------- Hero ---------- */

.hero { padding: 96px 24px 64px; text-align: center; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--green); background: var(--green-dim); border: 1px solid var(--green);
  padding: 6px 14px; border-radius: var(--radius); margin-bottom: 24px;
}
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

h1.headline {
  font-family: "Hanken Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 780px;
  margin: 0 auto 20px;
}
h1.headline .accent { color: var(--accent); }

.subhead { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto 36px; line-height: 1.6; }

.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-mock { max-width: 760px; margin: 56px auto 0; }
.hero-mock svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }
.hero-mock .mock-cards rect { transition: opacity .2s; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: 14px;
  border: 1px solid var(--border); cursor: pointer;
  transition: transform .15s cubic-bezier(.4,0,.2,1), background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary { background: var(--accent); color: #041325; border-color: var(--accent); }
.btn-primary:hover { background: #b9d8ff; box-shadow: 0 8px 20px -8px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--card-hover); }

/* ---------- Features ---------- */

.features { padding: 64px 24px; border-top: 1px solid var(--border); }
.features h2, .pricing h2 { text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--muted); max-width: 520px; margin: 0 auto 48px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 24px;
  transition: transform .2s cubic-bezier(.4,0,.2,1), border-color .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 16px 32px -16px rgba(0,0,0,.5); }
.feature-card .f-icon {
  width: 36px; height: 36px; border-radius: var(--radius);
  background: var(--accent-glow); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  transition: transform .2s cubic-bezier(.4,0,.2,1);
}
.feature-card:hover .f-icon { transform: scale(1.08); }
.feature-card h3 { font-size: 16px; margin: 0 0 8px; }
.feature-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0; }

/* --- feature stat-chips / metric / preview (Figma "Engineered for Results") --- */
.f-stats { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.f-chip { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: -.02em; text-transform: uppercase; color: var(--muted); }
.chip-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.f-metric { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.f-metric-row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.f-bar { height: 4px; border-radius: 4px; background: var(--border-strong, #2D323C); overflow: hidden; }
.f-bar > span { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.f-preview { margin-top: 16px; padding: 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg-elevated); font-family: var(--mono); font-size: 10.5px; font-style: italic; line-height: 1.7; color: var(--muted); }

/* ---------- Pricing ---------- */

.pricing { padding: 64px 24px 96px; border-top: 1px solid var(--border); }

.period-tabs {
  display: flex; gap: 3px; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 99px; padding: 3px; width: fit-content;
}
.period-tab {
  border: none; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  padding: 5px 12px; border-radius: 99px; cursor: pointer; transition: background .18s, color .18s;
}
.period-tab.active { background: var(--accent); color: #041325; }
.period-tab:hover:not(.active) { color: var(--text); }
.tier-limit {
  font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 8px; width: fit-content; margin-top: -6px;
}
.price-num { display: inline-block; font-variant-numeric: tabular-nums; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 940px; margin: 0 auto; }
.tier-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 6px;
  padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; position: relative;
  cursor: pointer; user-select: none;
  transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s, border-color .2s;
}
.tier-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.tier-card.recommended:not(.selected) {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--card) 55%, var(--accent-glow));
}
.tier-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 20px 40px -20px rgba(0,0,0,.6);
}
.tier-radio {
  position: absolute; top: 20px; right: 20px;
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border);
  transition: border-color .15s, background .15s;
}
.tier-card.selected .tier-radio {
  border-color: var(--accent); background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--card);
}
.pricing-cta { display: flex; justify-content: center; margin-top: 28px; }
.btn-buy { padding: 14px 32px; font-size: 15px; }
.tier-ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #041325; font-family: var(--mono);
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--radius);
}
.tier-name { font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tier-price { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nav-scramble { font-family: var(--mono); }
.tier-price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.tier-tagline { color: var(--muted); font-size: 13px; margin-top: -10px; }
.tier-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.tier-features li { display: flex; gap: 8px; align-items: flex-start; }
.tier-features li svg { flex-shrink: 0; margin-top: 2px; color: var(--green); }

/* ---------- FAQ ---------- */

.faq { padding: 64px 24px 96px; border-top: 1px solid var(--border); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 6px;
  padding: 18px 20px; cursor: pointer; transition: border-color .15s;
}
.faq-item:hover { border-color: var(--accent); }
.faq-q { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14.5px; gap: 12px; }
.faq-chevron { color: var(--muted); transition: transform .2s cubic-bezier(.4,0,.2,1); flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-a {
  color: var(--muted); font-size: 13.5px; line-height: 1.6; margin-top: 0; max-height: 0; overflow: hidden;
  transition: max-height .25s cubic-bezier(.4,0,.2,1), margin-top .25s cubic-bezier(.4,0,.2,1);
}
.faq-item.open .faq-a { max-height: 200px; margin-top: 10px; }

/* ---------- Footer ---------- */

footer { border-top: 1px solid var(--border); padding: 48px 24px 24px; background: var(--bg-elevated); }
footer .wrap { max-width: 1080px; margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; max-width: 320px; }
.footer-col h4 { font-size: 13px; margin: 0 0 14px; color: var(--text); }
.footer-col a { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(64,71,82,.3); }
footer .copy { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.status-nominal { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; color: var(--green, #42E355); }
.status-nominal .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green, #42E355); }
@media (max-width: 720px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }

/* ---------- Checkout page ---------- */

.checkout-wrap { max-width: 480px; margin: 48px auto 96px; padding: 0 24px; }
.back-link { display: inline-block; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.back-link:hover { color: var(--text); }
.checkout-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 6px;
  padding: 28px 24px; display: flex; flex-direction: column; gap: 20px;
}
.checkout-summary { display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.method-title { font-size: 13px; font-weight: 600; margin: 0; color: var(--text-dim); }
.method-list { display: flex; flex-direction: column; gap: 10px; }
.method-option {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: 6px; padding: 14px 16px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s, opacity .15s;
}
.method-option:hover { border-color: var(--accent); }
.method-option.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.method-option input { display: none; }
.method-radio {
  width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border);
  flex-shrink: 0; transition: border-color .15s, background .15s;
}
.method-option.selected .method-radio { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--card); }
.method-body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.method-name { font-size: 14px; font-weight: 600; }
.method-desc { font-size: 12px; color: var(--muted); }
.method-icon { color: var(--muted); flex-shrink: 0; }
.method-option.selected .method-icon { color: var(--accent); }
/* "Coming soon" payment methods: visible but clearly inactive. */
.method-option.is-soon { cursor: default; opacity: .5; }
.method-option.is-soon:hover { border-color: var(--border); }
.soon-badge {
  display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; vertical-align: middle;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 999px;
  padding: 1px 7px;
}
.checkout-note { font-size: 13px; color: var(--muted); min-height: 18px; text-align: center; margin: 12px 0 4px; }
.method-title { margin-top: 22px; }

/* ---------- Success page ---------- */

.success-box {
  max-width: 480px; margin: 96px auto; text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 40px 32px;
}
.success-box .icon { width: 48px; height: 48px; color: var(--green); margin: 0 auto 20px; }
.license-key {
  font-family: var(--mono); font-size: 12px; word-break: break-all;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; margin: 20px 0; color: var(--text-dim); line-height: 1.6;
}

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