:root {
  --brand: #6B21A8;
  --brand-dark: #4C1D95;
  --brand-soft: #F3EAFB;
  --accent: #F5A46B;
  --accent-deep: #EA7A2C;
  --pink: #E11D6C;
  --surface: #FFFFFF;
  --surface-2: #FAF7FC;
  --ink: #241A33;
  --ink-muted: #6B6178;
  --border: #E7DEF2;
  --radius: 20px;
  --shadow: 0 12px 32px -12px rgba(76, 29, 149, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { height: 40px; }
.nav-links { display: flex; gap: 24px; font-weight: 600; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--ink-muted); }
.nav-links a:hover { color: var(--brand); }
.nav-cta {
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap;
}

/* Hero */
.hero {
  background: radial-gradient(circle at 20% -10%, var(--brand-soft), transparent 60%),
              linear-gradient(180deg, #FFFDF9, #FFFFFF);
  padding: 72px 0 56px;
  text-align: center;
}
.hero-logo { height: 90px; margin: 0 auto 24px; }
.hero h1 {
  font-size: clamp(28px, 5vw, 44px); font-weight: 800; color: var(--brand-dark);
  margin: 0 0 12px;
}
.hero .tagline {
  font-size: clamp(16px, 2.4vw, 20px); color: var(--ink-muted); font-weight: 600;
  margin: 0 auto 28px; max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-banner {
  margin: 36px auto 0; max-width: 720px; width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow); object-fit: cover; max-height: 360px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: none; cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-secondary { background: #fff; color: var(--brand); border: 2px solid var(--brand); }

/* Stats bar */
.stats-bar {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  padding: 22px 0;
}
.stat-tile {
  text-align: center; color: #fff; padding: 6px 32px;
  border-right: 1px solid rgba(255,255,255,0.25);
}
.stat-tile:last-child { border-right: none; }
.stat-num { font-size: clamp(22px, 4vw, 30px); font-weight: 800; line-height: 1.1; }
.stat-label { font-size: 12.5px; opacity: 0.9; margin-top: 4px; max-width: 160px; }

/* Brain Ax feature */
.brainax-feature {
  padding: 56px 0;
  background: linear-gradient(180deg, var(--brand-soft), #fff);
}
.brainax-feature-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.brainax-badge {
  display: inline-block; background: #fff; color: var(--brand-dark);
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.3px; padding: 6px 14px;
  border-radius: 999px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(76, 29, 149, 0.12);
}
.brainax-feature-copy h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; color: var(--brand-dark); margin: 0 0 10px; }
.brainax-feature-tagline { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.brainax-feature-body { font-size: 15.5px; color: var(--ink-muted); margin: 0 0 20px; max-width: 480px; }
.brainax-feature-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.brainax-feature-list li { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.brainax-feature-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brainax-feature-price { font-size: 14px; color: var(--ink-muted); }
.brainax-feature-price s { opacity: 0.6; margin-right: 4px; }
.brainax-feature-price strong { color: var(--pink); font-size: 17px; }
.brainax-feature-art { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.brainax-feature-art svg { max-width: 300px; width: 100%; }
.brainax-style-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.brainax-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px;
}
.brainax-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--chip-color); flex: none; }
@media (max-width: 800px) {
  .brainax-feature-inner { grid-template-columns: 1fr; text-align: center; }
  .brainax-feature-body { margin-left: auto; margin-right: auto; }
  .brainax-feature-actions { justify-content: center; }
}

/* Gallery slideshow — full-bleed, edge to edge of the viewport */
.gallery-section { padding: 40px 0 48px; }
.gallery-slideshow {
  position: relative; width: 100%; margin: 24px 0 0;
}
.gallery-stage {
  position: relative; width: 100%; aspect-ratio: 21/9;
  overflow: hidden; background: var(--surface-2);
}
.gallery-slide {
  position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.5s ease; cursor: pointer;
}
.gallery-slide.active { opacity: 1; z-index: 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 20px 16px;
  background: linear-gradient(0deg, rgba(20,10,30,0.75), transparent);
  color: #fff; font-size: 14px; font-weight: 700;
}
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(20,10,30,0.4); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px);
}
.gallery-arrow:hover { background: rgba(20,10,30,0.62); }
.gallery-arrow-prev { left: 14px; }
.gallery-arrow-next { right: 14px; }
.gallery-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.gallery-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0;
}
.gallery-dot.active { background: var(--brand); width: 22px; border-radius: 5px; transition: width 0.25s; }
@media (max-width: 780px) {
  .gallery-stage { aspect-ratio: 4/5; }
  .gallery-arrow { width: 36px; height: 36px; font-size: 18px; }
  .gallery-slide figcaption { font-size: 13px; padding: 24px 14px 12px; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(20, 10, 30, 0.92); z-index: 100;
  display: none; align-items: center; justify-content: center; flex-direction: column; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(90vw, 720px); max-height: 75vh; border-radius: 12px; object-fit: contain; }
.lightbox p { color: #fff; margin-top: 14px; font-size: 14px; opacity: 0.85; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; background: rgba(255,255,255,0.15); border: none;
  color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer;
}

/* Sections */
section { padding: 64px 0; }
.section-alt { background: var(--surface-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(24px, 3.6vw, 32px); font-weight: 800; color: var(--brand-dark); margin: 0 0 10px; }
.section-head p { color: var(--ink-muted); margin: 0; font-size: 16px; }

/* Classes grid */
.classes-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.class-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: left;
}
.class-card img {
  width: 100%; height: 140px; object-fit: cover; border-radius: 14px; margin-bottom: 16px;
}
.class-card .icon-dot {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  font-size: 20px;
}
.class-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: var(--ink); }
.class-card p { margin: 0; font-size: 13.5px; color: var(--ink-muted); }

/* About */
.about-body { max-width: 720px; margin: 0 auto; text-align: center; font-size: 17px; color: var(--ink-muted); }

/* Founder / Foreign classes (image + text, stacks on mobile) */
.founder-wrap {
  display: flex; align-items: center; gap: 32px; max-width: 760px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center; text-align: center;
}
.founder-wrap:has(.founder-image[style*="display: block"]) { text-align: left; justify-content: flex-start; }
.founder-image {
  width: 180px; height: 180px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  box-shadow: var(--shadow); margin: 0 auto;
}
.founder-name { font-weight: 800; font-size: 17px; color: var(--brand-dark); margin: 0 0 6px; }
.founder-bio { color: var(--ink-muted); font-size: 16px; margin: 0; flex: 1; min-width: 240px; }

/* Affiliations */
.affiliations-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px;
  max-width: 760px; margin: 0 auto;
}
.affiliation-card { text-align: center; }
.affiliation-card img {
  width: 96px; height: 96px; object-fit: contain; margin: 0 auto 12px; border-radius: 12px;
}
.affiliation-card h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; color: var(--ink); }
.affiliation-card p { margin: 0; font-size: 13px; color: var(--ink-muted); }

/* Fees */
.fee-card {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; border-radius: var(--radius); padding: 40px 32px;
}
.fee-card h2 { margin: 0 0 12px; font-size: 24px; font-weight: 800; }
.fee-card p { margin: 0 0 24px; opacity: 0.9; font-size: 15px; }
.fee-card .btn-primary { background: #fff; color: var(--brand-dark); }

/* Apps */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.app-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
}
.app-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.app-card p { margin: 0 0 18px; color: var(--ink-muted); font-size: 14px; }
.app-card a { color: var(--brand); font-weight: 700; text-decoration: none; font-size: 14px; }

/* Contact */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
  max-width: 800px; margin: 0 auto;
}
.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px;
  text-align: center; text-decoration: none;
}
.contact-card .emoji { font-size: 26px; margin-bottom: 10px; }
.contact-card h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--ink-muted); }
.contact-card p { margin: 0; font-weight: 700; font-size: 15px; color: var(--ink); }

/* Footer */
footer { padding: 28px 0; text-align: center; color: var(--ink-muted); font-size: 13px; border-top: 1px solid var(--border); }

/* WhatsApp floating button */
.whatsapp-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  background: #25D366; color: #fff; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

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