@font-face {
  font-family: "Manrope";
  src: url("assets/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #0a1012;
  --panel: #121a1d;
  --panel-2: #182226;
  --line: #243136;
  --text: #eaf1f1;
  --muted: #93a5a9;
  --lime: #c6f432;
  --lime-2: #e4ff8a;
  --teal: #5cc1cc;
  --deep: #1e5b66;
  --coral: #ff7b63;
  --r: 28px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  /* Soft colour fields that drift behind everything. */
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(40% 35% at 75% 15%, rgba(198, 244, 50, 0.10), transparent 70%),
    radial-gradient(45% 40% at 10% 40%, rgba(92, 193, 204, 0.10), transparent 70%),
    radial-gradient(35% 30% at 60% 90%, rgba(30, 91, 102, 0.18), transparent 70%);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-4%, 3%, 0) rotate(3deg); } }

a { color: inherit; }
img { max-width: 100%; display: block; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(10, 16, 18, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(36, 49, 54, 0.6);
}
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 800; letter-spacing: 0.5px; }
.nav nav { display: flex; gap: clamp(10px, 2.4vw, 28px); align-items: center; }
.nav nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: var(--text); }
.nav .pill { color: var(--ink) !important; background: var(--lime); padding: 8px 14px; border-radius: 999px; }

