/* SubForge — subforge.ai
   Design tokens mirror the app: lib/core/theme/tokens.dart */

:root {
  --bg: #0A0A0D;
  --surface: #131318;
  --raised: #1A1A21;
  --sunken: #0E0E12;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.12);
  --text: #F5F5F7;
  --text-2: #9C9CA6;
  --text-3: #60606B;
  --ember: #FF6A3D;
  --ember-hot: #FF8A3D;
  --ember-deep: #FF4D4D;
  --forge: linear-gradient(135deg, #FF8A3D 0%, #FF6A3D 50%, #FF4D4D 100%);
  --success: #3DD68C;
  --warning: #FFC53D;
  --ai: #B98CFF;
  --streaming: #FF5C8A;
  --music: #3DD68C;
  --cloud: #7DD3FC;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(255, 106, 61, 0.35); }

a { color: var(--ember); text-decoration: none; }
a:hover { color: var(--ember-hot); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Nav ───────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10, 10, 13, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 28px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.3px; color: var(--text);
}
.brand:hover { color: var(--text); }
.flame {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--forge);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(255, 106, 61, 0.4);
  flex: none;
}
.flame svg { width: 16px; height: 16px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text-2); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--r-md);
  font-weight: 600; font-size: 15px; letter-spacing: -0.1px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer; border: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--forge); color: #fff;
  box-shadow: 0 6px 24px rgba(255, 106, 61, 0.35);
}
.btn-primary:hover { color: #fff; box-shadow: 0 8px 32px rgba(255, 106, 61, 0.5); transform: translateY(-1px); }
.btn-ghost {
  background: var(--raised); color: var(--text);
  border: 1px solid var(--hairline-strong);
}
.btn-ghost:hover { color: var(--text); background: #20202a; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }

/* ── Hero ─────────────────────────────────────────── */
header.hero {
  position: relative; padding: 150px 0 90px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(255, 106, 61, 0.16) 0%, rgba(255, 77, 77, 0.06) 40%, transparent 70%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 106, 61, 0.10);
  border: 1px solid rgba(255, 106, 61, 0.30);
  color: var(--ember-hot); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.4px; text-transform: uppercase;
  margin-bottom: 24px;
}
h1 {
  font-size: clamp(40px, 5.4vw, 62px); font-weight: 800;
  letter-spacing: -2.2px; line-height: 1.04;
}
h1 .ember-text {
  background: var(--forge);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  margin: 22px 0 34px; max-width: 480px;
  color: var(--text-2); font-size: 18.5px; line-height: 1.55;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 16px; color: var(--text-3); font-size: 13px; }

/* ── Phone mockup (pure CSS rendition of the app) ── */
.phone-wrap { display: flex; justify-content: center; perspective: 1400px; }
.phone {
  width: 330px; border-radius: 48px; padding: 12px;
  background: #17171d;
  border: 1px solid var(--hairline-strong);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(255, 106, 61, 0.10);
  transform: rotateY(-7deg) rotateX(3deg);
  transition: transform 0.5s ease;
}
.phone:hover { transform: rotateY(-2deg) rotateX(1deg); }
.screen {
  background: var(--bg); border-radius: 38px; overflow: hidden;
  padding: 14px 14px 18px; position: relative;
  border: 1px solid var(--hairline);
}
.island {
  width: 86px; height: 22px; border-radius: 999px; background: #000;
  margin: 2px auto 14px; border: 1px solid #1c1c22;
}
.app-title { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14.5px; margin-bottom: 12px; }
.app-title .flame { width: 21px; height: 21px; border-radius: 6px; }
.app-title .flame svg { width: 12px; height: 12px; }
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 16px; padding: 13px; margin-bottom: 9px;
}
.card.glow { box-shadow: 0 0 36px rgba(255, 106, 61, 0.12); }
.label { font-size: 8.5px; font-weight: 700; letter-spacing: 1px; color: var(--text-3); }
.big-money {
  font-size: 30px; font-weight: 800; letter-spacing: -1.2px;
  font-variant-numeric: tabular-nums; margin: 3px 0 1px;
}
.muted { color: var(--text-2); font-size: 10.5px; }
.row { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.avatar {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 12px;
}
.row .name { font-size: 11.5px; font-weight: 600; line-height: 1.25; }
.row .when { font-size: 9px; color: var(--text-3); }
.row .price { margin-left: auto; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.trial-card { border-color: rgba(255, 197, 61, 0.4); }
.trial-card .trial-head { color: var(--warning); font-size: 10px; font-weight: 700; display: flex; gap: 5px; align-items: center; margin-bottom: 6px; }
.trial-card .trial-row { display: flex; justify-content: space-between; font-size: 11px; }
.trial-card .trial-row em { font-style: normal; color: var(--warning); font-size: 9.5px; }
.bar { display: flex; height: 7px; border-radius: 999px; overflow: hidden; margin: 9px 0 10px; }
.legend { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-2); padding: 2.5px 0; }
.legend i { width: 7px; height: 7px; border-radius: 2.5px; display: inline-block; margin-right: 6px; }
.legend b { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.pill {
  font-size: 8.5px; font-weight: 700; padding: 2.5px 7px; border-radius: 999px;
  background: rgba(255, 106, 61, 0.16); color: var(--ember-hot);
  border: 1px solid rgba(255, 106, 61, 0.3);
}

/* ── Sections ─────────────────────────────────────── */
section { padding: 96px 0; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -1.4px; line-height: 1.12; }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 17px; }
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--ember); margin-bottom: 14px;
}

