/* ── Landing page styles ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #07070f;
  --bg-card: #0f1117;
  --bg-card2: #13161f;
  --border: #1e2133;
  --indigo: #6366f1;
  --indigo-light: #818cf8;
  --indigo-dark: #4f46e5;
  --indigo-glow: rgba(99, 102, 241, 0.15);
  --green: #22c55e;
  --yellow: #eab308;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── UTILITIES ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 72px 0; }

/* ── NAV LINKS & TOGGLE ── */
.nav-links {
  display: flex; align-items: center; gap: 24px;
}
.nav-link {
  color: var(--text-muted) !important; text-decoration: none !important; font-size: 0.95rem;
  transition: color .2s;
}
.nav-link:hover { color: var(--text) !important; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all .2s;
}

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--indigo-glow); border: 1px solid rgba(99,102,241,.3);
  color: var(--indigo-light); font-size: 13px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px; letter-spacing: .04em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 14px 28px; border-radius: 10px; border: none;
  cursor: pointer; text-decoration: none; transition: all .2s ease;
  line-height: 1;
}
.btn-primary {
  background: var(--indigo); color: #fff;
  box-shadow: 0 0 0 0 rgba(99,102,241,.4);
}
.btn-primary:hover {
  background: var(--indigo-dark);
  box-shadow: 0 0 24px rgba(99,102,241,.4);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--indigo-light); color: var(--indigo-light); }
.btn-lg { padding: 17px 36px; font-size: 17px; border-radius: 12px; }

/* ── FADE IN ANIMATION ── */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }
.fade-in-delay-4 { transition-delay: .4s; }


/* ── NAV ── */
.landing-nav { position: relative; z-index: 50; }

/* ── HERO ── */
.hero {
  padding: 96px 0 96px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,.12) 0%, transparent 70%);
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -.03em;
  margin: 16px 0 20px;
  background: linear-gradient(135deg, #f1f5f9 0%, #a5b4fc 50%, #818cf8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-muted); max-width: 560px; margin: 0 auto 12px;
  line-height: 1.7;
}
.hero-who {
  font-size: 14px; color: var(--text-dim); font-weight: 500;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── CHESS BOARD VISUAL ── */
.board-wrapper {
  margin: 72px auto 0; max-width: 720px;
  position: relative;
}
.board-glow {
  position: absolute; inset: -60px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,.25) 0%, rgba(99,102,241,.08) 40%, transparent 70%);
  pointer-events: none;
}
.board-frame {
  background: linear-gradient(145deg, #12151f, #0d1018);
  border: 1px solid rgba(99,102,241,.25);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 40px 100px rgba(0,0,0,.7), 0 0 60px rgba(99,102,241,.1);
  position: relative;
}
.board-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
}
.board-dots { display: flex; gap: 7px; }
.board-dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.board-title { font-size: 13px; color: var(--text-dim); font-weight: 500; letter-spacing: .02em; }
.board-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--green); font-weight: 600;
}
.board-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; } 50% { opacity: .4; }
}
.board-content { display: flex; align-items: stretch; }

