:root {
  --bg: #08090a;
  --bg-2: #0f1011;
  --card: #111214;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f7f8f8;
  --muted: #8a8f98;
  --dim: #62666d;
  --accent: #7c7bff;
  --accent-2: #b4a5ff;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--dim); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; height: 60px; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.logo.small { font-size: 14px; gap: 8px; }
.nav-links { display: flex; gap: 24px; margin-right: auto; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 20px; border-radius: 10px;
  background: var(--text); color: #08090a;
  font-weight: 500; font-size: 15px;
  transition: transform .15s, opacity .15s;
}
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.98); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.04); opacity: 1; }
.arrow { transition: transform .15s; display: inline-block; }
a:hover .arrow { transform: translateX(3px); }

/* Hero */
.hero { position: relative; padding: 112px 0 40px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -200px 0 auto; height: 900px; z-index: -1;
  background:
    radial-gradient(600px 300px at 50% 220px, rgba(124, 123, 255, .18), transparent 70%),
    radial-gradient(900px 500px at 50% 0, rgba(255, 255, 255, .05), transparent 70%);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--muted);
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
}
.pill:hover { color: var(--text); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #4cc38a; box-shadow: 0 0 10px #4cc38a; }
h1 {
  margin: 28px auto 0; max-width: 900px;
  font-size: clamp(42px, 7.4vw, 80px); line-height: 1.04;
  font-weight: 600; letter-spacing: -0.045em;
}
.grad {
  background: linear-gradient(180deg, #fff 10%, rgba(255,255,255,.45));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 24px auto 0; max-width: 600px; font-size: clamp(17px, 2vw, 19px); color: var(--muted); }
.cta-row { display: flex; gap: 12px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* Mockup */
.mock {
  margin: 80px auto 0; max-width: 1040px; text-align: left;
  border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #121316, #0c0d0e);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 40px 120px -20px rgba(124,123,255,.25), 0 30px 60px -30px rgba(0,0,0,.8);
  transform: perspective(2000px) rotateX(8deg);
  transform-origin: top center;
  mask-image: linear-gradient(180deg, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.mock-bar { display: flex; align-items: center; gap: 16px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.mock-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lights { display: flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #2a2b2f; }
.mock-body { display: grid; grid-template-columns: 300px 1fr; min-height: 360px; }
.mock-side { border-right: 1px solid var(--line); padding: 18px; font-size: 13px; }
.label { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin: 4px 0 8px; }
.prompt { background: #0a0b0c; border: 1px solid var(--line); border-radius: 10px; padding: 12px; color: #d0d2d6; line-height: 1.5; margin-bottom: 18px; }
.caret { display: inline-block; width: 2px; height: 14px; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scenes { list-style: none; display: grid; gap: 4px; }
.scenes li { padding: 8px 10px; border-radius: 8px; color: var(--muted); display: flex; gap: 10px; }
.scenes li b { font: 400 11px/1.9 "JetBrains Mono", monospace; color: var(--dim); }
.scenes li.on { background: rgba(124,123,255,.12); color: var(--text); }
.scenes li.on b { color: var(--accent-2); }
.mock-stage { display: grid; place-items: center; padding: 24px; background: radial-gradient(400px 260px at 50% 50%, rgba(124,123,255,.08), transparent); }
.phone { position: relative; width: 190px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); }
.phone-img {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, #d9a066 0, transparent 45%),
    radial-gradient(circle at 70% 70%, #6b3f2a 0, transparent 55%),
    linear-gradient(160deg, #a8693d, #3a2219);
  animation: kenburns 12s ease-in-out infinite alternate;
}
@keyframes kenburns { to { transform: scale(1.15) translate(-4%, -3%); } }
.cap {
  position: absolute; left: 10px; right: 10px; bottom: 34%;
  text-align: center; font-weight: 600; font-size: 17px; line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
}
.cap em { font-style: normal; color: #ffd84d; }
.tag { position: absolute; left: 10px; bottom: 12px; font-size: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.55); color: #ddd; }
.mock-timeline { position: relative; border-top: 1px solid var(--line); padding: 14px 16px 18px; display: grid; gap: 6px; }
.track { position: relative; height: 22px; }
.track span {
  position: absolute; top: 0; bottom: 0; border-radius: 5px; padding: 0 8px;
  font-size: 11px; line-height: 22px; white-space: nowrap; overflow: hidden;
  background: rgba(124,123,255,.22); border: 1px solid rgba(124,123,255,.4); color: #d6d4ff;
}
.track.t2 span { background: rgba(255,255,255,.06); border-color: var(--line-2); color: var(--muted); }
.track.t3 span { background: rgba(76,195,138,.14); border-color: rgba(76,195,138,.35); color: #9fe0bf; }
.playhead { position: absolute; top: 8px; bottom: 10px; left: 24%; width: 1px; background: #fff; box-shadow: 0 0 8px #fff; animation: play 8s linear infinite; }
@keyframes play { from { left: 4%; } to { left: 90%; } }

/* Sections */
.section { padding: 120px 0 0; }
.eyebrow { font-size: 14px; color: var(--accent-2); margin-bottom: 14px; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -0.035em; max-width: 720px; }
.sub { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 560px; }
h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
p { color: var(--muted); }

.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.step { padding: 32px 32px 0 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); font: 400 12px "JetBrains Mono", monospace; color: var(--muted); margin-bottom: 20px; }
.step p { margin-top: 8px; font-size: 15px; }

.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color .2s;
}
.card:hover { border-color: var(--line-2); }
.card.wide { grid-column: span 2; }
.card.full { grid-column: 1 / -1; }
.card p { margin-top: 8px; font-size: 15px; max-width: 460px; }
.hooks { margin-top: 22px; display: grid; gap: 8px; }
.hooks div { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #0b0c0d; border: 1px solid var(--line); font-size: 14px; color: #d0d2d6; }
.hooks b { font: 400 11px "JetBrains Mono", monospace; color: var(--accent-2); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: rgba(124,123,255,.12); flex: none; }
.wave { display: flex; align-items: center; gap: 4px; height: 48px; margin-top: 22px; }
.wave i { flex: 1; border-radius: 2px; background: var(--accent); opacity: .7; animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-delay: -.4s; }
.wave i:nth-child(3n) { animation-delay: -.8s; }
@keyframes wave { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.kara { margin-top: 22px; padding: 14px; border-radius: 10px; background: #0b0c0d; border: 1px solid var(--line); font-weight: 600; font-size: 18px; text-align: center; }
.kara em { font-style: normal; color: #ffd84d; }
.ratios { display: flex; align-items: flex-end; gap: 14px; margin-top: 22px; }
.ratios span { display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; font: 400 11px "JetBrains Mono", monospace; color: var(--muted); background: #0b0c0d; }
.r916 { width: 45px; height: 80px; }
.r169 { width: 128px; height: 72px; }
.r11 { width: 72px; height: 72px; }
.r45 { width: 64px; height: 80px; }

.trust { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.trust div { padding-top: 20px; border-top: 1px solid var(--line-2); }
.trust p { margin-top: 8px; font-size: 15px; }

.final { text-align: center; padding-bottom: 120px; }
.final h2, .final .sub { margin-left: auto; margin-right: auto; }
.final .btn { margin-top: 32px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--muted); }
.foot-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; margin-right: auto; }
.foot a:hover { color: var(--text); }

/* Legal pages */
.legal { max-width: 720px; padding: 96px 24px 120px; margin: 0 auto; }
.legal h1 { font-size: 40px; text-align: left; margin: 0 0 8px; }
.legal h2 { font-size: 20px; letter-spacing: -0.01em; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.legal ul { padding-left: 20px; }

/* Responsive */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding-top: 72px; }
  .mock { transform: none; margin-top: 56px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps, .trust { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .trust { gap: 28px; }
  .bento { grid-template-columns: 1fr; }
  .card.wide, .card.full { grid-column: auto; }
  .section { padding-top: 88px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .ratios { gap: 8px; }
  .r169 { width: 96px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.foot-link { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
