/* huntinggame.lejacob.dev — the app's design system on the web. Same hex values, radii and
   type pairing as the app (ADATheme.swift / TacticalPalette.swift) and the admin panel, so the
   site reads as the product it advertises. Glass is emulated honestly: blur, a translucent
   fill and a hairline highlight over the radar, with solid fallbacks. */

:root {
  color-scheme: dark;
  --bg: #090B10;
  --elevated: #1A1F2E;
  --text: #F4F6FA;
  --dim: rgba(244, 246, 250, .62);
  --faint: rgba(244, 246, 250, .38);
  --hairline: rgba(255, 255, 255, .09);
  --glass: rgba(26, 31, 46, .52);
  --glass-edge: rgba(255, 255, 255, .13);

  --red: #D93A4A;   --red-rgb: 217, 58, 74;
  --green: #22C55E; --green-rgb: 34, 197, 94;
  --amber: #F5A524; --amber-rgb: 245, 165, 36;
  --cyan: #49D4FF;  --cyan-rgb: 73, 212, 255;
  --purple: #A78BFA; --purple-rgb: 167, 139, 250;

  --r-control: 16px; --r-card: 24px; --r-sheet: 32px;
  --display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --max: 1140px;
  --spring: cubic-bezier(.2, .9, .25, 1.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 10px; }
section[id], h2[id] { scroll-margin-top: 100px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--cyan); color: #031319; font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; }

/* ------------------------------------------------------------------ glass */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 24px 60px -30px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: var(--elevated); } }

/* ------------------------------------------------------------------ backdrop */
.radar-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(70vmax 60vmax at 75% 10%, rgba(var(--green-rgb), .09), transparent 60%),
              radial-gradient(60vmax 50vmax at 5% 95%, rgba(var(--cyan-rgb), .07), transparent 60%), var(--bg); }
.radar-bg::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(circle at 70% 25%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 70% 25%, #000, transparent 70%); }

.radar { position: absolute; width: min(760px, 120vw); aspect-ratio: 1; border-radius: 50%; pointer-events: none; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .06); }
.radar i:nth-child(2) { inset: 17%; } .radar i:nth-child(3) { inset: 34%; }
.radar::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(var(--green-rgb), .22), transparent 28%); animation: sweep 9s linear infinite; }
.radar::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(transparent calc(50% - .5px), rgba(255,255,255,.05) 0 calc(50% + .5px), transparent 0),
  linear-gradient(90deg, transparent calc(50% - .5px), rgba(255,255,255,.05) 0 calc(50% + .5px), transparent 0); border-radius: 50%; }
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .radar::before { animation: none; } html { scroll-behavior: auto; } .reveal { opacity: 1 !important; transform: none !important; } }

/* ------------------------------------------------------------------ nav: the app's floating pill */
.nav { position: sticky; top: 14px; z-index: 50; margin: 14px auto 0; max-width: calc(var(--max) - 8px); width: calc(100% - 28px);
  display: flex; align-items: center; gap: 18px; padding: 9px 9px 9px 20px; border-radius: 999px; }
.nav .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.nav .brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav .links { display: flex; gap: 4px; margin-left: auto; }
.nav .links a { color: var(--dim); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav .links a:hover, .nav .links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .07); }
.nav .cta { padding: 10px 18px; border-radius: 999px; background: var(--green); color: #04140a; font: 700 13px/1 var(--mono); letter-spacing: .04em; text-decoration: none; white-space: nowrap; box-shadow: 0 10px 26px -10px rgba(var(--green-rgb), .7); }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-edge); background: transparent; color: var(--text); cursor: pointer; }
@media (max-width: 860px) {
  .nav { gap: 10px; }
  .nav .links { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; padding: 10px; border-radius: 24px;
    background: rgba(18, 22, 32, .96); border: 1px solid var(--glass-edge); }
  .nav[data-open="true"] .links { display: flex; }
  .nav .links a { padding: 12px 14px; font-size: 16px; }
  .menu-btn { display: grid; place-items: center; }
  .nav .cta { padding: 10px 14px; }
}

/* ------------------------------------------------------------------ wordmark & type */
.wordmark { display: inline-flex; align-items: center; font: 900 1em/1 var(--display); letter-spacing: .01em; color: var(--text); white-space: nowrap; }
.wordmark svg { fill: var(--green); margin: 0 .02em; }
.eyebrow { font: 700 12px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--green); }
h1, h2, h3 { font-family: var(--display); font-weight: 900; letter-spacing: -.012em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 74px); }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 21px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--dim); max-width: 34em; }
.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { margin: 14px 0 14px; }
.section-head p { color: var(--dim); margin: 0; }
.mono { font-family: var(--mono); }

/* ------------------------------------------------------------------ buttons & chips */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 22px; border-radius: var(--r-control); font: 700 13px/1 var(--mono); letter-spacing: .06em;
  text-decoration: none; color: var(--text); transition: transform .2s var(--spring), background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.ghost { border: 1px solid var(--glass-edge); background: rgba(255, 255, 255, .05); }
