/* ==========================================================================
   GOMOKU NEON — Cyberpunk Landing Page Stylesheet
   Design System: Sci-Fi Neon, Glassmorphism, AMOLED Void Black, Fluid Responsive
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-void: #030712;
  --bg-deep: #060b18;
  --bg-card: rgba(11, 18, 34, 0.78);
  --bg-card-hover: rgba(16, 27, 50, 0.88);
  --bg-glass: rgba(14, 23, 42, 0.65);
  
  --border-subtle: rgba(0, 240, 255, 0.15);
  --border-neon: rgba(0, 240, 255, 0.45);
  --border-gold: rgba(250, 204, 21, 0.45);
  
  /* Neon Accents */
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.45);
  --cyan-dim: rgba(0, 240, 255, 0.12);
  
  --gold: #facc15;
  --gold-glow: rgba(250, 204, 21, 0.45);
  --gold-dim: rgba(250, 204, 21, 0.12);
  
  --magenta: #ff007f;
  --magenta-glow: rgba(255, 0, 127, 0.45);
  
  --green: #00ff9d;
  --green-glow: rgba(0, 255, 157, 0.45);
  
  --purple: #8b5cf6;
  
  /* Text */
  --text-white: #f8fafc;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Fonts */
  --font-display: 'Orbitron', -apple-system, sans-serif;
  --font-sub: 'Rajdhani', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Layout */
  --max-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0; /* Prevents flex/grid children from expanding past parent width */
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-void);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Canvas & Grid Effects */
#cyber-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

.ambient-flare {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.flare-cyan {
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
}

.flare-gold {
  bottom: 10%;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.22;
}

.flare-purple {
  top: 45%;
  right: 15%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--magenta) 0%, transparent 75%);
  opacity: 0.18;
}

/* Content wrapper above canvas */
.content-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-white);
  line-height: 1.2;
  word-break: break-word;
}

.font-sub {
  font-family: var(--font-sub);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  user-select: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #00b4d8 100%);
  color: #030814;
  box-shadow: 0 0 25px var(--cyan-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: rgba(14, 23, 42, 0.8);
  color: var(--cyan);
  border: 1px solid var(--border-neon);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: translateY(-2px);
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 100%);
  color: #030814;
  box-shadow: 0 0 25px var(--gold-glow);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(250, 204, 21, 0.8);
  filter: brightness(1.1);
}

.btn-google-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #030813;
  border: 1.5px solid var(--cyan);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 24px var(--cyan-glow), inset 0 0 12px rgba(0, 240, 255, 0.15);
  transition: all var(--transition-fast);
  color: #fff;
  text-decoration: none;
}

.btn-google-play:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 36px rgba(0, 240, 255, 0.65), inset 0 0 18px rgba(0, 240, 255, 0.25);
  transform: translateY(-2px);
  border-color: #67e8f9;
}

.btn-google-play .play-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.btn-google-play .play-text {
  text-align: left;
  line-height: 1.2;
}

.btn-google-play .play-subtitle {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.btn-google-play .play-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

/* Badges */
.badge-neon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: var(--cyan-dim);
  border: 1px solid var(--border-neon);
  color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
  max-width: 100%;
}

.badge-gold {
  background: var(--gold-dim);
  border-color: var(--border-gold);
  color: var(--gold);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulseGreen 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--green); }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(3, 7, 18, 0.88);
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(3, 7, 18, 0.96);
  border-bottom-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 0 14px var(--cyan-glow);
  transition: transform var(--transition-bounce);
  flex-shrink: 0;
}

.brand:hover .brand-icon {
  transform: scale(1.06) rotate(3deg);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.8px;
  background: linear-gradient(90deg, #fff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.brand-name span {
  color: var(--cyan);
  -webkit-text-fill-color: var(--cyan);
}

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

.nav-link {
  font-family: var(--font-sub);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Control Pills */
.toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-light);
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.toggle-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: 20px;
  cursor: pointer;
  padding: 5px 10px;
}

