/* =========================================================
   Template 6: "Signature" (built on the official SmartZenic logo)
   Loaded AFTER css/style.css. Light-first: pages set
   data-theme="light" data-theme-key="sz-theme-t6" data-logo="image"
   on <html>, so layout.js renders the logo artwork from assets/brand/.
   Brand colours are sampled from the logo: navy #0a2350, orange #ff8412.
   ========================================================= */
:root,
[data-theme="dark"] {
  --bg: #061029;
  --bg-2: #091636;
  --surface: #0c1b41;
  --surface-2: #10214d;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --heading: #ffffff;
  --text: #cdd6ec;
  --muted: #8f9bbb;
  --accent: #ff8412;
  --accent-2: #ffa13d;
  --blue: #7aa2ff;
  --blue-2: #1f4aa8;
  --logo-cap: #ffffff;
  --logo-ink: #ffffff;
  --header-bg: rgba(6, 16, 41, 0.86);
  --card-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  --glow-orange: 0 12px 28px -10px rgba(255, 132, 18, 0.55);
  --glow-blue: 0 22px 44px -22px rgba(0, 0, 0, 0.7);
  --tint: rgba(255, 255, 255, 0.06);
  --tint-orange: rgba(255, 132, 18, 0.14);
  --swirl-opacity: 0.5;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f3f6fc;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --border: #e4e9f3;
  --border-strong: #cfd8ea;
  --heading: #0a2350;
  --text: #3a4663;
  --muted: #65718c;
  --blue: #1f4aa8;
  --logo-cap: #0a2350;
  --logo-ink: #0a2350;
  --header-bg: rgba(255, 255, 255, 0.9);
  --card-shadow: 0 16px 36px -22px rgba(10, 35, 80, 0.22);
  --glow-orange: 0 12px 26px -10px rgba(255, 132, 18, 0.5);
  --glow-blue: 0 22px 44px -22px rgba(10, 35, 80, 0.32);
  --tint: #eef2fa;
  --tint-orange: #fff2e4;
  color-scheme: light;
}
:root {
  --font-head: "Lexend", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 18px;
  --radius-lg: 26px;
  --navy-900: #041031;
  --navy-800: #071a45;
  --navy-700: #0a2350;
}

/* ---------- Brand logo (image) ---------- */
.logo--image { gap: 0; }
.logo__img { height: 50px; width: auto; }
.logo__img--white { display: none; }
[data-theme="dark"] .logo__img--ink,
.footer .logo__img--ink { display: none; }
[data-theme="dark"] .logo__img--white,
.footer .logo__img--white { display: block; }
.logo--footer .logo__img { height: 62px; }
.logo-ink { fill: var(--logo-ink); transition: fill 0.4s; }

/* ---------- Basics ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; }
.section-title { font-weight: 700; letter-spacing: -0.035em; }
.btn { font-family: var(--font-head); font-weight: 600; }
.btn--primary { background: var(--accent); }
.btn--primary:hover { background: var(--accent-2); box-shadow: 0 14px 30px -10px rgba(255, 132, 18, 0.65); }
.btn--outline { border: 1.5px solid var(--heading); color: var(--heading); }
.btn--outline:hover { background: var(--heading); color: var(--bg); border-color: var(--heading); box-shadow: none; }
.btn--outline:hover .play-icon { background: var(--bg); color: var(--heading); }
.play-icon { background: var(--accent); color: #fff; }

/* Section labels echo the logo tagline: "—— LABEL ——" */
.badge,
.badge--line {
  position: relative; gap: 12px; padding: 0; border: 0; border-radius: 0; background: none;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--heading);
}
.badge::before,
.badge::after,
.badge--line::before,
.badge--line::after {
  content: ""; position: static; flex: none; width: 34px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: none;
}
.badge b { color: var(--accent); }
.badge__icon { display: none; }

