:root {
  --bg: #0a0807;
  --panel: #16110d;
  --panel-2: #1d1712;
  --line: #2a2118;
  --line-2: #392d22;
  --text: #f4efe8;
  --heading: #fdfaf5;
  --muted: #a99c8e;
  --muted-2: #756a5e;
  --accent: #ee7a2d;
  --accent-2: #ff9b4d;
  --accent-soft: rgba(238, 122, 45, 0.14);
  --accent-ring: rgba(238, 122, 45, 0.34);
  --maxw: 1140px;
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-soft); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.accent { color: var(--accent); }

h1, h2, h3, h4 { font-family: var(--display); color: var(--heading); letter-spacing: -0.02em;
  line-height: 1.08; font-weight: 700; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 15px; cursor: pointer;
  border-radius: 12px; border: 1px solid transparent; padding: 12px 22px;
  transition: transform .12s ease, background .18s, border-color .18s, box-shadow .18s, color .18s;
  white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%);
  color: #1a0d03; box-shadow: 0 12px 30px -10px var(--accent-ring); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--accent-ring); }
.btn-ghost { background: rgba(255,255,255,0.02); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
  border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(12, 9, 7, 0.82); backdrop-filter: blur(14px);
  border-bottom-color: var(--line); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; }
.nav-brand img { height: 30px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a:not(.btn) { font-size: 15px; color: var(--muted); font-weight: 500; transition: color .15s; }
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 80px; text-align: center; overflow: hidden; }
.hero-glow { position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(238,122,45,0.28) 0%, rgba(238,122,45,0) 70%);
  filter: blur(20px); }
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero h1 { font-size: clamp(44px, 8vw, 88px); margin-bottom: 22px; }
.hero-sub { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); max-width: 660px;
  margin: 0 auto 34px; line-height: 1.55; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: 13.5px; color: var(--muted-2); letter-spacing: 0.01em; }

/* product shot */
.shot { position: relative; margin-top: 70px; perspective: 1800px; }
.window { position: relative; z-index: 2; margin: 0 auto; max-width: 920px;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2);
  background: #100b08; box-shadow: 0 50px 110px -40px rgba(0,0,0,0.9);
  transform: rotateX(32deg) scale(0.96); transform-origin: 50% 0;
  transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.shot:hover .window { transform: rotateX(14deg) scale(0.99); }