/* Hero Section */
.hero-section {
  padding: 50px 20px 70px;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: calc(100vh - 75px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-title {
  font-size: clamp(28px, 4.8vw, 54px);
  line-height: 1.12;
  text-transform: uppercase;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, var(--cyan) 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-title .gold-accent {
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  text-shadow: 0 0 20px var(--gold-glow);
  display: block;
}

.hero-description {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 520px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 14px var(--cyan-glow);
  line-height: 1.1;
}

.stat-number.gold {
  color: var(--gold);
  text-shadow: 0 0 14px var(--gold-glow);
}

.stat-number.green {
  color: var(--green);
  text-shadow: 0 0 14px var(--green-glow);
}

.stat-label {
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  line-height: 1.3;
}

/* Hero Showcase & Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.phone-mockup-wrapper {
  position: relative;
  perspective: 1200px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.phone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: #000;
  border-radius: 42px;
  padding: 10px;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(0, 240, 255, 0.28),
    inset 0 0 0 2px rgba(0, 240, 255, 0.4),
    inset 0 0 0 5px #0b1426;
  transition: transform 0.2s ease-out;
  transform-style: preserve-3d;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  background: #060913;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 16px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

/* Floating HUD Tags */
.hud-tag {
  position: absolute;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(11, 18, 34, 0.88);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--cyan-glow);
  z-index: 10;
  animation: floatHUD 5s infinite ease-in-out;
}

.hud-tag-1 {
  top: 12%;
  left: -20px;
  animation-delay: 0s;
}

.hud-tag-2 {
  bottom: 18%;
  right: -20px;
  animation-delay: 2.5s;
  border-color: var(--border-gold);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--gold-glow);
}

.hud-icon {
  font-size: 18px;
}

.hud-text-label {
  font-family: var(--font-sub);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hud-text-value {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

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

/* Section Common Styles */
.section {
  padding: 80px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--cyan-dim);
  border: 1px solid var(--border-neon);
}

.section-title {
  font-size: clamp(26px, 3.8vw, 40px);
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Interactive Live Mini Caro Demo Section
   ========================================================================== */
.demo-section {
  padding: 70px 20px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.demo-container {
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 240, 255, 0.2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.demo-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.demo-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(3, 7, 18, 0.75);
  border: 1px solid var(--border-subtle);
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-sub);
  font-size: 15px;
  font-weight: 700;
  align-self: flex-start;
}

.demo-status-pill .turn-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  flex-shrink: 0;
}

.demo-status-pill.ai-turn .turn-indicator {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.demo-board-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.mini-caro-board {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(9, 1fr);
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  background: #040815;
  border: 2px solid var(--cyan);
  border-radius: var(--radius-md);
  box-shadow: 0 0 25px var(--cyan-glow), inset 0 0 20px rgba(0, 240, 255, 0.15);
  padding: 8px;
  gap: 4px;
  margin: 0 auto;
}

.board-cell {
  background: rgba(14, 23, 42, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  aspect-ratio: 1 / 1;
}

.board-cell:hover:not(.taken) {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--cyan);
  box-shadow: inset 0 0 8px var(--cyan-glow);
}

/* Neon Pieces */
.piece {
  width: 72%;
  height: 72%;
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(0);
}

.piece.placed {
  transform: scale(1);
}

.piece-x {
  background: radial-gradient(circle, #fff 0%, var(--cyan) 50%, #00b4d8 100%);
  box-shadow: 0 0 15px var(--cyan), 0 0 25px var(--cyan-glow);
  border: 2px solid #ffffff;
}

.piece-o {
  background: radial-gradient(circle, #fff 0%, var(--gold) 50%, #d97706 100%);
  box-shadow: 0 0 15px var(--gold), 0 0 25px var(--gold-glow);
  border: 2px solid #ffffff;
}

.board-cell.win-highlight {
  animation: winCellPulse 0.8s infinite alternate;
}

@keyframes winCellPulse {
  from {
    background: rgba(0, 255, 157, 0.3);
    border-color: var(--green);
    box-shadow: 0 0 15px var(--green);
  }
  to {
    background: rgba(0, 255, 157, 0.7);
    border-color: #fff;
    box-shadow: 0 0 25px var(--green);
  }
}

/* ==========================================================================
   Bento Features Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-neon);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.2);
  background: var(--bg-card-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card.gold-theme:hover {
  border-color: var(--border-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(250, 204, 21, 0.2);
}

.feature-card.gold-theme::before {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--cyan-dim);
  border: 1px solid var(--border-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
  transition: transform var(--transition-bounce);
  flex-shrink: 0;
}

.feature-card.gold-theme .feature-icon-wrapper {
  background: var(--gold-dim);
  border-color: var(--border-gold);
  color: var(--gold);
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.25);
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.08) rotate(4deg);
}

.feature-card-title {
  font-size: 19px;
  font-weight: 700;
}

.feature-card-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.feature-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sub);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--cyan);
}

.feature-card.gold-theme .feature-card-footer {
  color: var(--gold);
}

/* ==========================================================================
   Screenshots / Mockup Showcase Carousel
   ========================================================================== */
.gallery-section {
  padding: 70px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.tab-btn {
  background: rgba(14, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: #fff;
  border-color: var(--cyan);
}

.tab-btn.active {
  background: var(--cyan);
  color: #030712;
  border-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.gallery-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mockup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
}

.mockup-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--cyan);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--cyan-glow);
}

.mockup-img-wrap {
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  position: relative;
  background: #000;
}

.mockup-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mockup-card:hover .mockup-img-wrap img {
  transform: scale(1.04);
}

.mockup-caption {
  padding: 16px 18px;
  background: rgba(7, 12, 24, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.mockup-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-height: 80vh;
  max-width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-neon);
  box-shadow: 0 0 40px var(--cyan-glow);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--cyan);
}

/* ==========================================================================
   Rules Explainer Section
   ========================================================================== */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.rule-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  backdrop-filter: blur(14px);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rule-box.renju {
  border-color: rgba(250, 204, 21, 0.3);
}

.rule-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--cyan-dim);
  border: 1px solid var(--border-neon);
  color: var(--cyan);
}

.rule-box.renju .rule-badge {
  background: var(--gold-dim);
  border-color: var(--border-gold);
  color: var(--gold);
}

.rule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.55;
}

