:root {
  --bg: #04060b;
  --bg2: #080c16;
  --line: rgba(120, 160, 255, 0.14);
  --text: #e8edf7;
  --muted: #94a0b8;
  --blue: #1e6bff;
  --blue2: #3d8bff;
  --yellow: #ffd21f;
  --cyan: #59e0ff;
  --radius: 14px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.grad { background: linear-gradient(90deg, var(--blue2), #7fb4ff 35%, var(--yellow) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font: 600 12px/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--yellow); margin: 0 0 18px; }
.prose { color: var(--muted); font-size: 17px; }
.prose p { margin: 0 0 16px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; background: linear-gradient(180deg, rgba(4,6,11,0.85), rgba(4,6,11,0)); backdrop-filter: blur(2px); }
.nav-logo img { width: 150px; height: auto; filter: drop-shadow(0 0 14px rgba(30,107,255,0.35)); }
.nav nav { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.nav nav a { text-decoration: none; color: #c9d3e6; transition: color .2s; }
.nav nav a:hover { color: #fff; }
.nav-cta { padding: 8px 16px; border: 1px solid rgba(255,210,31,0.5); border-radius: 999px; color: var(--yellow) !important; }
.nav-cta:hover { background: rgba(255,210,31,0.1); }

/* hero */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; display: flex; align-items: flex-end; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,6,11,0.88) 0%, rgba(4,6,11,0.55) 38%, rgba(4,6,11,0.05) 70%),
              linear-gradient(0deg, var(--bg) 0%, rgba(4,6,11,0) 35%); }
.hero-scan { position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px); }
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 0 0 13vh 6vw; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase;
  color: #cfe0ff; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8,12,22,0.55); margin: 0 0 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b4f; box-shadow: 0 0 10px #ff3b4f; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.hero h1 { font-size: clamp(36px, 5.2vw, 68px); font-weight: 750; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: #c3cde0; max-width: 600px; margin: 24px 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-caption { position: absolute; right: 24px; bottom: 18px; z-index: 2; margin: 0; font: 11px/1.4 var(--mono); color: rgba(200,210,230,0.55); max-width: 420px; text-align: right; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 10px; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(90deg, var(--blue), #2f7dff 50%, #4a90ff); color: #fff; box-shadow: 0 8px 30px rgba(30,107,255,0.35); }
.btn-primary:hover { box-shadow: 0 10px 38px rgba(30,107,255,0.55); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.22); color: #fff; background: rgba(8,12,22,0.4); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.stat { padding: 34px 32px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(30px, 3vw, 42px); font-weight: 750; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff, #9fc0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* sections */
section.mission, section.system, section.flow, section.demo, section.contact { padding: 120px 0; }
.two { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 720; }
.system { background: radial-gradient(1000px 500px at 80% 0%, rgba(30,107,255,0.10), transparent 60%), var(--bg); }
.system h2 { margin-bottom: 52px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20,30,55,0.55), rgba(8,12,22,0.6)); transition: border-color .25s, transform .25s; }
.card:hover { border-color: rgba(255,210,31,0.4); transform: translateY(-3px); }
.card h3 { font-size: 21px; margin: 22px 0 12px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.card-ico svg { width: 46px; height: 46px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(89,224,255,0.5)); }
.card-ico circle { fill: rgba(89,224,255,0.15); }

.flow { border-top: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: linear-gradient(90deg, var(--blue), var(--yellow)); opacity: 0.6; }
.steps li { position: relative; padding: 0 24px 0 0; }
.steps span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 1px solid var(--blue2);
  font: 600 13px var(--mono); color: var(--yellow); position: relative; }
.steps h4 { font-size: 20px; margin: 22px 0 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.demo { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo .two { align-items: center; }
.demo .prose { margin: 20px 0 30px; }
.demo-frame { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(30,107,255,0.15); }
.demo-frame img { width: 100%; height: auto; transition: transform .6s; }
.demo-frame:hover img { transform: scale(1.03); }
.play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: rgba(4,6,11,0.6);
  border: 1px solid rgba(255,255,255,0.4); backdrop-filter: blur(4px); }
.play::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }

.contact { text-align: center; background: radial-gradient(700px 360px at 50% 30%, rgba(255,210,31,0.07), transparent 70%); }
.contact-emblem { margin: 0 auto 26px; filter: drop-shadow(0 0 24px rgba(30,107,255,0.45)); }
.contact h2 { max-width: 760px; margin: 0 auto; }
.contact .prose { margin: 18px auto 32px; max-width: 560px; }

.foot { border-top: 1px solid var(--line); padding: 30px 0; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.foot img { width: 110px; opacity: 0.85; }
.foot p { margin: 0; color: #6c7890; font-size: 13px; }

@media (max-width: 900px) {
  .nav { padding: 12px 18px; }
  .nav nav a:not(.nav-cta) { display: none; }
  .nav-logo img { width: 120px; }
  .hero-content { padding: 0 22px 16vh; }
  .hero-shade { background: linear-gradient(0deg, rgba(4,6,11,0.95) 10%, rgba(4,6,11,0.35) 60%, rgba(4,6,11,0.2)); }
  .eyebrow { letter-spacing: 0.08em; font-size: 10.5px; }
  .hero-caption { left: 22px; right: 22px; text-align: left; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .two, .cards { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  section.mission, section.system, section.flow, section.demo, section.contact { padding: 80px 0; }
  .foot-row { flex-direction: column; text-align: center; }
}
/* phone held upright: the 9:16 reel keeps its subject in the upper third, the text sits low over a fade */
@media (max-width: 900px) and (orientation: portrait) {
  .hero { height: 100vh; height: 100svh; min-height: 560px; }
  .hero-shade { background: linear-gradient(0deg, rgba(4,6,11,0.97) 0%, rgba(4,6,11,0.88) 30%, rgba(4,6,11,0.35) 50%, rgba(4,6,11,0) 62%),
                            linear-gradient(180deg, rgba(4,6,11,0.55) 0%, rgba(4,6,11,0) 14%); }
  .hero-content { padding: 0 20px calc(74px + env(safe-area-inset-bottom)); }
  .eyebrow { margin-bottom: 14px; padding: 7px 11px; font-size: 9.5px; }
  .hero h1 { font-size: clamp(27px, 7.4vw, 36px); }
  .lead { font-size: 15px; line-height: 1.5; margin: 12px 0 18px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 12px 18px; font-size: 14px; }
  .hero-caption { bottom: calc(14px + env(safe-area-inset-bottom)); font-size: 9.5px; max-width: none; }
}
/* phone on its side: the hero is exactly one screen, compact text on the left, the reel fills the rest */
@media (max-height: 500px) and (orientation: landscape) {
  .nav { padding: 8px max(18px, env(safe-area-inset-left)); }
  .nav-logo img { width: 104px; }
  .hero { height: 100vh; height: 100svh; min-height: 0; align-items: flex-end; }
  .hero-shade { background: linear-gradient(90deg, rgba(4,6,11,0.9) 0%, rgba(4,6,11,0.6) 34%, rgba(4,6,11,0) 58%),
                            linear-gradient(0deg, rgba(4,6,11,0.6) 0%, rgba(4,6,11,0) 30%); }
  .hero-content { max-width: 48%; padding: 0 0 calc(22px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); }
  .eyebrow { display: none; }
  .hero h1 { font-size: clamp(20px, 3.6vw, 28px); }
  .lead { display: none; }
  .hero-actions { margin-top: 14px; gap: 8px; }
  .hero-actions .btn { padding: 9px 14px; font-size: 13px; }
  .hero-caption { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } html { scroll-behavior: auto; } }
