/* ═══════════════════════════════════════════════════════════════
   CHESS MASTERY ACADEMY — Design System v2.0 "Obsidian Royal"
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --ink: #111827;
  --muted: #526070;
  --navy: #0a1628;
  --navy-mid: #101b2d;
  --charcoal: #0d1117;
  --panel: #141e2e;
  --panel-mid: #182235;
  --surface: #1e2d42;

  --gold: #c89b3c;
  --gold-bright: #e8b84b;
  --gold-dim: #8a6a24;
  --gold-soft: #f4ead4;
  --gold-glow: rgba(200,155,60,.30);
  --gold-border: rgba(200,155,60,.45);

  --teal: #087f8c;
  --teal-dark: #05626d;
  --teal-light: #0ab5c8;
  --blue: #2f6fbb;

  --white: #ffffff;
  --off-white: #f7f8fb;
  --line: #dfe5ec;
  --line-dark: rgba(255,255,255,.09);

  --shadow: 0 20px 50px rgba(0,0,0,.18);
  --shadow-card: 0 8px 28px rgba(0,0,0,.09);
  --shadow-gold: 0 8px 40px rgba(200,155,60,.22);
  --shadow-deep: 0 40px 80px rgba(0,0,0,.35);

  --font-display: 'Cinzel', 'Georgia', serif;
  --font-body: 'Raleway', 'Arial', 'Helvetica', sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max: 1180px;

  --ease: cubic-bezier(.25,.46,.45,.94);
  --bounce: cubic-bezier(.34,1.56,.64,1);
  --tr: .28s var(--ease);
  --tr-fast: .16s var(--ease);
}

/* ── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--charcoal); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg,var(--gold-dim),var(--gold)); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-bright); }

/* ── BASE ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1rem; }

h1, h2, h3, h4 {
  margin: 0 0 1rem;
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .03em;
}

h1 { font-size: 4.2rem; }
h2 { font-size: 3rem; }
h3 { font-size: 1.75rem; font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 700; }

ul, ol { margin: 0; padding-left: 1.25rem; }
li + li { margin-top: .45rem; }

/* ── KEYFRAMES ───────────────────────────────────────────────── */
@keyframes boardDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 68px 68px; }
}

@keyframes float {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-22px) rotate(4deg); }
}

@keyframes float2 {
  0%,100% { transform: translateY(0) rotate(5deg); }
  50%      { transform: translateY(-18px) rotate(-5deg); }
}

