/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: #0a0a0f;
  color: #e8e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --gold: #d4af37;
  --gold-light: #f0d060;
  --gold-dark: #a88b20;
  --dark: #0a0a0f;
  --dark-2: #111118;
  --dark-3: #16161f;
  --dark-4: #1c1c28;
  --border: rgba(212, 175, 55, 0.15);
  --border-subtle: rgba(255,255,255,0.06);
  --text-muted: #8888a0;
  --text-secondary: #b0b0c8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --glow: 0 0 40px rgba(212,175,55,0.15);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s;
}
.nav.scrolled {
  background: rgba(10,10,15,0.95);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.4rem; }
.logo-accent { color: var(--gold); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-cta {
  background: var(--gold);
  color: #0a0a0f;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  gap: 4px;
}
.nav-mobile a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.nav-mobile a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.mobile-cta {
  background: var(--gold) !important;
  color: #0a0a0f !important;
  text-align: center;
  font-weight: 700 !important;
  margin-top: 8px;
}
.nav-mobile.open { display: flex; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.chess-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,175,55,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 80%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}
.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,175,55,0.4), transparent 70%);
  top: -200px; right: -100px;
}
.glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(100,60,200,0.3), transparent 70%);
  bottom: -100px; left: -100px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  flex: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-accent {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #0a0a0f;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
  box-shadow: 0 4px 24px rgba(212,175,55,0.3);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212,175,55,0.4); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-divider { width: 1px; height: 32px; background: var(--border-subtle); }

/* HERO VISUAL */
.hero-visual {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.phone-mockup {
  position: relative;
  width: 280px;
  background: #1a1a28;
  border-radius: 36px;
  border: 2px solid rgba(255,255,255,0.1);
  padding: 16px;
  box-shadow: var(--shadow), 0 0 80px rgba(212,175,55,0.1);
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #0a0a0f;
  border-radius: 12px;
  z-index: 10;
}
.phone-screen {
  border-radius: 24px;
  overflow: hidden;
  background: #0f0f1a;
  padding: 32px 12px 12px;
}

.screen-board {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.board-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.scan-overlay {
  position: absolute;
  inset: 0;
}
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  top: 0;
  animation: scanLine 2.5s ease-in-out infinite;
  box-shadow: 0 0 10px var(--gold);
}
@keyframes scanLine {
  0% { top: 0; opacity: 1; }
  100% { top: 100%; opacity: 0.3; }
}
.scan-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--gold);
  border-style: solid;
}
.scan-corner.tl { top: 4px; left: 4px; border-width: 2px 0 0 2px; }
.scan-corner.tr { top: 4px; right: 4px; border-width: 2px 2px 0 0; }
.scan-corner.bl { bottom: 4px; left: 4px; border-width: 0 0 2px 2px; }
.scan-corner.br { bottom: 4px; right: 4px; border-width: 0 2px 2px 0; }

