/* Hexhop — site styles
   Mirrors VISUAL_DESIGN.md:
   - SF Rounded type ladder
   - #0a0520 backdrop, #4DD0E1 accent, #FFD740 streak
   - Glass surfaces on rounded radii
   - Motion tiers: micro 100ms / short 200ms / medium 350ms
*/

/* ---------- Tokens ---------- */
:root {
  --bg-0: #050314;
  --bg-1: #0a0520;
  --bg-2: #120833;
  --accent: #4DD0E1;
  --accent-soft: #4DD0E133;
  --streak: #FFD740;
  --streak-deep: #FFB300;
  --warn: #FF8026;
  --pop: #FF3333;
  --text-hi: rgba(255, 255, 255, 0.96);
  --text: rgba(255, 255, 255, 0.78);
  --text-mut: rgba(255, 255, 255, 0.55);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-hi: rgba(255, 255, 255, 0.11);
  --glass-border: rgba(255, 255, 255, 0.10);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --pad-sm: 8px;
  --pad-md: 16px;
  --pad-lg: 24px;
  --pad-xl: 32px;
  --pad-2xl: 48px;
  --pad-3xl: 72px;

  --dur-micro: 100ms;
  --dur-short: 200ms;
  --dur-medium: 350ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --font-rounded:
    ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    system-ui, "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono:
    ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  /* Anchor jumps (#features, #screenshots, #pricing) must clear the
     82px sticky header — without this, the section's top padding is
     hidden behind the chrome and the eyebrow label gets clipped. */
  scroll-padding-top: 96px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-1);
  color: var(--text);
  font-family: var(--font-rounded);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 10%, #102043 0%, transparent 45%),
    radial-gradient(circle at 84% 6%, #0c4a5a 0%, transparent 65%),
    radial-gradient(circle at 50% 96%, #0e1f3a 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Honeycomb backdrop — subtle pattern echo of the app icon */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("hex-pattern.svg");
  background-size: 64px 74px;
  background-repeat: repeat;
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- Type scale (VISUAL_DESIGN.md) ---------- */
.display { font-size: clamp(42px, 7vw, 84px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; color: var(--text-hi); }
.hero    { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.10; color: var(--text-hi); }
.title   { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-hi); }
.body-l  { font-size: 18px; font-weight: 500; color: var(--text); }
.body    { font-size: 16px; font-weight: 500; color: var(--text); }
.label   { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.caption { font-size: 13px; font-weight: 500; color: var(--text-mut); }

h1, h2, h3, h4 { color: var(--text-hi); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 1em 0; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur-short) var(--ease);
}
a:hover { color: #87e7f3; }

/* ---------- Layout primitives ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-lg);
}

.section {
  padding: var(--pad-3xl) 0;
}

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--pad-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform var(--dur-short) var(--ease),
              background var(--dur-short) var(--ease);
}
.card:hover { background: var(--glass-hi); transform: translateY(-2px); }

/* ---------- Header ---------- */
header.site {
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 5, 32, 0.72);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--glass-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pad-lg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-hi);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  min-height: 44px;
  padding: 4px 8px;
  margin-left: -8px;
}
.brand:hover { color: var(--text-hi); }
.brand svg { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  min-height: 44px;
  padding: 11px 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
}
.nav-links a:hover { color: var(--text-hi); background: var(--glass); }
.nav-links a[aria-current="page"] {
  color: var(--accent);
  background: rgba(77, 208, 225, 0.10);
}

/* ---------- Hero ---------- */
.hero-section {
  padding: clamp(48px, 8vw, 120px) 0 var(--pad-3xl);
  text-align: center;
  position: relative;
}

.tagline-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-soft);
  background: rgba(77, 208, 225, 0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.tagline-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero-sub {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--text);
  max-width: 640px;
  margin: 20px auto 0;
  line-height: 1.5;
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform var(--dur-short) var(--ease),
              box-shadow var(--dur-short) var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #0a1920;
  box-shadow: 0 8px 24px rgba(77, 208, 225, 0.28);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(77, 208, 225, 0.38);
  color: #0a1920;
}
.btn-ghost {
  background: var(--glass);
  color: var(--text-hi);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover { background: var(--glass-hi); color: var(--text-hi); }

/* ---------- Hero device mockup ---------- */
.device-row {
  margin-top: 64px;
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}
.device {
  max-width: 260px;
  width: 100%;
  border-radius: 40px;
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 0 6px rgba(255, 255, 255, 0.06),
    0 0 0 7px rgba(255, 255, 255, 0.03);
  transition: transform var(--dur-medium) var(--ease);
}
.device:hover { transform: translateY(-4px) rotate(-0.4deg); }
.device.primary {
  max-width: 300px;
  transform: translateY(-18px);
}
@media (max-width: 1024px) {
  .device.primary { transform: none; }
}
.device img,
.device video {
  width: 100%;
  display: block;
  background: var(--bg-0);
}
/* The hero gameplay reel sits in the primary device slot. The video element
   needs aspect-ratio set since metadata-only preload may delay layout. */
.device-video {
  position: relative;
}
.device-video video {
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
}
.device-video-badge {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: rgba(10, 5, 32, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-hi);
  pointer-events: none;
}
.device-video-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pop);
  box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.7);
  animation: device-video-pulse 1.6s ease-out infinite;
}
@keyframes device-video-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(255, 51, 51, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 51, 51, 0);    }
  100% { box-shadow: 0 0 0 0   rgba(255, 51, 51, 0);    }
}
@media (prefers-reduced-motion: reduce) {
  .device-video-dot { animation: none; }
}