.t6-dot {
  display: inline-block; width: 0.24em; height: 0.24em; margin: 0 0.12em; border-radius: 50%;
  background: var(--accent); vertical-align: middle;
}

/* ---------- Header ---------- */
.header { border-bottom: 1px solid var(--border); }
.header.scrolled { box-shadow: 0 12px 30px -22px rgba(10, 35, 80, 0.4); }
.header__inner { height: 86px; }
.nav__link { font-weight: 600; font-size: 14.5px; }
.nav__link::after { height: 3px; bottom: -6px; }
.nav__menu a:hover { background: var(--tint-orange); }
.theme-toggle { border-color: var(--border-strong); }

/* ---------- Hero ---------- */
.t6-hero {
  position: relative; overflow: hidden; padding: 64px 0 96px;
  background:
    radial-gradient(circle at 88% 18%, var(--tint-orange), transparent 32%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.t6-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.t6-hero__content { display: grid; gap: 24px; justify-items: start; }
.t6-hero__title { font-size: clamp(42px, 5.3vw, 74px); line-height: 1.04; letter-spacing: -0.045em; }
.t6-swoosh { position: relative; display: inline-block; color: var(--accent); white-space: nowrap; }
.t6-swoosh svg { position: absolute; left: -2%; bottom: -0.2em; width: 104%; height: 0.36em; overflow: visible; }
.t6-swoosh path {
  fill: none; stroke: var(--heading); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: t6-draw 1.2s 0.5s var(--ease) forwards;
}
@keyframes t6-draw { to { stroke-dashoffset: 0; } }
.t6-hero__text { font-size: 18px; max-width: 510px; }
.hero__proof { color: var(--heading); }
.t6-proof-sep { width: 1px; height: 22px; background: var(--border-strong); }

/* Orbit visual: the logo's ring + star, with courses circling it */
.t6-orbit { position: relative; width: min(520px, 88vw); aspect-ratio: 1; margin-inline: auto; }
.t6-orbit__ring { position: absolute; border-radius: 50%; pointer-events: none; }
.t6-orbit__ring--outer { inset: 0; border: 1.5px dashed var(--border-strong); }
.t6-orbit__ring--inner { inset: 13%; border: 1px solid var(--border); }
.t6-orbit__core {
  position: absolute; inset: 21%; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); box-shadow: 0 0 0 16px var(--tint), 0 40px 70px -30px rgba(10, 35, 80, 0.45);
}
.t6-orbit__core svg { width: 82%; height: 82%; animation: float 6s ease-in-out infinite; }
.t6-orbit__track { position: absolute; inset: 0; animation: t6-spin 46s linear infinite; }
.t6-planet {
  position: absolute; width: 62px; height: 62px; margin: -31px; padding: 13px; display: grid; place-items: center;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow);
  animation: t6-spin 46s linear infinite reverse;
}
.t6-planet svg { width: 100%; height: 100%; }
.t6-planet--1 { left: 93.3%; top: 75%; }
.t6-planet--2 { left: 25%; top: 93.3%; }
.t6-planet--3 { left: 6.7%; top: 25%; }
.t6-planet--4 { left: 75%; top: 6.7%; }
@keyframes t6-spin { to { transform: rotate(360deg); } }

.t6-tag {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow);
  animation: float 6s ease-in-out infinite;
}
.t6-tag > span {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--tint); color: var(--heading); font-family: var(--font-head); font-weight: 700; font-size: 14px;
}
.t6-tag b { display: block; font-family: var(--font-head); color: var(--heading); font-size: 16px; line-height: 1.2; }
.t6-tag small { color: var(--muted); font-size: 12.5px; }
.t6-tag--learn { left: -6%; top: 8%; }
.t6-tag--grow { right: -8%; top: 44%; animation-delay: -2s; }
.t6-tag--succeed { left: 0; bottom: 4%; animation-delay: -4s; }
.t6-tag--succeed > span { background: var(--accent); color: #fff; }

/* ---------- Marquee (inverts with the theme) ---------- */
.t6-marquee { overflow: hidden; padding: 18px 0; background: var(--heading); color: var(--bg); }
.t6-marquee__track { display: flex; width: max-content; animation: t6-marquee 36s linear infinite; }
.t6-marquee__track span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--font-head); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap;
}
.t6-marquee__track span::after { content: "★"; color: var(--accent); font-size: 16px; }
@keyframes t6-marquee { to { transform: translateX(-50%); } }

