/* ==========================================================================
   Neon Poly Duo site stylesheet.
   Visual language mirrors the Flutter app: Roboto, scaffold #07080F,
   thin 1–1.6px accent borders, soft outer bloom, radius-12 CTAs.
   ========================================================================== */

:root {
  --bg-0: #07080f;
  --bg-1: #0f101a;
  --bg-2: #1e1f2f;
  --surface: rgba(30, 31, 47, 0.45);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --neon-magenta: #ff007f;
  --neon-duo: #ff00e5;
  --neon-cyan: #00e5ff;
  --neon-mint: #00ffb3;
  --neon-green: #39ff14;
  --neon-purple: #bd00ff;
  --neon-violet: #9c6bff;
  --neon-orange: #ff5f1f;
  --neon-chaos: #ff5a00;
  --neon-yellow: #ffea00;
  --neon-gold: #ffc400;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.72);
  --text-mute: rgba(255, 255, 255, 0.45);
  --font-display: "Roboto", system-ui, -apple-system, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, sans-serif;
  --radius-btn: 12px;
  --radius-card: 16px;
  --radius-tile: 14px;
  --radius-pill: 999px;
  --border-thin: 1.4px;
  --glow-cyan: 0 0 18px rgba(0, 229, 255, 0.24), 0 0 0 1px rgba(0, 229, 255, 0.08);
  --glow-magenta: 0 0 18px rgba(255, 0, 229, 0.24);
  --container: 1100px;
  --container-narrow: 820px;
  --header-h: 68px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hub-phone, .pulse-dot, .fp { animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--neon-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.45em;
  font-weight: 800;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 900; letter-spacing: 0.02em; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); letter-spacing: 0.04em; text-transform: uppercase; }
h3 { font-size: 1.05rem; letter-spacing: 0.02em; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: 20px; }
.center { text-align: center; }

.text-glow-magenta { color: var(--neon-magenta); text-shadow: 0 0 12px rgba(255, 0, 127, 0.45); }
.text-glow-cyan { color: var(--neon-cyan); text-shadow: 0 0 12px rgba(0, 229, 255, 0.45); }
.text-glow-green { color: var(--neon-green); text-shadow: 0 0 12px rgba(57, 255, 20, 0.4); }
.text-glow-purple { color: var(--neon-purple); text-shadow: 0 0 12px rgba(189, 0, 255, 0.45); }
.text-glow-gold { color: var(--neon-gold); text-shadow: 0 0 12px rgba(255, 196, 0, 0.45); }

.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 12px;
}

.lead { font-size: 1.05rem; color: var(--text-soft); max-width: 540px; font-weight: 400; }
.muted { color: var(--text-mute); }
.small { font-size: 0.85rem; }

/* Wordmark (app header style) */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.wordmark-neon { color: #fff; text-shadow: 0 0 8px rgba(0, 229, 255, 0.55); }
.wordmark-duo {
  font-style: italic;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-duo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.35));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand .duo {
  font-style: italic;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-duo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.section { position: relative; padding: 72px 0; overflow: hidden; }
.section--tight { padding: 48px 0; }
.section--hub { padding: 56px 0; }

.space-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.glow-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 50% 0%, rgba(0, 229, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 40% 35% at 80% 60%, rgba(255, 0, 229, 0.08), transparent 70%);
}

.section-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 18px;
}

.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 8px; }
.section-head.center .lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Hero: brand graphic + gameplay phone; floats orbit the stage
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 48px 0 64px;
}

.hero > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-stage {
  position: relative;
  max-width: 1040px;
  margin-inline: auto;
  padding: 28px 12px;
}

/* Floats live in the viewport gutters: roughly midway between
   content edge (~1100px column) and the screen edge, with stagger. */
