/* Bowstorm hero / showcase site (bowstorm.com).
   Modern dark UI: aurora-gradient hero, gradient-text headline, glassmorphic
   cards, premium device bezels, glow accents and scroll-reveal motion. Same
   gold + deep-blue brand as the game; the game itself lives on bowstorm.io,
   so every Play link points there. */

:root {
  --bg:        #0c0c16;
  --bg-2:      #11111f;
  --bg-card:   rgba(255, 255, 255, 0.045);
  --bg-darker: #07070f;
  --gold:      #ffd24a;
  --gold-2:    #ffb347;
  --gold-dim:  #c89a3c;
  --text:      #f2f2f7;
  --text-dim:  #a6b3cc;
  --accent:    #6ad0ec;
  --violet:    #8a7bf0;
  --border:    rgba(255, 255, 255, 0.09);
  --max-w:     1120px;
  --grad-gold: linear-gradient(135deg, #fff3c4 0%, #ffd24a 45%, #ff9e2c 100%);
  --grad-cta:  linear-gradient(135deg, #5fd457 0%, #2c8a2a 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.6; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, .brand-name {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: #fff5d0; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-weight: 700; font-size: 20px; }
.brand-icon { border-radius: 9px; display: block; box-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.site-nav { display: flex; align-items: center; }
.site-nav a {
  margin-left: 26px; color: var(--text-dim);
  font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav .nav-play {
  color: #1a1200; background: var(--grad-gold);
  padding: 8px 18px; border-radius: 999px; margin-left: 26px;
  box-shadow: 0 4px 18px rgba(255, 180, 60, 0.3);
}
.site-nav .nav-play:hover { color: #1a1200; filter: brightness(1.06); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding: 96px 24px 80px; text-align: center; overflow: hidden;
}
/* Aurora blobs */
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 120%;
  z-index: -2;
  background:
    radial-gradient(38% 50% at 22% 18%, rgba(106, 208, 236, 0.22), transparent 70%),
    radial-gradient(42% 55% at 82% 30%, rgba(138, 123, 240, 0.20), transparent 70%),
    radial-gradient(50% 60% at 50% 95%, rgba(255, 180, 60, 0.16), transparent 70%);
  filter: blur(20px);
  animation: drift 16s ease-in-out infinite alternate;
}
/* Dot grid */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(36px, -28px) scale(1.06); }
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero-logo {
  /* The badge IS the title (it carries the wordmark), so it's large. Glow
     follows the badge's rounded shape via drop-shadow (not a box shadow). */
  width: clamp(220px, 34vw, 340px); height: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 20px 55px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 70px rgba(255, 200, 80, 0.28));
  animation: float 6s ease-in-out infinite;
}
/* Screen-reader-only (visually hidden but in the a11y tree + SEO). */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero p.tag {
  margin: 0 auto 14px; max-width: 560px;
  font-size: clamp(17px, 2.4vw, 23px); color: var(--text-dim); font-weight: 400;
}
.hero p.genres {
  margin: 0 auto 34px; color: var(--gold-dim);
  font-family: "Space Grotesk", monospace; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em;
}

.cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 17px 44px;
  background: var(--grad-cta);
  color: #fff; font-weight: 700; font-size: 19px;
  border: 0; border-radius: 999px;
  box-shadow: 0 12px 40px rgba(74, 165, 68, 0.45), inset 0 1px 0 rgba(255,255,255,0.35);
  letter-spacing: 0.01em;
  transition: transform 0.15s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.15s ease, filter 0.15s ease;
}
.cta:hover { color: #fff; transform: translateY(-3px); filter: brightness(1.05); box-shadow: 0 18px 50px rgba(74, 165, 68, 0.55), inset 0 1px 0 rgba(255,255,255,0.4); }
.cta:active { transform: translateY(-1px); }
.cta-sub { margin-top: 16px; color: var(--text-dim); font-size: 13px; font-family: "Space Grotesk", monospace; letter-spacing: 0.02em; }

.stores { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px; padding: 11px 20px;
  background: var(--bg-card); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 14px;
  color: var(--text); font-weight: 600; font-size: 14px;
}
.store-badge .store-logo { font-size: 22px; }
.store-badge .store-soon { color: var(--gold-dim); font-size: 11px; font-family: "Space Grotesk", monospace; }

/* ---------- How it plays ---------- */
.how { position: relative; padding: 64px 24px 40px; }
.how-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.how-head h2 { margin: 0 0 14px; font-size: clamp(30px, 4.8vw, 50px); font-weight: 700; line-height: 1.05; }
.how-head p { margin: 0; color: var(--text-dim); font-size: clamp(16px, 2vw, 19px); }

/* Alternating screenshot + copy rows. Because they alternate left/right, the
   rows are pulled tight together (and overlap slightly on desktop) so the next
   shot starts before the previous row's whitespace fully runs out. */
.showcase {
  max-width: var(--max-w); margin: 0 auto 16px;
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.showcase.reverse .frame { order: 2; }
@media (min-width: 761px) {
  .showcase + .showcase { margin-top: -72px; }   /* interleave neighbouring rows */
  /* Landscape row: extra breathing room, and a bigger image that bleeds left
     while its right edge (and the copy column) stay aligned with the other rows. */
  .wide-row { margin-bottom: 56px; }
  .wide-row + .showcase { margin-top: 0; }
  .wide-row .frame-wide { max-width: none; width: calc(100% + 64px); margin-left: -64px; }
}

/* In-game tab icon above each section's kicker — no card, just the glyph. */
.sec-icon { display: flex; margin-bottom: 14px; }
.sec-icon img { width: 92px; height: 92px; display: block; }

.copy .kicker {
  display: inline-block; margin-bottom: 14px; padding: 5px 12px;
  background: linear-gradient(135deg, rgba(106,208,236,0.16), rgba(138,123,240,0.16));
  border: 1px solid rgba(106,208,236,0.3); border-radius: 999px;
  color: var(--accent); font-family: "Space Grotesk", monospace; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.copy h3 { margin: 0 0 14px; font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; line-height: 1.08; color: var(--text); }
.copy p { margin: 0 0 20px; color: var(--text-dim); font-size: 17px; }
.copy .link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--accent);
  transition: gap 0.15s ease, color 0.15s ease;
}
.copy .link:hover { color: var(--gold); gap: 11px; }

/* Premium device bezel. Portrait phone by default; wide variant for the
   landscape combat shot. Lifts + tilts subtly on hover. */
.frame {
  display: block; margin: 0; padding: 11px;
  background: linear-gradient(155deg, #34344e 0%, #14141e 55%);
  border-radius: 34px;
  box-shadow:
    0 40px 80px -28px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 2px rgba(0, 0, 0, 0.55);
  justify-self: center; width: 100%; max-width: 308px;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
}
.frame:hover {
  transform: translateY(-8px);
  box-shadow: 0 50px 90px -26px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.1), 0 0 80px -20px rgba(106,208,236,0.25), inset 0 1px 0 rgba(255,255,255,0.14);
}
.frame img { display: block; width: 100%; border-radius: 24px; }
.frame-wide { max-width: 540px; }
.frame-wide img { border-radius: 18px; }

/* ---------- Pillars ---------- */
.pillars {
  max-width: var(--max-w); margin: 64px auto 0;
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.pillar {
  background: var(--bg-card); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 18px; padding: 28px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(255,210,74,0.35); }
.pillar-icon {
  display: flex; justify-content: center;        /* centre the icon in the card */
  margin-bottom: 14px; font-size: 52px; line-height: 1;
}
.pillar-icon img { width: 68px; height: 68px; display: block; }
.pillar h4 { margin: 0 0 8px; color: var(--text); font-size: 19px; font-weight: 700; }
.pillar p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ---------- Final CTA band ---------- */
.cta-band {
  position: relative; text-align: center; padding: 96px 24px; overflow: hidden;
  background: var(--bg-darker);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 90% at 50% 130%, rgba(255, 200, 80, 0.18), transparent 65%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin: 0 0 28px; font-size: clamp(34px, 5.6vw, 60px); font-weight: 700; }

/* Trailer placeholder — swap the .trailer block for a YouTube <iframe class="trailer">
   once the gameplay trailer / ad is produced (it inherits the 16:9 frame). */
.trailer {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  width: 100%; max-width: 760px; margin: 0 auto 36px;
  aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% 42%, rgba(255, 200, 80, 0.10), transparent 70%),
    linear-gradient(160deg, #1b2531 0%, #0b0b14 80%);
  box-shadow: 0 36px 80px -30px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
iframe.trailer { display: block; }
.trailer-play {
  display: flex; align-items: center; justify-content: center;
  width: 88px; height: 88px; padding-left: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff; font-size: 32px;
  box-shadow: 0 0 54px rgba(255, 200, 80, 0.4);
}
.trailer-label {
  color: var(--text-dim); font-family: "Space Grotesk", monospace;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-darker); border-top: 1px solid var(--border); padding: 48px 24px 28px; color: var(--text-dim); font-size: 14px; }
.footer-grid { max-width: var(--max-w); margin: 0 auto; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-title { color: var(--text); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; margin-bottom: 4px; }
.footer-col a { color: var(--text-dim); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-tag { margin: 0; max-width: 280px; }
.footer-bottom { max-width: var(--max-w); margin: 36px auto 0; padding-top: 18px; border-top: 1px solid var(--border); font-family: "Space Grotesk", monospace; font-size: 11px; text-align: center; letter-spacing: 0.03em; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .showcase { grid-template-columns: 1fr; gap: 26px; margin-bottom: 40px; }
  .showcase.reverse .frame { order: 0; }
  .copy { text-align: center; }
  .copy .kicker { margin-inline: auto; }
  .copy .sec-icon { justify-content: center; }
  .frame { max-width: 268px; }
  .frame-wide { max-width: 440px; }
}
@media (max-width: 520px) {
  .site-header { padding: 12px 16px; }
  .site-nav a { margin-left: 14px; font-size: 12px; }
  .site-nav a:not(.nav-play):first-of-type { display: none; }   /* tighten the bar on phones */
  .hero { padding: 64px 16px 56px; }
  .how, .cta-band { padding: 56px 16px; }
}
