/* =========================================================
   Tower Rush Drop — site-wide styles
   ========================================================= */

:root {
  --brand: #F5A623;
  --brand-dark: #D4891A;
  --accent: #4A90E2;
  --gold: #FFD700;
  --fire: #FF5E94;
  --xp: #7B68EE;
  --surface: #0A0A14;
  --surface-card: #111122;
  --surface-border: #1E1E36;
  --display: 'Unbounded', 'SF Pro Rounded', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  --radius: 1rem;
}

html { scroll-behavior: smooth; }
body {
  background: var(--surface);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Display font for headings, wordmark and numeric stat callouts */
.font-display,
h1, h2, h3, .wordmark, .num {
  font-family: var(--display);
  letter-spacing: -0.01em;
}

/* ---------- Atmospheric background grain + aurora ---------- */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.site-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  width: 90vw;
  height: 90vw;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(245, 166, 35, 0.11), transparent 70%);
  filter: blur(60px);
}
.site-bg::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(closest-side, rgba(123, 104, 238, 0.09), transparent 70%);
  filter: blur(80px);
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Phone frame ---------- */
.phone-frame {
  background: #000;
  border-radius: 2.5rem;
  padding: 0.5rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(245, 166, 35, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.06);
}
.phone-frame img { border-radius: 2rem; display: block; width: 100%; }

/* ---------- Carousel ---------- */
.screenshot-scroll::-webkit-scrollbar { display: none; }
.screenshot-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- Hero wordmark ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand);
}

/* ---------- Pill/tag ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid;
}
.tag--brand { color: var(--brand); background: rgba(245, 166, 35, 0.1); border-color: rgba(245, 166, 35, 0.2); }
.tag--fire  { color: var(--fire);  background: rgba(255, 94, 148, 0.1); border-color: rgba(255, 94, 148, 0.2); }
.tag--gold  { color: var(--gold);  background: rgba(255, 215, 0, 0.1);  border-color: rgba(255, 215, 0, 0.2); }
.tag--xp    { color: var(--xp);    background: rgba(123, 104, 238, 0.1); border-color: rgba(123, 104, 238, 0.2); }

/* ---------- FAQ disclosure ---------- */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-icon { transition: transform 0.3s ease; }

/* ---------- Tower schematic (hero decorative block stack) ---------- */
.tower-stack {
  --block-h: 14px;
  position: absolute;
  bottom: 0;
  right: 3%;
  display: grid;
  gap: 3px;
  width: 46px;
  pointer-events: none;
  opacity: 0.55;
}
.tower-stack span {
  height: var(--block-h);
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.35);
  transform-origin: center;
}
.tower-stack span:nth-child(odd)  { transform: translateX(-4px); background: linear-gradient(90deg, var(--fire), #c94376); }
.tower-stack span:nth-child(3n)   { transform: translateX(3px);  background: linear-gradient(90deg, var(--xp), #5543c4); }
.tower-stack span:nth-child(5n)   { transform: translateX(-2px); background: linear-gradient(90deg, var(--gold), #b89b00); }

/* ---------- Legal prose helper ---------- */
.legal-prose h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--surface-border);
  color: #fff;
}
.legal-prose h3 {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand);
  margin: 1.5rem 0 0.75rem;
}
.legal-prose p,
.legal-prose ul { font-size: 14px; color: rgba(255, 255, 255, 0.4); line-height: 1.75; margin-bottom: 1rem; }
.legal-prose ul { list-style: disc; padding-left: 1.25rem; }
.legal-prose ul li { margin-bottom: 0.5rem; }
.legal-prose strong { color: rgba(255, 255, 255, 0.68); font-weight: 600; }
.legal-prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.75rem;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  border-radius: 0.85rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 0 30px rgba(245, 166, 35, 0.3);
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  border-radius: 0.85rem;
  border: 1px solid var(--surface-border);
  background: rgba(17, 17, 34, 0.5);
  transition: all 0.2s ease;
}
.btn-ghost:hover { border-color: var(--brand); color: #fff; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-aos] { transform: none !important; opacity: 1 !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- iOS safe area for fixed elements ---------- */
@supports (padding: max(0px)) {
  header.site-header { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }
}