.float-pieces {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.fp {
  position: absolute;
  opacity: 0.9;
  --float-x: 16px;
  /* Midpoint of the leftover side gutter outside the content column */
  --gutter-mid: max(10px, calc((100vw - var(--container)) / 4));
  animation: floatx 9s ease-in-out infinite;
  filter: drop-shadow(0 0 6px currentColor);
}
/* Break left/right and top/bottom mirroring so the set feels scattered */
.fp-a {
  top: 11%;
  left: calc(var(--gutter-mid) - 6px);
  color: #ff007f;
  --fp-rot: -8deg;
  --float-x: 18px;
  animation-duration: 8.2s;
  animation-delay: -1.4s;
}
.fp-b {
  top: 38%;
  right: calc(var(--gutter-mid) + 28px);
  color: #39ff14;
  --fp-rot: 12deg;
  --float-x: 12px;
  animation-duration: 11.4s;
  animation-delay: -4.1s;
  animation-direction: alternate;
}
.fp-c {
  top: 67%;
  left: calc(var(--gutter-mid) + 34px);
  color: #bd00ff;
  --fp-rot: 6deg;
  --float-x: 22px;
  animation-duration: 9.8s;
  animation-delay: -6.3s;
}
.fp-d {
  top: 18%;
  right: calc(var(--gutter-mid) - 4px);
  color: #00e5ff;
  --fp-rot: -14deg;
  --float-x: 14px;
  animation-duration: 7.6s;
  animation-delay: -2.7s;
  animation-direction: alternate-reverse;
}
@keyframes floatx {
  0%, 100% { transform: translateX(0) rotate(var(--fp-rot, 0deg)); }
  50% { transform: translateX(var(--float-x)) rotate(var(--fp-rot, 0deg)); }
}
@media (max-width: 1200px) {
  .fp { --gutter-mid: max(8px, 3.5vw); }
  .fp-a { top: 9%; left: var(--gutter-mid); }
  .fp-b { top: 44%; right: calc(var(--gutter-mid) + 10px); }
  .fp-c { top: 72%; left: calc(var(--gutter-mid) + 16px); }
  .fp-d { top: 24%; right: var(--gutter-mid); }
}
@media (max-width: 880px) {
  .fp { --float-x: 8px; opacity: 0.55; }
  .fp-a { top: 4%; left: 6px; }
  .fp-b { top: 42%; right: 4px; }
  .fp-c { top: auto; bottom: 14%; left: 18px; }
  .fp-d { top: 12%; right: 10px; }
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-layout { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-copy { align-items: center; }
  .hero-cta, .status-row { justify-content: center; }
  .wip-note { text-align: left; }
  .hero-visual { order: -1; }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.hero-logo {
  width: min(148px, 38vw);
  height: auto;
  border-radius: 22%;
  box-shadow:
    0 0 28px rgba(0, 229, 255, 0.32),
    0 0 64px rgba(255, 0, 229, 0.18),
    0 18px 40px -16px rgba(0, 0, 0, 0.85);
}

.hero-mark {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  gap: 0.28em;
  flex-wrap: wrap;
  justify-content: inherit;
}

.hero-tag {
  margin: 0;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  color: var(--text-soft);
  max-width: 38ch;
  font-weight: 500;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
}

.hub-phone--hero {
  width: min(280px, 72vw);
  transform: rotate(2deg);
}
@media (max-width: 880px) {
  .hub-phone--hero { transform: none; width: min(240px, 68vw); }
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(15, 16, 26, 0.8);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.status-pill--gold { border-color: rgba(255, 196, 0, 0.45); color: var(--neon-gold); }
.status-pill--mint { border-color: rgba(0, 255, 179, 0.4); color: var(--neon-mint); }

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-gold);
  box-shadow: 0 0 10px rgba(255, 196, 0, 0.85);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.wip-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 4px;
  padding: 10px 14px;
  border: var(--border-thin) solid rgba(255, 95, 31, 0.35);
  border-radius: var(--radius-btn);
  background: rgba(255, 95, 31, 0.06);
  color: var(--text-soft);
  font-size: 0.86rem;
  max-width: 480px;
}

/* --------------------------------------------------------------------------
   Buttons (app_buttons: radius 12, thin outline secondary)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: var(--border-thin) solid transparent;
  transition: filter 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary {
  background: var(--neon-cyan);
  color: #07080f;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.28);
}
.btn--primary:hover { filter: brightness(1.08); }
.btn--secondary {
  background: transparent;
  color: var(--neon-cyan);
  border-color: rgba(0, 229, 255, 0.55);
}
.btn--secondary:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--neon-cyan);
}
.btn--ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: var(--line-strong);
}
.btn--ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.35); }
.btn--sm { padding: 10px 16px; font-size: 0.78rem; }

/* --------------------------------------------------------------------------
   Hub cards: thin neon frame + soft bloom
   -------------------------------------------------------------------------- */

.neon-card {
  background: var(--surface);
  border: var(--border-thin) solid rgba(0, 229, 255, 0.35);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.12), 0 0 0 1px rgba(0, 229, 255, 0.04) inset;
}

.neon-card--magenta {
  border-color: rgba(255, 0, 229, 0.4);
  box-shadow: 0 0 18px rgba(255, 0, 229, 0.12);
}
.neon-card--green {
  border-color: rgba(57, 255, 20, 0.4);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.12);
}
.neon-card--orange {
  border-color: rgba(255, 90, 0, 0.45);
  box-shadow: 0 0 18px rgba(255, 90, 0, 0.14);
}
.neon-card--gold {
  border-color: rgba(255, 196, 0, 0.4);
  box-shadow: 0 0 18px rgba(255, 196, 0, 0.12);
}
.neon-card--violet {
  border-color: rgba(156, 107, 255, 0.45);
  box-shadow: 0 0 18px rgba(156, 107, 255, 0.12);
}
.neon-card--mint {
  border-color: rgba(0, 255, 179, 0.4);
  box-shadow: 0 0 18px rgba(0, 255, 179, 0.12);
}

