/* navilio.app: the home of the navilio family of products */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Michroma";
  src: url("/fonts/michroma.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --abyss: #050a18;
  --deep: #0a1530;
  --ink: #0d2148;
  --paper: #edf1f7;
  --signal: #2f6bff;
  --signal-hover: #4a7dff;
  --ice: #38c7ff;
  --mist: #93a4c4;
  --slate: #4b5b7a;
  --line-dark: rgba(147, 164, 196, 0.18);
  --line-light: rgba(13, 33, 72, 0.13);
  --up: #22c07a;
  --down: #f0485a;
  --display: "Michroma", "Arial Black", sans-serif;
  --text: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 68px;
  --gutter: clamp(20px, 5vw, 64px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--abyss);
  color: #fff;
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }

.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 14px; border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; }
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 560 15px/1 var(--text);
  font-stretch: 110%;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--signal-hover); }
.btn-primary:disabled { background: #2a3d6e; color: #a9b8d6; cursor: default; }
.btn-ghost { color: #fff; border-color: rgba(147, 164, 196, 0.34); }
.btn-ghost:hover { border-color: rgba(147, 164, 196, 0.62); background: rgba(147, 164, 196, 0.06); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 9px; }

/* ------------------------------------------------------------------ brand */
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; border-radius: 6px; }
.mark {
  width: 30px;
  height: 30px;
  flex: none;
  background: #fff;
  -webkit-mask: url("/brand/mark.svg") center / contain no-repeat;
  mask: url("/brand/mark.svg") center / contain no-repeat;
}
.wordmark { display: block; height: 16px; width: auto; aspect-ratio: 7835 / 1558; overflow: visible; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.nav.solid {
  background: rgba(5, 10, 24, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-dark);
}
.nav-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--mist);
  font: 500 14.5px/1 var(--text);
  font-stretch: 108%;
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: #fff; }
.nav-cta { margin-left: auto; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; background: var(--abyss); padding-top: var(--nav-h); overflow: hidden; }
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  padding-top: clamp(56px, 11vh, 136px);
  padding-bottom: clamp(24px, 4vh, 44px);
}
.hero h1 {
  max-width: 11.5em;
  font: 400 clamp(34px, 5.3vw, 70px)/1.08 var(--display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lede { max-width: 33em; margin-top: 28px; color: var(--mist); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.readout { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.coins { display: flex; flex-wrap: wrap; gap: 4px; margin-left: -10px; }
.coins button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--mist);
  font: 560 13px/1 var(--text);
  font-stretch: 112%;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.coins button:hover { color: #fff; }
.coins button[aria-pressed="true"] { color: #fff; background: rgba(47, 107, 255, 0.16); border-color: rgba(47, 107, 255, 0.4); }
.px {
  margin-top: 22px;
  font: 500 clamp(34px, 3.4vw, 46px)/1 var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  transition: color 0.7s ease;
}
.px.up { color: var(--up); transition: none; }
.px.down { color: var(--down); transition: none; }
.px-sub { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; color: var(--mist); font-size: 14px; font-variant-numeric: tabular-nums; }
.px-sub .chg-up { color: var(--up); }
.px-sub .chg-down { color: var(--down); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 14px 26px; margin-top: 24px; }
.stats dt { display: flex; align-items: center; gap: 8px; color: var(--mist); font-size: 13px; }
.stats dd { margin-top: 3px; font-size: 16px; font-variant-numeric: tabular-nums; }
.sw { display: inline-block; width: 12px; height: 2px; border-radius: 1px; }
.sw-bid { background: var(--signal); }
.sw-ask { background: var(--ice); }
.feed { display: flex; align-items: center; gap: 9px; margin-top: 24px; color: var(--mist); font-size: 13px; }
.dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #3a4867; }
.feed[data-feed="live"] .dot { background: var(--ice); box-shadow: 0 0 0 0 rgba(56, 199, 255, 0.5); animation: beat 2s ease-out infinite; }
@keyframes beat {
  0% { box-shadow: 0 0 0 0 rgba(56, 199, 255, 0.45); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(56, 199, 255, 0); }
}

.depth { position: relative; }
.depth-stage { position: relative; height: clamp(250px, 44vh, 500px); }
.depth-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.depth-cap { padding-top: 14px; padding-bottom: 28px; color: #6f7f9f; font-size: 13px; }

/* one orchestrated entrance, on load only */
.enter { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
.hero .lede.enter { animation-delay: 0.08s; }
.hero .actions.enter { animation-delay: 0.16s; }
.hero .readout.enter { animation-delay: 0.3s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ shared section type */
h2 { font: 400 clamp(30px, 3.4vw, 46px)/1.1 var(--display); letter-spacing: -0.025em; }
h3 { font: 400 clamp(23px, 2.2vw, 30px)/1.15 var(--display); letter-spacing: -0.02em; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 11px 6px 9px;
  border-radius: 999px;
  font: 560 13px/1 var(--text);
  font-stretch: 110%;
}
.status i { width: 7px; height: 7px; border-radius: 50%; }
.status-live { background: rgba(47, 107, 255, 0.1); color: var(--ink); }
.status-live i { background: var(--signal); }
.status-lab { background: rgba(56, 199, 255, 0.08); color: var(--ice); }
.status-early { background: rgba(56, 199, 255, 0.16); color: var(--ink); }
.status-early i { border: 1.5px solid #1597cc; }
.status-lab i { border: 1.5px solid var(--ice); }

/* ------------------------------------------------------------------ terminal chapter */
.chapter { background: var(--paper); color: var(--ink); padding-block: clamp(80px, 11vw, 156px); overflow-x: clip; }
.chapter-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px 64px; align-items: start; }
.chapter-lede { max-width: 34em; margin-bottom: 28px; color: var(--slate); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; text-wrap: pretty; }

.shot { position: relative; margin-top: clamp(48px, 6vw, 88px); }
.frame {
  overflow: hidden;
  border-radius: 14px;
  background: #0b0f18;
  box-shadow: 0 0 0 1px rgba(13, 33, 72, 0.16), 0 60px 120px -60px rgba(13, 33, 72, 0.55), 0 24px 48px -32px rgba(13, 33, 72, 0.4);
}
.frame-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #0f1422;
  color: #8a96ae;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.frame img { display: block; width: 100%; height: auto; }
.phone {
  position: absolute;
  right: -1.5%;
  bottom: -9%;
  width: 21%;
  padding: 7px;
  border-radius: 34px;
  background: #04060b;
  box-shadow: 0 0 0 1px rgba(13, 33, 72, 0.25), 0 50px 90px -40px rgba(13, 33, 72, 0.7);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 27px; }
.shot figcaption { margin-top: 16px; color: var(--slate); font-size: 13px; }
.chapter-alt { background: #fff; border-top: 1px solid var(--line-light); }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
  margin-top: clamp(64px, 8vw, 112px);
}
.feature { padding-top: 20px; border-top: 1px solid var(--line-light); }
.feature dt { font-weight: 620; font-size: 17px; }
.feature dd { margin-top: 8px; color: var(--slate); font-size: 16px; line-height: 1.5; }

/* ------------------------------------------------------------------ labs */
.labs { background: var(--abyss); padding-block: clamp(80px, 11vw, 156px) clamp(56px, 7vw, 96px); }
.labs-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px 64px; align-items: start; }
.labs-head p { max-width: 33em; color: var(--mist); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; }
.labs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-dark); }
.lab { display: flex; flex-direction: column; padding: 48px 48px 8px 0; }
.lab + .lab { padding: 48px 0 8px 48px; border-left: 1px solid var(--line-dark); }
.lab .status { align-self: flex-start; }
.lab-desc { max-width: 31em; margin-top: 20px; color: var(--mist); }

.concept { margin-top: 32px; padding: 22px; border: 1px solid var(--line-dark); border-radius: 14px; background: var(--deep); }
.concept figcaption { margin-top: 18px; color: #6f7f9f; font-size: 13px; }
.query { padding: 14px 16px; border: 1px solid rgba(56, 199, 255, 0.3); border-radius: 10px; background: var(--abyss); font-size: 16px; line-height: 1.45; }
.concept-note { margin-top: 14px; color: var(--mist); font-size: 13px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.filters li { padding: 7px 10px; border-radius: 8px; background: rgba(47, 107, 255, 0.14); color: var(--mist); font-size: 13.5px; line-height: 1.3; }
.filters b { color: #fff; font-weight: 560; }
.rule { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px 14px; font-size: 16px; line-height: 1.6; }
.rule dt { padding-top: 1px; color: var(--mist); font-size: 13px; line-height: 1.85; }
.tok { padding: 2px 7px; border-radius: 6px; background: rgba(47, 107, 255, 0.18); box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.waitlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 28px; }
.waitlist input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(147, 164, 196, 0.3);
  border-radius: 10px;
  background: var(--abyss);
  color: #fff;
  font-size: 16px;
}
.waitlist input[type="email"]::placeholder { color: #5f6f90; }
.waitlist input[type="email"]:focus { outline: 2px solid var(--ice); outline-offset: 1px; border-color: transparent; }
.waitlist input[type="email"]:disabled { opacity: 0.6; }
.form-msg { flex-basis: 100%; min-height: 1.4em; color: var(--mist); font-size: 14px; }
.form-msg.ok { color: #fff; }
.form-msg.err { color: #ffcf7a; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.labs-fine { margin-top: 40px; color: #6f7f9f; font-size: 13px; }

/* ------------------------------------------------------------------ footer */
.foot { padding: 56px 0 40px; border-top: 1px solid var(--line-dark); background: var(--abyss); color: var(--mist); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot-brand p { margin-top: 14px; font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: flex-start; }
.foot-links a { color: #fff; font-size: 15px; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.risk { max-width: 70em; margin-top: 40px; color: #7c8bab; font-size: 13px; line-height: 1.65; }
.copy { margin-top: 18px; color: #7c8bab; font-size: 13px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .hero-top { grid-template-columns: minmax(0, 1fr); align-items: start; padding-top: clamp(44px, 8vh, 80px); }
  .readout { padding-left: 0; padding-top: 24px; border-left: 0; border-top: 1px solid var(--line-dark); }
  .chapter-head, .labs-head { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .labs-grid { grid-template-columns: minmax(0, 1fr); }
  .lab, .lab + .lab { padding: 40px 0 8px; border-left: 0; }
  .lab + .lab { margin-top: 32px; border-top: 1px solid var(--line-dark); }
}
@media (max-width: 720px) {
  :root { --nav-h: 60px; }
  .nav-links { display: none; }
  .mark { width: 26px; height: 26px; }
  .wordmark { height: 14px; }
  .brand { gap: 10px; }
  .depth-stage { height: 240px; }
}
@media (max-width: 640px) {
  .frame { display: none; }
  .phone { position: static; width: min(74%, 320px); margin-inline: auto; }
  .shot figcaption { text-align: center; }
  .features { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-top { padding-top: 36px; }
  .readout { padding-top: 18px; }
  .stats { display: none; }
  .px { margin-top: 14px; }
  .feed { margin-top: 14px; }
  .actions .btn { flex: 1 1 auto; }
  .waitlist .btn { flex: 1 1 100%; }
  .concept { padding: 18px; }
}
@media (max-width: 380px) {
  .nav-cta { padding: 0 12px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter { animation: none; }
  .feed[data-feed="live"] .dot { animation: none; }
  .px, .px.up, .px.down { transition: none; }
}