/* ---------- Section headings ---------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--pad-2xl);
}
.section-head .label { display: inline-block; margin-bottom: 14px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.section-head p { font-size: 17px; color: var(--text); }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.feature {
  padding: var(--pad-lg);
  grid-column: span 6;
}
/* Marquee card spans full width; the next two split half each */
.feature.feature-marquee {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  gap: var(--pad-lg);
  align-items: center;
  padding: var(--pad-xl) var(--pad-lg);
}
.feature-marquee .feature-numeric {
  font-size: clamp(72px, 9vw, 132px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--accent);
  background: none;
  padding: 0;
  margin: 0;
}
.feature-marquee h3 { font-size: clamp(22px, 2.4vw, 28px); }
.feature-marquee p { font-size: 16px; color: var(--text-hi); }
.feature.feature-half { grid-column: span 6; }
.feature.feature-third { grid-column: span 4; }
@media (max-width: 720px) {
  .feature, .feature.feature-half, .feature.feature-third { grid-column: span 12; }
  .feature.feature-marquee { grid-template-columns: 1fr; gap: 8px; padding: var(--pad-lg); }
  .feature-marquee .feature-numeric { font-size: 72px; }
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(77, 208, 225, 0.10);
  border: 1px solid rgba(77, 208, 225, 0.28);
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
}
.feature h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.feature p {
  font-size: 15px;
  color: var(--text);
}

/* Compact "also inside" pill row — breaks the icon-circle rhythm */
.feature-also {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  align-items: center;
  justify-content: center;
}
.feature-also-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mut);
  margin-right: 8px;
}
.feature-also span.also-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-hi);
}
.feature-also span.also-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Screenshot strip ---------- */
.shot-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.shot-strip figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--bg-0);
  transition: transform var(--dur-short) var(--ease);
}
.shot-strip figure:hover { transform: translateY(-3px); }
.shot-strip img {
  width: 100%;
  display: block;
  aspect-ratio: 9/19.5;
  object-fit: cover;
}

/* ---------- Pull-quote band — breaks the section rhythm ---------- */
.quote-band {
  padding: var(--pad-xl) 0;
  text-align: center;
}
.quote-band p {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-hi);
}
.quote-band .quote-mark {
  color: var(--accent);
  font-weight: 800;
  margin: 0 4px;
}

