:root {
  --bg: #0e1014;
  --bg-alt: #15181e;
  --surface: #1b1f27;
  --border: #2a2f3a;
  --text: #e9e6df;
  --muted: #a3a6ad;
  --gold: #c9a45c;
  --gold-light: #e2c487;
  --lotus: #e3a3b8;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a {
  color: var(--gold-light);
  text-decoration: none;
}

.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

.gold { color: var(--gold); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1408;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(201, 164, 92, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
}

.btn-outline:hover {
  background: rgba(201, 164, 92, 0.1);
}

.btn-small { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 16, 20, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.site-header.scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.brand em {
  font-style: normal;
  color: var(--gold);
}

.brand-logo {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--lotus);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  white-space: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 6rem;
}

.hero-board {
  position: absolute;
  inset: 0 -10% 0 45%;
  background-image: conic-gradient(
    rgba(201, 164, 92, 0.09) 25%,
    transparent 0 50%,
    rgba(201, 164, 92, 0.09) 0 75%,
    transparent 0
  );
  background-size: 120px 120px;
  transform: perspective(900px) rotateX(35deg) rotateZ(-12deg);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}

.hero-content {
  position: relative;
  max-width: 1140px;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 3.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
  margin-left: 0.2rem;
}

/* Sections */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-head p:not(.eyebrow) { color: var(--muted); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text > p:not(.eyebrow) { color: var(--muted); }

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.checklist li::before {
  content: "♟";
  color: var(--gold);
  margin-right: 0.7rem;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.piece-card {
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s, border-color 0.3s;
}

.piece-card:nth-child(2),
.piece-card:nth-child(3) {
  background: linear-gradient(160deg, #2a2418, var(--surface));
}

.piece-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.piece-card span {
  font-size: 4rem;
  line-height: 1;
  color: var(--gold-light);
}

.piece-card p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-weight: 500;
}

/* Program cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 164, 92, 0.6);
}

.card-featured { border-color: var(--gold); }

.card-tag {
  position: absolute;
  top: -12px;
  right: 1.2rem;
  background: var(--gold);
  color: #1a1408;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.card-icon {
  font-size: 2.6rem;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}

.card-meta {
  color: var(--lotus);
  font-size: 0.85rem;
}

.card ul,
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.card li::before,
.price-card li::before {
  content: "✓";
  color: var(--gold);
  margin-right: 0.6rem;
}

/* Online classroom */
.section-feature {
  background:
    radial-gradient(ellipse at 85% 30%, rgba(201, 164, 92, 0.12), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.classroom-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
}

.classroom-text > p:not(.eyebrow) { color: var(--muted); }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.4rem;
}

.feature-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-list h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--gold-light);
  font-size: 1.5rem;
}

.feature-icon img {
  width: 30px;
  height: 30px;
}

.feature-icon.live {
  color: #e05050;
  font-size: 1rem;
}

.classroom-text .hero-actions { margin-bottom: 0; }

.classroom-preview {
  position: relative;
  max-width: 480px;
  justify-self: center;
  width: 100%;
}

.classroom-preview .cb-piece { cursor: default; }

.preview-note {
  position: absolute;
  left: -1.5rem;
  bottom: -1.5rem;
  max-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow);
  z-index: 5;
}

.preview-note p {
  margin: 0;
  font-size: 0.92rem;
}

.preview-note .preview-note-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

/* Coaches */
.coach {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.2rem;
  transition: transform 0.3s, border-color 0.3s;
}

.team .coach:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 164, 92, 0.6);
}

.team .coach h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.team .coach .coach-avatar {
  width: 80px;
  height: 80px;
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.team-heading {
  text-align: center;
  margin: 3.5rem 0 1.8rem;
}

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.2rem;
}

.coach-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  font-size: 3rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3a3020, #1a1a1f);
  border: 2px solid var(--gold);
  color: var(--gold-light);
}