/* ---------- Course cards ---------- */
.t6-courses { padding-top: 90px; }
.courses__grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.course-card {
  position: relative; overflow: hidden; justify-items: start; text-align: left; gap: 6px;
  padding: 26px 22px 22px; border-radius: var(--radius-lg); box-shadow: none;
}
.course-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--heading), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.course-card__icon { width: 58px; height: 58px; padding: 12px; margin-bottom: 12px; border-radius: 16px; background: var(--tint); }
.course-card h3 { font-size: 19px; }
.course-card p { font-size: 13.5px; }
.course-card__go { width: 38px; height: 38px; margin-top: 14px; background: var(--tint); color: var(--heading); font-size: 16px; }
.course-card:hover { border-color: var(--border-strong); box-shadow: var(--glow-blue); }
.course-card:hover::before { transform: scaleX(1); }
.course-card:hover .course-card__go { background: var(--accent); color: #fff; }

.t6-promo {
  margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; padding: 34px 40px;
  border: 0; background: linear-gradient(120deg, var(--navy-700), var(--navy-900));
  box-shadow: 0 30px 60px -34px rgba(10, 35, 80, 0.7);
}
[data-theme="dark"] .t6-promo { border: 1px solid var(--border-strong); }
.t6-promo::before {
  content: ""; position: absolute; width: 360px; height: 360px; right: -100px; top: -170px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1); pointer-events: none;
}
.t6-promo::after { content: "★"; position: absolute; right: 230px; top: 22px; color: var(--accent); font-size: 26px; }
.t6-promo__head { flex: 1; min-width: 260px; display: grid; gap: 10px; justify-items: start; }
.t6-promo h3 { font-size: 28px; }
.t6-promo p { max-width: 340px; font-size: 15px; }

/* ---------- Learn • Grow • Succeed ---------- */
.t6-journey { background: var(--bg-2); }
.t6-path { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 70px; }
.t6-path__arc { position: absolute; left: 4%; right: 4%; top: 0; width: 92%; height: 90px; overflow: visible; }
.t6-path__arc path {
  fill: none; stroke: var(--heading); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0.85;
}
.t6-path__star { position: absolute; right: 2.5%; top: 14px; color: var(--accent); font-size: 34px; line-height: 1; animation: t6-twinkle 3s ease-in-out infinite; }
@keyframes t6-twinkle { 50% { transform: scale(1.2) rotate(18deg); } }
.t6-step {
  position: relative; display: grid; align-content: start; gap: 12px; padding: 30px 28px;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow);
}
.t6-step__no {
  font-family: var(--font-head); font-weight: 800; font-size: 54px; line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--border-strong);
}
.t6-step h3 { font-size: 30px; letter-spacing: -0.03em; }
.t6-step h3::after { content: "."; color: var(--accent); }
.t6-step p { color: var(--muted); }
.t6-step__list { display: grid; gap: 8px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--text); }
.t6-step__list li { display: flex; gap: 10px; align-items: baseline; }
.t6-step__list li::before { content: "★"; color: var(--accent); font-size: 12px; }
.t6-step--hl {
  --heading: #ffffff; --text: #d5ddf2; --muted: #a9b6d8; --border: rgba(255, 255, 255, 0.14); --border-strong: rgba(255, 255, 255, 0.35);
  background: linear-gradient(140deg, var(--navy-700), var(--navy-900)); border-color: transparent;
}
[data-theme="dark"] .t6-step--hl { border: 1px solid var(--accent); }