.store { display: inline-block; transition: transform .2s var(--spring); }
.store:hover { transform: translateY(-2px); }
.store img { height: 54px; width: auto; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font: 700 11px/1.3 var(--mono); letter-spacing: .06em;
  background: rgba(var(--c, 155, 161, 172), .14); color: rgb(var(--c, 155, 161, 172)); border: 1px solid rgba(var(--c, 155, 161, 172), .25); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 .wordmark { font-size: 1em; }
.hero .lead { margin: 22px 0 32px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .chips { margin-top: 30px; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .actions, .hero .chips { justify-content: center; }
  .hero-visual { min-height: 0; margin-top: 10px; }
}

/* An iPhone frame drawn in CSS around a real screenshot. */
.phone { position: relative; width: min(300px, 74vw); aspect-ratio: 600 / 1301; border-radius: 48px; padding: 11px;
  background: linear-gradient(145deg, #2a2f3a, #10131a); box-shadow: 0 0 0 1.5px #3a404d, 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 120px -30px rgba(var(--green-rgb), .45); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 30%; height: 24px; transform: translateX(-50%); border-radius: 20px; background: #000; z-index: 2; }
.phone.tilt { transform: rotate(-3deg); }
.float-card { position: absolute; padding: 12px 15px; border-radius: 18px; font: 700 12px/1.3 var(--mono); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.float-card .dot { width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--c)); box-shadow: 0 0 10px rgb(var(--c)); }
@media (max-width: 900px) { .float-card { display: none; } }

/* ------------------------------------------------------------------ cards & grids */
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid.three, .grid.two { grid-template-columns: 1fr; } }
.card { border-radius: var(--r-card); padding: 26px; position: relative; overflow: hidden; }
.card p { color: var(--dim); margin: 10px 0 0; font-size: 15.5px; }
.card .icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(var(--c), .14); box-shadow: inset 0 0 0 1px rgba(var(--c), .3); color: rgb(var(--c)); }
.card .icon svg { width: 22px; height: 22px; }
.card .tag { position: absolute; top: 22px; right: 22px; }
.card.tinted::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 0% 0%, rgba(var(--c), .12), transparent 60%); }

.step-num { font: 900 15px/1 var(--mono); color: rgb(var(--c)); letter-spacing: .1em; }
.steps .card h3 { margin-top: 14px; }

.role { padding: 34px; }
.role h3 { font-size: 30px; display: flex; align-items: center; gap: 12px; }
.role ul { list-style: none; margin: 18px 0 0; padding: 0; }
.role li { padding: 11px 0; border-top: 1px solid var(--hairline); color: var(--dim); display: flex; gap: 12px; font-size: 15.5px; }
.role li b { color: var(--text); font-weight: 650; min-width: 92px; }
.hearts { display: inline-flex; gap: 3px; color: var(--red); font-size: 17px; }

.power .meta { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ showcase */
.showcase { display: flex; gap: 22px; overflow-x: auto; padding: 10px 24px 30px; scroll-snap-type: x mandatory; justify-content: safe center; scrollbar-width: none; }
.showcase::-webkit-scrollbar { display: none; }
.showcase figure { margin: 0; flex: none; width: 250px; scroll-snap-align: center; }
.showcase img { border-radius: 30px; box-shadow: 0 0 0 1px var(--glass-edge), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.showcase figcaption { margin-top: 14px; text-align: center; font: 700 12px/1.4 var(--mono); letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }

/* ------------------------------------------------------------------ FAQ */
.faq { max-width: 820px; margin: 0 auto; border-radius: var(--r-card); overflow: hidden; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 26px; font-weight: 650; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 20px/1 var(--mono); color: var(--cyan); transition: transform .25s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 26px 22px; color: var(--dim); }

/* ------------------------------------------------------------------ CTA & footer */
.cta-band { border-radius: var(--r-sheet); padding: 64px 32px; text-align: center; position: relative; overflow: hidden; }
.cta-band .radar { opacity: .7; }
.cta-band > *:not(.radar) { position: relative; }
.cta-band .radar { width: min(620px, 110vw); }
.cta-band p { color: var(--dim); margin: 14px auto 28px; max-width: 30em; }
footer { padding: 60px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hairline); margin-top: 40px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.foot h4 { margin: 0 0 12px; font: 700 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.foot a { display: block; color: var(--dim); text-decoration: none; padding: 4px 0; font-size: 15px; }
.foot a:hover { color: var(--text); }
.note { color: var(--faint); font-size: 13.5px; }
.foot .note { margin-top: 14px; max-width: 24em; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ article pages */
.doc-head { padding: 70px 0 30px; }
.doc-head h1 { font-size: clamp(36px, 5vw, 56px); margin-top: 14px; }
.doc-head .updated { margin-top: 14px; font: 600 13px/1 var(--mono); color: var(--faint); }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 40px; }
.toc { position: sticky; top: 110px; border-radius: var(--r-card); padding: 20px; font-size: 14px; }
.toc h4 { margin: 0 0 10px; font: 700 10.5px/1 var(--mono); letter-spacing: .2em; color: var(--faint); text-transform: uppercase; }
.toc a { display: block; color: var(--dim); text-decoration: none; padding: 6px 0; line-height: 1.35; }
.toc a:hover { color: var(--text); }
.doc { border-radius: var(--r-sheet); padding: clamp(24px, 4vw, 48px); max-width: 760px; }
.doc h2 { font-size: 26px; margin: 46px 0 14px; padding-top: 6px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; }
.doc p, .doc li { color: rgba(244, 246, 250, .78); }
.doc ul { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--cyan); }
.doc strong, .doc b { color: var(--text); }
.doc .callout { border-radius: 18px; padding: 16px 18px; margin: 18px 0; background: rgba(var(--c, 73, 212, 255), .08); border: 1px solid rgba(var(--c, 73, 212, 255), .25); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.doc th { font: 700 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.doc .table-wrap { overflow-x: auto; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } .toc { position: static; } }

/* Gentle entrance as sections scroll in; content is fully visible without JavaScript. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s var(--spring); }
.js .reveal.in { opacity: 1; transform: none; }
