/* Square Shotz - Marketing Site
   Uniform card sizing: every image card forces same aspect ratio + dimensions
*/

:root {
  --p1: #7C6DFA;
  --p2: #00C9A7;
  --gold: #FBBF24;
  --red: #EF4444;
  --bg: #06080F;
  --bg-card: #0F1422;
  --bg-elevated: #161C2E;
  --text: #FFFFFF;
  --text-dim: #B4BDD3;
  --text-faint: #6B7488;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(124,109,250,0.4);
  --grad-brand: linear-gradient(135deg, #7C6DFA 0%, #00C9A7 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(124,109,250,0.15) 0%, rgba(0,201,167,0.15) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Glow backgrounds */
.glow-purple, .glow-teal {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.glow-purple {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,109,250,0.18), transparent 60%);
}
.glow-teal {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,201,167,0.15), transparent 60%);
}

/* Header */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,8,15,0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1200px; margin: 0 auto;
}

.brand-link {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 18px; letter-spacing: -0.02em;
}

.brand-link img {
  width: 36px; height: 36px; border-radius: 10px;
  box-shadow: 0 4px 16px rgba(124,109,250,0.3);
}

.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }

.nav-links a {
  color: var(--text-dim); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--grad-brand);
  color: white !important;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600 !important;
  box-shadow: 0 4px 16px rgba(124,109,250,0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,109,250,0.4);
}

/* HERO */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero .glow-purple { top: -100px; left: 10%; }
.hero .glow-teal { bottom: -100px; right: 5%; }

.hero-content { position: relative; z-index: 2; }

.hero-app-icon {
  width: 160px; height: 160px;
  border-radius: 36px;
  margin: 0 auto 32px;
  box-shadow:
    0 24px 80px rgba(124,109,250,0.5),
    0 12px 32px rgba(0,0,0,0.5);
  animation: float 6s ease-in-out infinite;
  display: block;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero h1 .gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.cta-row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 600; font-size: 16px;
  text-decoration: none; border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--grad-brand);
  color: white;
  box-shadow: 0 10px 30px rgba(124,109,250,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(124,109,250,0.55);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: #2a1b00;
  box-shadow: 0 10px 30px rgba(251,191,36,0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(251,191,36,0.5);
}

/* Countdown */
.countdown-bar {
  display: inline-flex;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  align-items: center; gap: 16px;
  font-size: 14px;
  margin-bottom: 40px;
}

.countdown-bar .pulse-dot {
  width: 8px; height: 8px;
  background: var(--p2);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0,201,167,0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,201,167,0.7); }
  70% { box-shadow: 0 0 0 12px rgba(0,201,167,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,201,167,0); }
}

.countdown-text { color: var(--text-dim); }
.countdown-text strong { color: var(--text); }

.stat-bar {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.stat { text-align: center; }
.stat .num {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat .lbl {
  font-size: 12px; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 6px; font-weight: 600;
}

/* Section */
.section { padding: 100px 0; position: relative; }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 60px; }

.section-header .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--grad-brand-soft);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.section-header h2 .gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  color: var(--text-dim); font-size: 18px;
}

/* ============================================
   UNIFORM CARD GRID
   All image cards lock to same dimensions
   ============================================ */

/* Character grid: 5 columns, square cards */
.character-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.character-card,
.bag-card,
.arrow-card,
.board-card,
.rank-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.character-card:hover,
.bag-card:hover,
.arrow-card:hover,
.board-card:hover,
.rank-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(124,109,250,0.2);
}

/* All card images: 2:3 portrait (matches source 1024x1536), FULL image visible */
.card-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 10px;
  background: transparent;
}

/* Rank icons are radial/badge style — keep more compact, padded */
.rank-card .card-img {
  aspect-ratio: 1 / 1;
  padding: 12px;
  background: var(--bg-elevated);
}

.character-card .name,
.bag-card .name,
.arrow-card .name,
.board-card .name,
.rank-card .name {
  margin-top: 10px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
}

.character-card .tier,
.rank-card .tier {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* Bags + Arrows grids: 5 columns each */
.bag-grid,
.arrow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* Arrows have a different visual style — tall, lighter background tone */
.arrow-card {
  background: var(--bg-card);
}

/* Boards grid: 4 columns — matches the other card grids in look + feel */
.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Board cards inherit the shared card styling (padding 12px, border-radius 16px,
   2:3 contain image). .meta is just a transparent wrapper for name + desc. */
.board-card .meta { margin: 0; padding: 0; }
.board-card .desc {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
  line-height: 1.3;
}

/* Rank ladder: 5 uniform cards */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.rank-card .card-img {
  background: transparent;
  object-fit: contain;
  padding: 16px;
  border-radius: 12px;
}

/* MECHANICS section */
.mechanics-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mechanics-text h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.mechanics-text h2 .gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mechanics-text p {
  color: var(--text-dim); font-size: 17px;
  margin-bottom: 20px;
}

.mechanic-list { list-style: none; margin-top: 24px; }

.mechanic-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}

.mechanic-list li:last-child { border-bottom: none; }

.mechanic-list .icon-box {
  width: 32px; height: 32px;
  background: var(--grad-brand);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-weight: 700; font-size: 14px;
  color: white;
}