/* CSS Chess Board */
.chess-board-wrap {
  flex: 0 0 auto; padding: 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.board-coords-row { display: flex; align-items: center; gap: 4px; }
.coord-file {
  display: flex; gap: 0;
  padding-left: 16px;
}
.coord-label {
  font-size: 9px; font-weight: 600; color: var(--text-dim);
  width: 36px; text-align: center; letter-spacing: .05em;
}
.coord-rank {
  font-size: 9px; font-weight: 600; color: var(--text-dim);
  width: 16px; display: flex; align-items: center; justify-content: center;
}
.chess-board {
  display: grid; grid-template-columns: repeat(8, 36px);
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 2px rgba(255,255,255,.08);
}
.sq {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; position: relative;
  transition: background .15s;
}
.sq-light { background: #f0d9b5; }
.sq-dark  { background: #b58863; }
.sq-highlighted {
  background: rgba(99,102,241,.55) !important;
  box-shadow: inset 0 0 0 2px rgba(99,102,241,.9);
}
.sq-from { background: rgba(255,200,50,.45) !important; }
.sq-to   { background: rgba(255,200,50,.25) !important; }
.sq .piece { filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); display: block; }

/* Sidebar panel */
.board-sidebar {
  flex: 1; padding: 16px; border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.panel-label { font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.line-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px; background: var(--bg);
  border: 1px solid var(--border); cursor: pointer;
}
.line-item.active { border-color: var(--indigo); background: var(--indigo-glow); }
.line-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-mastered { background: var(--green); }
.dot-learning { background: var(--yellow); }
.dot-familiar { background: var(--indigo-light); }
.line-name { font-size: 12px; color: var(--text); font-weight: 500; flex: 1; }
.line-pct { font-size: 11px; color: var(--text-dim); }
.progress-bar-mini {
  height: 3px; background: var(--border); border-radius: 999px; margin-top: 2px;
}
.progress-fill-mini {
  height: 100%; border-radius: 999px; background: var(--indigo);
  transition: width .4s ease;
}
.move-history {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; font-size: 11px;
  color: var(--text-muted); font-family: monospace; line-height: 1.8;
}
.move-white { color: var(--text); font-weight: 600; }
.move-active { color: var(--indigo-light); }

/* ── PAIN SECTION ── */
.pain-section {
  background: linear-gradient(180deg, transparent 0%, rgba(239,68,68,.04) 50%, transparent 100%);
}
.pain-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pb-card {
  background: var(--bg-card); border: 1px solid #1f1515;
  border-radius: 18px; padding: 28px; position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.pb-card:hover { transform: translateY(-2px); }
.pb-hero {
  grid-column: span 2;
  background: linear-gradient(135deg, #140a0a 0%, #0d1018 100%);
  border-color: rgba(239,68,68,.2);
}
.pb-hero:hover { border-color: rgba(239,68,68,.4); box-shadow: 0 16px 48px rgba(239,68,68,.06); }
.pb-card-chess { border-color: #1f1515; background: linear-gradient(135deg,#110c0c,#0d1018); }
.pb-card-chess:hover { border-color: rgba(239,68,68,.3); }
.pb-card-chessable { border-color: #1f1515; background: linear-gradient(135deg,#110c0c,#0d1018); }
.pb-card-chessable:hover { border-color: rgba(239,68,68,.3); }

.pb-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #f87171; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.2);
  padding: 3px 10px; border-radius: 6px; margin-bottom: 20px;
}
.pb-card h3 {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 10px; line-height: 1.3; color: var(--text);
}
.pb-card p { font-size: 14px; color: var(--text-dim); line-height: 1.65; }
.pb-blob {
  position: absolute; border-radius: 50%;
  pointer-events: none; filter: blur(40px); opacity: .12;
}

.pb-convo { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.pb-turn { display: flex; align-items: flex-start; gap: 10px; }
.pb-turn-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; min-width: 70px; padding-top: 2px; }
.pb-turn-label.you  { color: #94a3b8; }
.pb-turn-label.them { color: #f87171; }
.pb-bubble {
  font-family: monospace; font-size: 13px; font-weight: 700;
  padding: 6px 12px; border-radius: 8px; line-height: 1;
}
.pb-bubble.theory { background: rgba(99,102,241,.12); color: var(--indigo-light); border: 1px solid rgba(99,102,241,.2); }
.pb-bubble.random { background: rgba(239,68,68,.1); color: #f87171; border: 1px solid rgba(239,68,68,.2); position: relative; }
.pb-bubble.random::after {
  content: '← not in theory';
  font-family: inherit; font-size: 10px; font-weight: 400;
  color: #f87171; opacity: .7; margin-left: 8px; white-space: nowrap;
}
.pb-bubble.confused { background: rgba(255,255,255,.04); color: var(--text-dim); border: 1px solid rgba(255,255,255,.08); font-style: italic; }
.pb-divider { height: 1px; background: rgba(239,68,68,.1); margin: 4px 0; }
.pb-result {
  margin-top: 16px; padding: 12px 14px;
  background: rgba(239,68,68,.07); border: 1px solid rgba(239,68,68,.15);
  border-radius: 10px; font-size: 13px; color: #f87171; font-weight: 600;
}
.pb-result span { color: var(--text-dim); font-weight: 400; }

.pb-vs-row { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.pb-vs-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.pb-vs-icon { font-size: 16px; flex-shrink: 0; }
.pb-vs-text { font-size: 12px; color: var(--text-dim); flex: 1; }
.pb-vs-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.badge-red   { background: rgba(239,68,68,.15); color: #f87171; }
.badge-grey  { background: rgba(255,255,255,.06); color: var(--text-dim); }

@media (max-width: 900px) {
  .pain-bento { grid-template-columns: 1fr 1fr; }
  .pb-hero { grid-column: span 2; }
}
@media (max-width: 560px) {
  .pain-bento { grid-template-columns: 1fr; }
  .pb-hero { grid-column: span 1; }
}

/* ── PRODUCT SECTION ── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -.025em; margin: 12px 0 16px;
}
.section-header p { font-size: 1.05rem; color: var(--text-muted); max-width: 520px; margin: 0 auto; }

/* ── FEATURES BENTO ── */
.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.fb-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 32px;
  position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.fb-card:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,.35); }
.fb-card-theory {
  grid-column: span 2;
  border-color: rgba(99,102,241,.25);
  background: linear-gradient(135deg, #0f1025 0%, #0d1018 100%);
}
.fb-card-theory:hover { border-color: rgba(99,102,241,.5); box-shadow: 0 16px 48px rgba(99,102,241,.12); }
.fb-card-feedback {
  grid-column: 3; grid-row: span 2;
  border-color: rgba(234,179,8,.15);
  background: linear-gradient(160deg, #12100a 0%, #0d1018 100%);
}
.fb-card-feedback:hover { border-color: rgba(234,179,8,.35); box-shadow: 0 16px 48px rgba(234,179,8,.06); }
.fb-card-tree {
  border-color: rgba(34,197,94,.15);
  background: linear-gradient(135deg, #0a1410 0%, #0d1018 100%);
}
.fb-card-tree:hover { border-color: rgba(34,197,94,.35); box-shadow: 0 16px 48px rgba(34,197,94,.06); }
.fb-card-coach {
  border-color: rgba(139,92,246,.15);
  background: linear-gradient(135deg, #100d18 0%, #0d1018 100%);
}
.fb-card-coach:hover { border-color: rgba(139,92,246,.35); box-shadow: 0 16px 48px rgba(139,92,246,.06); }

.fb-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px; margin-bottom: 20px;
}
.tag-indigo { background: rgba(99,102,241,.12); color: var(--indigo-light); border: 1px solid rgba(99,102,241,.2); }
.tag-yellow { background: rgba(234,179,8,.1); color: #fde047; border: 1px solid rgba(234,179,8,.2); }
.tag-green  { background: rgba(34,197,94,.1);  color: #4ade80; border: 1px solid rgba(34,197,94,.2); }
.tag-purple { background: rgba(139,92,246,.1); color: #c4b5fd; border: 1px solid rgba(139,92,246,.2); }

.fb-card h3 {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 10px; line-height: 1.3;
}
.fb-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; max-width: 400px; }
.fb-card-feedback p, .fb-card-tree p, .fb-card-coach p { max-width: 100%; }

.fb-visual {
  margin-top: 24px; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}

.theory-moves {
  display: flex; flex-wrap: wrap; gap: 6px;
  background: rgba(0,0,0,.3); padding: 14px 16px;
}
.tm { font-family: monospace; font-size: 13px; font-weight: 600; }
.tm-num { color: var(--text-dim); margin-right: 2px; }
.tm-w { color: var(--text); }
.tm-b { color: #94a3b8; margin-right: 8px; }
.tm-b.active { color: var(--indigo-light); background: rgba(99,102,241,.15); padding: 1px 6px; border-radius: 4px; }
.theory-source {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: rgba(99,102,241,.07);
  border-top: 1px solid rgba(99,102,241,.15);
}
.theory-source span { font-size: 11px; color: var(--text-dim); }
.theory-source strong { color: var(--indigo-light); }

.fb-moves-demo { padding: 14px; display: flex; flex-direction: column; gap: 8px; background: rgba(0,0,0,.3); }
.fb-move-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; }
.fb-move-wrong { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); }
.fb-move-right { background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.2); }
.fb-move-icon { font-size: 14px; flex-shrink: 0; }
.fb-move-label { font-size: 12px; color: var(--text-dim); flex: 1; }
.fb-move-move { font-family: monospace; font-size: 13px; font-weight: 700; }
.fb-move-wrong .fb-move-move { color: #f87171; text-decoration: line-through; }
.fb-move-right .fb-move-move { color: #4ade80; }

.tree-viz { padding: 16px; background: rgba(0,0,0,.3); font-family: monospace; font-size: 12px; line-height: 2; color: var(--text-dim); }
.tv-active { color: var(--green); font-weight: 700; }
.tv-dim { opacity: .45; }

.coach-students { padding: 12px; background: rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 6px; }
.coach-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 7px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.coach-av { width: 24px; height: 24px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.coach-name { font-size: 12px; color: var(--text); font-weight: 500; flex: 1; }
.coach-status { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.cs-done { background: rgba(34,197,94,.15); color: #4ade80; }
.cs-prog { background: rgba(234,179,8,.15); color: #fde047; }
.cs-todo { background: rgba(99,102,241,.15); color: var(--indigo-light); }

.fb-blob {
  position: absolute; border-radius: 50%;
  pointer-events: none; filter: blur(40px); opacity: .15;
}

@media (max-width: 900px) {
  .features-bento { grid-template-columns: 1fr 1fr; }
  .fb-card-theory  { grid-column: span 2; }
  .fb-card-feedback{ grid-column: span 1; grid-row: auto; }
}
@media (max-width: 560px) {
  .features-bento { grid-template-columns: 1fr; }
  .fb-card-theory  { grid-column: span 1; }
}

/* Mastery levels */
.mastery-section { margin-top: 80px; }
.mastery-header { text-align: center; margin-bottom: 40px; }
.mastery-header h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.mastery-header p { color: var(--text-muted); margin-top: 8px; }
.mastery-steps {
  display: flex; gap: 0; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card);
}
.mastery-step {
  flex: 1; padding: 28px 20px; text-align: center;
  border-right: 1px solid var(--border); position: relative;
}
.mastery-step:last-child { border-right: none; }
.mastery-num {
  font-size: 28px; font-weight: 900; margin-bottom: 8px; display: block;
}
.mastery-step h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.mastery-step p { font-size: 12px; color: var(--text-muted); }
.m-0 .mastery-num { color: var(--text-dim); }
.m-1 .mastery-num { color: var(--yellow); }
.m-2 .mastery-num { color: var(--indigo-light); }
.m-3 .mastery-num { color: var(--green); }

/* ── POWER FEATURES ── */
.power-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.power-row-reverse .power-text { order: 2; }
.power-row-reverse .power-mockup { order: 1; }
.power-num {
  font-size: 11px; font-weight: 800; color: var(--indigo);
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 12px; display: block;
}
.power-text h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; line-height: 1.25;
}
.power-text p { color: var(--text-muted); line-height: 1.75; margin-bottom: 20px; }
.power-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.power-list li { font-size: 14px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.power-list li::before { content: none; }
.power-list li { color: var(--text); }
.power-mockup { position: relative; }
.power-mockup::before {
  content: ''; position: absolute; inset: -30px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,.15) 0%, transparent 70%);
  pointer-events: none;
}
.pmock-frame {
  background: linear-gradient(145deg,#0d1018,#0a0d15);
  border: 1px solid rgba(99,102,241,.2); border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.03), 0 24px 64px rgba(0,0,0,.5);
}
.pmock-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
}
.pmock-title { font-size: 12px; color: var(--text-dim); font-weight: 500; }
@media (max-width: 768px) {
  .power-row { grid-template-columns: 1fr; gap: 40px; }
  .power-row-reverse .power-text { order: 1; }
  .power-row-reverse .power-mockup { order: 2; }
}

/* ── DASHBOARD MOCKUP ── */
.dash-mockup {
  margin-top: 80px; background: linear-gradient(145deg,#0d1018,#0a0d15);
  border: 1px solid rgba(99,102,241,.2); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03);
}
.dash-topbar {
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 20px; background:rgba(255,255,255,.03);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.dash-body { display:flex; }
.dash-sidebar-nav {
  width:180px; flex-shrink:0; padding:16px 12px;
  border-right:1px solid rgba(255,255,255,.06); display:flex; flex-direction:column; gap:4px;
}
.dash-nav-item {
  padding:8px 12px; border-radius:8px; font-size:12px; font-weight:500;
  color:var(--text-dim); display:flex; align-items:center; gap:8px;
}
.dash-nav-item.active { background:var(--indigo-glow); color:var(--indigo-light); border:1px solid rgba(99,102,241,.2); }
.dash-main { flex:1; padding:20px; overflow:hidden; }
.dash-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:16px; }
.dash-stat {
  background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.07);
  border-radius:10px; padding:14px;
}
.dash-stat-label { font-size:10px; color:var(--text-dim); margin-bottom:4px; }
.dash-stat-val { font-size:22px; font-weight:800; color:var(--text); line-height:1; }
.dash-stat-sub { font-size:10px; color:var(--text-dim); margin-top:3px; }
.dash-section-title { font-size:11px; font-weight:700; color:var(--text-muted); margin-bottom:10px; text-transform:uppercase; letter-spacing:.06em; }
.activity-bars { display:flex; align-items:flex-end; gap:3px; height:44px; margin-bottom:4px; }
.a-bar { flex:1; border-radius:2px 2px 0 0; }
.a-dates { display:flex; justify-content:space-between; }
.a-date { font-size:9px; color:var(--text-dim); }
.dash-openings { display:flex; flex-direction:column; gap:8px; margin-top:14px; }
.dash-opening-row { background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); border-radius:8px; padding:10px 12px; }
.dash-opening-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.dash-opening-name { font-size:12px; font-weight:600; color:var(--text); }
.dash-opening-count { font-size:11px; color:var(--text-dim); }
.dash-progress-track { display:flex; height:6px; border-radius:999px; overflow:hidden; background:#1e2133; }
.dp-green { background:var(--green); }
.dp-blue  { background:#60a5fa; }
.dp-yellow{ background:var(--yellow); }
.dp-rest  { background:#1e2133; flex:1; }
.dash-legend { display:flex; gap:10px; margin-top:5px; }
.dash-leg-item { font-size:9px; display:flex; align-items:center; gap:4px; color:var(--text-dim); }
.dash-leg-dot { width:6px; height:6px; border-radius:50%; }
.dash-table { width:100%; margin-top:14px; border-collapse:collapse; }
.dash-table th { font-size:9px; color:var(--text-dim); text-transform:uppercase; letter-spacing:.06em; text-align:left; padding:4px 8px; border-bottom:1px solid rgba(255,255,255,.06); }
.dash-table td { font-size:11px; color:var(--text-muted); padding:7px 8px; border-bottom:1px solid rgba(255,255,255,.04); }
.dash-table tr:last-child td { border-bottom:none; }
.acc-green { color:var(--green); font-weight:700; }
.acc-yellow{ color:var(--yellow); font-weight:700; }

/* Social proof */
.social-strip {
  margin-top: 80px; text-align: center; padding: 48px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.social-strip .big-num {
  font-size: 3.5rem; font-weight: 900; color: var(--indigo-light);
  display: block; line-height: 1;
}
.social-strip p { color: var(--text-muted); margin-top: 8px; font-size: 1.05rem; }
.stats-row {
  display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
  margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-item .num { font-size: 2rem; font-weight: 800; color: var(--text); display: block; }
.stat-item span { font-size: 13px; color: var(--text-dim); }

/* ── OFFER SECTION ── */
.offer-section {
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(99,102,241,.08) 0%, transparent 70%);
}
.benefits-before-offer {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 56px;
}
.check-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--text-muted);
}
.check-item .check { color: var(--green); font-size: 18px; }

.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; max-width: 720px; margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px; position: relative;
  transition: transform .2s, box-shadow .2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.pricing-card.featured {
  border-color: var(--indigo);
  background: linear-gradient(135deg, #0f1117 0%, #0f1025 100%);
}
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--indigo); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 16px; border-radius: 999px; white-space: nowrap;
}
.pricing-plan { font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; }
.pricing-price {
  font-size: 3rem; font-weight: 900; color: var(--text); line-height: 1;
  margin-bottom: 4px;
}
.pricing-price sup { font-size: 1.4rem; vertical-align: super; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-dim); }
.pricing-period { font-size: 13px; color: var(--text-dim); margin-bottom: 28px; }
.pricing-features { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-muted);
}
.pricing-features li .icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.pricing-features li.included { color: var(--text); }
.pricing-features li.excluded { opacity: .4; }

/* ── TESTIMONIALS ── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .2s, transform .2s;
}
.testi-card:hover { border-color: rgba(99,102,241,.35); transform: translateY(-2px); }
.testi-featured {
  grid-column: span 3;
  background: linear-gradient(135deg, #0f1117 0%, #0f1025 100%);
  border-color: rgba(99,102,241,.3);
  flex-direction: row; align-items: flex-start; gap: 32px;
}
.testi-featured .testi-quote { font-size: 1.1rem; }
.testi-featured .testi-author { flex-shrink: 0; flex-direction: column; align-items: center; text-align: center; min-width: 120px; }
.testi-rating { color: #fbbf24; font-size: 14px; letter-spacing: 2px; }
.testi-quote {
  font-size: 14px; color: var(--text-muted); line-height: 1.75;
  font-style: italic; flex: 1;
}
.testi-quote em { color: var(--text); font-style: normal; font-weight: 600; }
.testi-author {
  display: flex; align-items: center; gap: 12px; margin-top: auto;
}
.testi-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
}
.testi-featured .testi-avatar { width: 48px; height: 48px; font-size: 20px; }
.testi-name { font-size: 14px; font-weight: 700; color: var(--text); }
.testi-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.testi-rating-badge {
  margin-left: auto; background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.25); color: var(--green);
  font-size: 13px; font-weight: 800; padding: 4px 10px;
  border-radius: 8px; white-space: nowrap;
}
.testi-featured .testi-rating-badge { margin: 8px auto 0; }
.testi-summary {
  margin-top: 48px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.testi-sum-stars { color: #fbbf24; font-size: 22px; letter-spacing: 3px; }
.testi-sum-score { font-size: 2rem; font-weight: 900; color: var(--text); }
.testi-sum-sub { font-size: 13px; color: var(--text-dim); }
@media (max-width: 900px) {
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .testi-featured { grid-column: span 2; flex-direction: column; }
  .testi-featured .testi-author { flex-direction: row; text-align: left; }
  .testi-featured .testi-rating-badge { margin: 0 0 0 auto; }
}
@media (max-width: 600px) {
  .testi-grid { grid-template-columns: 1fr; }
  .testi-featured { grid-column: span 1; }
}

/* Billing toggle */
.billing-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; margin-bottom: 36px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 4px; border-radius: 12px; width: fit-content; margin-left: auto; margin-right: auto;
}
.billing-btn {
  display: flex; align-items: center;
  font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 9px 20px; border-radius: 9px; border: none; cursor: pointer;
  background: transparent; color: var(--text-dim);
  transition: all .2s ease;
}
.billing-btn.active {
  background: var(--indigo); color: #fff;
  box-shadow: 0 2px 12px rgba(99,102,241,.35);
}
.billing-btn:not(.active):hover { color: var(--text); }
.save-badge {
  background: rgba(34,197,94,.15); color: var(--green);
  font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px;
}

.trust-row {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin-top: 40px;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim);
}
.trust-item .icon { font-size: 16px; }

/* ── FINAL CTA ── */
.final-cta {
  text-align: center; padding: 120px 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(99,102,241,.12) 0%, transparent 70%);
}
.final-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; letter-spacing: -.025em; margin-bottom: 16px;
}
.final-cta p { color: var(--text-muted); margin-bottom: 36px; font-size: 1.1rem; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border); padding: 32px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-left { font-size: 14px; color: var(--text-dim); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ── RESPONSIVE ── */

/* Tablet */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 12px 24px 20px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    z-index: 100;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-link { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-links .btn { margin-top: 8px; width: 100%; justify-content: center; }
  .landing-nav .container { position: relative; }

  .board-content { flex-direction: column; }
  .board-sidebar { border-left: none; border-top: 1px solid var(--border); }
  .chess-board-wrap { display: flex; justify-content: center; }
  .chess-board {
    grid-template-columns: repeat(8, calc((100vw - 48px - 42px - 20px) / 8)) !important;
  }
  .sq {
    width: auto !important; height: auto !important;
    aspect-ratio: 1; font-size: 18px;
  }
  .coord-label { width: calc((100vw - 48px - 42px - 20px) / 8); }
  .board-wrapper { max-width: 100%; }
  .mastery-steps { flex-direction: column; }
  .mastery-step { border-right: none; border-bottom: 1px solid var(--border); }
  .mastery-step:last-child { border-bottom: none; }

  .dash-body { flex-direction: column; }
  .dash-sidebar-nav { width: 100%; flex-direction: row; border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); overflow-x: auto; }
  .dash-stats { grid-template-columns: repeat(2,1fr); }
}

/* Mobile */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .hero { padding: 64px 0 48px; }
  .btn-lg { padding: 14px 24px; font-size: 15px; }

  .board-topbar { padding: 10px 14px; }
  .board-title { font-size: 11px; }
  .board-sidebar { padding: 12px; }
  .chess-board {
    grid-template-columns: repeat(8, calc((100vw - 32px - 42px - 16px) / 8)) !important;
  }
  .coord-label { width: calc((100vw - 32px - 42px - 16px) / 8); }

  .dash-sidebar-nav { display: none; }
  .dash-main { padding: 12px; overflow-x: auto; }
  .dash-stat-val { font-size: 18px; }
  .dash-table { font-size: 10px; }
  .dash-table th, .dash-table td { padding: 4px 4px; }

  .social-strip { padding: 32px 20px; }
  .social-strip .big-num { font-size: 2.5rem; }
  .stats-row { gap: 24px; }
  .stat-item .num { font-size: 1.5rem; }

  .pricing-card { padding: 24px; }
  .pricing-price { font-size: 2.4rem; }

  .pmock-frame { overflow: hidden; }
  #customBoard { grid-template-columns: repeat(8, 22px) !important; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ── MINI DEMO SECTION ── */
.demo-section {
  padding: 96px 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(99,102,241,.07) 0%, transparent 70%);
}

.demo-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
  max-width: 860px;
  margin: 0 auto;
}

.demo-board-col { position: relative; }

#demo-board-container {
  width: 360px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(99,102,241,.3), 0 24px 64px rgba(0,0,0,.6);
}

/* Override chessboard.js default square colors to match landing theme */
#demo-board-container .white-1e1d7 { background-color: #f0d9b5 !important; }
#demo-board-container .black-3c85d { background-color: #b58863 !important; }

.demo-status-bar {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.demo-status-bar .status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--green); animation: pulse 2s infinite;
}

.demo-status-bar.correct { border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.07); color: #4ade80; }
.demo-status-bar.wrong   { border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.07); color: #f87171; }

.demo-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.demo-opening-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}

.demo-opening-sub {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 4px;
}

.demo-move-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: monospace;
  font-size: 13px;
  line-height: 2;
  color: var(--text-muted);
  min-height: 80px;
}

.demo-move-white { color: var(--text); font-weight: 700; }
.demo-move-black { color: #94a3b8; }
.demo-move-active { color: var(--indigo-light); background: rgba(99,102,241,.15); padding: 1px 5px; border-radius: 4px; }

.demo-hint {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-hint-icon { font-size: 15px; }

.demo-reset-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 8px;
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border); cursor: pointer;
  transition: all .2s;
  width: fit-content;
}
.demo-reset-btn:hover { color: var(--text); border-color: rgba(255,255,255,.2); }

/* Signup overlay */
.demo-overlay {
  display: none;
  position: absolute; inset: 0;
  background: rgba(7,7,15,.92);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 24px;
  gap: 14px;
  z-index: 10;
}
.demo-overlay.visible { display: flex; }

.demo-overlay-emoji { font-size: 36px; }
.demo-overlay-title { font-size: 18px; font-weight: 800; color: var(--text); line-height: 1.3; }
.demo-overlay-sub { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 720px) {
  .demo-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  #demo-board-container { width: 100%; max-width: 360px; }
  .demo-info-col { width: 100%; max-width: 360px; }
}
