/* ===== MaxLife Academy — styles ===== */
:root {
  --navy: #0b1f3a;
  --navy-2: #12294a;
  --navy-3: #1a355c;
  --gold: #c9a24b;
  --gold-light: #e3c57f;
  --ink: #22304a;
  --muted: #5a6a85;
  --bg: #ffffff;
  --tint: #f4f6fa;
  --line: #e3e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.10);
  --font-sans: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
  --font-display: 'Playfair Display', 'Noto Sans SC', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }

/* Language toggle: default English */
.zh { display: none; }
body.lang-zh .zh { display: inline; }
body.lang-zh .en { display: none; }
body.lang-zh { font-family: 'Noto Sans SC', var(--font-sans); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #b8903a); color: #fff; box-shadow: 0 6px 18px rgba(201,162,75,.4); }
.btn-gold:hover { box-shadow: 0 10px 24px rgba(201,162,75,.55); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-lg { padding: 18px 40px; font-size: 1.15rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,31,58,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); }
.brand-text { color: #fff; line-height: 1.15; }
.brand-text strong { display: block; font-size: 1.02rem; letter-spacing: .01em; }
.brand-text small { color: var(--gold-light); font-size: .74rem; letter-spacing: .18em; }
.main-nav { display: flex; gap: 22px; }
.main-nav a { color: rgba(255,255,255,.82); font-size: .92rem; font-weight: 500; transition: color .15s; }
.main-nav a:hover { color: var(--gold-light); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 999px; padding: 7px 14px;
  font-size: .85rem; font-weight: 600; cursor: pointer;
  font-family: var(--font-sans);
  transition: background .15s, border-color .15s;
}
.lang-toggle:hover { background: rgba(255,255,255,.12); border-color: var(--gold); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(201,162,75,.22), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(26,53,92,.9), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  color: #fff;
  padding: 90px 0 100px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr .9fr; gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-sub { font-size: 1.13rem; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-ctas.center { justify-content: center; }
.hero-note { margin-top: 18px; font-size: .88rem; color: rgba(255,255,255,.65); }
.cta-hint { font-size: .85rem; color: var(--muted); }

.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  padding: 30px 28px;
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.hero-card h3 { color: var(--gold-light); font-size: 1.05rem; letter-spacing: .04em; margin-bottom: 18px; text-transform: uppercase; }
.hero-card > p { font-size: .92rem; color: rgba(255,255,255,.75); margin-top: 18px; }
.equation { display: flex; flex-wrap: wrap; gap: 8px; }
.equation span.eq-plus, .equation span.eq-minus, .equation span.eq-result {
  padding: 7px 13px; border-radius: 8px; font-weight: 600; font-size: .92rem;
}
.eq-plus { background: rgba(88, 180, 120, .25); color: #a8e6c1; }
.eq-minus { background: rgba(255,255,255,.10); color: rgba(255,255,255,.85); }
.eq-result { background: var(--gold); color: var(--navy); font-weight: 800; }

/* ===== Stats ===== */
.stats { background: var(--navy-3); color: #fff; padding: 30px 0; border-top: 1px solid rgba(255,255,255,.08); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; text-align: center; }
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--gold-light); font-family: var(--font-display); }
.stat span { font-size: .85rem; color: rgba(255,255,255,.75); }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: linear-gradient(165deg, var(--navy), var(--navy-2)); color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section-dark .section-head p { color: rgba(255,255,255,.78); }
.section-cta { text-align: center; margin-top: 46px; }

/* Cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: 0 4px 14px rgba(11,31,58,.05);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-icon { font-size: 2.1rem; margin-bottom: 14px; }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }
.card-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.card-dark h3 { color: #fff; }
.card-dark p { color: rgba(255,255,255,.75); }

.charity-strip {
  margin-top: 44px; text-align: center;
  background: linear-gradient(135deg, #fdf6e5, #faf0d8);
  border: 1px solid #efdcae; border-radius: var(--radius);
  padding: 20px 28px; font-size: 1.02rem;
}

/* Levers grid */
.levers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lever {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius); padding: 24px 20px; position: relative;
  transition: transform .2s, border-color .2s;
}
.lever:hover { transform: translateY(-4px); border-color: var(--gold); }
.lever b {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--font-display); font-size: 2.2rem;
  color: rgba(201,162,75,.35); font-weight: 800;
}
.lever h4 { font-size: 1rem; margin-bottom: 8px; color: var(--gold-light); }
.lever p { font-size: .88rem; color: rgba(255,255,255,.72); }

/* Products */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .2s, box-shadow .2s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product h4 { font-size: 1.04rem; margin-bottom: 8px; }
.product p { color: var(--muted); font-size: .92rem; }
.product.featured {
  grid-column: span 1;
  background: linear-gradient(170deg, var(--navy), var(--navy-3));
  color: #fff; border: 1px solid var(--navy-3);
  padding: 32px 28px;
}
.product.featured h3 { font-size: 1.35rem; margin: 12px 0 4px; color: #fff; }
.product-type { color: var(--gold-light) !important; font-size: .9rem !important; font-weight: 600; margin-bottom: 14px; }
.product.featured ul { list-style: none; }
.product.featured li {
  padding: 7px 0 7px 26px; position: relative;
  font-size: .93rem; color: rgba(255,255,255,.88);
  border-bottom: 1px dashed rgba(255,255,255,.12);
}
.product.featured li:last-child { border-bottom: 0; }
.product.featured li::before { content: "✦"; position: absolute; left: 2px; color: var(--gold); }
.tag {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  padding: 4px 12px; border-radius: 999px;
}

/* Education */
.edu-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.edu-copy h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.22; margin-bottom: 16px; }
.edu-copy > p { color: var(--muted); margin-bottom: 22px; }
.edu-topics { list-style: none; margin-bottom: 30px; }
.edu-topics li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.quote-card {
  background: var(--navy); color: #fff; border-radius: 18px;
  padding: 34px 30px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.quote-card p { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.5; margin-bottom: 16px; }
.quote-card footer { color: var(--gold-light); font-size: .88rem; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-stats div {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  text-align: center; padding: 16px 10px;
}
.mini-stats strong { display: block; font-size: 1.25rem; color: var(--navy); font-weight: 800; }
.mini-stats span { font-size: .78rem; color: var(--muted); }

/* FAQ */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 22px; transition: box-shadow .2s;
}
.faq-item[open] { box-shadow: var(--shadow); border-color: var(--gold); }
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 1.02rem;
  padding: 18px 30px 18px 0; list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--gold); font-weight: 400; transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { color: var(--muted); padding-bottom: 20px; font-size: .96rem; }

/* Final CTA */
.final-cta {
  background:
    radial-gradient(900px 400px at 50% -20%, rgba(201,162,75,.25), transparent 60%),
    linear-gradient(165deg, var(--navy), var(--navy-2));
  color: #fff; text-align: center; padding: 90px 0;
}
.final-cta h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 760px; margin: 0 auto 14px; line-height: 1.22; }
.final-cta > .container > p { color: rgba(255,255,255,.8); margin-bottom: 30px; font-size: 1.1rem; }
.cta-alt { margin-top: 24px; font-size: .95rem; color: rgba(255,255,255,.7); }
.cta-alt a { color: var(--gold-light); font-weight: 600; }
.cta-alt a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: #071527; color: rgba(255,255,255,.75); padding: 60px 0 30px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.site-footer h5 { color: var(--gold-light); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; margin-bottom: 12px; }
.site-footer p { margin-bottom: 6px; }
.site-footer a:hover { color: var(--gold-light); }
.footer-legal { padding-top: 24px; font-size: .78rem; color: rgba(255,255,255,.45); }
.footer-legal p { margin-bottom: 8px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-inner, .edu-inner { grid-template-columns: 1fr; gap: 40px; }
  .cards-3, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .levers-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy); flex-direction: column; gap: 0;
    padding: 10px 24px 20px; border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-burger { display: block; }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .hero { padding: 60px 0 70px; }
  .cards-3, .products-grid, .levers-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .btn { display: none; }
  .brand-text small { display: none; }
}
