/* Octopixels site. One stylesheet. Palette:
   abyss #070b1c, deep #0d1533, card #121c40, line #23305e,
   ink #eef1ff, muted #a3aed3, coral #ff6b8b (the octopus), teal #5ef2d6 (events). */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --abyss: #070b1c;
  --deep: #0d1533;
  --card: #121c40;
  --line: #23305e;
  --ink: #eef1ff;
  --muted: #a3aed3;
  --coral: #ff6b8b;
  --teal: #5ef2d6;
  --wide: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--abyss);
  background-image: radial-gradient(ellipse 90% 60% at 70% 0%, #16224f 0%, rgba(7, 11, 28, 0) 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); }
img { display: block; }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; }

.nav {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; }
.mark img { image-rendering: pixelated; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }

.btn {
  display: inline-block;
  background: var(--coral);
  color: #1a0710;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 4px;
  box-shadow: 4px 4px 0 #8e2a45;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover, .btn:focus-visible { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #8e2a45; }
.btn:focus-visible, .nav-links a:focus-visible, .foot a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.fine { color: var(--muted); font-size: 14px; margin: 0; }

/* Hero: copy on the left, the octopus scene on the right. */
.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 32px;
  align-items: center;
}
.kicker { color: var(--teal); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; margin: 0 0 14px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 700; }
.lede { color: var(--muted); font-size: 19px; margin: 22px 0 30px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }

.scene { position: relative; aspect-ratio: 1 / 0.92; width: 100%; min-height: 360px; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.store-tag {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  border: 1px solid rgba(94, 242, 214, .4);
  background: rgba(13, 21, 51, .85);
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.dest {
  position: absolute;
  right: 0;
  display: grid;
  grid-template-columns: 44px auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  background: rgba(18, 28, 64, .9);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px 8px 8px;
  width: 200px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.dest img { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 10px; }
.dest span { font-size: 14px; font-weight: 600; }
.dest b { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.dest.hit { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(94, 242, 214, .18); }
.dest[data-dest="0"] { top: 6%; }
.dest[data-dest="1"] { top: 30%; }
.dest[data-dest="2"] { top: 54%; }
.dest[data-dest="3"] { top: 78%; }
/* The counters mean nothing without the animation. */
html:not(.anim) .dest b { display: none; }

/* Apps */
.apps, .how { max-width: var(--wide); margin: 0 auto; padding: 72px 24px; }
.apps h2, .how h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section-lede { color: var(--muted); margin: 12px 0 36px; font-size: 18px; }

.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.app-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.app-card img { width: 64px; height: 64px; border-radius: 14px; }
.app-card h3 { font-size: 22px; }
.app-card p { margin: 0; color: var(--muted); font-size: 15px; }
.facts { list-style: none; margin: 0; padding: 0; font-size: 14px; flex: 1; }
.facts li { padding: 7px 0; border-top: 1px solid var(--line); }
.facts li:first-child { border-top: 0; }
.btn-card { text-align: center; padding: 12px 16px; font-size: 15px; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { border-top: 2px solid var(--line); padding-top: 18px; }
.step-n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--teal);
  color: var(--abyss);
  font-weight: 700;
  border-radius: 3px;
  margin-bottom: 14px;
}
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }

.events { margin-top: 64px; background: var(--deep); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.events h3 { font-size: 20px; }
.chips { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  font-size: 14px;
  padding: 7px 12px 7px 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  position: relative;
}
.chips li::before { content: ""; position: absolute; left: 10px; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--teal); }
.chips li:last-child::before { background: var(--coral); }

.foot { max-width: var(--wide); margin: 0 auto; padding: 40px 24px 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot p { margin: 4px 0; }

/* Privacy and 404 pages */
.doc { max-width: 760px; margin: 0 auto; padding: 32px 24px 80px; }
.doc h1 { font-size: clamp(34px, 4.4vw, 48px); margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: #d3d9f2; }
.doc .fine { margin-bottom: 28px; }

@media (max-width: 1020px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 48px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-links a[href$="#how"] { display: none; }
  .app-grid { grid-template-columns: 1fr; }
  .scene { aspect-ratio: 1 / 1.05; }
  .dest { width: auto; max-width: 46%; grid-template-columns: 36px auto; padding: 6px 10px 6px 6px; }
  .dest img { width: 36px; height: 36px; border-radius: 8px; }
  .dest span { font-size: 12px; }
  .store-tag { font-size: 11px; padding: 5px 7px; top: 2%; transform: none; }
}