/* ---------- Why ---------- */
.why::before { display: none; }
.t6-why .why__intro { position: relative; z-index: 0; }
.t6-why { overflow: hidden; }
.t6-why__mark { position: absolute; z-index: -1; width: 360px; height: 360px; left: -150px; top: -120px; opacity: 0.05; pointer-events: none; }
.why__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.why__grid--3 { grid-template-columns: repeat(3, 1fr); }
.feature {
  grid-template-columns: 52px 1fr; justify-items: start; align-content: start; align-items: center; column-gap: 16px; row-gap: 2px;
  text-align: left; padding: 20px 22px; min-height: 0; box-shadow: none;
}
.feature__icon { grid-row: span 2; width: 52px; height: 52px; border-radius: 15px; background: var(--tint); color: var(--heading); font-size: 24px; }
.feature:nth-child(even) .feature__icon { background: var(--tint-orange); color: var(--accent); }
.feature h4 { font-size: 15.5px; align-self: end; }
.feature p { font-size: 13.5px; color: var(--muted); align-self: start; }
.feature:hover { border-color: var(--border-strong); box-shadow: var(--glow-blue); }

/* ---------- Stats ---------- */
.stats { border: 0; background: linear-gradient(120deg, var(--navy-700), var(--navy-900)); box-shadow: 0 30px 60px -34px rgba(10, 35, 80, 0.7); }
[data-theme="dark"] .stats { border: 1px solid var(--border-strong); }
.stat b { color: #ffffff; }
.stat b::after { content: ""; display: block; width: 26px; height: 3px; margin: 6px auto 0; border-radius: 3px; background: var(--accent); }
.stat span { color: #aab6d6; }
.stat + .stat { border-color: rgba(255, 255, 255, 0.12); }

/* ---------- Reviews ---------- */
.review { position: relative; border-radius: var(--radius-lg); box-shadow: none; }
.review::after {
  content: "\201D"; position: absolute; right: 22px; top: 8px; font-family: Georgia, serif; font-size: 86px; line-height: 1;
  color: var(--accent); opacity: 0.25;
}
.review:hover { border-color: var(--border-strong); box-shadow: var(--glow-blue); }
.review__avatar { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }
.review__role { color: var(--muted); }
[data-theme="dark"] .review__role { color: var(--muted); }
.carousel__btn { background: var(--surface); border-color: var(--border-strong); }

/* ---------- CTA ---------- */
.t6-cta {
  --logo-ink: #ffffff;
  gap: 30px 40px; padding: 48px 54px; border: 0;
  background:
    radial-gradient(circle at 100% 100%, rgba(255, 132, 18, 0.32), transparent 26%),
    linear-gradient(120deg, var(--navy-700), var(--navy-900));
  box-shadow: 0 30px 70px -34px rgba(10, 35, 80, 0.75);
}
[data-theme="dark"] .t6-cta { border: 1px solid var(--border-strong); }
.t6-cta__mark { flex: none; width: 130px; height: 130px; animation: float 5s ease-in-out infinite; }
.t6-cta__tag { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #aab6d6; }
.t6-cta h2 { font-size: clamp(28px, 3.4vw, 40px); }
.t6-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer: brand navy in both themes ---------- */
.footer { --logo-ink: #ffffff; background: linear-gradient(180deg, var(--navy-700), var(--navy-900)); }
.footer::before { background: radial-gradient(ellipse at 100% 100%, rgba(255, 132, 18, 0.16), transparent 45%); }
.modal__video { --logo-ink: #ffffff; }

/* ---------- Inner pages ---------- */
.page-hero {
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 90% 0, var(--tint-orange), transparent 35%), linear-gradient(180deg, var(--bg-2), var(--bg));
}
.page-hero .hero__bg { display: none; }
.page-hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%;
  border: 2px solid var(--border-strong); pointer-events: none;
}
.page-hero::after { content: "★"; position: absolute; right: 330px; top: 26px; color: var(--accent); font-size: 26px; pointer-events: none; }
.page-hero__title { letter-spacing: -0.04em; }
.page-hero__icon,
.hero__orb {
  background: var(--surface); border: 0; box-shadow: 0 0 0 14px var(--tint), 0 30px 60px -30px rgba(10, 35, 80, 0.45);
}
.hero__orb::before { inset: -40px; border: 1.5px dashed var(--border-strong); }
.hero__orb-logo { width: 78%; height: 78%; filter: none; }
.crumbs span:last-child { color: var(--accent); }
.filter.active { background: var(--heading); color: var(--bg); box-shadow: none; }
.chip { background: var(--tint); color: var(--heading); }
[data-theme="dark"] .chip { color: var(--heading); }
.course-tile { box-shadow: none; }
.course-tile:hover { border-color: var(--border-strong); box-shadow: var(--glow-blue); }
.course-tile__top .course-card__icon { padding: 12px; border-radius: 16px; background: var(--tint); }
.panel { box-shadow: none; }
.ticks li::before { background: var(--tint-orange); }
.side-card { border: 0; background: linear-gradient(140deg, var(--navy-700), var(--navy-900)); box-shadow: 0 30px 60px -30px rgba(10, 35, 80, 0.7); }
[data-theme="dark"] .side-card { border: 1px solid var(--border-strong); }
.still-q { border: 0; background: linear-gradient(120deg, var(--navy-700), var(--navy-900)); }
.faq[open] { border-color: var(--accent); }
.faq summary::after { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--tint); color: var(--heading); font-size: 20px; }
.faq[open] summary::after { background: var(--accent); color: #fff; }
.field input, .field select, .field textarea { background: var(--bg-2); border-color: var(--border); }
.mv__card .feature__icon { background: var(--tint-orange); }
.rating-summary, .member, .contact-card { box-shadow: none; }
.member:hover, a.contact-card:hover { border-color: var(--border-strong); box-shadow: var(--glow-blue); }
.member__avatar { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--accent); }
.bar i::after { background: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1150px) {
  .logo__img { height: 44px; }
  .t6-tag--grow { right: -2%; }
}
@media (max-width: 980px) {
  .t6-hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .t6-tag--learn { left: 0; }
  .t6-path { grid-template-columns: 1fr; padding-top: 0; }
  .t6-path__arc, .t6-path__star { display: none; }
  .why__grid--3 { grid-template-columns: repeat(2, 1fr); }
  .t6-why__mark { display: none; }
  .t6-cta { flex-direction: column; text-align: center; }
  .t6-cta__actions { justify-content: center; }
  .page-hero::after { display: none; }
}
@media (max-width: 640px) {
  .header__inner { height: 72px; }
  .logo__img { height: 38px; }
  .logo--footer .logo__img { height: 52px; }
  .t6-hero { padding: 40px 0 70px; }
  .t6-proof-sep { display: none; }
  .courses__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .course-card { padding: 20px 16px 18px; }
  .course-card__icon { width: 50px; height: 50px; padding: 10px; }
  .course-card h3 { font-size: 17px; }
  .t6-tag { padding: 8px 12px 8px 8px; gap: 8px; }
  .t6-tag > span { width: 32px; height: 32px; font-size: 12px; }
  .t6-tag b { font-size: 14px; }
  .t6-tag small { display: none; }
  .t6-tag--grow { right: 0; }
  .t6-planet { width: 48px; height: 48px; margin: -24px; padding: 10px; border-radius: 14px; }
  .t6-promo { padding: 26px 24px; }
  .t6-promo::after { right: 40px; }
  .why__grid, .why__grid--3 { grid-template-columns: 1fr; }
  .t6-cta { padding: 34px 22px; }
  .t6-cta__mark { width: 100px; height: 100px; }
  .t6-cta__actions .btn { width: 100%; justify-content: center; }
}