.rule-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: var(--cyan-dim);
  color: var(--cyan);
  margin-top: 2px;
}

.rule-box.renju .rule-icon {
  background: var(--gold-dim);
  color: var(--gold);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-neon);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-white);
  font-family: var(--font-sub);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-toggle-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 15px;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
  background: var(--cyan);
  color: #030712;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 22px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 22px 20px;
}

/* ==========================================================================
   Download Portal / Final CTA Section
   ========================================================================== */
.download-portal-section {
  padding: 70px 20px 100px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.portal-box {
  background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.15) 0%, rgba(11, 18, 34, 0.95) 75%);
  border: 1.5px solid var(--cyan);
  border-radius: 26px;
  padding: 50px 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 240, 255, 0.25);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.portal-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  opacity: 0.18;
  pointer-events: none;
}

.portal-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.portal-qr-box {
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.15);
}

.qr-canvas-wrapper {
  background: #ffffff;
  padding: 10px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.qr-canvas-wrapper canvas, .qr-canvas-wrapper svg, .qr-canvas-wrapper img {
  display: block;
  max-width: 100%;
  height: auto;
}

.qr-instruction {
  font-family: var(--font-sub);
  font-size: 13.5px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #02050c;
  border-top: 1px solid rgba(0, 240, 255, 0.12);
  padding: 50px 20px 25px;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 360px;
  line-height: 1.6;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link {
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--cyan);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(14, 23, 42, 0.9);
  border: 1px solid var(--border-neon);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--cyan);
  color: #030712;
  transform: translateY(-3px);
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    margin: 16px auto 0;
  }
  
  .demo-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .portal-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 30px;
  }
  
  .portal-text {
    align-items: center;
  }
  
  .portal-text .badge-neon {
    align-self: center !important;
  }
  
  .portal-qr-box {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-slider {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile & Small Screens (max-width: 768px) */
@media (max-width: 768px) {
  /* Site Header & Navigation */
  .nav-container {
    padding: 10px 12px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 15px;
    letter-spacing: 0.5px;
  }

  .nav-actions {
    gap: 6px;
  }

  #lang-toggle-btn {
    padding: 6px 8px;
    font-size: 12px;
  }

  #audio-toggle-btn .audio-label {
    display: none;
  }

  #audio-toggle-btn {
    padding: 6px 8px;
    font-size: 14px;
    min-width: 34px;
    justify-content: center;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    font-size: 18px;
    min-width: 34px;
  }

  .nav-links, .btn-download-nav {
    display: none;
  }
  
  .site-header.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-neon);
    padding: 20px;
    gap: 16px;
    align-items: flex-start;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  }
  
  /* Hero Section */
  .hero-section {
    padding: 30px 14px 50px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: clamp(24px, 7.2vw, 34px);
    line-height: 1.15;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 6px auto 0;
    align-items: stretch;
  }

  .hero-actions .btn,
  .hero-actions .btn-google-play {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
  }

  .hero-stats {
    width: 100%;
    max-width: 340px;
    margin: 12px auto 0;
    padding-top: 16px;
    gap: 8px;
  }

  .stat-number {
    font-size: clamp(18px, 5.2vw, 24px);
    text-align: center;
  }

  .stat-label {
    font-size: 11px;
    text-align: center;
  }

  /* Mockup Frame & HUD chips */
  .phone-mockup-wrapper {
    max-width: 280px;
    margin: 10px auto 0;
  }

  .phone-frame {
    border-radius: 36px;
    padding: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.25);
  }

  /* Keep HUD tags from overflowing horizontally on mobile */
  .hud-tag {
    position: static;
    animation: none;
    padding: 7px 12px;
    width: auto;
    max-width: 260px;
    margin: 0 auto;
  }

  .hud-tag-1 {
    margin-bottom: 12px;
  }

  .hud-tag-2 {
    margin-top: 12px;
  }

  /* Demo Section */
  .demo-section {
    padding: 40px 14px;
  }

  .demo-container {
    padding: 20px 14px;
    border-radius: 18px;
    gap: 22px;
  }

  .demo-info {
    text-align: center;
    align-items: center;
  }

  .demo-status-pill {
    align-self: center;
  }

  .mini-caro-board {
    max-width: 320px;
    padding: 6px;
    gap: 3px;
  }

  /* Grid Layouts */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-slider {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 330px;
    margin: 0 auto;
  }

  .rules-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .rule-box {
    padding: 22px 16px;
  }

  .rule-badge {
    align-self: flex-start;
  }

  /* Download Portal & Footer */
  .download-portal-section {
    padding: 40px 14px 70px;
  }

  .portal-box {
    padding: 28px 16px;
    border-radius: 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* Extra Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  .brand-icon {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 16px;
  }

  .toggle-btn {
    padding: 5px 8px;
    font-size: 12px;
  }

  .badge-neon {
    font-size: 11px;
    padding: 4px 10px;
    letter-spacing: 0.8px;
  }

  .hero-title {
    font-size: clamp(22px, 6.8vw, 28px);
  }

  .section {
    padding: 50px 12px;
  }

  .section-title {
    font-size: 24px;
  }

  .mini-caro-board {
    max-width: 290px;
    padding: 5px;
    gap: 2.5px;
  }

  .board-cell {
    border-radius: 3px;
  }

  .portal-box {
    padding: 24px 12px;
  }
}
