:root {
  --bg: #141a0f;
  --bg-2: #1c2416;
  --bg-3: #24301b;
  --ink: #eceee7;
  --muted: #c5cbb8;
  --accent: #3dce3a;
  --brass: #e1bd47;
  --line: rgba(225, 189, 71, 0.38);
  --display: "Oswald", system-ui, sans-serif;
  --body: "Rubik", system-ui, sans-serif;
  --header: 72px;
  --pad: max(20px, env(safe-area-inset-left));
  --pad-r: max(20px, env(safe-area-inset-right));
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
}

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100svh;
  min-height: 100dvh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% -8%, rgba(61, 206, 58, 0.1), transparent 46%),
    radial-gradient(ellipse at 100% 110%, rgba(225, 189, 71, 0.08), transparent 42%);
}

img, video, canvas, svg { max-width: 100%; }

#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header, main, .site-footer { position: relative; z-index: 1; }

:focus { outline: none; }

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

::selection { background: var(--accent); color: var(--bg); }

.skip {
  position: absolute;
  left: var(--pad);
  top: calc(8px + env(safe-area-inset-top));
  z-index: 80;
  transform: translateY(-160%);
  background: var(--brass);
  color: var(--bg);
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 14px;
  min-height: 44px;
}

.skip:focus { transform: none; }

a { color: var(--accent); }

a:hover, a:focus-visible, a:active { color: var(--brass); }

p { margin: 0 0 1rem; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.75rem;
  scroll-margin-top: 96px;
}

h1 {
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  overflow-wrap: anywhere;
  line-height: 0.96;
}

h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }

h3 { font-size: 1.35rem; }

.measure { max-width: 68ch; }

.muted { color: var(--muted); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 0.8rem;
  color: var(--brass);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  width: 22px;
  height: 12px;
  flex: none;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
}

.wrap {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.section {
  padding: 64px var(--pad-r) 64px var(--pad);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: var(--header);
  padding: env(safe-area-inset-top) var(--pad-r) 0 var(--pad);
  background: #161d11;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.02rem;
  line-height: 1.2;
  max-width: calc(100% - 60px);
}

a.brand:hover, a.brand:focus-visible, a.brand:active { color: var(--brass); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a[aria-current="page"] { color: var(--brass); }

html.js .burger { display: inline-flex; }

html.js .site-nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  padding: calc(96px + env(safe-area-inset-top)) var(--pad-r) 40px var(--pad);
  background: #12180e;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  pointer-events: none;
}

html.js .site-nav a { font-size: clamp(1.8rem, 7vw, 2.6rem); }

html.js body.nav-open { overflow: hidden; }

html.js body.nav-open .site-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.btn-primary { background: var(--accent); color: #10200f; }

.btn-primary:hover, .btn-primary:focus-visible, .btn-primary:active {
  background: #8af07a;
  color: #10200f;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--brass);
}

.btn-ghost:hover, .btn-ghost:focus-visible, .btn-ghost:active {
  background: rgba(225, 189, 71, 0.12);
  color: var(--brass);
  transform: translateY(-2px);
}

.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 1.25rem; }

.hero { padding: 12px var(--pad-r) 28px var(--pad); }

.hero-copy {
  min-height: calc(100svh - var(--header));
  min-height: calc(100dvh - var(--header));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 12px;
}

.hero-lede { font-size: 1.05rem; max-width: 42ch; }

.collage { display: grid; gap: 12px; }

.frag {
  position: relative;
  background: #1a2314;
  border: 1px solid var(--line);
  padding: 16px 16px 18px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.frag::before, .frag::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent);
  border-style: solid;
  pointer-events: none;
}

.frag::before { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.frag::after { right: 6px; bottom: 6px; border-width: 0 2px 2px 0; }

.frag p { margin: 0; }

.frag-kicker {
  color: var(--brass);
  font-family: var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.bubble {
  background: #10160c;
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  color: var(--ink);
}

.note-card {
  background: #10160c;
  padding: 12px;
  border: 1px solid rgba(61, 206, 58, 0.35);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #10160c;
  padding: 12px;
}

.switch {
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  position: relative;
  flex: none;
}

.switch i {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10200f;
  font-style: normal;
}

.frag-orbit { width: 100%; flex: 1 1 auto; min-height: 88px; }

.track {
  height: 14px;
  background: #10160c;
  border: 1px solid var(--line);
  position: relative;
}

.track span {
  display: block;
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--brass), var(--accent));
}

