/* EdgeOS website. Light: white page, grey framed panels, deep navy type, one signal red. Dark: deep navy. */
:root {
  --page: #ffffff;
  --panel: #f0f0f2;
  --panel-2: #e6e7ee;
  --ink: #030b3a;
  --ink-2: #464b6e;
  --muted: #858aa5;
  --line: #d5d6de;
  --signal: #f43325;
  --signal-ink: #ffffff;
  --deep: #030b3a;
  --deep-2: #0a1452;
  --deep-ink: #eef0fa;
  --deep-muted: #9097c2;
  --deep-line: rgba(238, 240, 250, 0.14);
  --radius: 18px;
  --gutter: clamp(16px, 2vw, 28px);
  --pad: clamp(24px, 6vw, 96px);
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #01030f; --panel: #060b2a; --panel-2: #0b1240; --ink: #eef0fa; --ink-2: #b3b8da; --muted: #7d84b0;
    --line: #1b2256; --deep: #050a2e; --deep-2: #0c1758; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #01030f; --panel: #060b2a; --panel-2: #0b1240; --ink: #eef0fa; --ink-2: #b3b8da; --muted: #7d84b0;
  --line: #1b2256; --deep: #050a2e; --deep-2: #0c1758; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
::selection { background: var(--signal); color: #fff; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--deep); color: var(--deep-ink);
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--pad);
  transition: transform 0.9s var(--ease) 0.1s;
}
.loader-count { font: 800 clamp(72px, 16vw, 220px)/0.85 var(--sans); letter-spacing: -0.04em; }
.loader-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--deep-muted); margin-top: 16px; }
.is-loaded .loader { transform: translateY(-101%); }
.no-motion .loader { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: calc(var(--gutter) + 18px) calc(var(--gutter) + 28px) 18px; transition: transform 0.5s var(--ease), background 0.3s, padding 0.4s var(--ease);
}
.nav.scrolled { padding-top: 14px; padding-bottom: 14px; background: color-mix(in srgb, var(--page) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; margin-left: 32px; font-size: 14px; color: var(--ink-2); }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1.5px; background: var(--signal); transition: right 0.35s var(--ease); }
.nav-links a:hover::after { right: 0; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.theme { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--ink-2); cursor: pointer; font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 8px; }
.theme-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; transition: background 0.3s; }
:root[data-theme="dark"] .theme-dot { background: var(--signal); border-color: var(--signal); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 30px;
  font: 500 14px var(--mono); letter-spacing: 0.04em; border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn span { transition: transform 0.35s var(--ease); }
.btn:hover span { transform: translateX(5px); }
.btn-signal { background: var(--signal); color: var(--signal-ink); }
.btn-signal:hover { background: #d9271a; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { padding: 11px 18px; font-size: 12px; }

/* ---------- framed panels ---------- */
.frame { margin: 0 var(--gutter); border-radius: var(--radius); background: var(--panel); position: relative; overflow: hidden; }
.frame-dark { background: var(--deep); color: var(--deep-ink); }
.frame-dark .kicker { color: var(--deep-muted); }
.glow {
  position: absolute; inset: -30%; pointer-events: none; opacity: 0.9;
  background:
    radial-gradient(40% 35% at var(--gx, 70%) var(--gy, 30%), rgba(64, 104, 255, 0.35), transparent 70%),
    radial-gradient(30% 30% at 20% 80%, rgba(244, 51, 37, 0.18), transparent 70%);
  transition: background 0.2s linear;
  animation: drift 18s ease-in-out infinite alternate;
}
.glow-2 { animation-duration: 24s; }
@keyframes drift { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }

.kicker { color: var(--muted); margin-bottom: 22px; }
.display { font: 700 clamp(42px, 6.4vw, 96px)/0.98 var(--sans); letter-spacing: -0.035em; max-width: 11ch; }
.display-2 { font: 700 clamp(40px, 6vw, 88px)/1 var(--sans); letter-spacing: -0.035em; }
.h2 { font: 700 clamp(32px, 4.6vw, 64px)/1.04 var(--sans); letter-spacing: -0.03em; max-width: 18ch; }
.lede { font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); max-width: 46ch; }
.frame-dark .lede { color: var(--deep-muted); }

/* ---------- hero ---------- */
.hero {
  min-height: calc(100svh - var(--gutter)); margin-top: var(--gutter); padding: 120px var(--pad) var(--pad);
  display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(48px, 9vh, 120px);
}
.fleet { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--panel) 18%, color-mix(in srgb, var(--panel) 40%, transparent) 55%, transparent 80%);
}
.fleet-hud {
  position: absolute; top: 108px; right: var(--pad); text-align: right; display: grid; gap: 6px; color: var(--ink-2);
  font-size: 11px; z-index: 2;
}
.fleet-hud div:first-child { color: var(--ink); display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.hud-dot { width: 7px; height: 7px; background: var(--signal); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.side-label {
  position: absolute; left: calc(var(--pad) - 40px); bottom: var(--pad); writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; justify-content: space-between; gap: 40px; font-size: 10.5px; color: var(--muted);
  border-left: 1.5px solid var(--ink); padding-left: 10px; height: min(52vh, 420px); z-index: 2;
}
.hero-copy, .hero-foot { position: relative; z-index: 2; }
.tag { margin-top: 28px; display: flex; align-items: baseline; gap: 12px; color: var(--ink-2); line-height: 1.7; }
.tag .square { flex: none; transform: translateY(-1px); }
.tag em { font-style: normal; color: var(--signal); }
.square { width: 9px; height: 9px; background: var(--signal); }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 30px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { padding: 0 28px; white-space: nowrap; display: flex; align-items: center; gap: 28px; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; background: var(--signal); transform: rotate(45deg); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- statement ---------- */
.statement { padding: clamp(96px, 16vw, 220px) var(--pad); max-width: 1500px; }
.big { font: 600 clamp(28px, 4vw, 58px)/1.18 var(--sans); letter-spacing: -0.025em; }
.big .w > span { opacity: 0.16; transition: transform 1s var(--ease), opacity 0.35s linear; transition-delay: calc(var(--i) * 28ms), 0s; }
.big .w.lit > span, .no-motion .big .w > span { opacity: 1; }

/* ---------- how ---------- */
.how { padding: 0 var(--pad) clamp(96px, 12vw, 180px); }
.how-head { margin-bottom: clamp(48px, 7vw, 96px); }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 40px 0 72px; border-top: 1px solid var(--line); opacity: 0.35; transition: opacity 0.5s var(--ease); min-height: 46vh; }
.step.active { opacity: 1; }
.step-n { color: var(--signal); display: block; margin-bottom: 18px; }
.step h3 { font: 700 clamp(22px, 2.2vw, 30px)/1.2 var(--sans); letter-spacing: -0.02em; margin-bottom: 14px; }
.step p { color: var(--ink-2); max-width: 46ch; }
.console-wrap { position: sticky; top: 18vh; }
.console { background: var(--deep); color: var(--deep-ink); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(3, 11, 58, 0.45); }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--deep-line); color: var(--deep-muted); font-size: 11px; }
.console-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--deep-line); }
.console-bar em { font-style: normal; margin-left: 10px; }
.console pre { margin: 0; padding: 26px 24px 30px; min-height: 340px; font-size: 13px; line-height: 1.75; text-transform: none; letter-spacing: 0; white-space: pre-wrap; word-break: break-word; }
.console .c-prompt { color: var(--signal); }
.console .c-dim { color: var(--deep-muted); }
.console .c-ok { color: #6ee7a8; }
.console .c-bad { color: #ff8a80; }
.console .cursor { display: inline-block; width: 8px; height: 15px; background: var(--deep-ink); vertical-align: -2px; animation: blink 1s steps(2) infinite; }

/* ---------- product ---------- */
.product { padding: clamp(80px, 10vw, 140px) var(--pad); }
.product-head { position: relative; margin-bottom: clamp(48px, 6vw, 80px); }
.cards { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--deep-line); border: 1px solid var(--deep-line); }
.card { background: var(--deep); padding: 34px 30px 40px; min-height: 260px; display: flex; flex-direction: column; transition: background 0.4s var(--ease); }
.card:hover { background: var(--deep-2); }
.card .code { color: var(--signal); margin-bottom: auto; padding-bottom: 48px; }
.card h3 { font: 700 22px/1.25 var(--sans); letter-spacing: -0.015em; margin-bottom: 10px; }
.card p { color: var(--deep-muted); font-size: 15px; }

/* ---------- proof ---------- */
.proof { padding: clamp(96px, 12vw, 180px) var(--pad); }
.proof-head { margin-bottom: clamp(48px, 6vw, 80px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-n { font: 700 clamp(40px, 5vw, 76px)/1 var(--sans); letter-spacing: -0.04em; display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.stat-n small { font: 500 13px var(--mono); letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.stat p { color: var(--ink-2); font-size: 15px; max-width: 26ch; }
.footnote { margin-top: 48px; color: var(--muted); }

/* ---------- hardware ---------- */
.hardware { padding: clamp(80px, 10vw, 140px) var(--pad); }
.hw-head { margin-bottom: clamp(40px, 5vw, 72px); }
.hw-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hw { background: var(--page); border-radius: 12px; padding: 26px 24px 30px; min-height: 200px; display: flex; flex-direction: column; transition: transform 0.5s var(--ease); }
.hw:hover { transform: translateY(-4px); }
.hw h3 { font: 700 21px/1.25 var(--sans); margin: auto 0 8px; letter-spacing: -0.015em; }
.hw p { color: var(--muted); font-size: 11px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.ok::before { background: #18b26b; }
.status.next::before { background: var(--signal); }

/* ---------- roadmap ---------- */
.roadmap { padding: clamp(96px, 12vw, 180px) var(--pad); }
.rm-head { margin-bottom: clamp(48px, 6vw, 80px); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 40px; }
.tl-line { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.tl-fill { height: 100%; width: 0; background: var(--signal); transition: width 1.6s var(--ease); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; top: -46px; left: 0; width: 12px; height: 12px; border: 2px solid var(--muted); background: var(--page); border-radius: 50%; }
.tl-item.done::before { border-color: var(--signal); background: var(--signal); }
.tl-item span { color: var(--signal); }
.tl-item h3 { font: 700 21px/1.25 var(--sans); margin: 12px 0 8px; letter-spacing: -0.015em; }
.tl-item p { color: var(--ink-2); font-size: 15px; }

/* ---------- contact ---------- */
.contact { padding: clamp(80px, 10vw, 140px) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); margin-bottom: var(--gutter); }
.contact-copy { position: relative; }
.contact-copy .lede { margin-top: 28px; }
.form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-self: end; }
.form label { display: grid; gap: 8px; }
.form label span { color: var(--deep-muted); font-size: 11px; }
.form .wide { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font: 400 16px var(--sans); color: var(--deep-ink); background: rgba(238, 240, 250, 0.05);
  border: 1px solid var(--deep-line); border-radius: 0; padding: 14px 14px; width: 100%;
  transition: border-color 0.25s, background 0.25s;
}
.form select option { color: #030b3a; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--signal); background: rgba(238, 240, 250, 0.08); }
.form-note { color: var(--deep-muted); min-height: 1em; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.footer { display: flex; gap: 32px; flex-wrap: wrap; padding: 22px calc(var(--gutter) + 20px) 30px; color: var(--muted); font-size: 11px; }
.footer a { margin-left: auto; }
.footer a:hover { color: var(--signal); }

/* ---------- reveal animations ---------- */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 28ms); }
[data-split].in .w > span { transform: none; }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal], .no-motion [data-reveal] { opacity: 1; transform: none; }
.no-motion [data-split] .w > span { transform: none; transition: none; }
.no-motion .marquee-track, .no-motion .glow { animation: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .stats, .hw-list, .timeline { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { margin-top: 32px; }
  .timeline { row-gap: 72px; }
  .tl-line { display: none; }
  .how-grid, .contact { grid-template-columns: 1fr; }
  .console-wrap { display: none; }
  .step { opacity: 1; min-height: 0; padding-bottom: 40px; }
}
@media (max-width: 640px) {
  .nav { padding: 28px 30px 12px; gap: 12px; }
  .nav.scrolled { padding: 12px 22px; }
  .nav .btn { width: auto; }
  .theme [data-theme-label] { display: none; }
  .hero { padding-top: 330px; }
  .hero::before { background: linear-gradient(0deg, var(--panel) 62%, transparent 74%); }
  .side-label { display: none; }
  .fleet-hud { top: 92px; right: 22px; font-size: 10px; }
  .cards, .stats, .hw-list, .timeline, .form { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; padding-left: 0; margin-top: 32px; }
  .btn { width: 100%; }
  .hero-cta { width: 100%; }
  .footer a { margin-left: 0; }
}

/* Netlify's free plan adds a "Powered by Netlify" badge (an iframe, #nl-badge-frame) to every page. */
#nl-badge-frame { display: none !important; }
