:root {
  --ink: #0b121f;
  --ink-soft: #233044;
  --paper: #ffffff;
  --ivory: #f7f7f1;
  --sand: #ffc560;
  --sand-soft: #ffe5aa;
  --chestnut: #b98213;
  --sage: #b98213;
  --accent: #b98213;
  --line: rgba(11, 18, 31, 0.12);
  --muted: #667085;
  --shadow: 0 22px 60px rgba(11, 18, 31, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(11, 18, 31, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11, 18, 31, 0.04) 1px, transparent 1px),
    var(--ivory);
  background-size: 64px 64px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(11, 18, 31, 0.08);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  transition:
    min-height 260ms ease,
    padding 260ms ease,
    background 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  border-color: rgba(11, 18, 31, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(11, 18, 31, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sand);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease;
}

.brand:hover img {
  box-shadow: 0 0 0 6px rgba(255, 197, 96, 0.18);
  transform: rotate(-5deg) scale(1.04);
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong,
.site-footer strong {
  font-size: 1rem;
  font-weight: 800;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  max-width: 240px;
  white-space: nowrap;
}

.desktop-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 700;
  isolation: isolate;
}

.desktop-nav a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  overflow: hidden;
  border-radius: 999px;
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.login-link:hover {
  color: var(--gold-dark, #b98213);
}

.desktop-nav a:hover {
  transform: translateY(-1px);
}

.nav-indicator {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 0;
  height: 40px;
  border: 1px solid rgba(185, 130, 19, 0.18);
  border-radius: 999px;
  opacity: 0;
  background:
    linear-gradient(180deg, rgba(255, 197, 96, 0.3), rgba(255, 229, 170, 0.14)),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 28px rgba(185, 130, 19, 0.13);
  transition:
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    width 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 180ms ease;
  pointer-events: none;
}

.nav-ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 197, 96, 0.38);
  animation: navRipple 560ms ease-out forwards;
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switcher {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 86px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.language-switcher:hover {
  border-color: rgba(185, 130, 19, 0.28);
  box-shadow: 0 10px 24px rgba(11, 18, 31, 0.08);
}

.lang-btn {
  position: relative;
  z-index: 1;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  transition:
    color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.lang-btn.is-active {
  color: var(--ink);
  background: var(--sand);
  box-shadow: 0 6px 14px rgba(185, 130, 19, 0.16);
}

.lang-btn:hover {
  transform: translateY(-1px);
}

.login-link {
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 800;
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.login-link:hover {
  transform: translateY(-1px);
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 0.74fr);
  gap: clamp(32px, 5vw, 82px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(62px, 8vw, 102px) clamp(18px, 5vw, 72px) clamp(58px, 7vw, 86px);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 42%, rgba(255, 197, 96, 0.24), transparent 32%),
    linear-gradient(115deg, rgba(247, 247, 241, 0.98) 0 58%, rgba(255, 255, 255, 0.86) 58% 100%),
    repeating-linear-gradient(45deg, rgba(11, 18, 31, 0.035) 0 1px, transparent 1px 26px),
    var(--ivory);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 57%, rgba(255, 197, 96, 0.26) 57% 57.7%, transparent 57.7%),
    linear-gradient(0deg, transparent 0 83%, rgba(11, 18, 31, 0.06) 83% 83.6%, transparent 83.6%);
  pointer-events: none;
}

.hero-section::after {
  content: "OPENING · TACTICS · ENDGAME";
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  bottom: 26px;
  color: rgba(11, 18, 31, 0.13);
  font-size: clamp(0.82rem, 1.4vw, 1.05rem);
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  animation: heroCopyIn 840ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-visual {
  position: relative;
  z-index: 1;
  pointer-events: none;
  animation: heroVisualIn 920ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-dark, #b98213);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: clamp(4rem, 7.6vw, 8.4rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-wrap: balance;
  font-weight: 800;
}

.hero-slogan {
  max-width: 580px;
  margin-bottom: 22px;
  color: var(--accent);
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: clamp(1.35rem, 2.3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.12;
}

h2 {
  margin-bottom: 16px;
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: clamp(2rem, 3.4vw, 3.55rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
  font-weight: 800;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
  line-height: 1.24;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.68;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(11, 18, 31, 0.1);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.83rem;
  font-weight: 800;
}

.scene-header {
  position: absolute;
  top: 6px;
  left: 32px;
  right: 32px;
  z-index: 7;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(11, 18, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px rgba(11, 18, 31, 0.08);
}

.scene-header span,
.scene-header strong {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.scene-header span {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-btn,
.secondary-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.primary-btn::after,
.secondary-btn::after,
.board-replay::after {
  content: "";
  position: absolute;
  inset: auto auto -42% -28%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
  transform: scale(0);
  transform-origin: center;
  pointer-events: none;
}

.primary-btn:hover,
.secondary-btn:hover,
.board-replay:hover {
  transform: translateY(-2px);
}

.primary-btn {
  color: var(--ink);
  background: var(--sand);
  box-shadow: 0 14px 32px rgba(185, 130, 19, 0.14);
}

.primary-btn:hover {
  background: #ffd27b;
}

.secondary-btn {
  color: var(--ink);
  border-color: rgba(11, 18, 31, 0.16);
  background: rgba(255, 255, 255, 0.76);
}

.secondary-btn:hover {
  border-color: var(--gold-dark, #b98213);
}

.primary-btn.is-tapping::after,
.secondary-btn.is-tapping::after,
.board-replay.is-tapping::after {
  animation: buttonBloom 520ms ease-out;
}

.chess-stage {
  position: relative;
  width: min(620px, 100%);
  min-height: 600px;
  margin-left: auto;
}

.chess-stage::before {
  content: "";
  position: absolute;
  inset: 74px 46px 48px;
  border: 1px solid rgba(11, 18, 31, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 197, 96, 0.28), transparent 24%),
    radial-gradient(circle at 18% 82%, rgba(11, 18, 31, 0.06), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 247, 241, 0.72));
  box-shadow: 0 36px 110px rgba(11, 18, 31, 0.15);
}

.board-glow {
  position: absolute;
  inset: 118px 78px auto auto;
  width: min(430px, 78%);
  max-width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(11, 18, 31, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 247, 241, 0.9)),
    repeating-linear-gradient(90deg, transparent 0 52px, rgba(11, 18, 31, 0.04) 52px 53px),
    rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 70px rgba(11, 18, 31, 0.1);
  animation: boardFloat 8s ease-in-out infinite;
}

.mini-logo {
  position: absolute;
  top: 82px;
  right: 72px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 3px solid var(--sand);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.mini-logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.animated-board {
  position: absolute;
  top: 136px;
  right: 92px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: min(430px, 78vw);
  aspect-ratio: 1;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 34px 80px rgba(11, 18, 31, 0.22);
  transform: perspective(1000px) rotateX(2deg);
  animation: boardTilt 8s ease-in-out infinite;
  overflow: hidden;
}

.animated-board::before,
.animated-board::after {
  display: none;
}

.animated-board::before {
  content: "a b c d e f g h";
  left: 18px;
  right: 18px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.animated-board::after {
  content: "8 7 6 5 4 3 2 1";
  top: 16px;
  bottom: 16px;
  left: 10px;
  display: grid;
  align-content: space-between;
}

.square {
  display: grid;
  place-items: center;
  background: #eeeed2;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: clamp(1.65rem, 4.2vw, 3rem);
  line-height: 1;
}

.square:nth-child(16n + 2),
.square:nth-child(16n + 4),
.square:nth-child(16n + 6),
.square:nth-child(16n + 8),
.square:nth-child(16n + 9),
.square:nth-child(16n + 11),
.square:nth-child(16n + 13),
.square:nth-child(16n + 15) {
  background: #769656;
}

.square:nth-child(29),
.square:nth-child(37) {
  box-shadow: inset 0 0 0 999px rgba(255, 197, 96, 0.5);
}

.square:nth-child(38),
.square:nth-child(47) {
  box-shadow: none;
}

.white-piece {
  color: #f8f8f3;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.42),
    0 4px 10px rgba(0, 0, 0, 0.24);
}

.black-piece {
  color: #33302d;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.2),
    0 4px 10px rgba(0, 0, 0, 0.16);
}

.animated-white-pawn,
.animated-pawn {
  animation: boardPiecePulse 3.8s ease-in-out infinite;
}

.move-line {
  position: absolute;
  z-index: 2;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold-dark, #b98213), transparent);
  transform-origin: left center;
  opacity: 0;
  animation: moveLine 5.8s ease-in-out infinite;
}

.line-one {
  left: 18%;
  top: 66%;
  width: 42%;
  transform: rotate(-45deg);
}

.line-two {
  left: 44%;
  top: 36%;
  width: 32%;
  transform: rotate(22deg);
  animation-delay: 1.8s;
}

.line-three {
  left: 30%;
  top: 24%;
  width: 48%;
  transform: rotate(58deg);
  animation-delay: 3.2s;
}

.piece {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--paper);
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--sand);
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 18px 34px rgba(11, 18, 31, 0.22);
}

.piece-king {
  left: 12%;
  top: 60%;
  animation: piecePulse 4.8s ease-in-out infinite;
}

.piece-knight {
  left: 39%;
  top: 35%;
  color: var(--ink);
  background: var(--sand);
  border-color: var(--paper);
  animation: knightMove 6.2s ease-in-out infinite;
}

.piece-queen {
  left: 66%;
  top: 22%;
  animation: piecePulse 4.8s ease-in-out infinite 1.2s;
}

.piece-pawn {
  left: 72%;
  top: 68%;
  color: var(--ink);
  background: var(--paper);
  border-color: var(--gold-dark, #b98213);
  animation: pawnMove 5.6s ease-in-out infinite;
}

.notation-stream {
  position: absolute;
  top: 160px;
  left: 22px;
  z-index: 6;
  display: grid;
  gap: 8px;
  width: 112px;
}

.notation-stream span {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(11, 18, 31, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(11, 18, 31, 0.08);
  animation: notationBlink 4.8s ease-in-out infinite;
}

.notation-stream span:nth-child(2) {
  animation-delay: 0.45s;
}

.notation-stream span:nth-child(3) {
  animation-delay: 0.9s;
}

.notation-stream span:nth-child(4) {
  animation-delay: 1.35s;
}

.notation-stream span:nth-child(5) {
  animation-delay: 1.8s;
}

.notation-stream span:nth-child(6) {
  animation-delay: 2.25s;
}

.analysis-panel {
  position: absolute;
  top: 182px;
  right: 2px;
  z-index: 8;
  width: 210px;
  padding: 18px;
  border: 1px solid rgba(11, 18, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 38px rgba(11, 18, 31, 0.13);
  animation: panelFloat 6.5s ease-in-out infinite;
}

.analysis-panel span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.analysis-panel strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1rem;
}

.coach-insight,
.lesson-meter {
  position: absolute;
  z-index: 8;
  border: 1px solid rgba(11, 18, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 38px rgba(11, 18, 31, 0.12);
  backdrop-filter: blur(12px);
}

.coach-insight {
  top: 312px;
  left: 18px;
  width: 190px;
  padding: 14px;
  animation: panelFloat 7.2s ease-in-out infinite 0.6s;
}

.coach-insight span,
.lesson-meter span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.coach-insight strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.98rem;
}

.coach-insight small {
  color: var(--gold-dark, #b98213);
  font-weight: 900;
}

.lesson-meter {
  right: 24px;
  bottom: 138px;
  width: 172px;
  padding: 14px;
  animation: panelFloat 7s ease-in-out infinite 1.1s;
}

.lesson-meter strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.5rem;
}

.lesson-meter i {
  position: relative;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(11, 18, 31, 0.12);
  overflow: hidden;
}

.lesson-meter i::before {
  content: "";
  position: absolute;
  inset: 0 18% 0 0;
  border-radius: inherit;
  background: var(--sand);
  animation: meterPulse 4.8s ease-in-out infinite;
}

.eval-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.eval-row i {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(11, 18, 31, 0.12);
  overflow: hidden;
}

.eval-row i::before {
  content: "";
  position: absolute;
  inset: 0 34% 0 0;
  border-radius: inherit;
  background: var(--gold-dark, #b98213);
  animation: evalPulse 4.2s ease-in-out infinite;
}

.eval-row small {
  color: var(--gold-dark, #b98213);
  font-weight: 900;
}

.floating-chess span {
  position: absolute;
  z-index: 0;
  color: rgba(11, 18, 31, 0.09);
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 1;
  animation: floatPiece 9s ease-in-out infinite;
}

.floating-chess span:nth-child(1) {
  top: 72%;
  left: -6%;
}

.floating-chess span:nth-child(2) {
  top: 16%;
  right: 10%;
  animation-delay: 1.4s;
}

.floating-chess span:nth-child(3) {
  top: 54%;
  right: -2%;
  animation-delay: 2.8s;
}

.floating-chess span:nth-child(4) {
  top: 35%;
  left: 3%;
  animation-delay: 4.2s;
}

.hero-panel {
  position: absolute;
  left: 54px;
  bottom: 98px;
  z-index: 7;
  width: min(330px, 70vw);
  padding: 20px;
  border: 1px solid rgba(11, 18, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.smart-dock {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(470px, calc(100% - 70px));
  overflow: hidden;
  border: 1px solid rgba(11, 18, 31, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 46px rgba(11, 18, 31, 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.smart-dock div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.smart-dock span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.smart-dock strong {
  color: var(--ink);
  font-size: 1rem;
}

.hero-panel span,
.preview-topbar span,
.metric-grid span,
.report-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.hero-panel p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.board-caption {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 7;
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(11, 18, 31, 0.1);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 36px rgba(11, 18, 31, 0.1);
  font-size: 0.9rem;
  font-weight: 900;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0 clamp(18px, 5vw, 72px);
  background: var(--line);
}

.trust-band div {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 122px;
  padding: 30px;
  background: var(--paper);
  overflow: hidden;
}

.trust-band div::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -22px;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(185, 130, 19, 0.15);
  transform: rotate(45deg);
}

.trust-band strong {
  font-size: 1.24rem;
}

.trust-band span {
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: clamp(66px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.academy-section,
.team-section,
.programs-section,
.register-section {
  position: relative;
  background: var(--paper);
}

.academy-section::before,
.team-section::before,
.programs-section::before,
.register-section::before {
  content: "";
  position: absolute;
  inset: 38px clamp(18px, 5vw, 72px) auto auto;
  width: 184px;
  height: 184px;
  border: 1px solid rgba(11, 18, 31, 0.08);
  background:
    linear-gradient(45deg, rgba(11, 18, 31, 0.06) 25%, transparent 25% 75%, rgba(11, 18, 31, 0.06) 75%),
    linear-gradient(45deg, rgba(11, 18, 31, 0.06) 25%, transparent 25% 75%, rgba(11, 18, 31, 0.06) 75%);
  background-position: 0 0, 23px 23px;
  background-size: 46px 46px;
  pointer-events: none;
}

.team-section::before {
  content: "♞";
  inset: 38px clamp(18px, 5vw, 72px) auto auto;
  width: auto;
  height: auto;
  border: 0;
  background: none;
  color: rgba(11, 18, 31, 0.07);
  font-family: Georgia, serif;
  font-size: clamp(8rem, 16vw, 16rem);
  line-height: 0.8;
  transform: rotate(-8deg);
}

.academy-section::before {
  content: "♔";
  width: auto;
  height: auto;
  border: 0;
  background: none;
  color: rgba(11, 18, 31, 0.06);
  font-family: Georgia, serif;
  font-size: clamp(7rem, 14vw, 14rem);
  line-height: 0.8;
  transform: rotate(-6deg);
}

.team-section::before {
  content: "♞";
}

.programs-section::before {
  content: "♗";
  width: auto;
  height: auto;
  border: 0;
  background: none;
  color: rgba(185, 130, 19, 0.13);
  font-family: Georgia, serif;
  font-size: clamp(8rem, 16vw, 15rem);
  line-height: 0.8;
  transform: rotate(9deg);
}

.programs-section::after {
  content: "♙";
  position: absolute;
  right: clamp(160px, 18vw, 340px);
  top: 80px;
  color: rgba(11, 18, 31, 0.055);
  font-family: Georgia, serif;
  font-size: clamp(5rem, 10vw, 10rem);
  line-height: 1;
  transform: rotate(-10deg);
  pointer-events: none;
}

.register-section::before {
  content: "♜";
  width: auto;
  height: auto;
  border: 0;
  background: none;
  color: rgba(11, 18, 31, 0.06);
  font-family: Georgia, serif;
  font-size: clamp(7rem, 14vw, 14rem);
  line-height: 0.8;
  transform: rotate(6deg);
}

.section-heading {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow),
.smart-copy p,
.portal-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.academy-grid,
.portal-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.academy-grid article,
.portal-grid article {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 30px rgba(11, 18, 31, 0.05);
}

.academy-grid article:nth-child(2),
.portal-grid article:nth-child(2) {
  background: #fff8e9;
}

.academy-grid article:nth-child(3),
.portal-grid article:nth-child(3) {
  background: #f5f8f3;
}

.academy-grid p,
.portal-grid p {
  color: var(--muted);
  line-height: 1.68;
}

.programs-section {
  background:
    linear-gradient(110deg, var(--ivory) 0 58%, #fff8e9 58% 100%);
}

.program-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.program-grid article {
  display: grid;
  align-content: space-between;
  min-height: 300px;
  padding: 28px;
  border: 1px solid rgba(11, 18, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(11, 18, 31, 0.05);
}

.program-grid article:nth-child(2) {
  background: #fff8e9;
}

.program-grid article:nth-child(3) {
  background: #f5f8f3;
}

.program-grid span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 64px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--sand);
  font-weight: 900;
}

.program-grid h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.program-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.team-section {
  background:
    linear-gradient(90deg, rgba(255, 197, 96, 0.2), transparent 42%),
    var(--paper);
}

.team-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.founder-card {
  background: #fff8e9;
}

.founder-media img {
  object-position: center 35%;
}

.founder-photo-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--sand-soft);
}

.founder-experience {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.founder-experience li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.46;
}

.founder-experience li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sand);
}

.social-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.social-proof-grid article {
  display: grid;
  align-content: end;
  min-height: 171px;
  padding: 26px;
  border-radius: 8px;
  border: 1px solid rgba(11, 18, 31, 0.1);
  background: var(--ivory);
  box-shadow: 0 14px 30px rgba(11, 18, 31, 0.05);
}

.social-proof-grid article:nth-child(2) {
  background: #f5f8f3;
}

.social-proof-grid article:nth-child(3) {
  background: #fff8e9;
}

.social-proof-grid article:nth-child(4) {
  background: #fff0ee;
}

.social-proof-grid strong {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  line-height: 1;
}

.social-proof-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.coach-card {
  position: relative;
  display: grid;
  grid-template-rows: 240px 1fr;
  min-height: 640px;
  border-radius: 8px;
  border: 1px solid rgba(11, 18, 31, 0.1);
  background: var(--paper);
  box-shadow: 0 14px 30px rgba(11, 18, 31, 0.07);
  overflow: hidden;
}

.coach-card-featured {
  background: #fff8e9;
}

.coach-grid {
  display: contents;
}

.coach-photo {
  position: relative;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(11, 18, 31, 0.86), rgba(35, 48, 68, 0.72)),
    linear-gradient(45deg, rgba(255, 197, 96, 0.24) 25%, transparent 25% 75%, rgba(255, 197, 96, 0.24) 75%);
  background-size: auto, 42px 42px;
  overflow: hidden;
}

.coach-photo-light {
  background:
    linear-gradient(135deg, rgba(255, 197, 96, 0.94), rgba(255, 229, 170, 0.72)),
    linear-gradient(45deg, rgba(11, 18, 31, 0.12) 25%, transparent 25% 75%, rgba(11, 18, 31, 0.12) 75%);
  background-size: auto, 42px 42px;
}

.coach-photo span {
  display: none;
}

.coach-photo img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coach-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 20%, rgba(11, 18, 31, 0.58));
  pointer-events: none;
}

.coach-photo-light span {
  border-color: var(--paper);
  color: var(--ink);
  background: var(--paper);
}

.coach-photo-light::after {
  background: linear-gradient(180deg, transparent 18%, rgba(11, 18, 31, 0.42));
}

.coach-content {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.coach-role {
  display: block;
  margin-bottom: 10px;
  padding-left: 12px;
  border-left: 3px solid var(--sand);
  color: var(--gold-dark, #b98213);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.coach-content h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.coach-content p {
  color: var(--ink-soft);
  line-height: 1.68;
}

.coach-rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
}

.coach-rating-row strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  color: var(--ink);
  border: 1px solid rgba(11, 18, 31, 0.1);
  background: rgba(255, 197, 96, 0.34);
  font-size: 0.76rem;
  font-weight: 900;
}

.coach-facts {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.coach-facts li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.5;
}

.coach-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sand);
}

.academy-contact-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(11, 18, 31, 0.1);
  border-radius: 8px;
  background: var(--ivory);
}

.academy-contact-strip div {
  display: grid;
  gap: 5px;
}

.academy-contact-strip span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.academy-contact-strip strong {
  color: var(--ink);
  line-height: 1.35;
}

.facebook-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 20px;
  padding: 0 20px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--sand);
  font-weight: 900;
}

.facebook-link:hover {
  background: #ffd27b;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 34px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--sand);
  font-size: 0.85rem;
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
  color: var(--ink);
  background:
    linear-gradient(110deg, #fff8e9 0 58%, #e9f0e8 58% 100%);
}

.smart-copy p {
  max-width: 690px;
  color: var(--ink-soft);
}

.feature-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-dark, #b98213);
}

.dashboard-preview {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(11, 18, 31, 0.12);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dashboard-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 197, 96, 0.22), transparent),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(11, 18, 31, 0.04) 38px 39px);
  transform: translateX(-100%);
  animation: scanReport 4.8s ease-in-out infinite;
  pointer-events: none;
}

.preview-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 6px 18px;
}

