:root {
  --abyss: #01050d;
  --deep: #05132a;
  --water: #082440;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.11);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.66);
  --text-faint: rgba(255, 255, 255, 0.42);
  --sonar: #29ffcc;
  --tide: #00b3ff;
  --flare: #ff6133;
  --brass: #ffc757;
  --foam: #dbf2ff;
  --radius: 22px;
  --max: 1160px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--abyss);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  padding: 10px 16px; border-radius: 999px;
  background: var(--sonar); color: var(--abyss); font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- ambient background ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(#06203a, var(--deep) 40%, var(--abyss) 85%);
  overflow: hidden;
  pointer-events: none;
}
.backdrop::before,
.backdrop::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: drift 20s ease-in-out infinite alternate;
}
.backdrop::before {
  width: 60vmax; height: 60vmax;
  left: -20vmax; top: -28vmax;
  background: rgba(0, 179, 255, 0.2);
}
.backdrop::after {
  width: 60vmax; height: 60vmax;
  right: -25vmax; top: 20vh;
  background: rgba(41, 255, 204, 0.12);
  animation-delay: -10s;
}
.sonar-ring {
  position: absolute;
  left: 50%; top: 38%;
  width: 140vmax; height: 140vmax;
  margin: -70vmax 0 0 -70vmax;
  border-radius: 50%;
  border: 1px solid rgba(41, 255, 204, 0.25);
  animation: ping 7s linear infinite;
}
.sonar-ring.late { animation-delay: -3.5s; }
.swells {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 32vh;
  width: 100%;
  -webkit-mask-image: linear-gradient(transparent, #000 70%);
  mask-image: linear-gradient(transparent, #000 70%);
}
.swells path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.swells .s1 { stroke: rgba(0, 179, 255, 0.35); }
.swells .s2 { stroke: rgba(41, 255, 204, 0.35); }
.swells .s3 { stroke: rgba(0, 179, 255, 0.55); }
.swells .s4 { stroke: rgba(41, 255, 204, 0.6); }

@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.08); } }
@keyframes ping {
  from { transform: scale(0.02); opacity: 1; }
  to { transform: scale(1); opacity: 0; }
}

/* ---------- layout ---------- */

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

section { padding: 96px 0; }

.kicker {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sonar);
}

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; font-weight: 850; }
h1 { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(34px, 4.6vw, 54px); }
h3 { font-size: 21px; letter-spacing: -0.01em; }

.grad {
  background: linear-gradient(90deg, var(--sonar), var(--tide));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hot { color: var(--flare); }

.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-dim); max-width: 34em; }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head .kicker { margin-bottom: 16px; }
.section-head .lede { margin: 18px auto 0; }

