/* Squid Path — squidpath.com
   Colours are taken from the app icon: night-purple sky, cyan path, grey trail, pink squid. */

:root {
  --sky-top: #1d0e46;
  --sky: #30186a;
  --sky-low: #3a1d6e;
  --glow: #7d4bd1;
  --cyan: #5ef2ff;
  --cyan-side: #2a86c9;
  --cyan-deep: #1b5a9a;
  --trail: #c6c9d1;
  --pink: #ff8fbf;
  --pink-deep: #e0619a;
  --ink: #ffffff;
  --ink-soft: #d9d0f5;
  --ink-mute: #a898d8;
  --card: rgba(255, 255, 255, 0.06);
  --card-line: rgba(255, 255, 255, 0.12);
  --radius: 22px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--sky-top);
  background-image:
    radial-gradient(1200px 700px at 75% 8%, rgba(125, 75, 209, 0.45), transparent 70%),
    linear-gradient(180deg, var(--sky) 0%, var(--sky-top) 55%, #140832 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--cyan); }
a:hover { color: #b9f9ff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(29, 14, 70, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 18px;
}

.brand img {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.brand .sq {
  background: linear-gradient(90deg, var(--cyan), #b078ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
}

.hero-bg svg { width: 100%; height: 100%; }

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-top);
  background: var(--cyan);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.wordmark {
  margin: 0;
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0.02em;
  font-size: clamp(76px, 12vw, 148px);
}

.wordmark .l1 {
  display: block;
  background: linear-gradient(90deg, var(--cyan) 0%, #8fb8ff 45%, #b078ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wordmark .l2 { display: block; color: var(--ink); }

.tagline {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  color: var(--ink-soft);
  margin: 28px 0 34px;
  max-width: 30ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.store-badge:hover { transform: translateY(-2px); border-color: var(--cyan); color: #fff; }

.store-badge svg { width: 28px; height: 28px; flex: none; }

.store-badge small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
  line-height: 1.2;
}

.store-badge strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}


.btn-ghost {
  display: inline-block;
  padding: 15px 22px;
  border-radius: 14px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--card-line);
  background: var(--card);
}

.btn-ghost:hover { border-color: var(--cyan); color: var(--ink); }

.hero-art {
  position: relative;
  justify-self: center;
  width: min(460px, 100%);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% 8% -6% 8%;
  background: radial-gradient(closest-side, rgba(94, 242, 255, 0.35), transparent);
  filter: blur(30px);
}

.hero-art img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 22%;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: bob 4.8s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

/* ---------- Sections ---------- */

section { padding: 88px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.kicker {
  color: var(--cyan);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

h2 {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 18px;
  margin: 0;
}

/* How to play */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 26px 26px 30px;
}

.step .diagram {
  height: 150px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(58, 29, 110, 0.9), rgba(29, 14, 70, 0.9));
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.step .diagram svg { width: 100%; height: 100%; }

.step .num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--sky-top);
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 10px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}

.step p { margin: 0; color: var(--ink-soft); }

.rules {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.rule {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--ink-soft);
  font-size: 15px;
}

.rule b { color: var(--ink); }

.rule .dot {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.rule .dot.pink { background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.rule .dot.grey { background: var(--trail); box-shadow: 0 0 12px var(--trail); }

/* Levels */

.levels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.level {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.level:hover { transform: translateY(-4px); border-color: rgba(94, 242, 255, 0.5); }

.level .swatch {
  height: 130px;
  position: relative;
}

.level .swatch svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.level .body { padding: 18px 20px 22px; }

.level .n {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
}

.level h3 {
  margin: 2px 0 6px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.level p { margin: 0; font-size: 15px; color: var(--ink-soft); }

.level.more {
  display: grid;
  place-items: center;
  text-align: center;
  border-style: dashed;
  min-height: 250px;
  padding: 24px;
}

.level.more h3 { color: var(--ink-mute); }

/* Styles */

.styles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-line);
  color: var(--ink-soft);
}

.chip.c { border-color: rgba(94, 242, 255, 0.55); color: var(--cyan); }
.chip-group.avatars .chip { border-color: rgba(255, 143, 191, 0.6); color: var(--pink); }

.chip-group + .chip-group { margin-top: 24px; }

.chip-group h4 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* FAQ */

.faq {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--card-line);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 19px;
  padding: 18px 40px 18px 0;
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 28px;
  font-weight: 400;
  color: var(--cyan);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  margin: 0 0 20px;
  color: var(--ink-soft);
}

/* Final call */

.closing {
  text-align: center;
  padding: 96px 0 110px;
}

.closing img {
  width: min(120px, 40vw);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  margin: 0 auto 26px;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.6);
}

.closing h2 { margin-bottom: 12px; }
.closing p { color: var(--ink-soft); font-size: 18px; margin: 0 0 30px; }
.closing .cta-row { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 34px 0 44px;
  color: var(--ink-mute);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }

/* ---------- Plain text pages (privacy, 404) ---------- */

.doc {
  max-width: 760px;
  padding: 64px 24px 96px;
  margin: 0 auto;
}

.doc h1 {
  font-size: clamp(38px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 10px;
}

.doc .updated { color: var(--ink-mute); margin: 0 0 40px; }

.doc h2 {
  font-size: 24px;
  margin: 44px 0 10px;
}

.doc p, .doc li { color: var(--ink-soft); }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); }

.doc .summary {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-left: 4px solid var(--cyan);
  border-radius: 14px;
  padding: 18px 22px;
}

.doc .summary p { margin: 6px 0; }

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 24px;
}

.not-found img {
  width: 140px;
  border-radius: 32px;
  margin: 0 auto 26px;
  transform: rotate(-8deg);
}

.not-found h1 { font-size: clamp(40px, 8vw, 72px); font-weight: 900; margin: 0 0 8px; }
.not-found p { color: var(--ink-soft); font-size: 18px; margin: 0 0 28px; }

/* ---------- Motion + small screens ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
  .run-dash { animation: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .hero { padding: 40px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .tagline { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-art { width: min(340px, 80%); order: -1; }
  .steps, .rules { grid-template-columns: 1fr; }
  .styles-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 16px; }
  .nav a { font-size: 12px; }
  .nav .hide-sm { display: none; }
  .brand span.word { display: none; }
  .site-footer .wrap { flex-direction: column; }
}