.preview-topbar span {
  margin: 0;
}

.report-card {
  position: relative;
  z-index: 1;
  padding: 24px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
}

.report-card span {
  color: rgba(255, 255, 255, 0.65);
}

.report-card h3 {
  font-size: 1.45rem;
}

.report-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.62;
}

.metric-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.metric-grid div {
  padding: 18px;
  border: 1px solid rgba(11, 18, 31, 0.08);
  border-radius: 8px;
  background: var(--ivory);
}

.metric-grid strong {
  font-size: 1.08rem;
}

.registration-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1120px;
}

.registration-form label {
  display: grid;
  gap: 9px;
  color: var(--ink-soft);
  font-weight: 900;
}

.registration-form input,
.registration-form select,
.registration-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.registration-form input,
.registration-form select {
  height: 52px;
  padding: 0 14px;
}

.registration-form textarea {
  resize: vertical;
  padding: 14px;
}

.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
  border-color: var(--gold-dark, #b98213);
  box-shadow: 0 0 0 4px rgba(255, 197, 96, 0.2);
}

.form-wide {
  grid-column: 1 / -1;
}

.form-submit {
  width: max-content;
  border: 0;
}

.form-message {
  align-self: center;
  margin: 0;
  color: var(--gold-dark, #b98213);
  font-weight: 900;
}

.portal-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.portal-copy {
  position: sticky;
  top: 112px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.site-footer div {
  display: grid;
  gap: 7px;
}

.site-footer strong {
  color: var(--paper);
}

@media (max-width: 1080px) {
  .hero-copy {
    max-width: 620px;
  }

  .chess-stage {
    width: min(560px, 100%);
  }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .hero-section,
  .split-section,
  .portal-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-visual {
    position: relative;
    min-height: 560px;
    margin-top: 36px;
  }

  .chess-stage {
    width: min(560px, 100%);
    min-height: 600px;
    opacity: 1;
    margin: 0 auto;
  }

  .trust-band,
  .academy-grid,
  .program-grid,
  .team-layout,
  .portal-grid,
  .registration-form {
    grid-template-columns: 1fr;
  }

  .social-proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .academy-contact-strip {
    grid-template-columns: 1fr;
  }

  .portal-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    min-height: 112px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-section {
    padding-top: 42px;
  }

  h1 {
    font-size: 3.45rem;
  }

  .hero-slogan {
    font-size: 1.45rem;
  }

  .scene-header {
    top: 0;
    left: 10px;
    right: 10px;
  }

  .scene-header span,
  .scene-header strong {
    font-size: 0.7rem;
  }

  .hero-actions,
  .primary-btn,
  .secondary-btn,
  .form-submit {
    width: 100%;
  }

  .hero-visual {
    min-height: 500px;
  }

  .chess-stage {
    min-height: 560px;
  }

  .animated-board {
    top: 122px;
    right: 18px;
    width: min(330px, 84vw);
  }

  .board-glow {
    top: 92px;
    right: 10px;
    width: min(340px, 86vw);
  }

  .hero-panel {
    left: 18px;
    bottom: 106px;
    width: min(300px, calc(100vw - 36px));
    padding: 18px;
  }

  .mini-logo {
    top: 68px;
    right: auto;
    left: 18px;
    width: 64px;
    height: 64px;
  }

  .mini-logo img {
    width: 54px;
    height: 54px;
  }

  .piece {
    width: 46px;
    height: 46px;
    font-size: 1.72rem;
  }

  .notation-stream {
    top: 118px;
    left: 10px;
    width: 86px;
  }

  .board-caption {
    bottom: 24px;
    width: max-content;
    max-width: calc(100% - 36px);
  }

  .notation-stream span {
    min-width: 42px;
    font-size: 0.78rem;
  }

  .analysis-panel {
    top: auto;
    right: 12px;
    bottom: 220px;
    width: min(220px, calc(100vw - 36px));
  }

  .coach-insight {
    top: 280px;
    left: 8px;
    width: 150px;
  }

  .lesson-meter {
    display: none;
  }

  .smart-dock {
    bottom: 18px;
    width: calc(100% - 28px);
  }

  .smart-dock div {
    padding: 11px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .social-proof-grid {
    grid-template-columns: 1fr;
  }

  .coach-card {
    grid-template-rows: 180px 1fr;
    min-height: auto;
  }

  .program-grid article {
    min-height: 240px;
  }

  .program-grid span {
    margin-bottom: 34px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@keyframes moveLine {
  0%,
  18%,
  100% {
    opacity: 0;
    scale: 0.45 1;
  }

  36%,
  62% {
    opacity: 1;
    scale: 1 1;
  }
}

@keyframes boardFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -12px;
  }
}

@keyframes boardTilt {
  0%,
  100% {
    transform: perspective(1000px) rotateX(2deg) translateY(0);
  }

  50% {
    transform: perspective(1000px) rotateX(2deg) translateY(-8px);
  }
}

@keyframes boardPiecePulse {
  0%,
  100% {
    scale: 1;
    filter: brightness(1);
  }

  50% {
    scale: 1.08;
    filter: brightness(1.12);
  }
}

@keyframes targetSquare {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.35);
  }
}

@keyframes piecePulse {
  0%,
  100% {
    filter: brightness(1);
    translate: 0 0;
  }

  50% {
    filter: brightness(1.1);
    translate: 0 -8px;
  }
}

@keyframes knightMove {
  0%,
  100% {
    translate: 0 0;
  }

  45%,
  56% {
    translate: 54px -78px;
  }
}

@keyframes pawnMove {
  0%,
  100% {
    translate: 0 0;
  }

  42%,
  58% {
    translate: -2px -58px;
  }
}

@keyframes notationBlink {
  0%,
  100% {
    color: var(--ink);
    border-color: rgba(11, 18, 31, 0.12);
    background: var(--paper);
  }

  35%,
  58% {
    color: var(--ink);
    border-color: var(--sand);
    background: var(--sand);
  }
}

@keyframes panelFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

@keyframes evalPulse {
  0%,
  100% {
    inset: 0 38% 0 0;
  }

  50% {
    inset: 0 26% 0 0;
  }
}

@keyframes meterPulse {
  0%,
  100% {
    inset: 0 24% 0 0;
  }

  50% {
    inset: 0 12% 0 0;
  }
}

@keyframes floatPiece {
  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
    opacity: 0.55;
  }

  50% {
    translate: 0 -22px;
    rotate: 4deg;
    opacity: 0.9;
  }
}