.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(1, 5, 13, 0.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-size: 15px; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible, .cell:focus-visible, a:focus-visible { outline: 2px solid var(--sonar); outline-offset: 3px; }
.btn-primary {
  border: 0;
  color: var(--abyss);
  background: linear-gradient(90deg, var(--sonar), var(--tide));
  box-shadow: 0 0 28px rgba(41, 255, 204, 0.35);
}
.btn-primary:hover { box-shadow: 0 0 44px rgba(0, 179, 255, 0.55); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 22px; border-radius: 999px;
  border: 1px dashed rgba(41, 255, 204, 0.55);
  color: var(--sonar); font-weight: 800;
}
.badge-soon svg { width: 20px; height: 20px; }

/* ---------- boat art (CSS) ---------- */

.boat {
  --c: var(--sonar);
  --l: 3;
  --u: 28px;
  position: relative;
  width: calc(var(--u) * var(--l));
  height: var(--u);
  flex: none;
}
.boat::before {
  content: "";
  position: absolute;
  inset: 15% 4%;
  border-radius: 999px 60% 60% 999px / 999px 50% 50% 999px;
  border: max(1.5px, calc(var(--u) * 0.06)) solid var(--c);
  background: linear-gradient(#8ea3b5, #27323f);
  box-shadow: 0 0 calc(var(--u) * 0.3) color-mix(in srgb, var(--c) 60%, transparent);
}
.boat::after {
  content: "";
  position: absolute;
  left: 34%; width: 22%; top: 36%; height: 28%;
  border-radius: 4px;
  background: #27323f;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.boat.sunk { --c: var(--flare); }
.boat.sunk::before { background: linear-gradient(#6b2418, #290a0a); }
.boat.l2 { --l: 2; } .boat.l3 { --l: 3; } .boat.l4 { --l: 4; } .boat.l5 { --l: 5; }

/* ---------- hero ---------- */

.hero { padding: 80px 0 100px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { margin: 20px 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta { margin-top: 26px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--text-faint); text-transform: uppercase; }

.phone-stage { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(330px, 78vw);
  padding: 12px;
  border-radius: 54px;
  background: linear-gradient(145deg, #3a4a5e, #08101c 40%, #18263a);
  box-shadow: 0 0 0 1.5px rgba(41, 255, 204, 0.35), 0 0 80px rgba(0, 179, 255, 0.25), 0 40px 80px rgba(0, 0, 0, 0.6);
}
.phone img { width: 100%; border-radius: 43px; }
.phone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 23px;
  width: 25%;
  height: 3.4%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.float { position: absolute; animation: bob 6s ease-in-out infinite; }
.float.f1 { --u: 30px; left: -6%; top: 14%; rotate: -16deg; }
.float.f2 { --u: 26px; right: -4%; top: 52%; rotate: 72deg; animation-delay: -2s; }
.float.f3 { --u: 24px; left: 2%; bottom: 8%; rotate: 10deg; animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -14px; } }

/* ---------- how to play ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 28px 24px; display: flex; flex-direction: column; gap: 18px; }
.step .label { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.22em; color: var(--sonar); }
.step p { color: var(--text-dim); font-size: 16px; }
.step-art { height: 64px; display: flex; align-items: center; gap: 8px; }
.mark { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.mark.miss { border: 3px solid rgba(219, 242, 255, 0.6); background: radial-gradient(var(--foam) 0 22%, transparent 24%); }
.mark.hit { background: radial-gradient(#fff, var(--flare) 45%, transparent 70%); box-shadow: 0 0 18px var(--flare); }

.fleet-list { margin-top: 18px; padding: 26px 30px; display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 18px; }
.fleet-list div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.fleet-list .boat { --u: 24px; }
.fleet-list strong { font-size: 16px; }
.fleet-list span { font-family: var(--mono); font-size: 12px; color: var(--text-faint); letter-spacing: 0.1em; }

/* ---------- playable demo ---------- */

.demo { max-width: 620px; margin-inline: auto; padding: 24px; }
.demo-hud { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.demo-hud .stat { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--text-faint); text-transform: uppercase; }
.demo-hud .stat strong { display: block; font-family: var(--font); font-size: 26px; letter-spacing: 0; color: var(--text); line-height: 1.1; }
.demo-hud .stat.hits strong { color: var(--flare); }
.demo-fleet { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.demo-fleet .boat { --u: 13px; opacity: 0.55; }
.demo-fleet .boat.sunk { opacity: 1; }

.board {
  display: grid;
  grid-template-columns: 0.62fr repeat(10, 1fr);
  user-select: none;
  -webkit-user-select: none;
}
.board .axis {
  display: grid; place-items: center;
  font-size: clamp(9px, 2.4vw, 13px); font-weight: 800; color: rgba(41, 255, 204, 0.65);
}
.board .axis.col { padding-bottom: 4px; }
.cell {
  aspect-ratio: 1;
  min-width: 0;
  border: 0;
  border-right: 1px solid rgba(41, 255, 204, 0.14);
  border-bottom: 1px solid rgba(41, 255, 204, 0.14);
  background: var(--water);
  cursor: crosshair;
  position: relative;
  display: grid;
  place-items: center;
}
.cell.top { border-top: 1.5px solid rgba(41, 255, 204, 0.6); }
.cell.left { border-left: 1.5px solid rgba(41, 255, 204, 0.6); }
.cell.right { border-right: 1.5px solid rgba(41, 255, 204, 0.6); }
.cell.bottom { border-bottom: 1.5px solid rgba(41, 255, 204, 0.6); }
.cell.top.left { border-top-left-radius: 10px; }
.cell.top.right { border-top-right-radius: 10px; }
.cell.bottom.left { border-bottom-left-radius: 10px; }
.cell.bottom.right { border-bottom-right-radius: 10px; }
.cell:hover:not(:disabled) { background: rgba(41, 255, 204, 0.12); }
.cell:disabled { cursor: default; }
.cell::after { content: ""; width: 0; height: 0; border-radius: 50%; }
.cell.miss::after { width: 44%; height: 44%; border: 2px solid rgba(219, 242, 255, 0.6); background: radial-gradient(var(--foam) 0 28%, transparent 32%); animation: splash 0.5s ease-out; }
.cell.hit::after { width: 64%; height: 64%; background: radial-gradient(#fff, var(--flare) 45%, transparent 72%); box-shadow: 0 0 14px var(--flare); animation: blast 0.5s ease-out; }
.cell.sunk { background: rgba(255, 97, 51, 0.22); }
.cell.sunk::after { width: 46%; height: 46%; background: none; box-shadow: none; animation: none;
  background-image: linear-gradient(45deg, transparent 42%, var(--flare) 42% 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, var(--flare) 42% 58%, transparent 58%); }
.cell.reveal { background: rgba(41, 255, 204, 0.16); }
@keyframes splash { from { transform: scale(2.4); opacity: 0; } }
@keyframes blast { from { transform: scale(2.8); opacity: 0.2; } }

.demo-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.demo-status { min-height: 1.5em; color: var(--text-dim); font-size: 15px; }
.demo-status.hot { color: var(--flare); font-weight: 700; }
.demo-note { margin-top: 14px; text-align: center; color: var(--text-faint); font-size: 14px; }

/* ---------- features ---------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 30px 28px; }
.feature .icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--sonar);
  background: rgba(41, 255, 204, 0.1);
  border: 1px solid rgba(41, 255, 204, 0.35);
}
.feature .icon svg { width: 24px; height: 24px; }
.feature p { margin-top: 10px; color: var(--text-dim); font-size: 16px; }

/* ---------- screenshots ---------- */

.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 16px 24px;
  scroll-padding-inline: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(41, 255, 204, 0.4) transparent;
}
.gallery img {
  flex: none;
  width: min(270px, 70vw);
  border-radius: 26px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
}
@media (min-width: 1240px) { .gallery { justify-content: center; } }

/* ---------- CTA ---------- */

.cta-card { padding: 72px 32px; text-align: center; position: relative; overflow: hidden; }
.cta-card .boats-row { display: flex; justify-content: center; align-items: center; gap: 18px; margin-bottom: 36px; flex-wrap: wrap; }
.cta-card .boats-row .boat { --u: 30px; }
.cta-card .lede { margin: 18px auto 32px; }

/* ---------- content pages ---------- */

.page-head { padding: 88px 0 40px; }
.page-head h1 { font-size: clamp(40px, 6vw, 64px); margin-top: 16px; }
.page-head .lede { margin-top: 18px; }
.prose { padding: 40px; max-width: 820px; }
.prose h2 { font-size: 26px; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-dim); font-size: 17px; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { margin: 12px 0 0 22px; display: grid; gap: 8px; }
.prose a { color: var(--sonar); }
.prose strong { color: var(--text); }
.updated { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--text-faint); text-transform: uppercase; }
.page-body { padding-bottom: 96px; display: grid; gap: 24px; }

.support-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; align-items: start; }
.contact { padding: 32px; position: sticky; top: 96px; }
.contact p { color: var(--text-dim); margin: 12px 0 24px; }
.contact .email { font-family: var(--mono); font-size: 15px; color: var(--sonar); word-break: break-all; }
.faq { display: grid; gap: 12px; }
.faq details { padding: 0 24px; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--sonar); font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-dim); padding-bottom: 22px; margin-top: -6px; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--text-faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
footer nav { display: flex; gap: 22px; margin-left: auto; }
footer a { text-decoration: none; color: var(--text-dim); }
footer a:hover { color: var(--text); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap, .support-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .fleet-list { grid-template-columns: repeat(3, auto); justify-content: start; gap: 22px 36px; }
  .contact { position: static; }
}

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .steps, .features { grid-template-columns: 1fr; }
  .fleet-list { grid-template-columns: 1fr 1fr; padding: 22px; }
  .demo { padding: 14px; }
  .prose { padding: 24px; }
  .cta-card { padding: 56px 20px; }
  .cta-card .boats-row .boat { --u: 22px; }
  footer nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
