/* AceXL Academy site styles */
:root {
  --indigo-900: #1e1b4b;
  --indigo-800: #312e81;
  --indigo-700: #3730a3;
  --indigo-100: #e0e7ff;
  --indigo-50: #f1f0fb;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-300: #5eead4;
  --teal-50: #ecfdf7;
  --ink: #1d2433;
  --muted: #5b6572;
  --line: #e6e6f3;
  --bg: #ffffff;
  --bg-soft: #f8f8fd;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(30, 27, 75, 0.08);
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--indigo-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em 0; color: var(--indigo-900); }
h1 { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em 0; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--teal-500); color: #fff; }
.btn-primary:hover { background: var(--teal-600); }
.btn-dark { background: var(--indigo-900); color: #fff; }
.btn-dark:hover { background: var(--indigo-800); }
.btn-outline { background: transparent; color: var(--indigo-900); border-color: var(--indigo-900); }
.btn-outline.light { color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* Header */
.topbar { background: var(--indigo-900); color: #c7c9f5; font-size: 0.9rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
header.site { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand .mark { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-500); color: #fff; font-weight: 800; font-size: 1.35rem; display: flex; align-items: center; justify-content: center; }
.brand .name { font-weight: 800; color: var(--indigo-900); font-size: 1.2rem; letter-spacing: 0.02em; line-height: 1; }
.brand .name small { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
nav.main { display: flex; align-items: center; gap: 4px; }
nav.main a { color: var(--ink); font-weight: 600; padding: 10px 14px; border-radius: 8px; }
nav.main a:hover { background: var(--indigo-50); text-decoration: none; }
nav.main a.active { color: var(--indigo-700); background: var(--indigo-50); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--indigo-900); margin: 4px 0; border-radius: 2px; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--indigo-900) 0%, var(--indigo-800) 55%, var(--indigo-700) 100%); color: #fff; overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { color: #fff; font-size: 3.2rem; }
.hero h1 em { color: var(--teal-300); font-style: normal; }
.hero p.lead { font-size: 1.2rem; color: #d7d8f7; max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .note { margin-top: 18px; font-size: 0.95rem; color: #b8bbf0; }
.hero-art { position: relative; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px; }

/* Stats band */
.band { background: var(--teal-500); color: #fff; }
.band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 22px 24px; }
.band b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.band span { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.95; }

/* Cards and grids */
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card .icon svg { width: 28px; height: 28px; }
.icon.math { background: #e0e7ff; color: #3730a3; }
.icon.sci { background: #ccfbf1; color: #0f766e; }
.icon.read { background: #fef3c7; color: #b45309; }
.icon.soc { background: #fce7f3; color: #be185d; }
.icon.test { background: #dbeafe; color: #1d4ed8; }
.icon.lang { background: #ede9fe; color: #6d28d9; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.card .more { display: inline-block; margin-top: 12px; font-weight: 700; }
.card.link { display: block; color: inherit; text-decoration: none !important; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step .num { width: 38px; height: 38px; border-radius: 10px; background: var(--indigo-900); color: var(--teal-300); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.price.featured { border: 2px solid var(--teal-500); box-shadow: var(--shadow); position: relative; }
.price.featured .tag { position: absolute; top: -13px; left: 24px; background: var(--teal-500); color: #fff; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.price .amount { font-size: 2.2rem; font-weight: 800; color: var(--indigo-900); margin: 6px 0 2px; }
.price .amount small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price ul { padding-left: 0; list-style: none; margin: 18px 0 24px; flex: 1; }
.price li { padding: 7px 0 7px 28px; position: relative; color: var(--ink); font-size: 0.98rem; border-top: 1px solid var(--line); }
.price li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal-50); border: 2px solid var(--teal-500); }
.price .btn { width: 100%; }

table.simple { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
table.simple th, table.simple td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.simple th { background: var(--indigo-900); color: #fff; font-size: 0.9rem; letter-spacing: 0.04em; }
table.simple td small { display: block; color: var(--muted); font-size: 0.9rem; }
table.simple td.amt { font-weight: 800; color: var(--indigo-900); white-space: nowrap; text-align: right; }
table.simple th.amt { text-align: right; }
.free { color: var(--teal-600); }

/* Callouts */
.callout { background: linear-gradient(135deg, var(--indigo-900), var(--indigo-800)); color: #fff; border-radius: 18px; padding: 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.callout h2 { color: #fff; }
.callout h2 em { color: var(--teal-300); font-style: normal; }
.callout p { color: #d7d8f7; }
.flow { display: flex; align-items: center; gap: 12px; }
.flow .box { flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.3); border-radius: 12px; padding: 16px; text-align: center; }
.flow .box b { display: block; font-size: 2rem; color: var(--teal-300); font-weight: 800; line-height: 1; }
.flow .box span { font-size: 0.85rem; color: #d7d8f7; }
.flow .arrow { color: var(--teal-300); font-size: 1.8rem; }
.mission { background: var(--indigo-50); border-left: 5px solid var(--teal-500); border-radius: 0 14px 14px 0; padding: 22px 26px; font-size: 1.15rem; color: var(--indigo-900); font-weight: 600; }

/* CTA strip */
.cta { background: var(--teal-500); color: #fff; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 40px 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0; font-size: 1.6rem; }
.cta p { margin: 4px 0 0; color: #ecfdf7; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
details summary { cursor: pointer; font-weight: 700; color: var(--indigo-900); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-600); }
details[open] summary::after { content: "\2212"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card .row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-card .row:first-of-type { border-top: 0; }
.contact-card .k { flex: 0 0 90px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; padding-top: 4px; }
.contact-card .v { font-weight: 700; color: var(--indigo-900); font-size: 1.05rem; }
form.simple label { display: block; font-weight: 700; font-size: 0.95rem; margin: 14px 0 6px; color: var(--indigo-900); }
form.simple input, form.simple select, form.simple textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfd2e6; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
form.simple input:focus, form.simple select:focus, form.simple textarea:focus { outline: 2px solid var(--teal-500); border-color: var(--teal-500); }
form.simple .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.simple .btn { margin-top: 18px; }
.fine { font-size: 0.85rem; color: var(--muted); }

/* Page hero (inner pages) */
.page-hero { background: var(--indigo-50); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding: 56px 24px; }
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { font-size: 1.15rem; color: var(--muted); max-width: 720px; margin: 0; }

/* Team */
.person { text-align: left; }
.person .avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--indigo-100); color: var(--indigo-800); font-weight: 800; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }

/* Footer */
footer.site { background: var(--indigo-900); color: #b8bbf0; padding: 56px 0 28px; margin-top: 0; }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
footer.site h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
footer.site a { color: #d7d8f7; display: block; padding: 4px 0; }
footer.site a:hover { color: #fff; }
footer.site .brand .name { color: #fff; }
footer.site .brand .name small { color: #b8bbf0; }
footer.site .bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 36px; padding-top: 20px; font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Responsive */
@media (max-width: 960px) {
  h1 { font-size: 2.3rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .hero-art { max-width: 420px; }
  .grid.cols-3, .grid.cols-4, .price-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .band .wrap { grid-template-columns: repeat(2, 1fr); }
  .callout { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .price-grid, .steps, .contact-grid { grid-template-columns: 1fr; }
  form.simple .two { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; }
  nav.main.open { display: flex; }
  .header-cta .btn-outline { display: none; }
  footer.site .cols { grid-template-columns: 1fr; }
}