@keyframes shimmer {
  0%   { background-position: -400% center; }
  100% { background-position: 400% center; }
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

@keyframes pulseGold {
  0%,100% { box-shadow: 0 0 0 0 var(--gold-glow); }
  50%      { box-shadow: 0 0 28px 6px var(--gold-glow); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ── ANIMATION SYSTEM ────────────────────────────────────────── */
.animate-in {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.animate-in.from-left  { transform: translateX(-38px); }
.animate-in.from-right { transform: translateX(38px); }
.animate-in.scale-in   { transform: scale(.93) translateY(18px); }
.animate-in.is-visible { opacity: 1; transform: none; }

.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }
.delay-5 { transition-delay: .40s; }
.delay-6 { transition-delay: .48s; }

/* ── HEADER ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,22,40,.92);
  color: var(--white);
  border-bottom: 1px solid rgba(200,155,60,.15);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  transition: background var(--tr), box-shadow var(--tr), border-color var(--tr);
}

.site-header.scrolled {
  background: rgba(10,22,40,.98);
  border-bottom-color: rgba(200,155,60,.28);
  box-shadow: 0 4px 40px rgba(0,0,0,.45);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  line-height: 1.15;
  min-width: 235px;
  transition: opacity var(--tr-fast);
}
.brand:hover { opacity: .85; }

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: contain;
  background: #040810;
  border: 1.5px solid var(--gold-border);
  flex: 0 0 auto;
  box-shadow: 0 0 18px rgba(200,155,60,.2), inset 0 0 18px rgba(200,155,60,.05);
  transition: box-shadow var(--tr);
}
.brand:hover .brand-mark {
  box-shadow: 0 0 32px rgba(200,155,60,.4), inset 0 0 18px rgba(200,155,60,.1);
}

.brand-text { display: inline-flex; flex-direction: column; }

.brand strong {
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .05em;
  background: linear-gradient(135deg, #f0e0b0, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand span {
  color: rgba(214,222,234,.75);
  font-size: .87rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(200,155,60,.4);
  background: transparent;
  color: var(--white);
  border-radius: var(--radius);
  padding: .65rem .9rem;
  font-size: .92rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--tr-fast), border-color var(--tr-fast);
}
.nav-toggle:hover { background: rgba(200,155,60,.1); border-color: var(--gold); }

.nav-toggle-bars { display: inline-grid; gap: 4px; margin-left: .5rem; vertical-align: middle; }
.nav-toggle-bars span { width: 20px; height: 2px; background: currentColor; display: block; border-radius: 2px; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .85rem;
  flex-wrap: wrap;
  font-size: .93rem;
  font-weight: 600;
}

.site-nav a {
  color: rgba(238,244,251,.85);
  text-decoration: none;
  padding: .3rem 0;
  position: relative;
  transition: color var(--tr-fast);
  letter-spacing: .02em;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s var(--ease);
  border-radius: 2px;
}
.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] { color: var(--white); }
.site-nav a:hover::after,
.site-nav a:focus::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Language toggle */
.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(215,225,237,.8);
  white-space: nowrap;
}
.language-toggle a {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  transition: color var(--tr-fast);
}
.language-toggle a:hover { color: var(--gold); }
.language-divider { color: rgba(215,225,237,.45); }

.flag-icon {
  width: 1.45rem;
  height: .95rem;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.flag-gb {
  background-color: #012169;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0h60v30H0z'/%3E%3C/clipPath%3E%3Cpath fill='%23012169' d='M0 0h60v30H0z'/%3E%3Cg clip-path='url(%23a)'%3E%3Cpath stroke='%23fff' stroke-width='6' d='M0 0l60 30m0-30L0 30'/%3E%3Cpath stroke='%23C8102E' stroke-width='4' d='M0 0l60 30m0-30L0 30'/%3E%3Cpath stroke='%23fff' stroke-width='10' d='M30 0v30M0 15h60'/%3E%3Cpath stroke='%23C8102E' stroke-width='6' d='M30 0v30M0 15h60'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%;
}
.flag-es {
  background: radial-gradient(circle at 34% 50%,#7b241c 0 10%,transparent 11%),
    linear-gradient(180deg,#aa151b 0 25%,#f1bf00 25% 75%,#aa151b 75% 100%);
}

/* ── CHESS BACKGROUND ────────────────────────────────────────── */
.chess-bg {
  position: absolute;
  inset: 0;
  background-image: repeating-conic-gradient(rgba(200,155,60,.038) 0% 25%, transparent 0% 50%);
  background-size: 68px 68px;
  animation: boardDrift 45s linear infinite;
  pointer-events: none;
  will-change: transform;
}

/* ── CHESS PIECE FLOATERS ────────────────────────────────────── */
.chess-floater {
  position: absolute;
  font-size: 3.5rem;
  color: var(--gold);
  opacity: .07;
  pointer-events: none;
  user-select: none;
  animation: float 10s ease-in-out infinite;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
  padding: 7rem 0 5.5rem;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 75% -10%, rgba(200,155,60,.18) 0%, transparent 60%),
    radial-gradient(ellipse 55% 75% at 5% 90%, rgba(8,127,140,.12) 0%, transparent 50%),
    linear-gradient(160deg, rgba(10,22,40,.94) 0%, rgba(13,17,23,.98) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero > *:not(.chess-bg):not(.chess-floater-zone) { position: relative; z-index: 2; }
.chess-floater-zone { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }

.hero-grid {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr);
  gap: 3rem;
  align-items: center;
}

.hero-narrow {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .875rem;
  letter-spacing: .12em;
  margin-bottom: 1rem;
  padding: .28rem .85rem;
  border-radius: 999px;
  background: rgba(200,155,60,.1);
  border: 1px solid rgba(200,155,60,.32);
  color: var(--gold-bright);
  width: fit-content;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

.hero p, .dark-section p { color: rgba(220,229,239,.88); font-size: 1.18rem; }

.hero-actions, .cta-row, .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.button, button.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 52px;
  padding: .9rem 1.55rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  letter-spacing: .03em;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  overflow: hidden;
  transition: transform .22s var(--bounce), background var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 100%);
  border-radius: inherit;
  pointer-events: none;
}
.button:hover, .button:focus {
  background: var(--teal-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(8,127,140,.4);
  outline: none;
}
.button:active { transform: translateY(-1px); }

.button .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  transform: scale(0);
  animation: ripple .6s linear;
  pointer-events: none;
}

.button.secondary {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: var(--white);
}
.button.secondary:hover, .button.secondary:focus {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.8);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.button.gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #100e06;
  border-color: transparent;
  box-shadow: 0 4px 22px rgba(200,155,60,.3);
}
.button.gold:hover, .button.gold:focus {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  box-shadow: 0 10px 36px rgba(200,155,60,.5);
  transform: translateY(-3px);
}

.button.light { background: var(--white); color: var(--navy); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.button.light:hover, .button.light:focus { background: var(--off-white); box-shadow: 0 8px 28px rgba(0,0,0,.18); }

/* ── SECTIONS ────────────────────────────────────────────────── */
.section { padding: 5.5rem 0; }
.section.tight { padding: 3.5rem 0; }
.section.alt { background: var(--off-white); }

.dark-section {
  background: var(--charcoal);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.dark-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 85% 50%, rgba(200,155,60,.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 65% at 15% 50%, rgba(8,127,140,.06) 0%, transparent 55%);
  pointer-events: none; z-index: 0;
}
.dark-section > * { position: relative; z-index: 1; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.section-heading { max-width: 820px; margin-bottom: 2.5rem; }
.section-heading.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-heading p { color: var(--muted); font-size: 1.1rem; }
.dark-section .section-heading p { color: rgba(220,229,239,.8); }

/* ── GRID ────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.4rem; }
.grid.two   { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.four  { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* ── CARDS ───────────────────────────────────────────────────── */
.card, .feature-card, .form-card, .testimonial-card, .leader-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.card:hover, .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,.13), 0 0 0 1px rgba(200,155,60,.18);
  border-color: rgba(200,155,60,.28);
}
.card, .testimonial-card {
  display: flex; flex-direction: column; align-items: flex-start; height: 100%;
}
.card > .button, .testimonial-card > .button { width: 100%; min-height: 74px; margin-top: auto; }
.card > p:last-of-type, .testimonial-card > p:last-of-type { margin-bottom: 1.35rem; }

.card.dark-card { background: var(--panel); border-color: rgba(255,255,255,.08); color: var(--white); }
.card.dark-card:hover {
  border-color: rgba(200,155,60,.32);
  box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(200,155,60,.18), var(--shadow-gold);
}
.card.dark-card p, .card.dark-card li { color: rgba(220,229,239,.85); }
.card h3, .feature-card h3 { color: var(--navy); }
.card.dark-card h3 { color: var(--white); }
.card p, .feature-card p, .testimonial-card p, .leader-card p { color: var(--muted); }

/* ── SPLIT LAYOUT ────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,.82fr);
  gap: 3rem;
  align-items: center;
}

/* ── VISUAL PANELS ───────────────────────────────────────────── */
.visual-card {
  min-height: 390px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(255,255,255,.1);
  background: #0c1320;
  transition: transform var(--tr), box-shadow var(--tr);
}
.visual-card:hover { transform: scale(1.012); box-shadow: 0 50px 100px rgba(0,0,0,.45); }
.visual-card img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }

.logo-panel {
  min-height: 390px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(200,155,60,.14);
  background:
    radial-gradient(ellipse 65% 55% at center, rgba(200,155,60,.1) 0%, transparent 70%),
    var(--charcoal);
  display: grid;
  place-items: center;
  padding: 2.5rem;
  position: relative;
  transition: transform var(--tr), box-shadow var(--tr);
}
.logo-panel::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-conic-gradient(rgba(200,155,60,.025) 0% 25%, transparent 0% 50%);
  background-size: 48px 48px;
  pointer-events: none;
}
.logo-panel:hover { transform: scale(1.012); box-shadow: 0 50px 100px rgba(0,0,0,.5), var(--shadow-gold); }
.logo-panel.light-panel {
  background:
    radial-gradient(ellipse 65% 55% at center, rgba(200,155,60,.12) 0%, transparent 70%),
    #f7f8fb;
  border-color: rgba(200,155,60,.22);
}
.logo-panel img { width: min(100%,430px); max-height: 340px; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 8px 24px rgba(0,0,0,.3)); }
.logo-panel.wide img { width: min(100%,560px); max-height: 280px; }