/* Hero */
.hero {
  min-height: calc(100vh - 64px);
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px;
  padding: 40px clamp(16px, 5vw, 72px) 60px;
  max-width: 1280px; margin: 0 auto;
}
.kicker { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); font-weight: 600; font-size: 14px; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
h1 { font-size: clamp(48px, 7.4vw, 104px); line-height: 0.95; letter-spacing: -0.04em; margin: 22px 0 22px; font-weight: 800; }
.grad { background: linear-gradient(100deg, var(--teal), var(--lime) 55%, var(--lime-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #c5d3d5; max-width: 34em; }
.lead em { color: var(--lime); font-style: normal; font-weight: 700; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.btn { text-decoration: none; font-weight: 800; padding: 14px 22px; border-radius: 16px; transition: transform 0.15s ease, box-shadow 0.2s ease; }
.btn.primary { background: var(--lime); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(198, 244, 50, 0.6); }
.btn.ghost { border: 1px solid var(--line); }
.btn:hover { transform: translateY(-2px); }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 18px; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; line-height: 1.15; font-size: 18px; }
.store small { font-size: 11px; font-weight: 600; opacity: .8; text-transform: uppercase; letter-spacing: .08em; }
.install-hint { color: var(--muted); font-size: 14px; margin: -8px 0 22px; }
.install-hint a { color: var(--text); }
.facts { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; padding: 0; margin: 0; color: var(--muted); font-size: 14px; }
.facts b { color: var(--text); font-size: 22px; margin-right: 4px; }

/* Hero mark, the same geometry as the app's logo (lib/core/brand.dart). */
.hero-art { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; }
.gauge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gauge path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.gauge .letter { stroke: var(--text); stroke-width: 40; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.gauge .rom circle { fill: url(#markg); opacity: 0; animation: show 0.4s forwards; }
@keyframes show { to { opacity: 0.85; } }
.gauge .leg { transform-box: view-box; transform-origin: 192px 192px; transform: rotate(0deg); animation: swing 1.3s 0.55s cubic-bezier(.34,1.56,.64,1) forwards, idle 5s 2.4s ease-in-out infinite; }
.gauge .leg line { stroke: url(#markg); stroke-width: 40; stroke-linecap: round; }
@keyframes swing { to { transform: rotate(-34deg); } }
@keyframes idle { 0%, 100% { transform: rotate(-34deg); } 50% { transform: rotate(-27deg); } }
.gauge .hub { fill: url(#markg); transform-box: view-box; transform-origin: 192px 192px; transform: scale(0); animation: pop 0.8s 0.5s cubic-bezier(.34,1.8,.64,1) forwards; }
.gauge .hubin { fill: var(--ink); transform-box: view-box; transform-origin: 192px 192px; transform: scale(0); animation: pop 0.8s 0.6s cubic-bezier(.34,1.8,.64,1) forwards; }
.gauge .hubglow { fill: var(--lime); opacity: 0; animation: flash 1.2s 1s ease-out forwards; }
@keyframes pop { to { transform: scale(1); } }
@keyframes flash { 30% { opacity: 0.55; } to { opacity: 0.12; } }
.rings { position: absolute; inset: 0; display: grid; place-items: center; }
.rings i { position: absolute; width: 30%; aspect-ratio: 1; top: 33%; left: 33%; border-radius: 50%; border: 2px solid rgba(92, 193, 204, 0.35); opacity: 0; animation: ripple 3.6s ease-out infinite; }
.rings i:nth-child(2) { animation-delay: 1.2s; border-color: rgba(198, 244, 50, 0.3); }
.rings i:nth-child(3) { animation-delay: 2.4s; }
@keyframes ripple { 0% { transform: scale(0.4); opacity: 0.8; } 100% { transform: scale(3.2); opacity: 0; } }
.burst { position: absolute; left: 48%; top: 48%; width: 0; height: 0; }
.burst span { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--lime); opacity: 0; animation: fly 1.3s 1.05s cubic-bezier(.15,.8,.3,1) forwards; }
.burst span:nth-child(3n) { background: var(--teal); }
@keyframes fly { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.4); } }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(18, 26, 29, 0.6); padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee > div { display: flex; gap: 42px; width: max-content; animation: slide 38s linear infinite; }
.marquee span { white-space: nowrap; color: var(--muted); font-weight: 700; }
.marquee span::before { content: "●"; color: var(--lime); margin-right: 14px; font-size: 10px; vertical-align: middle; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.section { max-width: 1180px; margin: 0 auto; padding: clamp(72px, 10vw, 128px) clamp(16px, 5vw, 48px) 0; }
.eyebrow { color: var(--lime); font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; margin: 0 0 12px; }
h2 { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 40px; max-width: 18em; }
h2 em { color: var(--lime); font-style: normal; }
.hl { background: var(--lime); color: var(--ink); padding: 0 10px; border-radius: 12px; }
h3 { font-size: 21px; margin: 0 0 8px; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }

.ai-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center; }
.chat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 14px; }
.bubble { padding: 14px 18px; border-radius: 20px; max-width: 88%; }
.bubble.user { justify-self: end; background: var(--panel-2); border: 1px solid var(--line); border-bottom-right-radius: 6px; }
.bubble.ai { background: linear-gradient(135deg, rgba(92,193,204,.14), rgba(198,244,50,.10)); border: 1px solid rgba(92,193,204,.25); border-bottom-left-radius: 6px; }
.tool { display: flex; gap: 8px; flex-wrap: wrap; }
.tool code { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(198,244,50,.1); color: var(--lime); border: 1px solid rgba(198,244,50,.25); }
.phone { justify-self: center; width: min(300px, 80vw); aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px; background: linear-gradient(160deg, #2b3a3f, #0e1517); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 0 0 2px #31444a; transform: rotate(4deg); }
.screen { height: 100%; border-radius: 34px; background: #eef4f4; color: #0f1b1d; padding: 18px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.ph-top { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 6px; }
.ph-card.brand { background: #dcedef; border-radius: 18px; padding: 12px; display: grid; gap: 2px; }
.ph-card small { color: #56686b; }
.ph-row { display: flex; justify-content: space-between; background: #fff; border-radius: 12px; padding: 10px 12px; }
.ph-btns { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-weight: 800; text-align: center; }
.ph-btns span { padding: 11px; border-radius: 14px; }
.ph-btns .no { border: 1.5px solid #1e5b66; color: #1e5b66; }
.ph-btns .yes { background: #1e5b66; color: #fff; animation: nudge 2.4s 2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(30,91,102,.5); } 50% { box-shadow: 0 0 0 10px rgba(30,91,102,0); } }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.mode { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; position: relative; overflow: hidden; }
.mode::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(198,244,50,.12), transparent 70%); }
.mode-icon { font-size: 28px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(92,193,204,.14); color: var(--teal); margin-bottom: 14px; }
.mode em { color: var(--lime); font-style: normal; }
.mode pre { background: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 14px; overflow-x: auto; font-size: 13px; color: #c5d3d5; }
.note { color: var(--muted); font-size: 14px; }
.deploy { display: inline-block; margin: 8px 0 12px; background: var(--text); color: var(--ink); text-decoration: none; font-weight: 800; padding: 12px 18px; border-radius: 12px; }
.deploy:hover { background: var(--lime); }

.flow { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; }
.flow li { position: relative; padding: 22px; border: 1px solid var(--line); background: var(--panel); display: grid; gap: 4px; }
.flow li:first-child { border-radius: var(--r) 0 0 var(--r); }
.flow li:last-child { border-radius: 0 var(--r) var(--r) 0; }
.flow li + li { border-left: none; }
.flow li::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; right: 20px; color: var(--lime); font-weight: 800; }
.flow span { color: var(--muted); font-size: 15px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 16px var(--lime); z-index: 1; animation: blink 1.6s infinite; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: transform .25s ease, border-color .25s ease; }
.tile:hover { transform: translateY(-4px); border-color: rgba(198,244,50,.35); }
.tile p { color: #b9c7c9; }
.tile.big { grid-row: span 3; display: flex; flex-direction: column; justify-content: flex-end; }
.tile.health { background: linear-gradient(160deg, rgba(255,123,99,.14), var(--panel) 55%); }
.swap { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; margin-bottom: 20px; background: #fff; }
.swap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.swap img:last-child { animation: xfade 2.4s ease-in-out infinite alternate; }
@keyframes xfade { 0%, 35% { opacity: 0; } 65%, 100% { opacity: 1; } }

.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.check { padding: 20px 22px 20px 58px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); position: relative; color: #b9c7c9; }
.check b { color: var(--text); }
.check::before { content: "✓"; position: absolute; left: 20px; top: 18px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 900; font-size: 14px; }

.download { padding-bottom: 96px; }
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl-card { text-decoration: none; padding: 26px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); display: grid; gap: 6px; transition: transform .2s ease, background .2s ease; }
.dl-card:first-child { background: linear-gradient(150deg, rgba(198,244,50,.18), var(--panel) 60%); border-color: rgba(198,244,50,.35); }
.dl-card:hover { transform: translateY(-4px); }
.dl-card .os { color: var(--lime); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.dl-card b { font-size: 24px; }
.dl-card small { color: var(--muted); }
.fine { color: var(--muted); font-size: 14px; margin-top: 22px; max-width: 52em; }

.foot { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; align-items: center; padding: 36px 16px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot span { display: inline-flex; gap: 8px; align-items: center; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--lime); }

/* Scroll reveal (added by main.js only when motion is allowed). */
.js-motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js-motion .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-art { order: -1; max-width: 340px; }
  .ai-grid, .modes, .bento, .checks, .dl { grid-template-columns: 1fr; }
  .tile.big { grid-row: auto; }
  .flow { grid-template-columns: 1fr; }
  .flow li, .flow li:first-child, .flow li:last-child { border-radius: 0; border-left: 1px solid var(--line); }
  .flow li + li { border-top: none; }
  .flow li:first-child { border-radius: var(--r) var(--r) 0 0; }
  .flow li:last-child { border-radius: 0 0 var(--r) var(--r); }
  .flow li:not(:last-child)::after { right: 50%; top: auto; bottom: -7px; }
  .phone { transform: none; }
  .nav nav a:not(.pill) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .gauge .letter { stroke-dashoffset: 0; }
  .gauge .rom circle { opacity: 0.85; }
  .gauge .leg { transform: rotate(-34deg); }
  .gauge .hub, .gauge .hubin { transform: none; }
  .gauge .hubglow { opacity: 0.12; }
  .swap img:last-child { opacity: 0; }
}

/* Privacy policy (privacy.html): plain reading text. */
.policy { max-width: 760px; padding-bottom: 64px; }
.policy h3 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 8px; }
.policy p, .policy li { color: var(--text); }
.policy ul { padding-left: 1.2em; }
.policy li { margin: 6px 0; }
.policy a { color: var(--lime); }
