/* ===== Design tokens ===== */
:root {
  --bg: #0f1724;
  --bg-2: #141e30;
  --surface: #ffffff;
  --ink: #1a2332;
  --ink-soft: #4a5568;
  --muted: #718096;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-ink: #0b2a6b;
  --accent: #06b6d4;
  --green: #16a34a;
  --amber: #d97706;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(15, 23, 36, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 36, 0.14);
  --max: 1140px;
  --font: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #f7f9fc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  border: 1.5px solid transparent; transition: all .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(37,99,235,.28); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-small { padding: .55rem 1rem; font-size: .9rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--brand); font-size: 1.4rem; }
.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--ink-soft); font-weight: 600; padding: .5rem .8rem; border-radius: 8px; }
.nav-list a:hover { color: var(--brand); background: #eef3ff; text-decoration: none; }
.nav-list a.active { color: var(--brand); }
.nav-list a.btn { color: #fff; }
.nav-list a.btn:hover { background: var(--brand-dark); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--ink); cursor: pointer; }

/* ===== Hero ===== */
.hero { background: linear-gradient(160deg, #0f1724 0%, #16233b 55%, #1b3a6b 100%); color: #e8eefb; padding: 4.5rem 0 4rem; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .8rem; }
.hero h1 { color: #fff; }
.lede { font-size: 1.12rem; color: #c3d0e6; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.8rem; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; padding: 0; margin: 0; font-size: .92rem; color: #aebcd4; }
.hero-trust strong { color: #fff; }

.hero-card { }
.terminal { background: #0b1020; border: 1px solid #27334d; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.terminal-bar { display: flex; gap: .5rem; padding: .7rem .9rem; background: #141b2e; border-bottom: 1px solid #27334d; }
.terminal-bar span { width: 12px; height: 12px; border-radius: 50%; background: #3a4766; }
.terminal-bar span:nth-child(1) { background: #ff5f56; }
.terminal-bar span:nth-child(2) { background: #ffbd2e; }
.terminal-bar span:nth-child(3) { background: #27c93f; }
.terminal-body { margin: 0; padding: 1.2rem; font-family: 'Consolas', 'Courier New', monospace; font-size: .86rem; color: #cfe3ff; line-height: 1.7; white-space: pre-wrap; }
.tprompt { color: #5eead4; }
.tok-green { color: #4ade80; }
.tcursor { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ===== Stats band ===== */
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats { padding: 2.2rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-num { display: block; font-size: 2.1rem; font-weight: 800; color: var(--brand); }
.stat-label { font-size: .9rem; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: 4rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 1.8rem; margin-bottom: .6rem; }
.feature-card h3 { font-size: 1.12rem; }
.feature-card p { color: var(--ink-soft); margin: 0; }

/* ===== Two column ===== */
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.check-list li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; color: var(--ink-soft); }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.path-card { background: linear-gradient(160deg, #1b3a6b, #2563eb); color: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-lg); }
.path-card h3 { color: #fff; }
.path-card .check-list li { color: #dbe6fb; }
.path-card .check-list li::before { color: #7ef0c9; }
.path-list { list-style: none; counter-reset: step; padding: 0; margin: 1rem 0 0; }
.path-list li { position: relative; padding-left: 2.6rem; margin-bottom: 1rem; color: #dbe6fb; }
.path-list li span { position: absolute; left: 0; top: -2px; width: 1.9rem; height: 1.9rem; background: rgba(255,255,255,.18); border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; }

/* ===== Testimonials ===== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.testimonial { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 1.6rem; margin: 0; box-shadow: var(--shadow); }
.testimonial blockquote { margin: 0 0 1rem; font-size: 1.02rem; color: var(--ink); }
.testimonial figcaption { color: var(--muted); font-weight: 600; font-size: .9rem; }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(135deg, #1d4ed8, #06b6d4); color: #fff; padding: 3rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { color: #e3f2ff; margin: 0; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ===== Page hero (inner pages) ===== */
.page-hero { background: linear-gradient(160deg, #0f1724, #1b3a6b); color: #fff; padding: 3.2rem 0; }
.page-hero h1 { color: #fff; }
.page-hero .lede { color: #c3d0e6; }

/* ===== Courses ===== */
.filter-bar { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.filter-btn { padding: .5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft); font-weight: 600; cursor: pointer; transition: all .15s; }
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.course-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .6rem; border-radius: 999px; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-amber { background: #fef3c7; color: #b45309; }
.course-dur { font-size: .82rem; color: var(--muted); }
.course-card h3 { font-size: 1.15rem; }
.course-card > p { color: var(--ink-soft); }
.course-points { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.course-points li { position: relative; padding-left: 1.4rem; font-size: .92rem; color: var(--ink-soft); margin-bottom: .4rem; }
.course-points li::before { content: "\2022"; position: absolute; left: .2rem; color: var(--brand); font-weight: 800; }
.course-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--line); }
.price { font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.price-lg { font-size: 2rem; color: var(--brand); }
.price-old { text-decoration: line-through; color: var(--muted); font-weight: 600; margin-right: .6rem; }

.bundle-card { margin-top: 2rem; background: linear-gradient(135deg, #0f1724, #1b3a6b); color: #fff; border-radius: var(--radius); padding: 2.2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.bundle-card h3 { color: #fff; font-size: 1.4rem; }
.bundle-card p { color: #c3d0e6; margin: 0; max-width: 46ch; }
.bundle-right { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.bundle-right .price { color: #fff; }

/* ===== FAQ ===== */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .8rem; padding: 0 1.2rem; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; padding: 1rem 0; list-style: none; position: relative; padding-right: 1.5rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; color: var(--brand); font-size: 1.3rem; font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--ink-soft); padding-bottom: 1rem; margin: 0; }

/* ===== Team ===== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; text-align: center; box-shadow: var(--shadow); }
.avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto .9rem; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; }
.team-card h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.team-card .role { color: var(--brand); font-weight: 600; font-size: .88rem; margin-bottom: .6rem; }
.team-card p:last-child { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* ===== Contact ===== */
.contact-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2.5rem; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .92rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fbfcfe; transition: border-color .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.form-check { display: flex; align-items: flex-start; gap: .6rem; }
.form-check input { width: auto; margin-top: .25rem; }
.form-check label { font-weight: 400; font-size: .88rem; color: var(--ink-soft); margin: 0; }
.req { color: #dc2626; }
.form-note { font-size: .85rem; margin: .8rem 0 0; }
.form-note.muted { color: var(--muted); }
.input-error { border-color: #dc2626 !important; }

.contact-aside h3 { font-size: 1.15rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; color: var(--ink-soft); }
.ci { color: var(--brand); font-size: 1.1rem; }
.aside-card { background: #eef3ff; border: 1px solid #d6e2ff; border-radius: var(--radius); padding: 1.4rem; }
.aside-card h4 { margin-bottom: .4rem; }
.aside-card p { color: var(--ink-soft); font-size: .92rem; }

/* ===== Legal ===== */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.3rem; }
.legal-date { color: #c3d0e6; }

/* ===== Footer ===== */
.site-footer { background: #0f1724; color: #aebcd4; padding: 3rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; }
.brand-footer { color: #fff; margin-bottom: .8rem; }
.footer-about { font-size: .9rem; color: #8695b3; max-width: 34ch; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; font-size: .9rem; }
.site-footer a { color: #aebcd4; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1f2b44; margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: #6c7a99; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner, .two-col, .contact-layout { grid-template-columns: 1fr; }
  .feature-grid, .course-grid, .testimonial-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-card { order: -1; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: .6rem; gap: .2rem;
    box-shadow: var(--shadow); display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: .8rem 1rem; }
  .feature-grid, .course-grid, .testimonial-grid, .team-grid, .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