/* ── CARD LOGOS & HEADSHOTS ──────────────────────────────────── */
.card-logo {
  width: 104px; height: 104px;
  object-fit: contain; border-radius: 50%;
  background: var(--charcoal);
  border: 2px solid var(--gold-border);
  margin-bottom: 1.2rem;
  box-shadow: 0 0 20px rgba(200,155,60,.14);
}
.leader-card.with-photo {
  display: grid;
  grid-template-columns: 128px minmax(0,1fr);
  gap: 1.5rem; align-items: center;
}
.headshot {
  width: 128px; height: 128px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 3px solid var(--gold-soft);
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
  transition: transform var(--tr), box-shadow var(--tr);
}
.headshot:hover { transform: scale(1.04); box-shadow: 0 20px 50px rgba(0,0,0,.25), 0 0 0 1px var(--gold-border); }
.headshot.large { width: min(100%,330px); height: auto; aspect-ratio: 1/1; }
.feature-card .headshot { margin-bottom: 1rem; }

.footer-logo {
  width: 92px; height: 92px;
  object-fit: contain; border-radius: 50%;
  margin-bottom: 1rem;
  background: #040810;
  border: 1.5px solid var(--gold-border);
  box-shadow: 0 0 18px rgba(200,155,60,.14);
}

/* ── METRICS ─────────────────────────────────────────────────── */
.metric-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.metric {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 1.35rem; text-align: center;
  backdrop-filter: blur(10px);
  transition: background var(--tr), border-color var(--tr);
}
.metric:hover { background: rgba(200,155,60,.08); border-color: rgba(200,155,60,.28); }
.metric strong { display: block; font-size: 2rem; font-family: var(--font-display); color: var(--gold-bright); line-height: 1; margin-bottom: .3rem; }
.metric span { font-size: .88rem; color: rgba(200,215,230,.75); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ── STATS STRIP ─────────────────────────────────────────────── */
.stats-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--panel) 100%);
  padding: 2.75rem 0;
  border-top: 1px solid rgba(200,155,60,.12);
  border-bottom: 1px solid rgba(200,155,60,.12);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1rem;
  text-align: center;
}
.stat-item {
  padding: 1.25rem;
  border-right: 1px solid rgba(200,155,60,.12);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  display: block;
  font-size: 2.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-label {
  display: block;
  font-size: .82rem;
  color: rgba(200,215,230,.65);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── TAGS ────────────────────────────────────────────────────── */
.tag-list { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.2rem; margin-bottom: .5rem; }
.tag {
  border: 1px solid rgba(200,155,60,.28);
  border-radius: 999px;
  padding: .35rem .9rem;
  background: rgba(200,155,60,.07);
  color: var(--navy-mid);
  font-weight: 700; font-size: .92rem; letter-spacing: .02em;
  transition: background var(--tr-fast), border-color var(--tr-fast), transform var(--tr-fast);
}
.tag:hover { background: rgba(200,155,60,.15); border-color: rgba(200,155,60,.5); transform: scale(1.04); }
.dark-section .tag { border-color: rgba(200,155,60,.32); background: rgba(200,155,60,.1); color: rgba(240,230,200,.95); }

/* ── NUMBER LIST ─────────────────────────────────────────────── */
.number-list { list-style: none; padding: 0; display: grid; gap: 1rem; counter-reset: steps; }
.number-list li {
  counter-increment: steps;
  position: relative;
  padding: 1.1rem 1.1rem 1.1rem 4.25rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.number-list li:hover { transform: translateX(4px); box-shadow: 0 4px 20px rgba(0,0,0,.08); border-color: rgba(200,155,60,.32); }
.number-list li::before {
  content: counter(steps);
  position: absolute; left: 1rem; top: 1rem;
  width: 2.3rem; height: 2.3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #100e06;
  display: grid; place-items: center;
  font-weight: 800; font-family: var(--font-display); font-size: 1rem;
  box-shadow: 0 4px 12px rgba(200,155,60,.32);
}

/* ── NOTICE ──────────────────────────────────────────────────── */
.notice {
  border-left: 4px solid var(--gold);
  background: linear-gradient(90deg, rgba(200,155,60,.06), rgba(200,155,60,.02));
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.5rem;
  color: var(--ink);
}
.notice p { margin: 0; }
.hero .notice { color: var(--white); }
.hero .notice strong { color: var(--gold); }

/* ── FORMS ───────────────────────────────────────────────────── */
.form-section { display: grid; gap: 1.5rem; }
form { display: grid; gap: 1.1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.1rem; }

label { display: grid; gap: .4rem; color: var(--ink); font-weight: 700; font-size: .94rem; letter-spacing: .01em; }

input, select, textarea {
  width: 100%;
  border: 1.5px solid #c8d3dc;
  border-radius: var(--radius);
  min-height: 52px;
  padding: .75rem .95rem;
  font: inherit; font-family: var(--font-body);
  color: var(--ink); background: var(--white);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8,127,140,.14);
}
textarea { min-height: 150px; resize: vertical; }

.checkbox-label { grid-template-columns: auto 1fr; align-items: start; font-weight: 700; }
.checkbox-label input { width: 22px; height: 22px; min-height: 22px; margin-top: .3rem; accent-color: var(--teal); }

.success-message { display: none; border: 1px solid #99d7c9; background: linear-gradient(90deg,#edf9f6,#f0fbf8); color: #0d594d; border-radius: var(--radius); padding: 1.1rem; font-weight: 700; }
.success-message.is-visible { display: block; }
.form-note { border: 1px solid #99d7c9; background: #edf9f6; color: #0d594d; border-radius: var(--radius); padding: 1rem; font-weight: 700; }
.language-note { background: var(--gold-soft); border-color: rgba(200,155,60,.45); color: var(--navy); font-weight: 700; margin-top: 0; }

/* ── SOCIAL PROOF PANEL ──────────────────────────────────────── */
.hero-media-stack { display: grid; gap: 1.2rem; }

.social-proof-panel {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  transition: transform var(--tr), box-shadow var(--tr);
}
.social-proof-panel:hover { transform: translateY(-3px); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.social-proof-panel .eyebrow { margin-bottom: .45rem; }
.social-proof-panel h3 { color: var(--white); font-size: 1.32rem; margin-bottom: .55rem; }
.social-proof-panel p { color: rgba(220,229,239,.82); font-size: .97rem; margin-bottom: .9rem; }

.social-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.social-link {
  min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(200,155,60,.38);
  background: rgba(7,13,22,.5);
  color: var(--white); font-weight: 700; text-decoration: none; font-size: .97rem;
  transition: background var(--tr), border-color var(--tr), transform var(--tr-fast);
}
.social-link:hover, .social-link:focus { background: rgba(200,155,60,.14); border-color: var(--gold); transform: scale(1.02); }

.social-icon { position: relative; width: 1.55rem; height: 1.1rem; display: inline-block; flex: 0 0 auto; }
.youtube-icon { width: 1.65rem; height: 1.15rem; border-radius: .32rem; background: #ff0000; box-shadow: 0 2px 8px rgba(255,0,0,.3); }
.youtube-icon::after { content: ""; position: absolute; left: .64rem; top: .32rem; width: 0; height: 0; border-top: .26rem solid transparent; border-bottom: .26rem solid transparent; border-left: .42rem solid #fff; }
.twitch-icon { width: 1.42rem; height: 1.42rem; background: #9146ff; border-radius: .16rem; box-shadow: inset 0 0 0 .16rem #fff; }
.twitch-icon::before { content: ""; position: absolute; left: .34rem; top: .36rem; width: .16rem; height: .38rem; background: #fff; box-shadow: .42rem 0 0 #fff; }
.twitch-icon::after { content: ""; position: absolute; left: .34rem; bottom: -.18rem; width: .42rem; height: .28rem; background: #9146ff; clip-path: polygon(0 0,100% 0,45% 100%,0 100%); }

/* ── COMPARISON TABLE ────────────────────────────────────────── */
.comparison-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.comparison-head, .comparison-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.comparison-head > div { background: var(--navy); color: var(--white); padding: 1.15rem 1.35rem; font-size: 1.08rem; font-weight: 800; font-family: var(--font-display); letter-spacing: .03em; }
.comparison-head > div + div { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); }
.comparison-row > div { padding: 1.2rem 1.35rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; }
.comparison-row > div + div { border-left: 1px solid var(--line); color: var(--ink); background: #fbfdfd; }
.compare-label { display: inline-flex; align-items: center; min-height: 28px; border-radius: 999px; padding: .18rem .65rem; margin-right: .45rem; font-size: .84rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.compare-label.muted { background: #f0f3f7; color: #576577; }
.compare-label.strong { background: linear-gradient(135deg, rgba(200,155,60,.18), rgba(200,155,60,.1)); color: var(--navy); border: 1px solid rgba(200,155,60,.32); }

/* ── TESTIMONIALS ────────────────────────────────────────────── */
.testimonial-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.4rem; }
.quote-card { gap: .65rem; }
.quote-card blockquote { margin: 0; color: var(--muted); font-size: 1.06rem; line-height: 1.7; font-style: italic; }
.quote-card.compact-quote blockquote { font-size: 1rem; }
.testimonial-author { margin-top: auto; color: var(--navy) !important; font-weight: 800; font-size: .95rem; }
.featured-quote {
  border-color: rgba(200,155,60,.38);
  background: linear-gradient(135deg, rgba(200,155,60,.04), var(--white));
  position: relative; overflow: hidden;
}
.featured-quote::before { content: '"'; position: absolute; top: -.5rem; left: 1rem; font-size: 6rem; color: rgba(200,155,60,.1); font-family: Georgia,serif; line-height: 1; pointer-events: none; }
.featured-quote { grid-column: 1 / -1; }
.centered-action { display: flex; justify-content: center; margin-top: 2rem; }

/* ── CLASS GALLERY ───────────────────────────────────────────── */
.class-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.4rem; align-items: stretch; }
.class-photo { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform var(--tr), box-shadow var(--tr); }
.class-photo:hover { transform: translateY(-5px); box-shadow: 0 28px 65px rgba(0,0,0,.16); }
.class-photo img { width: 100%; height: clamp(260px,30vw,390px); object-fit: contain; object-position: center; background: #0c1320; }
.class-photo figcaption { display: grid; gap: .25rem; padding: 1.1rem 1.25rem 1.25rem; }
.class-photo figcaption strong { color: var(--navy); font-size: 1.1rem; }
.class-photo figcaption span { color: var(--muted); font-size: .97rem; line-height: 1.5; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(175deg, var(--navy) 0%, var(--charcoal) 100%);
  color: var(--white);
  padding: 4.5rem 0 2.5rem;
  position: relative; overflow: hidden;
}
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-border), transparent); }
.site-footer::after { content: ''; position: absolute; inset: 0; background-image: repeating-conic-gradient(rgba(200,155,60,.015) 0% 25%, transparent 0% 50%); background-size: 60px 60px; pointer-events: none; }
.site-footer > * { position: relative; z-index: 1; }

.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3,1fr); gap: 2.5rem; }
.site-footer h3, .site-footer h4 { color: var(--white); font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.2rem; }
.site-footer h3 { font-size: 1.1rem; }
.site-footer h4 { font-size: .9rem; }
.site-footer p, .site-footer li, .site-footer a { color: rgba(200,215,230,.7); font-size: .94rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: .65rem; }
.site-footer a { text-decoration: none; transition: color var(--tr-fast); }
.site-footer a:hover, .site-footer a:focus { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); margin-top: 3rem; padding-top: 1.5rem; color: rgba(200,215,230,.45); font-size: .88rem; }

/* ── SKIP LINK ───────────────────────────────────────────────── */
.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; z-index: 999; background: var(--white); color: var(--navy); padding: .75rem 1rem; border-radius: var(--radius); font-weight: 700; }

/* ── COURSES PAGE ────────────────────────────────────────────── */

/* Tier cards */
.tier-card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.tier-card:hover { transform: translateY(-8px); box-shadow: 0 30px 70px rgba(0,0,0,.12); }
.tier-card.featured-tier {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(200,155,60,.2), var(--shadow-gold);
  background: linear-gradient(160deg, rgba(200,155,60,.03) 0%, var(--white) 50%);
}
.tier-card.featured-tier:hover { box-shadow: 0 30px 70px rgba(0,0,0,.15), 0 0 50px rgba(200,155,60,.3); }
.tier-card.dark-tier { background: var(--panel); border-color: rgba(200,155,60,.28); color: var(--white); }

.tier-popular-badge {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #100e06; font-size: .75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .75rem; border-radius: 999px;
}

.tier-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .28rem .85rem; border-radius: 999px;
  font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem;
}
.tier-badge.free { background: rgba(100,120,140,.12); border: 1px solid rgba(100,120,140,.3); color: #7a8ea0; }
.tier-badge.bronze { background: rgba(180,120,60,.12); border: 1px solid rgba(180,120,60,.38); color: #c07838; }
.tier-badge.gold-tier { background: rgba(200,155,60,.12); border: 1px solid var(--gold-border); color: var(--gold-bright); }
.tier-badge.elite { background: linear-gradient(135deg, rgba(200,155,60,.18), rgba(8,127,140,.18)); border: 1px solid rgba(200,155,60,.45); color: var(--white); }

.tier-price { margin: .5rem 0 1.5rem; line-height: 1; }
.tier-price .amount { font-size: 3rem; font-family: var(--font-display); font-weight: 700; color: var(--navy); line-height: 1; }
.dark-tier .tier-price .amount { color: var(--white); }
.tier-price .period { font-size: 1rem; color: var(--muted); font-weight: 500; }
.dark-tier .tier-price .period { color: rgba(200,215,230,.55); }
.tier-price .free-label { font-size: 2.2rem; font-family: var(--font-display); font-weight: 700; color: var(--muted); }

.tier-feature-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .75rem; flex: 1; }
.tier-feature-list li { display: flex; align-items: flex-start; gap: .65rem; font-size: .97rem; color: var(--muted); margin-top: 0; }
.dark-tier .tier-feature-list li { color: rgba(200,215,230,.8); }
.tier-feature-list li::before { content: '✓'; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; min-width: 20px; border-radius: 50%; background: rgba(8,127,140,.14); color: var(--teal-light); font-size: .74rem; font-weight: 800; margin-top: .15rem; }
.tier-feature-list li.dimmed { opacity: .4; }
.tier-feature-list li.dimmed::before { content: '✗'; background: rgba(150,150,150,.1); color: #aaa; }

/* Course grid */
.course-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.35rem; }
.course-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform var(--tr), box-shadow var(--tr);
  position: relative;
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,.13); }

.course-card-thumb {
  height: 155px;
  background: linear-gradient(135deg, var(--panel), var(--navy));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  position: relative; overflow: hidden;
}
.course-card-thumb::before { content: ''; position: absolute; inset: 0; background-image: repeating-conic-gradient(rgba(200,155,60,.06) 0% 25%, transparent 0% 50%); background-size: 40px 40px; }
.course-card-thumb .thumb-icon { position: relative; z-index: 1; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }

.course-card-body { padding: 1.35rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }

.course-level-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 999px; font-size: .77rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .8rem; width: fit-content; }
.course-level-badge.beginner    { background: rgba(8,127,140,.1); color: var(--teal); border: 1px solid rgba(8,127,140,.22); }
.course-level-badge.intermediate { background: rgba(200,155,60,.1); color: #9a7628; border: 1px solid rgba(200,155,60,.28); }
.course-level-badge.advanced    { background: rgba(47,111,187,.1); color: var(--blue); border: 1px solid rgba(47,111,187,.28); }

.course-card h3 { font-size: 1.12rem; color: var(--navy); margin-bottom: .5rem; }
.course-card p { font-size: .92rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; flex: 1; }

.course-meta { display: flex; align-items: center; gap: 1rem; font-size: .83rem; color: var(--muted); font-weight: 600; margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); }

/* Locked state */
.course-card.locked .course-card-thumb::after { content: '🔒'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 2rem; z-index: 2; }
.course-card.locked .course-card-thumb .thumb-icon { opacity: .2; filter: blur(2px); }
.course-card.locked { opacity: .72; }

.course-lock-bar { background: rgba(200,155,60,.07); border-top: 1px solid rgba(200,155,60,.18); padding: .65rem 1.5rem; font-size: .84rem; font-weight: 700; color: #8a7020; display: flex; align-items: center; gap: .4rem; }

/* Coming soon ribbon */
.coming-soon-ribbon { position: absolute; top: 1rem; right: -2.2rem; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #100e06; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; padding: .25rem 2.6rem; transform: rotate(35deg); z-index: 3; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .header-inner { align-items: flex-start; padding: 1rem 0; min-height: auto; flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; align-items: center; margin-left: auto; }
  .site-nav { display: none; width: 100%; align-items: stretch; flex-direction: column; gap: 0; padding: .75rem 0 .5rem; }
  .site-nav.is-open { display: flex; }
  .site-nav a, .language-toggle { padding: .85rem 0; border-bottom: 1px solid rgba(200,155,60,.1); }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .grid.four, .grid.three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .leader-card.with-photo { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .course-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .class-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  h1 { font-size: 2.55rem; }
  h2 { font-size: 2rem; }
  .header-inner, .container, .hero-grid, .hero-narrow { width: min(100% - 28px, var(--max)); }
  .hero { padding: 4.5rem 0 3.5rem; }
  .section { padding: 4rem 0; }
  .grid.two, .grid.three, .grid.four, .form-grid, .metric-strip, .footer-grid, .course-grid, .stats-grid { grid-template-columns: 1fr; }
  .button { width: 100%; }
  .comparison-head { display: none; }
  .comparison-row { grid-template-columns: 1fr; }
  .comparison-row > div + div { border-left: 0; }
  .comparison-row > div::before { content: attr(data-label); display: block; color: var(--navy); font-weight: 800; margin-bottom: .55rem; }
  .testimonial-grid, .social-links { grid-template-columns: 1fr; }
  .card, .feature-card, .form-card, .testimonial-card, .leader-card { padding: 1.35rem; }
  .visual-card, .visual-card img { min-height: 280px; }
  .brand { min-width: 0; }
  .brand-mark { width: 48px; height: 48px; }
  .brand strong { font-size: 1rem; }
  .brand span { font-size: .82rem; }
  .logo-panel { min-height: 280px; }
  .class-photo img { height: clamp(220px,70vw,320px); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(200,155,60,.1); }
  .stat-item:last-child { border-bottom: none; }
}
