:root {
  --bg: #06101f;
  --bg2: #0a1830;
  --card: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.1);
  --text: #e8eefc;
  --muted: #9fb0cf;
  --blue: #4ea8ff;
  --orange: #ff9a3c;
  --teal: #5eead4;
  --red: #f87171;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, 92%); margin: 0 auto; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 4%;
  background: linear-gradient(180deg, rgba(6,16,31,.85), rgba(6,16,31,0));
  backdrop-filter: blur(6px);
}
.nav nav { display: flex; gap: 22px; align-items: center; font-size: 15px; color: var(--muted); }
.nav nav a:hover { color: #fff; }
.brand { font-weight: 800; letter-spacing: .3px; font-size: 20px; }
.bolt { color: var(--blue); }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700;
  background: linear-gradient(135deg, var(--blue), #7c5cff); color: #fff;
  box-shadow: 0 8px 30px rgba(78,168,255,.35); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(78,168,255,.5); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; }
.btn.small { padding: 8px 18px; font-size: 14px; color: #fff; }
.btn.play .zap { display: inline-block; margin-right: 4px; color: #ffe066; filter: drop-shadow(0 0 6px rgba(255,224,102,.9)); animation: zap 2.6s ease-in-out infinite; }
@keyframes zap { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.3) rotate(-8deg); } 90% { transform: scale(1.1); } }

/* Hero */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 20% 40%, rgba(6,16,31,.75), transparent 60%),
              linear-gradient(180deg, rgba(6,16,31,.2), rgba(6,16,31,0) 40%, rgba(6,16,31,.95));
}
.hero-text {
  position: absolute; left: 6%; top: 50%; transform: translateY(-55%); max-width: 640px; z-index: 2;
  padding: 30px 34px; border-radius: 26px;
  background: linear-gradient(135deg, rgba(6,16,31,.72), rgba(6,16,31,.45));
  border: 1px solid rgba(120,170,255,.22); box-shadow: 0 20px 60px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-text h1, .hero-text .lead { text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.tagline {
  margin: 0 0 14px; padding: 12px 16px; font-size: clamp(17px, 2.1vw, 22px); line-height: 1.35; color: #fff;
  border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0; background: rgba(62,201,167,.14);
}
.tagline b { color: var(--teal); }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 13px; color: var(--teal); font-weight: 700; margin: 0 0 12px; }
h1 { font-size: clamp(42px, 7vw, 84px); line-height: 1.02; margin: 0 0 18px; letter-spacing: -1.5px; }
.grad { background: linear-gradient(90deg, var(--orange), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 21px); color: #c9d6f1; max-width: 520px; }
.cta { display: flex; gap: 14px; margin: 26px 0 20px; flex-wrap: wrap; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(255,255,255,.04); }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 13px; z-index: 2; animation: bob 2s infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* Sections */
.section { padding: 110px 0; }
.section.alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); }
h2 { font-size: clamp(30px, 4.5vw, 48px); margin: 0 0 14px; letter-spacing: -.8px; line-height: 1.1; }
.sub { color: var(--muted); max-width: 680px; font-size: 18px; margin: 0 0 40px; }
.grid { display: grid; gap: 22px; }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; backdrop-filter: blur(6px); transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(78,168,255,.5); }
.card h3 { margin: 8px 0 8px; font-size: 20px; }
.card p { margin: 0 0 10px; color: var(--muted); }
.ico { font-size: 30px; }
.event { position: relative; }
.tag { position: absolute; top: 18px; right: 18px; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(94,234,212,.15); color: var(--teal); font-weight: 700; }
.tag.warn { background: rgba(250,204,21,.15); color: #facc15; }
.tag.bad { background: rgba(248,113,113,.15); color: var(--red); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.list, .checks { padding-left: 0; list-style: none; color: var(--muted); }
.list li, .checks li { padding: 8px 0 8px 30px; position: relative; }
.list li::before, .checks li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.status { list-style: none; padding: 0; margin: 0; }
.status li { padding: 8px 0 8px 32px; position: relative; color: var(--muted); }
.status li::before { position: absolute; left: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.status .done::before { content: "✓"; background: rgba(94,234,212,.2); color: var(--teal); }
.status .todo::before { content: "…"; background: rgba(255,255,255,.08); color: var(--muted); }

/* Demo */
.demo { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.demo-head { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.tA { color: var(--blue); } .tB { color: var(--orange); }
.tug { position: relative; height: 54px; border-radius: 12px; overflow: hidden; display: flex; background: #0c1b34; border: 1px solid var(--line); }
.zone.danger { flex: 2; background: repeating-linear-gradient(45deg, rgba(248,113,113,.35), rgba(248,113,113,.35) 8px, rgba(248,113,113,.2) 8px, rgba(248,113,113,.2) 16px); }
.zone.safe { flex: 6; background: linear-gradient(90deg, rgba(94,234,212,.25), rgba(94,234,212,.4), rgba(94,234,212,.25)); }
.limit { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; opacity: .9; }
.limit.l { left: 20%; } .limit.r { right: 20%; }
.marker { position: absolute; top: 6px; bottom: 6px; left: 50%; width: 14px; margin-left: -7px; border-radius: 7px; background: #fff; box-shadow: 0 0 16px #fff; transition: background .2s; }
.demo-msg { min-height: 52px; margin: 14px 0; color: #cfe0ff; font-size: 15px; }
.meters { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 13px; color: var(--muted); }
progress { width: 100%; height: 10px; margin-top: 4px; appearance: none; border: 0; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.1); }
progress::-webkit-progress-bar { background: rgba(255,255,255,.1); }
progress::-webkit-progress-value { background: linear-gradient(90deg, #facc15, var(--red)); }
progress::-moz-progress-bar { background: linear-gradient(90deg, #facc15, var(--red)); }
progress.st::-webkit-progress-value { background: linear-gradient(90deg, var(--teal), var(--blue)); }
progress.st::-moz-progress-bar { background: linear-gradient(90deg, var(--teal), var(--blue)); }
.score { display: flex; justify-content: space-between; margin: 14px 0; font-size: 14px; color: var(--muted); }
.score b { color: #fff; font-size: 18px; }
.push {
  width: 100%; padding: 22px; border-radius: 16px; border: 0; cursor: pointer; font-size: 20px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--blue), #7c5cff); touch-action: none; user-select: none; -webkit-user-select: none;
  box-shadow: 0 10px 30px rgba(78,168,255,.35);
}
.push small { display: block; font-weight: 500; opacity: .75; font-size: 12px; }
.push.down { transform: scale(.98); filter: brightness(1.2); }
.push:disabled { background: #3b2330; cursor: not-allowed; }

/* Learn teaser and roadmap tags */
.journey { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 10px; }
.journey li { counter-increment: step; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-weight: 600; }
.journey li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(78,168,255,.18); color: var(--blue); font-size: 14px; }
.status .tg { display: inline-block; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; padding: 1px 8px; margin-right: 6px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text); }

.footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 860px) {
  .two { grid-template-columns: 1fr; }
  .nav nav a:not(.btn) { display: none; }
  .hero-text { top: 46%; left: 4%; right: 4%; max-width: none; padding: 22px 20px; }
  .hero-text h1 { font-size: clamp(34px, 9vw, 52px); }
  .hero-text .lead { font-size: 15px; }
  .tagline { font-size: 16px; padding: 10px 12px; }
  .chips { display: none; }
}
@media (max-height: 720px) and (min-width: 861px) {
  .hero-text { padding: 20px 28px; }
  .hero-text h1 { font-size: clamp(36px, 5.5vw, 60px); margin-bottom: 12px; }
  .hero-text .cta { margin: 16px 0 12px; }
  .chips { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint { animation: none; }
  .btn.play .zap { animation: none; }
}