.winbar { display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  background: #1a130d; border-bottom: 1px solid var(--line); }
.wd { width: 11px; height: 11px; border-radius: 999px; }
.wd.r { background: #ff5f57; } .wd.y { background: #febc2e; } .wd.g { background: #28c840; }
.winurl { margin-left: 14px; font-size: 12px; color: var(--muted-2); font-family: var(--body); }
.stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: #0c0a08; container-type: inline-size; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* control-panel recreation (scales with the window via cqw) */
.cp { position: absolute; inset: 0; display: flex; background: #0c0a08;
  color: var(--text); font-size: 2.2cqw; line-height: 1.3; }
.cp-side { width: 22%; flex: none; display: flex; flex-direction: column; gap: 0.35em;
  padding: 1em 0.7em; background: linear-gradient(180deg, #15100b, #100b08);
  border-right: 1px solid #241c14; }
.cp-brand { display: flex; align-items: center; gap: 0.55em; font-family: var(--display);
  font-weight: 700; font-size: 0.92em; color: var(--heading); margin-bottom: 0.5em; }
.cp-mark { width: 1.55em; height: 1.55em; border-radius: 0.42em; flex: none;
  background: linear-gradient(155deg, #f4883d, #de681c); }
.cp-navitem { display: flex; align-items: center; gap: 0.6em; font-size: 0.78em;
  color: var(--muted); padding: 0.5em 0.55em; border-radius: 0.55em; white-space: nowrap; }
.cp-navitem .cp-dot { width: 0.85em; height: 0.85em; border-radius: 0.28em;
  border: 1.5px solid currentColor; flex: none; }
.cp-navitem.active { color: var(--accent); background: var(--accent-soft); }
.cp-spacer { flex: 1; }
.cp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.8em; padding: 1em; }
.cp-card { background: linear-gradient(180deg, #17120e, #130e0a); border: 1px solid #241c14;
  border-radius: 0.85em; padding: 0.85em; }
.cp-bar { display: flex; align-items: center; gap: 0.55em; }
.cp-conn { display: flex; align-items: center; gap: 0.4em; font-size: 0.7em; color: var(--muted); }
.cp-live-dot { width: 0.5em; height: 0.5em; border-radius: 50%; background: #46c07a;
  box-shadow: 0 0 0.45em #46c07a; }
.cp-pill { font-size: 0.7em; font-weight: 600; color: #1a0d03; padding: 0.45em 0.85em;
  border-radius: 0.55em; background: linear-gradient(180deg, #ff9b4d, #ee7a2d); }
.cp-btn { font-size: 0.7em; color: var(--muted); border: 1px solid #241c14;
  padding: 0.45em 0.75em; border-radius: 0.55em; }
.cp-btn.danger { color: #ef6a52; }
.cp-sechead { display: flex; align-items: center; gap: 0.5em; font-family: var(--display);
  font-weight: 600; font-size: 0.82em; color: var(--heading); margin-bottom: 0.75em; }
.cp-chev { color: var(--muted); font-size: 0.7em; }
.cp-count { font-size: 0.66em; color: var(--muted); background: #1d1712; border: 1px solid #241c14;
  border-radius: 1em; padding: 0.1em 0.6em; }
.cp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6em; }
.cp-tile { aspect-ratio: 832 / 1249; border-radius: 0.5em; border: 1.5px solid #241c14;
  position: relative; overflow: hidden; }
.cp-tile:nth-child(1) { background: linear-gradient(160deg, #3f7150, #243f2d); }
.cp-tile:nth-child(2) { background: linear-gradient(160deg, #bd5a2b, #7a3318); }
.cp-tile:nth-child(3) { background: linear-gradient(160deg, #2d4d70, #1a2c40); }
.cp-tile:nth-child(4) { background: linear-gradient(160deg, #5b3a6e, #382341); }
.cp-tlive { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent), 0 0 1.2em -0.2em var(--accent-ring); }
.cp-tag { position: absolute; top: 0.45em; left: 50%; transform: translateX(-50%);
  font-size: 0.5em; font-weight: 700; letter-spacing: 0.06em; color: #fff;
  background: var(--accent); padding: 0.2em 0.7em; border-radius: 1em; }
.cp-rail { width: 27%; flex: none; padding: 1em 0.9em; }
.cp-lbl { font-size: 0.7em; color: var(--muted); margin-bottom: 0.6em; }
.cp-screen { aspect-ratio: 832 / 1249; border-radius: 0.7em; border: 1px solid #241c14;
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 50% 0%, #2a1f36 0%, #100b16 55%, #08060b 100%); }
.cp-grace { font-family: var(--display); font-weight: 700; color: #fff; font-size: 1.5em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.5); }
.cp-ink { position: absolute; inset: 0; width: 100%; height: 100%; }
.cp-ink path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round;
  stroke-linejoin: round; filter: drop-shadow(0 1px 3px rgba(238,122,45,0.5));
  stroke-dasharray: 620; stroke-dashoffset: 620; animation: draw 2.2s ease-out 0.6s forwards; }

.shot-shadow { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%);
  width: 70%; height: 60px; background: radial-gradient(50% 50% at 50% 50%, rgba(238,122,45,0.22), transparent 70%);
  filter: blur(24px); z-index: 1; }

/* ---------- section heads ---------- */
section { position: relative; }
.sec-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 16px; }
.sec-head p { color: var(--muted); font-size: 17px; }

/* ---------- features ---------- */
.features { padding: 110px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: linear-gradient(180deg, #17120e, #130e0a); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px 26px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); border-color: var(--line-2);
  box-shadow: 0 24px 50px -28px rgba(0,0,0,0.8); }
.ficon { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px; color: var(--accent);
  background: var(--accent-soft); border: 1px solid rgba(238,122,45,0.22); }
.ficon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; margin-bottom: 9px; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- how it works ---------- */
.how { padding: 110px 0; background:
  linear-gradient(180deg, transparent, rgba(238,122,45,0.03) 50%, transparent); }
.steps { display: flex; align-items: stretch; justify-content: center; gap: 0; flex-wrap: wrap; }
.step { flex: 1; min-width: 240px; max-width: 320px; padding: 8px 24px; text-align: center; }
.step-no { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--accent);
  letter-spacing: 0.1em; }
.step h3 { font-size: 22px; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: 15px; }
.step-line { flex: 0 0 60px; align-self: center; height: 2px; margin-top: 8px;
  background: linear-gradient(90deg, var(--line-2), var(--accent), var(--line-2)); border-radius: 2px; opacity: 0.7; }

/* ---------- pricing ---------- */
.pricing { padding: 110px 0; }
.plan { max-width: 420px; margin: 0 auto; background: linear-gradient(180deg, #1a130d, #130e0a);
  border: 1px solid var(--line-2); border-radius: 22px; padding: 34px 32px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.8), 0 0 0 1px rgba(238,122,45,0.06); position: relative; }
.plan::before { content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1px;
  background: linear-gradient(180deg, rgba(238,122,45,0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan-top { text-align: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.plan-name { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.plan-price { display: flex; align-items: baseline; justify-content: center; gap: 7px; }
.plan-price .amt { font-family: var(--display); font-size: 56px; font-weight: 700; color: var(--heading); }
.plan-price .per { font-size: 16px; color: var(--muted); }
.plan-tag { font-size: 13px; color: var(--muted-2); margin-top: 8px; }
.plan-feats { list-style: none; margin: 24px 0; display: flex; flex-direction: column; gap: 13px; }
.plan-feats li { position: relative; padding-left: 30px; font-size: 15px; color: var(--text); }
.plan-feats li::before { content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px;
  border-radius: 999px; background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ee7a2d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4 4 10-10'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 13px; }
.plan-note { text-align: center; font-size: 13px; color: var(--muted-2); margin-top: 14px; }

/* ---------- cta ---------- */
.cta { padding: 120px 0; text-align: center; overflow: hidden; }
.cta-glow { position: absolute; bottom: -300px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(238,122,45,0.22), transparent 70%); filter: blur(20px); }
.cta-inner { position: relative; z-index: 2; max-width: 680px; }
.cta h2 { font-size: clamp(34px, 6vw, 58px); margin-bottom: 16px; }
.cta p { color: var(--muted); font-size: 19px; margin-bottom: 32px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand img { height: 28px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 280px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 { font-family: var(--body); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 10px; transition: color .15s; }
.footer-cols a:hover { color: var(--accent); }
.footer-bar { display: flex; justify-content: space-between; align-items: center;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted-2); flex-wrap: wrap; gap: 10px; }
.footer-legal a { margin-left: 18px; }
.footer-legal a:hover { color: var(--accent); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ink .scribble { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .step-line { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; gap: 6px;
    background: rgba(12,9,7,0.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    padding: 16px 24px 22px; transform: translateY(-130%); transition: transform .28s ease; align-items: stretch; }
  .nav-links.open { transform: translateY(0); }
  .nav-links > a:not(.btn) { padding: 10px 0; }
  .nav-links .btn { margin-top: 6px; }
  .nav.scrolled, .nav { background: rgba(12,9,7,0.82); backdrop-filter: blur(12px); }
  .hero { padding: 120px 0 60px; }
  .window { transform: rotateX(20deg) scale(0.98); }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 28px; }
}

/* ── legal pages (privacy / terms) ──────────────────────────────────────── */
header.legal-head { position: static; background: rgba(12, 9, 7, 0.92);
  border-bottom: 1px solid var(--line); }
.legal-head .nav-inner { display: flex; align-items: center; justify-content: space-between; }
.legal-head img { height: 30px; }
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 8px; }
.legal .updated { color: var(--muted-2); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 21px; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--muted); line-height: 1.7; font-size: 16px; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--accent); }
.legal strong { color: var(--text); font-weight: 600; }
.legal .callout { background: var(--accent-soft); border: 1px solid var(--accent-ring);
  border-radius: 12px; padding: 14px 16px; margin: 8px 0 24px; }
.legal .callout p { margin: 0; color: var(--text); font-size: 14.5px; }
