*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x must be clamped on html as well as body: with it only on body,
   iOS Safari still sizes the layout viewport to the widest overflowing
   element (the hero SVG), and re-fits the page to that width after the
   keyboard / chat panel closes — leaving the page shrunk with blank space. */
html { scroll-behavior: smooth; overflow-x: hidden; }
:root {
  --bg: #0B0E16; --surface: #111520; --surface2: #161B2B;
  --border: #1A2035; --border2: #222A42;
  --amber: #F5A623; --amber-bg: rgba(245,166,35,0.08); --amber-border: rgba(245,166,35,0.22);
  --teal: #22C5AF;
  --text1: #EDF0F5; --text2: #7D8BA1; --text3: #3D4A62;
}
body { background: var(--bg); color: var(--text1); font-family: 'Inter', sans-serif; line-height: 1.6; overflow-x: hidden; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; background: rgba(11,14,22,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); z-index: 200; }
.logo { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.035em; color: var(--text1); text-decoration: none; }
.logo .a { color: var(--amber); }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a { color: var(--text2); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.current { color: var(--text1); }
.nav-actions { display: flex; gap: .75rem; align-items: center; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.875rem; text-decoration: none; border: none; cursor: pointer; transition: all .15s; border-radius: 8px; padding: .5rem 1.125rem; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border2); }
.btn-ghost:hover { color: var(--text1); border-color: var(--text3); }
.btn-amber { background: var(--amber); color: #0B0E16; }
.btn-amber:hover { opacity: .88; }
.btn-lg { padding: .875rem 1.875rem; font-size: 1rem; border-radius: 10px; }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; padding: 6px 4px; background: none; border: none; -webkit-tap-highlight-color: transparent; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text1); border-radius: 2px; transition: transform .25s, opacity .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu { display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; background: rgba(11,14,22,0.98); z-index: 199; padding: 1.5rem; flex-direction: column; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu-links { list-style: none; flex: 1; }
.mobile-menu-links li { border-bottom: 1px solid var(--border); }
.mobile-menu-links li:first-child { border-top: 1px solid var(--border); }
.mobile-menu-links a { display: block; color: var(--text1); text-decoration: none; font-size: 1.125rem; font-weight: 500; padding: 1rem 0; transition: color .15s; }
.mobile-menu-links a:hover { color: var(--amber); }
.mobile-menu-cta { display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; }
.mobile-menu-cta .btn { width: 100%; padding: .875rem; font-size: 1rem; justify-content: center; }

/* PAGE HERO */
.page-hero { padding: 8rem 1.5rem 5rem; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(245,166,35,.07) 0%, transparent 70%); pointer-events: none; }
.page-hero-content { max-width: 780px; margin: 0 auto; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .875rem; background: var(--amber-bg); border: 1px solid var(--amber-border); border-radius: 100px; font-size: .78rem; font-weight: 600; color: var(--amber); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1.5rem; }
.page-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin-bottom: 1.25rem; }
.page-hero h1 .amber { color: var(--amber); }
.page-hero-sub { font-size: 1.05rem; color: var(--text2); max-width: 560px; margin: 0 auto 2.25rem; line-height: 1.75; }
.hero-ctas { display: flex; gap: .875rem; justify-content: center; flex-wrap: wrap; }

/* SECTION */
section { padding: 5rem 1.5rem; }
.container { max-width: 1060px; margin: 0 auto; }
.sec-eye { font-size: .73rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--amber); margin-bottom: .6rem; }
h2.sec-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.18; margin-bottom: .875rem; }
.sec-sub { color: var(--text2); max-width: 480px; line-height: 1.7; }

/* FEATURES GRID */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 3rem; }
.feat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.625rem; transition: border-color .2s, background .2s; }
.feat-card:hover { border-color: var(--border2); background: var(--surface2); }
.feat-icon { font-size: 1.375rem; margin-bottom: 1rem; background: var(--amber-bg); width: 42px; height: 42px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
h3.feat-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .975rem; margin-bottom: .4rem; }
.feat-desc { font-size: .845rem; color: var(--text2); line-height: 1.65; }