.panel { background: rgba(22, 29, 17, 0.94); }

.split, .sticky-layout, .cards, .bento, .ticks, .page-hero .wrap, .cta-grid, .legal-grid {
  display: grid;
  gap: 22px;
}

.split > *, .sticky-layout > *, .bento > *, .cards > *, .cta-grid > *, .legal-grid > *, .frag, .hero-copy {
  min-width: 0;
}

.phone {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  background: #0e140b;
  border: 2px solid var(--brass);
  border-radius: 28px;
  padding: 18px 14px 16px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-android { border-radius: 16px; border-color: var(--accent); }

.notch, .chin {
  align-self: center;
  background: #24301b;
  border-radius: 999px;
}

.notch { width: 92px; height: 16px; }
.chin { width: 108px; height: 6px; margin-top: auto; }

.os-label {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  font-size: 0.78rem;
}

.screen-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
}

.mini-orbit { width: 100%; height: auto; }

.devices { display: grid; gap: 16px; justify-items: center; }

.orbit-map {
  margin: 0;
  background: #141c10;
  border: 1px solid var(--line);
  padding: 16px;
}

.orbit-map svg { width: 100%; height: auto; }

.stations {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stations li {
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.band {
  background: #1a2414;
  border-block: 1px solid var(--line);
}

.ticks { list-style: none; margin: 0; padding: 0; }

.ticks li {
  background: #12190e;
  border: 1px solid var(--line);
  padding: 16px;
  min-height: 180px;
}

.tick-no {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 8px;
}

.arc { width: 100%; height: auto; margin-bottom: 18px; }

.center-block { width: min(760px, 100%); margin-inline: auto; }

.faq { display: grid; gap: 8px; }

.faq details {
  border-bottom: 1px solid var(--line);
  background: rgba(16, 22, 12, 0.72);
  padding: 0 12px;
}

.faq summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
  padding: 10px 0;
}

.faq summary span:first-child { flex: 1; min-width: 0; }

.faq summary::-webkit-details-marker { display: none; }

.faq details p { color: var(--muted); padding-bottom: 8px; }

.pm {
  width: 16px;
  height: 16px;
  position: relative;
  flex: none;
}

.pm::before, .pm::after {
  content: "";
  position: absolute;
  background: var(--accent);
  left: 7px;
  top: 0;
  width: 2px;
  height: 16px;
}

.pm::after { transform: rotate(90deg); }

.faq details[open] .pm::after { opacity: 0; }

.bento .card, .cards .card, .contact-card {
  background: #182214;
  border: 1px solid var(--line);
  padding: 16px;
  min-height: 180px;
}

.card h3, .contact-card h3 { margin-bottom: 0.4rem; }

.icon { width: 48px; height: 48px; margin-bottom: 10px; }

.chat-panel {
  background: #10160c;
  border: 2px solid var(--brass);
  padding: 16px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  font-size: 0.78rem;
}

.msg {
  margin: 0;
  padding: 12px;
  max-width: 95%;
  line-height: 1.5;
}

.msg-user {
  align-self: flex-end;
  background: #24301b;
  border: 1px solid var(--line);
}

.msg-bot {
  align-self: flex-start;
  background: #14210f;
  border-left: 3px solid var(--accent);
}

.flow {
  display: grid;
  gap: 10px;
  margin: 8px 0 18px;
}

.flow-node {
  border: 1px solid var(--line);
  background: #12190e;
  min-height: 72px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flow-node strong {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.flow-node span { color: var(--muted); font-size: 0.95rem; }

.flow-fork { display: grid; gap: 10px; }

.flow-stop {
  border: 1px dashed var(--brass);
  padding: 14px;
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0.04em;
  font-size: 1.2rem;
}

.cta {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(61, 206, 58, 0.16), transparent 48%),
    #12180e;
  border-top: 3px solid var(--accent);
}

.site-footer {
  padding: 28px var(--pad-r) calc(28px + env(safe-area-inset-bottom)) var(--pad);
  border-top: 1px solid var(--line);
  background: #10160c;
}

.footer-grid { display: grid; gap: 18px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero {
  padding: calc(28px + env(safe-area-inset-top)) var(--pad-r) 12px var(--pad);
  display: grid;
  gap: 12px;
  align-items: center;
}

.page-hero .figure { margin: 0; }

.date-line {
  color: var(--brass);
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.legal { padding-top: 20px; }

.toc-desktop { display: none; }

.toc-mobile {
  border: 1px solid var(--line);
  background: #182214;
  margin-bottom: 18px;
}

.toc-mobile summary, .toc a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.toc-mobile summary {
  padding: 0 12px;
  cursor: pointer;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  list-style: none;
}

.toc-mobile summary::-webkit-details-marker { display: none; }

.toc { display: grid; padding: 4px 12px 12px; }

.toc a { color: var(--muted); text-decoration: none; }

.article h2 { margin-top: 1.6rem; }

.contact-layout { display: grid; gap: 18px; }

label {
  display: block;
  margin: 12px 0 6px;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

input, textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #10160c;
  border: 1px solid var(--line);
  padding: 12px 14px;
  min-height: 48px;
  border-radius: 0;
}

textarea { min-height: 140px; resize: vertical; }

.form-note { color: var(--muted); }

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .frag-chat, .frag-push { will-change: transform; }
  .frag { animation: float 8s ease-in-out infinite; }
  .frag:nth-child(2) { animation-duration: 9.5s; animation-delay: -2s; }
  .frag:nth-child(3) { animation-duration: 7.5s; animation-delay: -4s; }
  .frag:nth-child(4) { animation-duration: 10s; animation-delay: -1s; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-height: 500px) {
  .hero-copy { min-height: 0; justify-content: flex-start; padding-top: 12px; }
  .hero h1 { font-size: 2.15rem; }
}

@media (max-height: 500px) and (min-width: 640px) {
  .actions { flex-direction: row; flex-wrap: wrap; }
  .actions .btn { width: auto; }
}

@media (min-width: 640px) {
  .collage, .devices, .cards, .bento, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .flow { grid-template-columns: 1fr 1fr 1fr; align-items: stretch; }
  .actions { flex-direction: row; flex-wrap: wrap; }
  .actions .btn { width: auto; }
  .ticks { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .section { padding-block: 88px; }
  .burger, html.js .burger { display: none; }
  html.js .site-nav {
    position: static;
    inset: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  html.js .site-nav a { font-size: 0.92rem; }
  html.js body.nav-open { overflow: visible; }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 500px) minmax(0, 1fr);
    grid-template-rows: minmax(220px, 1fr) minmax(220px, 1fr);
    gap: 16px;
    align-items: stretch;
    min-height: calc(100svh - var(--header) - 24px);
    min-height: calc(100dvh - var(--header) - 24px);
  }
  .hero-copy {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 0;
  }
  .collage { display: contents; }
  .frag-push { grid-column: 1; grid-row: 1; }
  .frag-toggle { grid-column: 1; grid-row: 2; }
  .frag-chat { grid-column: 3; grid-row: 1; }
  .frag-progress { grid-column: 3; grid-row: 2; }
  .split, .sticky-layout, .page-hero .wrap, .cta-grid, .legal-grid, .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .page-hero .wrap, .cta-grid { align-items: center; }
  .sticky-layout, .legal-grid { align-items: start; }
  .contact-layout { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  .sticky-col { position: sticky; top: 96px; }
  .devices { height: 100%; }
  .split .phone { max-width: none; height: 100%; }
  .chat-panel { height: 100%; }
  .toc-mobile { display: none; }
  .toc-desktop {
    display: block;
    position: sticky;
    top: 96px;
  }
  .toc-desktop .toc { padding: 0; }
  .chat-panel { min-height: 520px; }
  .split-reverse .split-visual { order: -1; }
}

@media (min-width: 1200px) {
  .ticks { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bento { grid-template-columns: 1fr 1fr 1fr; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