.mechanic-list strong {
  color: var(--text); display: block;
  font-size: 16px; margin-bottom: 2px;
}

/* Grid visual */
.grid-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
}

.grid-4x4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  aspect-ratio: 1;
  max-width: 360px;
  margin: 0 auto;
}

.grid-hole {
  background: var(--bg);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  aspect-ratio: 1;
  transition: all 0.3s ease;
}

.grid-hole.lit {
  background: var(--grad-brand-soft);
  border-color: var(--p1);
  box-shadow: 0 0 24px rgba(124,109,250,0.4) inset;
  animation: holeLight 3s ease-in-out infinite;
}

@keyframes holeLight {
  0%, 100% { box-shadow: 0 0 24px rgba(124,109,250,0.4) inset; border-color: var(--p1); }
  50% { box-shadow: 0 0 24px rgba(0,201,167,0.5) inset; border-color: var(--p2); }
}

/* Physical board section */
.physical-board {
  background: linear-gradient(180deg, var(--bg) 0%, #0c1020 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.physical-board .glow-purple { top: 20%; left: -200px; }
.physical-board .glow-teal { bottom: 10%; right: -150px; }

.physical-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative; z-index: 2;
}

.board-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
}

.board-visual img {
  width: 100%; height: auto; display: block;
}

.physical-text h2 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.physical-text h2 .gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.physical-text p {
  color: var(--text-dim); font-size: 17px;
  margin-bottom: 20px;
}

.physical-bullets {
  list-style: none; margin: 24px 0 32px;
}

.physical-bullets li {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0;
  color: var(--text-dim); font-size: 16px;
}

.physical-bullets .dot {
  width: 8px; height: 8px;
  background: var(--grad-brand);
  border-radius: 50%;
  flex-shrink: 0;
}

.physical-bullets strong { color: var(--text); }

/* Email signup */
.signup {
  background: var(--grad-brand-soft);
  border: 1px solid var(--border-hover);
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.signup h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.signup p {
  color: var(--text-dim); font-size: 17px;
  margin-bottom: 32px;
}

.signup-form {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  max-width: 480px; margin: 0 auto;
}

.signup-form input {
  flex: 1; min-width: 240px;
  padding: 14px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
}

.signup-form input:focus { outline: none; border-color: var(--p1); }

.signup-form button {
  padding: 14px 24px;
  background: var(--grad-brand);
  color: white;
  border: none; border-radius: 12px;
  font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.signup-form button:hover { transform: translateY(-1px); }

.signup-success {
  display: none;
  padding: 20px;
  background: rgba(0,201,167,0.15);
  border: 1px solid rgba(0,201,167,0.4);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
}

.signup-success.show { display: block; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--p1);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .answer {
  padding: 0 24px 20px;
  color: var(--text-dim);
  font-size: 15px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--text); }

.footer-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}

.footer-brand img { width: 36px; height: 36px; border-radius: 8px; }
.footer-brand span { font-weight: 700; font-size: 16px; }

.footer-tagline {
  color: var(--text-dim);
  font-size: 14px;
  max-width: 320px;
  margin-bottom: 16px;
}

.footer-social { display: flex; gap: 12px; }

.footer-social a {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: all 0.2s ease;
  font-size: 12px; font-weight: 700; letter-spacing: -0.5px;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-hover);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}

.footer-bottom p { color: var(--text-faint); font-size: 13px; }

.footer-bottom .legal-tags { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom .legal-tags span {
  color: var(--text-faint); font-size: 12px; letter-spacing: 0.04em;
}

/* Article pages */
.article { padding: 60px 0 100px; }
.article h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.article .meta { color: var(--text-faint); font-size: 14px; margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article h2 { font-size: 24px; font-weight: 700; margin: 40px 0 16px; letter-spacing: -0.01em; }
.article h3 { font-size: 19px; font-weight: 600; margin: 28px 0 12px; }
.article p { margin-bottom: 16px; color: var(--text-dim); font-size: 16px; }
.article ul, .article ol { margin: 16px 0 24px 24px; color: var(--text-dim); }
.article li { margin-bottom: 8px; }
.article a { color: var(--p2); text-decoration: none; border-bottom: 1px solid rgba(0,201,167,0.4); transition: border-color 0.15s ease; }
.article a:hover { border-bottom-color: var(--p2); }
.article strong { color: var(--text); font-weight: 600; }
.article hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* RESPONSIVE */
@media (max-width: 920px) {
  .character-grid, .bag-grid, .arrow-grid, .rank-grid { grid-template-columns: repeat(3, 1fr); }
  .board-grid { grid-template-columns: repeat(3, 1fr); }
  .mechanics-split, .physical-split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .nav { padding: 12px 20px; }
  .nav-links { gap: 16px; }
  .nav-links li:not(:last-child) { display: none; }
  .nav-links a { font-size: 13px; }
  .hero { padding: 60px 0 60px; }
  .hero-app-icon { width: 120px; height: 120px; border-radius: 26px; margin-bottom: 24px; }
  .section { padding: 60px 0; }
  .character-grid, .bag-grid, .arrow-grid, .rank-grid { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-bar { gap: 20px; padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .signup { padding: 40px 24px; }
  .signup-form input { min-width: 100%; }
}

::selection { background: rgba(124,109,250,0.4); color: white; }