/* Match card (YOUR MATCHES vibe) */
.match-stack { display: grid; gap: 14px; }

.match-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
@media (max-width: 640px) {
  .match-card { grid-template-columns: 1fr; }
}

.match-card h3 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
}
.match-card .mode {
  color: var(--neon-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.match-card p { margin: 8px 0 0; color: var(--text-soft); font-size: 0.95rem; }

/* Intensity tiers */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 800px) { .tier-grid { grid-template-columns: 1fr; } }

.tier {
  padding: 22px 20px;
  border-radius: 18px;
  background: rgba(30, 31, 47, 0.5);
  border: 1.4px solid rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.18), 0 0 0 1px rgba(0, 229, 255, 0.05) inset;
}
.tier--blitz {
  border-width: 1.8px;
  border-color: rgba(255, 0, 229, 0.5);
  box-shadow: 0 0 22px rgba(255, 0, 229, 0.22);
}
.tier--chaos {
  border-width: 2.2px;
  border-color: rgba(255, 90, 0, 0.55);
  box-shadow: 0 0 30px rgba(255, 90, 0, 0.26);
}
.tier .tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0, 229, 255, 0.15);
  color: var(--neon-cyan);
}
.tier--blitz .tag { background: rgba(255, 0, 229, 0.15); color: var(--neon-duo); }
.tier--chaos .tag { background: rgba(255, 90, 0, 0.15); color: var(--neon-chaos); }
.tier h3 { margin: 0 0 8px; font-size: 1.2rem; text-transform: none; letter-spacing: 0; }
.tier p { margin: 0; color: var(--text-soft); font-size: 0.92rem; }

/* Arcade / rewards strip */
.arcade-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .arcade-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .arcade-grid { grid-template-columns: 1fr; } }

.arcade-tile {
  padding: 18px 16px;
  border-radius: var(--radius-tile);
  background: rgba(30, 31, 47, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 108px;
}
.arcade-tile h3 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.arcade-tile p { margin: 0; color: var(--text-soft); font-size: 0.9rem; }

/* Screenshots */
.shot-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: 28px;
  justify-content: center;
  align-items: end;
}
.shot-row--three {
  grid-template-columns: repeat(3, minmax(0, 240px));
  gap: 22px;
}
@media (max-width: 900px) {
  .shot-row--three { grid-template-columns: repeat(2, minmax(0, 220px)); }
  .shot-row--three .hub-phone:last-child { display: none; }
}
@media (max-width: 640px) {
  .shot-row,
  .shot-row--three { grid-template-columns: minmax(0, 240px); }
  .shot-row--three .hub-phone:last-child { display: block; }
}

.hub-phone {
  border-radius: 28px;
  border: 1.4px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.18), 0 24px 50px -20px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  background: #000;
}
.hub-phone img { width: 100%; height: auto; }
.hub-phone--tilt-a { transform: rotate(-2.5deg); }
.hub-phone--tilt-b { transform: rotate(2.5deg); translate: 0 -12px; }
@media (max-width: 640px) {
  .hub-phone--tilt-a, .hub-phone--tilt-b { transform: none; }
}

/* Release band */
.release-band {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-card);
  border: var(--border-thin) solid rgba(255, 196, 0, 0.35);
  background: rgba(30, 31, 47, 0.4);
  box-shadow: 0 0 24px rgba(255, 196, 0, 0.08);
}
.release-band .lead { margin-inline: auto; }

/* Classic sibling */
.classic-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  padding: 18px 22px;
  background: rgba(15, 16, 26, 0.7);
}
.classic-strip h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}
.classic-strip p { margin: 0; color: var(--text-mute); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Legal / prose / contact (shared Duo pages)
   -------------------------------------------------------------------------- */

.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.2rem; margin-top: 2em; text-transform: none; letter-spacing: 0.02em; }
.prose h3 { font-size: 1.02rem; margin-top: 1.5em; }
.prose p, .prose li { color: var(--text-soft); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 22px; }

.legal-hero { padding: 64px 0 28px; }

.form { max-width: 560px; margin-inline: auto; display: grid; gap: 16px; }
.form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--text-mute);
}
.form input, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-btn);
  border: var(--border-thin) solid var(--line-strong);
  background: rgba(15, 16, 26, 0.9);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}
.form textarea { min-height: 150px; resize: vertical; }

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

.site-footer { border-top: 1px solid var(--line); background: var(--bg-1); }

.neon-stripe {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-duo), var(--neon-cyan), transparent);
  opacity: 0.7;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-block: 44px;
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

.site-footer h4 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 800;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: var(--text-soft); font-size: 0.95rem; }
.site-footer a:hover { color: var(--neon-cyan); }
.brand-block p { color: var(--text-mute); font-size: 0.9rem; max-width: 340px; }

.legal { padding-bottom: 28px; }
.legal p { margin: 4px 0; color: var(--text-mute); font-size: 0.85rem; }