/* Category strip */
.strip {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  padding: 0 24px; margin-top: -26px; margin-bottom: 6px;
}
.chip {
  padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--hairline); color: var(--text-2);
}
.chip i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 7px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 28px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover {
  transform: translateY(-4px); border-color: var(--hairline-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.feature .icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 106, 61, 0.12); border: 1px solid rgba(255, 106, 61, 0.22);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature .icon svg { width: 21px; height: 21px; stroke: var(--ember); }
.feature h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

/* AI spotlight */
.spotlight {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-xl); padding: 56px;
  position: relative; overflow: hidden;
}
.spotlight::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 420px; height: 420px; pointer-events: none;
  background: radial-gradient(circle, rgba(185, 140, 255, 0.14), transparent 65%);
}
.spotlight h2 { font-size: clamp(26px, 3vw, 36px); }
.spotlight > div p { color: var(--text-2); margin-top: 14px; font-size: 16px; }
.ai-card {
  background: var(--bg); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 22px;
  box-shadow: 0 0 48px rgba(255, 106, 61, 0.10);
  position: relative;
}
.ai-card .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ai-card .head .t { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.ai-card .head .total { color: var(--ember); font-weight: 800; font-variant-numeric: tabular-nums; }
.ai-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; }
.ai-row .avatar { width: 28px; height: 28px; font-size: 12.5px; }
.ai-row .price { margin-left: auto; color: var(--text-2); font-variant-numeric: tabular-nums; font-size: 13px; }
.ai-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 12.5px; color: var(--text-3); }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 860px; margin: 0 auto; }
.plan {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-xl); padding: 36px 32px; position: relative;
}
.plan.pro { border-color: rgba(255, 106, 61, 0.45); box-shadow: 0 0 56px rgba(255, 106, 61, 0.12); }
.plan .badge {
  position: absolute; top: -13px; left: 32px;
  background: var(--forge); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 0.8px; padding: 5px 13px; border-radius: 999px;
}
.plan h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.4px; }
.plan .price-line { margin: 12px 0 4px; font-size: 38px; font-weight: 800; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.plan .price-line small { font-size: 15px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.plan .alt { color: var(--text-3); font-size: 13.5px; margin-bottom: 22px; }
.plan ul { list-style: none; }
.plan li { padding: 7.5px 0; color: var(--text-2); font-size: 14.5px; display: flex; gap: 11px; align-items: flex-start; }
.plan li::before {
  content: ''; width: 17px; height: 17px; flex: none; margin-top: 3px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23FF6A3D" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center/contain no-repeat;
}
.plan.free li::before { filter: grayscale(1) brightness(1.4); }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
details {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 20px 24px; margin-bottom: 12px;
}
details[open] { border-color: var(--hairline-strong); }
summary {
  cursor: pointer; font-weight: 600; font-size: 16px; letter-spacing: -0.2px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--ember); font-size: 22px; font-weight: 400; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--text-2); font-size: 14.5px; }

/* CTA band */
.cta-band {
  text-align: center; padding: 80px 32px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-xl); position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 120%, rgba(255, 106, 61, 0.18), transparent 60%);
}
.cta-band h2 { position: relative; }
.cta-band p { position: relative; color: var(--text-2); margin: 14px auto 30px; max-width: 460px; }
.cta-band .hero-ctas { position: relative; justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--hairline); padding: 44px 0 56px; }
.foot-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.foot-inner .brand { font-size: 15px; }
.foot-links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.foot-links a { color: var(--text-3); font-size: 13.5px; }
.foot-links a:hover { color: var(--text-2); }
.copyright { width: 100%; color: var(--text-3); font-size: 12.5px; margin-top: 10px; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 140px 24px 90px; }
.legal h1 { font-size: 38px; letter-spacing: -1.4px; margin-bottom: 8px; }
.legal .updated { color: var(--text-3); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 21px; letter-spacing: -0.4px; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--text-2); font-size: 15.5px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal strong { color: var(--text); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .phone { transform: none; }
}

/* Responsive */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-sub { max-width: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .spotlight { grid-template-columns: 1fr; padding: 36px 28px; gap: 36px; }
  .plans { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  header.hero { padding-top: 120px; }
  section { padding: 68px 0; }
  .phone { width: 300px; }
}
