:root {
  --void: #000000;
  --ink: #050508;
  --panel: #0a0b10;
  --card: #0d0e14;
  --line: rgba(220, 232, 255, 0.08);
  --text: #f4f7fb;
  --muted: #8d95a8;
  --faint: #5c6478;
  --blue: #1a6dff;
  --blue-2: #3b82ff;
  --glow: #4d8cff;
  --led: #e8f0ff;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--void);
  color: var(--text);
  font-family: Outfit, Inter, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { min-height: 100dvh; overflow-x: hidden; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.grain,
.spot {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.grain {
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.spot {
  background:
    radial-gradient(820px 460px at 76% 30%, rgba(26, 109, 255, 0.38), transparent 60%),
    radial-gradient(520px 280px at 18% 8%, rgba(59, 130, 255, 0.1), transparent 58%);
}

.nav, main, .foot { position: relative; z-index: 1; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: calc(14px + var(--safe-t)) 28px 14px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
}

.nav.is-on { border-bottom-color: var(--line); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  background: #0a0a0e;
  box-shadow: 0 0 0 1px rgba(77, 140, 255, 0.35), 0 0 18px rgba(26, 109, 255, 0.35);
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.link-quiet { color: var(--muted); font-size: 14px; }
.link-quiet:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--text);
  color: #050508;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(77, 140, 255, 0.22);
}

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(220, 232, 255, 0.28); }

.hero {
  min-height: calc(100dvh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
  align-items: center;
  gap: 24px;
  padding: 48px 7vw 80px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.045em; font-weight: 600; }

h1 {
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 0.96;
}

h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
}

h3 { font-size: 28px; }

.lede {
  max-width: 480px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
}

.lede-2 {
  font-size: 16px;
  max-width: 500px;
  color: var(--faint);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.os-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.os-row span {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--led);
  background: rgba(26, 109, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(77, 140, 255, 0.28);
}

.hero-stage {
  position: relative;
  overflow: hidden;
  height: min(72vh, 640px);
  min-height: 420px;
}

#chip-canvas,
.chip-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#chip-canvas { z-index: 2; }

.chip-fallback {
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.chip-fallback.is-hidden { opacity: 0; pointer-events: none; }

.chip {
  position: relative;
  width: min(58vw, 360px);
  aspect-ratio: 1;
  transform: rotateX(58deg) rotateZ(-24deg);
  transform-style: preserve-3d;
  animation: chip-float 8s ease-in-out infinite;
}

.chip-die {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(77, 140, 255, 0.16), transparent 46%),
    linear-gradient(160deg, #14141c, #050508 55%, #09090f);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(26, 109, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.chip-logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.08em;
  color: #f8fbff;
  text-shadow: 0 0 24px rgba(77, 140, 255, 0.55);
}

.chip-leds {
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(232, 240, 255, 0.08),
    0 0 18px rgba(77, 140, 255, 0.2);
}

.chip-leds i { display: block; }

@keyframes chip-float {
  0%, 100% { transform: rotateX(58deg) rotateZ(-24deg) translateY(0); }
  50% { transform: rotateX(56deg) rotateZ(-20deg) translateY(-10px); }
}

.strip {
  padding: 0 7vw 90px;
  color: var(--muted);
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1.3;
  max-width: 920px;
}

.product,
.grid-sec,
.steps,
.about,
.problem,
.demo,
.compare,
.offline,
.revision,
.manager,
.access,
.who,
.faq,
.download,
.cta { padding: 40px 7vw 110px; }

.wide {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 40px;
}

.pain {
  list-style: none;
  margin: 0;
  padding: 0 7vw 80px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pain li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 18px;
  letter-spacing: -0.03em;
}

.demo-stage {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
}

.phone-flat { transform: none; }

.demo-scene {
  display: none;
  padding: 28px 16px 16px;
  height: 100%;
}

.demo-scene.is-on { display: block; }

.demo-sheet {
  height: 280px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  letter-spacing: 0.2em;
  color: var(--faint);
  background:
    linear-gradient(#1a2333 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, #1a2333 1px, transparent 1px) 0 0 / 28px 100%,
    #0c111a;
}

.demo-push {
  margin: 48px 0 20px;
  padding: 16px;
  border-radius: 16px;
  background: #10131b;
  box-shadow: 0 0 0 1px rgba(77, 140, 255, 0.25);
}

.demo-push b { display: block; }
.demo-push span { color: var(--muted); font-size: 13px; }

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

.demo-script li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.demo-script li.is-on { opacity: 1; }
.demo-script strong { display: block; font-size: 22px; }
.demo-script span { display: block; margin-top: 6px; color: var(--muted); }

.demo-note { margin-top: 28px; color: var(--faint); font-size: 13px; }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.compare-col {
  padding: 28px 24px;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.compare-col.is-after {
  background: linear-gradient(180deg, rgba(26, 109, 255, 0.12), rgba(26, 109, 255, 0.02));
}

.compare-col h3 { margin-bottom: 18px; font-size: 22px; }
.compare-col ul { margin: 0; padding: 0; list-style: none; }
.compare-col li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.flow {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow li {
  counter-increment: flow;
  padding: 10px 0 10px 36px;
  border-top: 1px solid var(--line);
  position: relative;
}

.flow li::before {
  content: counter(flow);
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--blue-2);
  font-size: 13px;
}

.rev-flow,
.step-4 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rev-flow li,
.step-4 li {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.admin-mock {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 280px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}

.admin-mock aside {
  padding: 22px 18px;
  background: #08090e;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.admin-mock aside b {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(77, 140, 255, 0.4);
  margin-bottom: 8px;
}

.admin-mock > div { padding: 28px; }
.admin-mock p { color: var(--muted); margin: 0 0 28px; }
.admin-mock ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.admin-mock strong { display: block; font-size: 32px; letter-spacing: -0.04em; }

.site-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.site-cards article {
  padding: 24px;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.site-cards span { color: var(--blue-2); font-size: 12px; letter-spacing: 0.1em; }
.site-cards strong { display: block; margin: 28px 0 8px; font-size: 28px; }
.site-cards p { margin: 0; color: var(--muted); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.about-grid h3 { font-size: 22px; margin-bottom: 10px; }
.about-grid p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { margin-top: 10px; }

.show {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 72px;
  align-items: center;
}

.show.reverse { grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); }
.show.reverse .show-copy { order: 2; }

.show-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  max-width: 440px;
}

.points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  position: relative;
  padding: 10px 0 10px 22px;
  color: var(--text);
  border-top: 1px solid var(--line);
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 12px var(--glow);
}

.phone-wrap {
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.phone {
  position: relative;
  width: 292px;
  height: 600px;
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(180deg, #1a1b22, #050507);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(26, 109, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotateY(-16deg) rotateX(6deg);
  transform-style: preserve-3d;
}

.show.reverse .phone { transform: rotateY(16deg) rotateX(6deg); }

.phone-notch {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 92px;
  height: 18px;
  margin-left: -46px;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #07080d;
}

.app { padding: 28px 16px 16px; }

.app-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.app-bar strong { display: block; font-size: 18px; letter-spacing: -0.03em; }
.app-bar span, .app-bar em { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-style: normal; }
.app-bar em { color: var(--blue-2); }

.app-search {
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--faint);
  font-size: 12px;
  background: #10131b;
}

.app-cats {
  display: flex;
  gap: 8px;
  margin: 12px 0 14px;
  font-size: 10px;
  color: var(--muted);
}

.app-cats b,
.app-cats i {
  font-style: normal;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 999px;
  background: #10131b;
}

.app-cats b { background: var(--blue); color: #fff; }

.app-row {
  padding: 12px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.app-row b { display: block; font-size: 14px; }
.app-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.app-row.is-on { background: rgba(26, 109, 255, 0.08); margin: 0 -8px; padding-left: 12px; padding-right: 12px; border-radius: 10px; }

.app-spec { padding-top: 26px; }

.app-detail {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  background: #111;
  box-shadow: 0 0 0 1px rgba(77, 140, 255, 0.16);
}

.app-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.app-stats div {
  background: #10131b;
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}

.app-stats b { display: block; font-size: 15px; }
.app-stats span { color: var(--muted); font-size: 9px; }

.app-note { margin: 14px 4px 0; color: var(--muted); font-size: 11px; line-height: 1.4; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  min-height: 240px;
  padding: 24px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 0 0 1px var(--line);
}

.card-n {
  display: block;
  color: var(--blue-2);
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-bottom: 48px;
}

.card h3 { margin-bottom: 10px; font-size: 22px; }
.card p { margin: 0; color: var(--muted); line-height: 1.45; }

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.step-list li {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.step-list strong { display: block; font-size: 22px; letter-spacing: -0.03em; }
.step-list span { display: block; margin-top: 10px; color: var(--muted); line-height: 1.45; }

.cta-box {
  padding: 72px 8vw;
  border-radius: 32px;
  background:
    radial-gradient(80% 80% at 80% 20%, rgba(26, 109, 255, 0.22), transparent 50%),
    linear-gradient(180deg, #0b0c12, #050508);
  box-shadow: inset 0 0 0 1px var(--line);
}

.cta-box p { margin: 16px 0 0; color: var(--muted); font-size: 18px; }

.download-lead {
  margin: -24px 0 32px;
  color: var(--muted);
  font-size: 18px;
  max-width: 520px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  height: 64px;
  padding: 0 18px;
  border-radius: 16px;
  background: #0c0d12;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(220, 232, 255, 0.28), 0 10px 30px rgba(26, 109, 255, 0.16);
}

.store-btn svg { width: 28px; height: 28px; flex: 0 0 auto; }
.store-btn span { display: block; letter-spacing: -0.03em; font-weight: 600; font-size: 18px; line-height: 1.1; }
.store-btn small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 2px; }

.faq-list { max-width: 820px; }

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.03em;
}

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

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--blue-2);
  font-size: 22px;
  line-height: 1;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 62ch;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 7vw calc(28px + var(--safe-b));
  color: var(--faint);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.foot nav { display: flex; gap: 18px; }
.foot a:hover { color: var(--text); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-copy { animation-delay: 0.08s; }
.pain { animation-delay: 0.16s; }
.strip { animation-delay: 0.12s; }
.section-head { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.16s; }
.card:nth-child(4) { animation-delay: 0.08s; }
.card:nth-child(5) { animation-delay: 0.16s; }
.card:nth-child(6) { animation-delay: 0.24s; }
.about-grid article:nth-child(2) { animation-delay: 0.08s; }
.about-grid article:nth-child(3) { animation-delay: 0.16s; }
.step-list li:nth-child(2) { animation-delay: 0.1s; }
.step-list li:nth-child(3) { animation-delay: 0.2s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero,
  .show,
  .show.reverse,
  .cards,
  .cards-3,
  .about-grid,
  .step-list,
  .step-4,
  .rev-flow,
  .pain,
  .compare-grid,
  .demo-stage,
  .site-cards,
  .admin-mock {
    grid-template-columns: 1fr;
  }
  .show.reverse .show-copy { order: 0; }
  .hero { padding-top: 24px; min-height: auto; }
  .hero-stage { min-height: 340px; height: 52vh; }
  .phone { transform: none; }
  .show.reverse .phone { transform: none; }
  .cta-box { padding: 48px 24px; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip, .reveal { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