/* PRICING */
.pricing-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pricing-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-top: 3rem; }
.plan { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 1.625rem 1.375rem; position: relative; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--amber); background: linear-gradient(145deg,rgba(245,166,35,.05) 0%,var(--bg) 55%); }
.badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--amber); color: #0B0E16; font-size: .68rem; font-weight: 700; padding: .22rem .875rem; border-radius: 100px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
h3.plan-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; }
.plan-tagline { font-size: .8rem; color: var(--text2); margin-top: .25rem; }
.plan-price { margin: 1.25rem 0 .25rem; font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.plan-price sup { font-size: 1.1rem; font-weight: 600; vertical-align: top; margin-top: .35rem; }
.plan-price .cents { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.plan-mo { font-size: .78rem; color: var(--text2); margin-bottom: 1.5rem; }
.plan-mo .hr { color: var(--text3); }
.plan-specs { list-style: none; flex: 1; margin-bottom: 1.75rem; }
.plan-specs li { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--text2); padding: .42rem 0; border-bottom: 1px solid var(--border); }
.plan-specs li:last-child { border-bottom: none; }
.val { font-family: 'JetBrains Mono', monospace; color: var(--text1); font-size: .8rem; }
.tick { color: var(--teal); flex-shrink: 0; }

/* INFO BOX */
.info-box { background: var(--amber-bg); border: 1px solid var(--amber-border); border-radius: 10px; padding: 1rem 1.25rem; margin-top: 2rem; font-size: .875rem; color: var(--text2); display: flex; gap: .75rem; align-items: flex-start; line-height: 1.6; }
.info-box strong { color: var(--amber); }

/* CTA BAND */
.cta-band { text-align: center; }
.cta-band h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; margin-bottom: 1rem; letter-spacing: -.03em; }
.cta-band p { color: var(--text2); margin-bottom: 2rem; font-size: 1.05rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* SIMPLE TEXT PAGE */
.text-page { padding: 8rem 1.5rem 5rem; max-width: 760px; margin: 0 auto; }
.text-page h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; margin-bottom: 2rem; }
.text-page h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; margin: 2.5rem 0 .75rem; color: var(--text1); }
.text-page p { font-size: .9625rem; color: var(--text2); line-height: 1.8; margin-bottom: 1rem; }
.text-page ul { list-style: disc; padding-left: 1.5rem; color: var(--text2); font-size: .9625rem; line-height: 1.8; margin-bottom: 1rem; }
.text-page a { color: var(--amber); text-decoration: none; }
.text-page a:hover { text-decoration: underline; }
.text-page .meta { font-size: .8rem; color: var(--text3); margin-bottom: 3rem; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 3rem; }
.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.about-card .num { font-family: 'Space Grotesk', sans-serif; font-size: 2.25rem; font-weight: 800; color: var(--amber); letter-spacing: -.04em; line-height: 1; margin-bottom: .25rem; }
.about-card .lbl { font-size: .85rem; color: var(--text2); }
.mission { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 3rem; margin-top: 3rem; }
.mission blockquote { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.25rem, 2.5vw, 1.7rem); font-weight: 600; line-height: 1.45; letter-spacing: -.02em; color: var(--text1); border-left: 3px solid var(--amber); padding-left: 1.5rem; }

/* FOOTER */
footer { border-top: 1px solid var(--border); background: var(--surface); padding: 3.5rem 1.5rem 2rem; }
.footer-grid { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .logo { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: -.035em; color: var(--text1); text-decoration: none; }
.footer-brand .logo .a { color: var(--amber); }
.footer-tag { font-size: .82rem; color: var(--text2); line-height: 1.75; margin-top: .875rem; max-width: 280px; }
.footer-live { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.125rem; font-size: .78rem; font-weight: 600; color: var(--teal); text-decoration: none; border: 1px solid var(--border2); border-radius: 100px; padding: .35rem .875rem; transition: border-color .15s; }
.footer-live:hover { border-color: var(--teal); }
.footer-live .fdot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: fblink 2.4s ease-in-out infinite; }
@keyframes fblink { 0%,100%{opacity:1} 50%{opacity:.35} }
.footer-col h4 { font-family: 'Space Grotesk', sans-serif; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--text3); margin-bottom: .875rem; }
.footer-col a { display: block; font-size: .84rem; color: var(--text2); text-decoration: none; padding: .3rem 0; transition: color .15s; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { max-width: 1060px; margin: 2.75rem auto 0; padding-top: 1.375rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: .75rem; color: var(--text3); }
@media (max-width: 1080px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { footer { padding: 2.5rem 1rem 1.5rem; } .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* RESPONSIVE */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: repeat(2,1fr); max-width: 620px; margin-left: auto; margin-right: auto; }
  .about-grid { grid-template-columns: repeat(3,1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 560px) {
  nav { padding: 0 1rem; }
  section, .pricing-section { padding: 3.5rem 1rem; }
  .page-hero { padding: 6rem 1rem 3.5rem; }
  .text-page { padding: 6rem 1rem 3rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; padding: .9rem; }
  .features-grid { grid-template-columns: 1fr; gap: .875rem; }
  .feat-card { padding: 1.25rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 100%; }
  .about-grid { grid-template-columns: repeat(3,1fr); }
  .mission { padding: 1.75rem; }
  footer { padding: 1.5rem 1rem; }
}