.screen-eval {
  background: rgba(212,175,55,0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.eval-bar {
  width: 60px;
  height: 8px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
}
.eval-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
  width: 60%;
  animation: evalAnim 3s ease-in-out infinite alternate;
}
@keyframes evalAnim { 0% { width: 55%; } 100% { width: 70%; } }
.eval-text {
  display: flex;
  gap: 8px;
  font-size: 0.7rem;
}
.eval-score { color: var(--gold); font-weight: 700; }
.eval-move { color: var(--text-muted); }
.eval-move strong { color: #fff; }

.screen-moves {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.move-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
}
.move-chip.best { background: rgba(74,222,128,0.12); color: #4ade80; }
.move-chip.good { background: rgba(250,204,21,0.1); color: #facc15; }
.move-chip.ok { background: rgba(148,163,184,0.08); color: #94a3b8; }
.move-chip span { opacity: 0.7; font-size: 0.65rem; font-weight: 500; }

.floating-card {
  position: absolute;
  background: rgba(22,22,35,0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  min-width: 160px;
}
.fc-icon { font-size: 1.2rem; }
.fc-text { font-size: 0.75rem; }
.fc-text strong { display: block; font-weight: 700; color: #fff; }
.fc-text span { color: var(--text-muted); }
.card-1 { top: 0; right: -20px; animation: floatCard1 4s ease-in-out infinite; }
.card-2 { bottom: 80px; right: -30px; animation: floatCard2 4s ease-in-out infinite 1s; }
.card-3 { bottom: -10px; left: 0px; animation: floatCard3 4s ease-in-out infinite 2s; }

@keyframes floatCard1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes floatCard2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes floatCard3 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ===== FREE BANNER ===== */
.free-banner {
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
  border-top: 1px solid rgba(212,175,55,0.2);
  border-bottom: 1px solid rgba(212,175,55,0.2);
  padding: 40px 0;
}
.free-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.free-icon { font-size: 2.5rem; }
.free-content { flex: 1; min-width: 260px; }
.free-content h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.free-content p { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== SECTION SHARED ===== */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== FEATURES OVERVIEW ===== */
.features-overview { padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.feature-card {
  background: var(--dark-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}
.feature-card.feature-large {
  grid-column: span 2;
}
.feature-card:nth-child(1) { grid-column: span 2; }
.feature-card:nth-child(6) { grid-column: span 2; }

.fc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.fc-emoji { font-size: 2rem; margin-bottom: 12px; }
.fc-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.2);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}
.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.fc-tags {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.fc-tags span {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ===== FEATURE SECTION (split layout) ===== */
.feature-section { padding: 100px 0; }
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }

.feature-split-text .section-tag { margin-bottom: 12px; }
.feature-split-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}
.feature-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.fl-icon {
  width: 40px;
  height: 40px;
  background: rgba(212,175,55,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.feature-list li > div:last-child strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.feature-list li > div:last-child span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== SCAN DEMO ===== */
.scan-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.scan-phone {
  width: 280px;
  background: #1a1a28;
  border-radius: 32px;
  border: 2px solid rgba(255,255,255,0.08);
  padding: 12px;
  box-shadow: var(--shadow);
}
.scan-camera-view {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #0f0f1a;
}
.real-board {
  position: absolute;
  inset: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rb-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.detection-boxes { position: absolute; inset: 0; }
.camera-ui {
  position: absolute;
  inset: 8px;
}
.cam-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--gold);
  border-style: solid;
  filter: drop-shadow(0 0 4px var(--gold));
}
.cam-corner.tl { top: 0; left: 0; border-width: 3px 0 0 3px; }
.cam-corner.tr { top: 0; right: 0; border-width: 3px 3px 0 0; }
.cam-corner.bl { bottom: 0; left: 0; border-width: 0 0 3px 3px; }
.cam-corner.br { bottom: 0; right: 0; border-width: 0 3px 3px 0; }
.cam-scan-bar {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  top: 0;
  animation: scanLine 2.5s ease-in-out infinite;
  box-shadow: 0 0 8px var(--gold);
}

.scan-result-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  width: 280px;
}
.src-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; color: var(--gold); }
.src-fen {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.3);
  padding: 6px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  word-break: break-all;
}
.src-eval { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.src-score { font-size: 1.2rem; font-weight: 800; color: var(--gold); }
.src-label { font-size: 0.8rem; color: var(--text-muted); }
.src-best { font-size: 0.82rem; color: var(--text-secondary); }
.src-best strong { color: #4ade80; }

/* SCAN SECTION */
.scan-section { background: var(--dark-2); }

/* ===== ENGINE SECTION ===== */
.engine-section { }
.engine-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}
.engine-stat {
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  flex: 1;
}
.es-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
}
.es-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }

.engine-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.engine-card {
  width: 100%;
  max-width: 360px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--dark-4);
  border-bottom: 1px solid var(--border-subtle);
}
.ec-title { font-weight: 700; font-size: 0.9rem; }
.ec-depth {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  background: rgba(212,175,55,0.1);
  padding: 2px 8px;
  border-radius: 100px;
}
.ec-eval-bar {
  display: flex;
  height: 28px;
  font-size: 0.72rem;
  font-weight: 700;
}
.ec-eval-white {
  background: var(--gold);
  color: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 1s ease;
}
.ec-eval-black {
  background: #1a1a1a;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.ec-moves { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.ec-move {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
}
.ec-move.brilliant { background: rgba(147,51,234,0.15); }
.ec-move.best { background: rgba(74,222,128,0.1); }
.ec-move.good { background: rgba(250,204,21,0.08); }
.ec-move.inaccuracy { background: rgba(251,191,36,0.08); }
.ec-move.mistake { background: rgba(239,68,68,0.1); }
.ecm-badge {
  font-size: 0.72rem;
  font-weight: 700;
  width: 120px;
  flex-shrink: 0;
}
.ec-move.brilliant .ecm-badge { color: #a855f7; }
.ec-move.best .ecm-badge { color: #4ade80; }
.ec-move.good .ecm-badge { color: #facc15; }
.ec-move.inaccuracy .ecm-badge { color: #fbbf24; }
.ec-move.mistake .ecm-badge { color: #ef4444; }
.ecm-move { flex: 1; font-weight: 700; color: #fff; }
.ecm-eval { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.ec-footer {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border-subtle);
}
.ec-footer-item {
  flex: 1;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.75rem;
}
.ec-footer-item span { color: var(--text-muted); }
.ec-footer-item strong { color: #4ade80; }
.ec-footer-item:first-child { border-right: 1px solid var(--border-subtle); }

.depth-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.depth-arc {
  animation: depthFill 2s ease-out forwards;
}
@keyframes depthFill {
  0% { stroke-dashoffset: 314; }
  100% { stroke-dashoffset: 88; }
}
.depth-label {
  position: absolute;
  text-align: center;
}
.dl-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
}
.dl-text { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

/* ===== TIME CONTROLS ===== */
.time-controls-section {
  padding: 100px 0;
  background: var(--dark-2);
}
.tc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tc-card {
  background: var(--dark-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}
.tc-card:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.tc-icon { font-size: 2rem; margin-bottom: 12px; }
.tc-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.tc-times {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 12px;
}
.tc-times span {
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: monospace;
}
.tc-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; }
.tc-card.bullet { border-top: 2px solid #a855f7; }
.tc-card.blitz { border-top: 2px solid #ef4444; }
.tc-card.rapid { border-top: 2px solid #3b82f6; }
.tc-card.classical { border-top: 2px solid var(--gold); }

/* ===== ONLINE SECTION ===== */
.online-section { background: var(--dark-2); }
.online-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.online-card {
  background: var(--dark-3);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}
.match-header {
  padding: 10px 16px;
  background: var(--dark-4);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
}
.match-header::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
.match-players { padding: 12px 16px; display: flex; align-items: center; gap: 8px; }
.match-player {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mp-avatar {
  width: 36px;
  height: 36px;
  background: var(--dark-4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid var(--border);
}
.mp-info { flex: 1; }
.mp-info strong { display: block; font-size: 0.82rem; font-weight: 700; }
.mp-info span { font-size: 0.72rem; color: var(--text-muted); }
.mp-clock {
  background: var(--dark-4);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: monospace;
  color: var(--text-muted);
}
.mp-clock.active {
  border-color: var(--gold);
  color: var(--gold);
  animation: clockPulse 1s infinite;
}
@keyframes clockPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }
.match-vs {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  padding: 0 4px;
}
.match-status {
  padding: 8px 16px;
  background: var(--dark-4);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ms-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
}

.fc-list-header {
  padding: 10px 16px;
  background: var(--dark-4);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fol-count {
  background: var(--gold);
  color: #0a0a0f;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
}
.friend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.friend-item:last-child { border-bottom: none; }
.fi-avatar {
  width: 32px;
  height: 32px;
  background: var(--dark-4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.fi-info { flex: 1; }
.fi-info strong { display: block; font-size: 0.82rem; font-weight: 700; }
.fi-status { font-size: 0.7rem; }
.fi-status.online { color: #4ade80; }
.fi-challenge {
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.fi-challenge:hover { background: rgba(212,175,55,0.2); }
.fi-challenge:disabled { opacity: 0.4; cursor: not-allowed; }

.elo-card { padding: 16px; }
.elo-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.elo-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
}
.elo-progress {
  height: 6px;
  background: var(--dark-4);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.elo-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 3px;
  width: 55%;
  animation: eloBarAnim 2s ease-out;
}
@keyframes eloBarAnim { 0% { width: 0; } 100% { width: 55%; } }
.elo-range { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); }

/* ===== PUZZLES ===== */
.puzzles-section { background: var(--dark-2); }
.puzzle-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.pt-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dark-4);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px;
}
.pt-icon { font-size: 1.1rem; width: 32px; text-align: center; }
.pt-text strong { display: block; font-size: 0.85rem; font-weight: 700; }
.pt-text span { font-size: 0.75rem; color: var(--text-muted); }

.puzzle-demo { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.puzzle-board-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
}
.puzzle-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}
.puzzle-highlight {
  position: absolute;
  top: 37.5%;
  left: 62.5%;
  width: 12.5%;
  height: 12.5%;
  background: rgba(212,175,55,0.4);
  border: 2px solid var(--gold);
  animation: highlightPulse 1.5s ease-in-out infinite;
}
@keyframes highlightPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.puzzle-info {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  width: 100%;
  max-width: 320px;
}
.pi-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pi-tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pi-tag.hard { background: rgba(239,68,68,0.15); color: #ef4444; }
.pi-tag.medium { background: rgba(250,204,21,0.15); color: #facc15; }
.pi-tag.easy { background: rgba(74,222,128,0.15); color: #4ade80; }
.pi-title { font-weight: 700; font-size: 0.9rem; flex: 1; }
.pi-score { font-size: 0.75rem; color: var(--gold); font-weight: 700; }
.pi-prompt { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 10px; }
.pi-moves { display: flex; gap: 6px; margin-bottom: 8px; }
.pim {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: monospace;
}
.pim.correct { background: rgba(74,222,128,0.15); color: #4ade80; }
.pim.next { background: rgba(212,175,55,0.1); color: var(--gold); border: 1px dashed rgba(212,175,55,0.4); animation: nextPulse 1s ease-in-out infinite; }
@keyframes nextPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.pi-hint { font-size: 0.78rem; color: var(--text-muted); font-style: italic; }

.puzzle-streak {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(251,146,60,0.1);
  border: 1px solid rgba(251,146,60,0.3);
  border-radius: 100px;
  padding: 8px 16px;
}
.ps-fire { font-size: 1.2rem; }
.ps-text { font-size: 0.85rem; font-weight: 700; color: #fb923c; }

/* ===== TOURNAMENTS ===== */
.tournaments-section { padding: 100px 0; background: var(--dark-2); }
.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tournament-card {
  background: var(--dark-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}
.tournament-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tournament-card.featured { border-color: var(--border); }

.tc-top {
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.bullet-bg { background: linear-gradient(135deg, #1a0a2e, #2d1154); }
.blitz-bg { background: linear-gradient(135deg, #2e1a0a, #54310d); }
.rapid-bg { background: linear-gradient(135deg, #0a1a2e, #0d2e54); }
.classical-bg { background: linear-gradient(135deg, #1a1a0a, #2e2e0d); }

.tc-emoji { font-size: 2rem; }
.tc-status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}
.tc-status.live { background: rgba(74,222,128,0.15); color: #4ade80; }
.tc-status.upcoming { background: rgba(250,204,21,0.15); color: #facc15; }
.tc-featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--gold);
  color: #0a0a0f;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tc-body { padding: 16px; }
.tc-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.tc-detail { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 12px; }
.tc-players {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.tcp-avatars {
  display: flex;
  gap: 2px;
  font-size: 0.8rem;
}
.tc-leaderboard {
  background: var(--dark-4);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tl-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  padding: 3px 4px;
  border-radius: 4px;
}
.tl-row.leader { background: rgba(212,175,55,0.08); }
.tl-rank { width: 14px; font-weight: 800; color: var(--text-muted); }
.tl-row.leader .tl-rank { color: var(--gold); }
.tl-name { flex: 1; font-weight: 600; }
.tl-pts { font-weight: 700; color: var(--text-secondary); font-size: 0.7rem; }

.tc-join-btn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.tc-join-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(212,175,55,0.05); }
.tc-join-btn.featured-btn {
  background: var(--gold);
  color: #0a0a0f;
  border-color: var(--gold);
}
.tc-join-btn.featured-btn:hover { background: var(--gold-light); }

/* ===== HISTORY SECTION ===== */
.history-section { background: var(--dark-2); }
.history-demo { display: flex; flex-direction: column; gap: 12px; }
.history-card {
  background: var(--dark-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}
.hc-header {
  padding: 12px 16px;
  background: var(--dark-4);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold);
}
.game-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.game-item:last-child { border-bottom: none; }
.gi-result {
  width: 42px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.win-badge { background: rgba(74,222,128,0.15); color: #4ade80; }
.loss-badge { background: rgba(239,68,68,0.15); color: #ef4444; }
.draw-badge { background: rgba(148,163,184,0.1); color: #94a3b8; }
.gi-info { flex: 1; }
.gi-info strong { display: block; font-size: 0.82rem; font-weight: 700; }
.gi-info span { font-size: 0.72rem; color: var(--text-muted); }
.gi-elo { font-size: 0.85rem; font-weight: 800; color: #4ade80; }
.loss-elo { color: #ef4444; }
.draw-elo { color: var(--text-muted); }

.replay-card {
  background: var(--dark-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}
.rc-header {
  padding: 10px 14px;
  background: var(--dark-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
}
.rc-controls { display: flex; gap: 4px; }
.rc-controls button {
  width: 28px;
  height: 28px;
  background: var(--dark-3);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
}
.rc-controls button:hover { border-color: var(--border); color: #fff; }
.rc-play { background: rgba(212,175,55,0.1) !important; border-color: var(--border) !important; color: var(--gold) !important; }
.rc-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  aspect-ratio: 1;
  max-height: 180px;
  border-bottom: 1px solid var(--border-subtle);
}
.rc-moves {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 12px;
}
.rcm {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--dark-4);
  font-family: monospace;
  color: var(--text-secondary);
}
.rcm.active { background: rgba(212,175,55,0.15); color: var(--gold); }

/* ===== OFFLINE ===== */
.offline-section {
  padding: 80px 0;
  background: var(--dark-3);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.offline-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.offline-text .section-tag { margin-bottom: 12px; }
.offline-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.offline-text p { color: var(--text-secondary); line-height: 1.7; }
.offline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.og-item {
  background: var(--dark-4);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.og-item:hover { border-color: var(--border); transform: translateY(-2px); }
.og-icon { font-size: 1.5rem; }
.og-item span { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }

/* ===== CUSTOM SECTION ===== */
.custom-section { padding: 100px 0; }
.custom-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cf-item {
  background: var(--dark-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
}
.cf-item:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: var(--glow); }
.cfi-icon { font-size: 2rem; margin-bottom: 16px; }
.cf-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.cf-item p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; }

/* ===== PROFILE ===== */
.profile-section { padding: 100px 0; background: var(--dark-2); }
.profile-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.profile-text .section-tag { margin-bottom: 12px; }
.profile-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}
.profile-text p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; margin-bottom: 32px; }
.profile-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pf-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--dark-4);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}
.pf-item span:first-child { font-size: 1rem; }

.profile-card-demo {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow), var(--glow);
}
.pcd-avatar {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--dark-4), var(--dark));
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 12px;
}
.pcd-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.pcd-country { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; }
.pcd-elo {
  display: inline-block;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--gold);
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.pcd-elo strong { font-size: 1rem; }
.pcd-stats {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  margin-bottom: 16px;
}
.pcs-item { text-align: center; }
.pcs-num { display: block; font-size: 1.3rem; font-weight: 800; color: var(--gold); }
.pcs-label { font-size: 0.72rem; color: var(--text-muted); }
.pcd-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ===== PRICING ===== */
.pricing-section { padding: 100px 0; }
.pricing-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow), var(--glow);
}
.pricing-header {
  padding: 36px;
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.04));
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.price-tag {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
}
.price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.price-period { font-size: 1.1rem; color: var(--text-muted); font-weight: 500; }
.price-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.price-subtitle { color: var(--text-muted); font-size: 0.9rem; }

.pricing-features {
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  padding: 6px 0;
}
.pricing-feature span:first-child { color: #4ade80; font-weight: 700; }

.pricing-cta {
  display: block;
  text-align: center;
  padding: 20px;
  background: var(--gold);
  color: #0a0a0f;
  font-size: 1rem;
  font-weight: 800;
  transition: all 0.2s;
}
.pricing-cta:hover { background: var(--gold-light); }

/* ===== DOWNLOAD ===== */
.download-section { padding: 100px 0; }
.download-inner {
  position: relative;
  background: linear-gradient(135deg, var(--dark-3), var(--dark-4));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  overflow: hidden;
}
.download-chess-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,175,55,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
}
.download-content { position: relative; z-index: 2; }
.dl-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  display: block;
}
.download-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.download-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.dl-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.dl-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
  min-width: 180px;
}
.dl-btn div { display: flex; flex-direction: column; text-align: left; }
.dl-btn div span { font-size: 0.7rem; font-weight: 500; opacity: 0.8; }
.dl-btn div strong { font-size: 1rem; }
.dl-btn.ios { background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.dl-btn.ios:hover { background: #1a1a1a; transform: translateY(-2px); }
.dl-btn.android { background: var(--gold); color: #0a0a0f; }
.dl-btn.android:hover { background: var(--gold-light); transform: translateY(-2px); }
.dl-note { font-size: 0.8rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
.footer { padding: 64px 0 32px; background: var(--dark); border-top: 1px solid var(--border-subtle); }
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; margin-bottom: 16px; }
.social-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.social-link:hover { color: var(--gold); }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.fl-group h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.fl-group a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.fl-group a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== CHESS BOARD SQUARES ===== */
.sq-light { background: #f0d9b5; }
.sq-dark { background: #b58863; }
.sq-light-alt { background: #eeeed2; }
.sq-dark-alt { background: #769656; }

/* ===== ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--gold);
  color: #0a0a0f;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===== FAQ SECTION ===== */
.faq-section { padding: 80px 0; background: var(--dark-2); }
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: var(--dark-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--border); }
.faq-item summary {
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--gold); }
.faq-answer {
  padding: 0 24px 18px;
}
.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--dark-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:nth-child(1),
  .feature-card:nth-child(6),
  .feature-card.feature-large { grid-column: span 1; }
  .tc-grid { grid-template-columns: repeat(2, 1fr); }
  .tournaments-grid { grid-template-columns: repeat(2, 1fr); }
  .custom-features { grid-template-columns: repeat(2, 1fr); }
  .feature-split { grid-template-columns: 1fr; gap: 40px; }
  .feature-split.reverse { direction: ltr; }
  .hero { flex-direction: column; gap: 40px; text-align: center; padding-top: 120px; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-subtitle { max-width: 100%; }
  .hero-content { max-width: 100%; }
  .hero-visual { padding: 0; }
  .offline-inner { grid-template-columns: 1fr; gap: 32px; }
  .profile-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .tc-grid { grid-template-columns: 1fr 1fr; }
  .tournaments-grid { grid-template-columns: 1fr 1fr; }
  .custom-features { grid-template-columns: 1fr 1fr; }
  .pricing-features { grid-template-columns: 1fr; }
  .offline-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-features { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2.4rem; }
  .download-inner { padding: 32px 24px; }
  .hero-visual { display: none; }
  .free-inner { flex-direction: column; text-align: center; }
  .puzzle-types { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .engine-stats { flex-direction: column; }
}

@media (max-width: 480px) {
  .tc-grid { grid-template-columns: 1fr; }
  .tournaments-grid { grid-template-columns: 1fr; }
  .custom-features { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .dl-buttons { flex-direction: column; align-items: center; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { gap: 12px; }
  .stat-divider { display: none; }
}