@keyframes scanReport {
  0%,
  24% {
    transform: translateX(-100%);
  }

  62%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes navRipple {
  0% {
    opacity: 0.9;
    transform: scale(0.1);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes buttonBloom {
  0% {
    opacity: 0.8;
    transform: scale(0);
  }

  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

@keyframes softFloatIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroCopyIn {
  0% {
    opacity: 0;
    transform: translateX(-22px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroVisualIn {
  0% {
    opacity: 0;
    transform: translateX(28px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.motion-reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
}

.motion-reveal.is-visible {
  animation: softFloatIn 720ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

.live-board-card {
  position: relative;
  width: min(500px, 100%);
  margin-left: auto;
  padding: 16px;
  border: 1px solid rgba(11, 18, 31, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 247, 241, 0.9)),
    var(--paper);
  box-shadow: 0 36px 90px rgba(11, 18, 31, 0.15);
  transform: translateY(-18px);
}

.live-board-card::before {
  content: "";
  position: absolute;
  inset: 56px -18px -20px 58px;
  z-index: -1;
  border-radius: 8px;
  background: rgba(255, 197, 96, 0.16);
}

.live-board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.live-board-top div {
  display: grid;
  gap: 4px;
}

.live-board-top span,
.move-label,
.player-row span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-board-top strong {
  font-size: 1.08rem;
}

.board-replay {
  position: relative;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(11, 18, 31, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: var(--sand);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  overflow: hidden;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.live-board-shell {
  padding: 10px;
  border-radius: 8px;
  background: #312e2b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.online-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: #eeeed2;
}

.board-squares,
.board-pieces {
  position: absolute;
  inset: 0;
}

.board-squares {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
}

.board-square {
  position: relative;
}

.board-square.is-light {
  background: #eeeed2;
}

.board-square.is-dark {
  background: #769656;
}

.board-square.is-last-move::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(246, 246, 105, 0.52);
}

.board-square[data-file]::before {
  content: attr(data-file);
  position: absolute;
  right: 5px;
  bottom: 3px;
  z-index: 1;
  color: rgba(49, 46, 43, 0.62);
  font-size: clamp(0.55rem, 1.2vw, 0.78rem);
  font-weight: 900;
}

.board-square[data-rank]::after {
  content: attr(data-rank);
  position: absolute;
  left: 5px;
  top: 3px;
  z-index: 1;
  color: rgba(49, 46, 43, 0.62);
  font-size: clamp(0.55rem, 1.2vw, 0.78rem);
  font-weight: 900;
  background: transparent;
}

.board-square.is-dark[data-file]::before,
.board-square.is-dark[data-rank]::after {
  color: rgba(238, 238, 210, 0.82);
}

.board-pieces {
  pointer-events: none;
}

.board-piece {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 12.5%;
  height: 12.5%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 3.15rem);
  line-height: 1;
  transition: transform 640ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.board-piece.is-white {
  color: #f7f7f2;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.46),
    0 6px 12px rgba(0, 0, 0, 0.28);
}

.board-piece.is-black {
  color: #22201e;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.34),
    0 5px 12px rgba(0, 0, 0, 0.24);
}

.board-side-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.board-side-panel p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.4;
}

.player-row,
.current-move,
.move-history {
  border: 1px solid rgba(11, 18, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.player-row {
  display: none;
  gap: 4px;
  padding: 10px 12px;
}

.player-row strong {
  font-size: 0.88rem;
}

.move-label {
  align-self: center;
}

.current-move {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--sand);
}

.move-history {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  counter-reset: none;
}

.move-history li {
  min-height: 32px;
  padding: 8px 10px;
  border-right: 1px solid rgba(11, 18, 31, 0.08);
  border-bottom: 1px solid rgba(11, 18, 31, 0.08);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 900;
}

.move-history li.is-active {
  color: var(--ink);
  background: rgba(255, 197, 96, 0.56);
}

@media (max-width: 980px) {
  .live-board-card {
    width: min(500px, 100%);
    margin: 0 auto;
    transform: none;
  }
}

@media (max-width: 640px) {
  .live-board-card {
    padding: 12px;
  }

  .live-board-card::before {
    inset: 46px 0 -12px 24px;
  }

  .live-board-top {
    align-items: start;
  }

  .live-board-shell {
    padding: 8px;
  }

  .board-piece {
    font-size: clamp(1.8rem, 10vw, 2.85rem);
  }

  .board-side-panel {
    grid-template-columns: 1fr;
  }

  .board-side-panel p,
  .move-history {
    grid-column: auto;
  }

  .move-history {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Replacement for the earlier chessboard mockup: a brand and people-led hero. */
.hero-section {
  grid-template-columns: minmax(0, 0.96fr) minmax(390px, 0.82fr);
  background:
    radial-gradient(circle at 82% 38%, rgba(255, 197, 96, 0.24), transparent 30%),
    linear-gradient(112deg, rgba(247, 247, 241, 0.98) 0 56%, rgba(255, 255, 255, 0.9) 56% 100%),
    var(--ivory);
}

.hero-section::after {
  content: "";
}

.hero-visual {
  pointer-events: auto;
}

.academy-showcase {
  position: relative;
  width: min(600px, 100%);
  min-height: 610px;
  margin-left: auto;
}

.academy-showcase::before {
  content: "";
  position: absolute;
  inset: 74px 18px 28px 54px;
  border: 1px solid rgba(11, 18, 31, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 233, 0.74)),
    linear-gradient(45deg, rgba(11, 18, 31, 0.055) 25%, transparent 25% 75%, rgba(11, 18, 31, 0.055) 75%);
  background-size: auto, 48px 48px;
  box-shadow: 0 36px 90px rgba(11, 18, 31, 0.13);
}

.showcase-media {
  position: absolute;
  top: 104px;
  right: 54px;
  left: 92px;
  height: 380px;
  overflow: hidden;
  border: 1px solid rgba(11, 18, 31, 0.1);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 30px 74px rgba(11, 18, 31, 0.18);
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.showcase-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 54%, rgba(11, 18, 31, 0.58)),
    linear-gradient(90deg, rgba(11, 18, 31, 0.2), transparent 42%);
  pointer-events: none;
}

.showcase-brand,
.showcase-status,
.showcase-coach,
.showcase-proof {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(11, 18, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(11, 18, 31, 0.12);
  backdrop-filter: blur(12px);
}

.showcase-brand {
  top: 38px;
  left: 18px;
  right: 46px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.showcase-brand img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 2px solid var(--sand);
  border-radius: 50%;
  object-fit: cover;
}

.showcase-brand div,
.showcase-status,
.showcase-coach div,
.showcase-proof div {
  display: grid;
  gap: 4px;
}

.showcase-brand span,
.showcase-status span,
.showcase-status small,
.showcase-coach span,
.showcase-proof span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.showcase-brand strong,
.showcase-status strong,
.showcase-coach strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.showcase-status {
  left: 0;
  bottom: 136px;
  width: 230px;
  padding: 18px;
}

.showcase-status strong {
  font-size: 1.18rem;
}

.showcase-status::before {
  content: "";
  width: 38px;
  height: 6px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--sand);
}

.showcase-coach {
  right: 12px;
  bottom: 92px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(350px, calc(100% - 72px));
  padding: 12px;
}

.showcase-coach img {
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.showcase-proof {
  left: 64px;
  right: 42px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.showcase-proof div {
  min-height: 78px;
  padding: 14px;
  border-right: 1px solid rgba(11, 18, 31, 0.08);
  background: rgba(255, 255, 255, 0.58);
}

.showcase-proof div:last-child {
  border-right: 0;
}

.showcase-proof strong {
  color: var(--ink);
  font-size: 1.24rem;
}

@media (max-width: 980px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .academy-showcase {
    width: min(560px, 100%);
    min-height: 580px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .hero-copy {
    max-width: 100%;
    min-width: 0;
  }

  .hero-section > *,
  .hero-visual,
  .academy-showcase {
    min-width: 0;
    max-width: 100%;
  }

  .hero-section {
    overflow: hidden;
  }

  .hero-proof span {
    white-space: normal;
  }

  h1 {
    max-width: 100%;
    font-size: 2.85rem;
    line-height: 0.96;
    overflow-wrap: break-word;
  }

  .hero-slogan {
    max-width: 100%;
    font-size: 1.2rem;
    line-height: 1.25;
  }

  .hero-text {
    max-width: min(320px, calc(100vw - 48px));
    overflow-wrap: anywhere;
  }

  .hero-actions {
    max-width: calc(100vw - 48px);
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-proof span {
    width: max-content;
    max-width: calc(100vw - 48px);
  }

  .hero-visual {
    min-height: 0;
    margin-top: 22px;
  }

  .academy-showcase {
    min-height: 520px;
  }

  .academy-showcase::before {
    inset: 58px 0 22px 0;
  }

  .showcase-brand {
    top: 0;
    left: 0;
    right: 0;
  }

  .showcase-media {
    top: 92px;
    left: 18px;
    right: 18px;
    height: 310px;
  }

  .showcase-status {
    left: 0;
    bottom: 92px;
    width: min(218px, 58vw);
    padding: 14px;
  }

  .showcase-coach {
    right: 0;
    bottom: 76px;
    width: min(300px, 74vw);
  }

  .showcase-proof {
    left: 0;
    right: 0;
    bottom: 0;
  }

  .showcase-proof div {
    min-height: 68px;
    padding: 12px 10px;
  }

  .showcase-proof strong {
    font-size: 1.05rem;
  }
}
