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

:root {
  --bg:           #FAFAF7;
  --bg-card:      #F0EFE9;
  --border:       #E2E0D8;
  --text:         #1A1A1A;
  --muted:        #6B6860;
  --accent:       #C84B31;
  --green:        #2D5016;
  --amber:        #F5E6C8;
  --font-display: 'Fraunces', serif;
  --font-body:    'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
nav.scrolled { border-color: var(--border); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-wa {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: white;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-wa:hover { opacity: 0.88; }
.nav-wa svg { width: 16px; height: 16px; }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

/* ── HERO ── */
.hero {
  min-height: calc(100vh - 64px);
  padding: 0 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-left { padding: 4rem 0; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--amber);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.1s;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: wordUp 0.5s ease forwards;
}

.hero-headline .accent-word { color: var(--accent); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.9s;
}

.hero-credentials {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 1.0s;
}

.credential {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
}
.credential svg {
  stroke: var(--accent);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 1.1s;
}

.btn-primary {
  background: var(--accent);
  color: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.15s ease, opacity 0.15s;
}
.btn-primary:hover { transform: scale(1.02); opacity: 0.92; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1.5px solid var(--accent);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn-outline:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.02);
}

.btn-wa-pulse {
  animation: pulse 3s ease-in-out infinite;
}

.hero-boards {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 1.3s;
}
.board-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--bg-card);
}
.board-tag.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

/* ── HERO RIGHT — PHOTO ── */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 520px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

.photo-wrapper {
  position: relative;
  width: 380px;
  height: 460px;
  animation: float 5s ease-in-out infinite;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  border: 3px solid var(--accent);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 12px rgba(200,75,49,0.08);
}

/* Floating stat cards */
.stat-card {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  white-space: nowrap;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}
.stat-card-1 {
  bottom: 80px;
  left: -40px;
  animation-delay: 1.4s;
}
.stat-card-2 {
  top: 60px;
  right: -30px;
  animation-delay: 1.6s;
}
.stat-icon {
  width: 36px; height: 36px;
  background: var(--amber);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

/* ── POSTER DIVIDER ── */
.poster {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 5vw;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4rem;
  overflow: hidden;
}

.poster-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  transform: translateX(-60px);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
}
.poster-text.visible {
  transform: translateX(0);
  opacity: 1;
}
.poster-text em { color: var(--accent); font-style: italic; }

.poster-meta {
  text-align: right;
  flex-shrink: 0;
}
.poster-meta p {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 2;
  font-weight: 500;
}

/* ── FEATURES CARDS ── */
.features {
  padding: 6rem 5vw;
  max-width: 1280px;
  margin: 0 auto;
}

.features-header {
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
  opacity: 0;
  transform: translateY(24px);
}
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--amber);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--text);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── SUBJECTS ── */
.subjects {
  padding: 5rem 5vw;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.subjects-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.subjects-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.subject-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
  opacity: 0;
  transform: translateY(24px);
  cursor: default;
  text-align: center;
}
.subject-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s, box-shadow 0.2s;
}
.subject-card:hover {
  border-color: var(--accent);
}

.subject-board {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--green);
  color: white;
  margin-bottom: 1rem;
}

.subject-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.subject-class {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

/* ── FREE CLASS CTA ── */
.free-class {
  padding: 5rem 5vw;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.free-class-left h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.free-class-left h2 em {
  font-style: italic;
  color: var(--accent);
}
.free-class-left p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 380px;
}

.free-class-right {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
}

.free-class-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}
.free-class-detail:last-of-type { border-bottom: none; margin-bottom: 1.5rem; }

.detail-icon {
  width: 36px; height: 36px;
  background: var(--amber);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.detail-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.detail-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 2px;
}
.detail-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 3rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 72px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
}
.footer-logo span { color: var(--accent); }

.footer-credentials {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.03em;
}

footer nav {
  background: transparent;
  border: none;
  position: static;
  height: auto;
  padding: 0;
}
footer nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
footer nav ul a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
footer nav ul a:hover { color: white; }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ── MOBILE WA BAR ── */
.wa-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 200;
  background: #25D366;
  color: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.wa-bar svg { width: 20px; height: 20px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wordUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 3rem 5vw;
    gap: 2rem;
  }
  .hero-right {
    height: 320px;
    order: -1;
  }
  .photo-wrapper {
    width: 260px;
    height: 300px;
    animation: none;
  }
  .hero-credentials {
    gap: 0.6rem;
  }
  .credential {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
  .stat-card { display: none; }
  .subjects-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .poster { grid-template-columns: 1fr; gap: 2rem; }
  .poster-meta { text-align: left; }
  .free-class { grid-template-columns: 1fr; gap: 2rem; }
  .wa-bar { display: flex; }
  footer { margin-bottom: 72px; }
  .nav-links { display: none; }
  .nav-wa { display: none; }
  .nav-mobile-toggle { display: flex; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem 5vw;
  gap: 0.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 2rem;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0;
  letter-spacing: -0.02em;
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav .mobile-wa {
  margin-top: 2rem;
  background: #25D366;
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
}