.coach-title {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 500;
}

.team .coach-title { margin: 0; }

.coach-lead {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 3rem;
  text-align: left;
  border-color: var(--gold);
  background: linear-gradient(160deg, #2a2418, var(--surface) 65%);
  box-shadow: var(--shadow);
}

.coach-lead .coach-avatar {
  flex-shrink: 0;
  width: 130px;
  height: 130px;
  margin: 0;
  font-size: 4rem;
}

.coach-lead h3 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.credentials {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.4rem;
  color: var(--text);
  font-size: 0.93rem;
}

.credentials li::before {
  content: "♟";
  color: var(--gold);
  margin-right: 0.5rem;
}

.fide-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.2s;
}

.fide-link:hover { border-color: var(--gold); }

/* Schedule */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.schedule {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.schedule th,
.schedule td {
  padding: 1.1rem 1.4rem;
  text-align: left;
}

.schedule thead {
  background: var(--surface);
}

.schedule th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.schedule tbody tr {
  border-top: 1px solid var(--border);
}

.schedule tbody tr:hover { background: rgba(201, 164, 92, 0.04); }

.schedule td:first-child { font-weight: 600; }
.schedule td { color: var(--muted); }

.pill {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  margin-right: 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
}

.price-card ul { flex: 1; margin-bottom: 2rem; }
.price-card .btn { text-align: center; }

.price-featured {
  border-color: var(--gold);
  background: linear-gradient(170deg, #2a2418, var(--surface) 60%);
  box-shadow: var(--shadow);
}

.price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold-light);
  margin-bottom: 1.4rem;
}

.price span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonials blockquote {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--lotus);
  border-radius: var(--radius);
  padding: 2rem;
}

.testimonials p {
  font-size: 1.02rem;
  font-style: italic;
}

.testimonials cite {
  color: var(--gold);
  font-style: normal;
  font-size: 0.88rem;
}

/* FAQ */
.faq-container { max-width: 780px; }

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  color: var(--muted);
  margin: 0.8rem 0 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info > p:not(.eyebrow) { color: var(--muted); }

.locations {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.location {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}

.location-label {
  margin: 0 0 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.location address {
  font-style: normal;
  margin-bottom: 0.4rem;
}

.location a { font-size: 0.85rem; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
}

.contact-list span { margin-right: 0.7rem; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 1.2rem; flex: 1; }

.field-row {
  display: flex;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s;
}

.field input,
.field select {
  height: 46px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.field .invalid { border-color: #e06c6c; }

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.btn-whatsapp:hover { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3); }

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, padding 0.2s;
}

.whatsapp-float:hover { transform: translateY(-3px); }

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  flex-shrink: 0;
}

.whatsapp-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.3s;
}

.whatsapp-float:hover .whatsapp-label {
  max-width: 120px;
  padding-right: 0.4rem;
}

.form-status {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  text-align: center;
  min-height: 1.4em;
}

.form-status.success { color: #7fcf9a; }
.form-status.error { color: #e06c6c; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-inner p { margin: 0; }

.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid,
  .classroom-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .preview-note {
    position: static;
    max-width: none;
    margin-top: 1rem;
  }

  .hero-board { inset: 0 -40% 0 10%; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    z-index: -1;
  }

  .nav-links.open { transform: none; }

  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 0.7rem 0;
  }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
  .coach-lead {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
    padding: 2rem 1.5rem;
  }

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

@media (max-width: 560px) {
  .section { padding: 4.5rem 0; }
  .hero { padding: 4.5rem 0; }
  .hero-stats { gap: 1.5rem; }
  .field-row { flex-direction: column; gap: 0; }
  .form-actions { grid-template-columns: 1fr; }
  .whatsapp-float { right: 1rem; bottom: 1rem; }
  .contact-form { padding: 1.5rem; }
  .footer-inner { flex-direction: column; gap: 0.6rem; }
}