/* ---------- Pricing panel ---------- */
.pricing-panel {
  max-width: 620px;
  margin: 0 auto;
  padding: var(--pad-2xl);
  background: var(--glass-hi);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.price-big {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--streak);
  line-height: 1;
  margin: 14px 0 6px;
}
.price-sub { color: var(--text-mut); font-size: 14px; }
.price-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}
.price-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 15px;
}
.price-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  padding: 18px 22px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: background var(--dur-short) var(--ease);
}
.faq details[open] { background: var(--glass-hi); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  color: var(--text-hi);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 26px;
  font-weight: 400;
  color: var(--accent);
  display: inline-block;
  transition: transform var(--dur-short) var(--ease),
              color var(--dur-short) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Doc pages (privacy / support) ---------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--pad-2xl) var(--pad-lg) var(--pad-3xl);
}
.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mut);
  margin-bottom: 22px;
  text-decoration: none;
  transition: color var(--dur-short) var(--ease);
}
.doc-back:hover { color: var(--accent); }
.doc-back::before { content: "\2190"; font-size: 16px; }
.doc h1 {
  font-size: clamp(32px, 4.5vw, 44px);
  margin-bottom: 12px;
}
.doc .updated {
  color: var(--text-mut);
  font-size: 14px;
  margin-bottom: var(--pad-xl);
}
.doc h2 {
  font-size: 22px;
  margin: 32px 0 10px;
}
.doc h3 {
  font-size: 18px;
  margin: 22px 0 8px;
}
.doc p, .doc li { color: var(--text); font-size: 16px; line-height: 1.7; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a:visited { color: #87e7f3; }
.doc code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.fact-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px 20px;
  margin: 22px 0 32px;
  padding: 22px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}
.fact-grid dt {
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.fact-grid dd { margin: 0; color: var(--text-hi); font-size: 15px; }

/* ---------- Footer ---------- */
footer.site {
  padding: var(--pad-2xl) 0;
  border-top: 1px solid var(--glass-border);
  margin-top: var(--pad-3xl);
  text-align: center;
  color: var(--text-mut);
  font-size: 14px;
}
footer.site a {
  color: var(--text);
  margin: 0 10px;
  font-weight: 600;
}
footer.site a:hover { color: var(--accent); }
footer .copyright { margin-top: 18px; font-size: 13px; color: var(--text-mut); }

/* ---------- Mobile menu (CSS-only, via <details>) ---------- */
.nav-mobile { position: relative; display: none; }
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: background var(--dur-short) var(--ease);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary:hover { background: var(--glass-hi); }
.nav-mobile-bars,
.nav-mobile-bars::before,
.nav-mobile-bars::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-hi);
  border-radius: 1px;
  position: relative;
  transition: transform var(--dur-short) var(--ease),
              opacity var(--dur-micro) var(--ease);
}
.nav-mobile-bars::before { position: absolute; top: -6px; left: 0; }
.nav-mobile-bars::after  { position: absolute; top:  6px; left: 0; }
.nav-mobile[open] summary { background: var(--glass-hi); }
.nav-mobile[open] .nav-mobile-bars { background: transparent; }
.nav-mobile[open] .nav-mobile-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-mobile[open] .nav-mobile-bars::after  { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: rgba(10, 5, 32, 0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}
.nav-mobile-list li { list-style: none; }
.nav-mobile-list a {
  display: block;
  padding: 12px 14px;
  color: var(--text-hi);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  min-height: 44px;
}
.nav-mobile-list a:hover { background: var(--glass); color: var(--accent); }
.nav-mobile-list a[aria-current="page"] {
  background: rgba(77, 208, 225, 0.12);
  color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .primary-nav { display: none; }
  .nav-mobile { display: block; }
  .section { padding: var(--pad-2xl) 0; }
  .device.primary { transform: none; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact-grid dt { margin-top: 12px; }
  .fact-grid dt:first-child { margin-top: 0; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
