/* ===========================================================================
   DeutschKlar — Dark Cosmic landing theme
   Deep navy void · glowing gradients · glassmorphism · neon accents
   Component map: Navbar / Hero / TrustedBy / Features / LearningPaths /
   GrammarShowcase / PlatformFeatures / Testimonials / FAQ / CTA / Footer
   =========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* ---- Palette ---- */
  --bg:        #050816;
  --bg-2:      #0B1023;
  --surface:   #111827;
  --surface-2: #0e1626;

  --blue:   #4F7DFF;
  --cyan:   #38E0E8;
  --purple: #9A5CFF;
  --pink:   #E45CC8;

  --ink:     #EAF0FF;   /* primary text */
  --ink-soft:#B7C0DC;   /* secondary    */
  --muted:   #7A85A6;   /* tertiary     */
  --line:    rgba(255,255,255,0.08);
  --line-2:  rgba(255,255,255,0.14);

  --grad-brand: linear-gradient(120deg, var(--blue) 0%, var(--purple) 60%, var(--pink) 120%);
  --grad-cool:  linear-gradient(120deg, var(--cyan) 0%, var(--blue) 100%);
  --grad-text:  linear-gradient(120deg, #fff 0%, #BFD0FF 40%, var(--cyan) 100%);

  --glow-blue:   0 0 0 1px rgba(79,125,255,0.4), 0 12px 40px -8px rgba(79,125,255,0.55);
  --glow-soft:   0 24px 80px -24px rgba(79,125,255,0.35);
  --shadow-card: 0 24px 60px -28px rgba(0,0,0,0.8);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --maxw: 1200px;
  --font-head: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
}

* , *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Cosmic ambient backdrop (fixed, behind everything) */
.cosmos {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(58% 40% at 50% -6%, rgba(154,92,255,0.22), transparent 70%),
    radial-gradient(40% 30% at 85% 8%, rgba(56,224,232,0.12), transparent 70%),
    radial-gradient(45% 35% at 12% 22%, rgba(79,125,255,0.14), transparent 70%),
    var(--bg);
}
#stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.9; }

h1,h2,h3,h4 { font-family: var(--font-head); color: var(--ink); margin: 0; line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(56px, 8vw, 100px) 0; }

/* ---- Shared bits ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-size: 13px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before { content:""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); }

.h-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); max-width: 60ch; }

.section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__head h2 { font-size: clamp(30px, 4.6vw, 50px); margin: 18px 0 16px; }
.section__head .lead { margin: 0 auto; }

/* ---- Buttons ---- */
.btn {
  --pad: 13px 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 500; font-size: 15px;
  padding: var(--pad); border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap; position: relative;
}
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn--primary {
  color: #fff;
  background: var(--grad-brand);
  background-size: 160% 160%;
  box-shadow: 0 10px 30px -8px rgba(122,90,255,0.6), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -8px rgba(122,90,255,0.75), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn--ghost {
  color: var(--ink);
  background: rgba(255,255,255,0.03);
  border-color: var(--line-2);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: rgba(120,160,255,0.6); background: rgba(79,125,255,0.08); transform: translateY(-2px); }
.btn--lg { --pad: 16px 30px; font-size: 16px; }
.btn--sm { --pad: 10px 18px; font-size: 14px; }

/* ---- Glass card ---- */
.glass {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}
.glass--hover { transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.glass--hover:hover { transform: translateY(-6px); border-color: rgba(120,160,255,0.45); box-shadow: var(--glow-soft), var(--shadow-card); }

/* gradient hairline border helper */
.gborder { position: relative; }
.gborder::after {
  content:""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(120,160,255,0.55), rgba(154,92,255,0.18) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ===================== NAVBAR ===================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled { background: rgba(5,8,22,0.72); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav__inner { height: 74px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 600; font-size: 19px; color: #fff; letter-spacing: -0.02em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #13234a url('logo-mark.png') center/cover no-repeat;
  color: transparent; font-size: 0; overflow: hidden;
  box-shadow: 0 6px 20px -4px rgba(122,90,255,0.5), inset 0 0 0 1px rgba(255,255,255,0.18);
}
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav__link { font-size: 15px; color: var(--ink-soft); padding: 9px 14px; border-radius: 10px; transition: color .2s ease, background .2s ease; }
.nav__link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav__link.is-active { color: #fff; background: rgba(120,160,255,0.12); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav__burger { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 42px; height: 42px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav__burger svg { width: 20px; height: 20px; }

.mobilemenu { display: none; }

/* ===================== HERO ===================== */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(60px, 9vw, 120px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.03em; }
.hero__sub { margin-top: 24px; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); max-width: 54ch; }
.hero__cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust { margin-top: 38px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__trust .avis { display: flex; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; margin-left: -10px;
  border: 2px solid var(--bg-2); display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 13px; color: #fff;
}
.avatar:first-child { margin-left: 0; }
.stars-row { color: var(--cyan); letter-spacing: 2px; font-size: 14px; }

/* Hero orb visual */
.orb-stage { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.orb {
  width: 64%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(38% 38% at 34% 30%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(120% 120% at 70% 75%, #2a1066 0%, #3a1d8c 35%, #5b2bd6 60%, #8a52ff 100%);
  box-shadow:
    inset -22px -28px 60px rgba(0,0,0,0.55),
    inset 18px 18px 50px rgba(180,150,255,0.35),
    0 0 90px 8px rgba(122,90,255,0.5),
    0 0 180px 30px rgba(79,125,255,0.3);
  animation: orbFloat 9s ease-in-out infinite;
}
.orb-ring {
  position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(120,160,255,0.35);
  transform: rotateX(74deg) rotateZ(8deg);
  box-shadow: 0 0 40px rgba(56,224,232,0.25);
}
.orb-ring::after {
  content:""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(56,224,232,0.18);
}
.orb-glow { position: absolute; inset: 0; border-radius: 50%; filter: blur(60px); background: radial-gradient(circle, rgba(122,90,255,0.35), transparent 60%); z-index: -1; }

/* Floating course preview cards */
.floatcard {
  position: absolute; padding: 14px 16px; border-radius: 16px; min-width: 184px;
  display: flex; align-items: center; gap: 12px;
  animation: cardFloat 7s ease-in-out infinite;
}
.floatcard .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; }
.floatcard .ic--photo { overflow: hidden; padding: 0; }
.floatcard .ic--photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; display: block; }
.floatcard .ttl { font-family: var(--font-head); font-weight: 600; color: #fff; font-size: 14px; }
.floatcard .sub { font-size: 12px; color: var(--muted); }
.floatcard--a { top: 6%; left: -4%; animation-delay: -1s; }
.floatcard--b { bottom: 12%; right: -6%; animation-delay: -3.5s; }
.floatcard--c { bottom: -3%; left: 12%; animation-delay: -5s; }

@keyframes orbFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes cardFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ===================== TRUSTED BY / STATS ===================== */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 16px; border-radius: var(--r-md); }
.stat__n { font-family: var(--font-head); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat__l { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.trust-strip { margin-top: 40px; display: flex; align-items: center; justify-content: center; gap: 38px; flex-wrap: wrap; opacity: 0.8; }
.trust-strip .logo { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--ink-soft); letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 8px; }

/* ===================== FEATURES GRID ===================== */
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 26px; border-radius: var(--r-lg); }
.feature .ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(79,125,255,0.22), rgba(154,92,255,0.12));
  border: 1px solid var(--line-2); color: #fff;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); }

/* ===================== LEARNING PATHS — BENTO ===================== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 18px; }
.bento .cell { padding: 26px; border-radius: var(--r-lg); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.bento .cell .lvl { font-family: var(--font-head); font-weight: 700; font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1; }
.bento .cell h3 { font-size: 19px; margin: 4px 0 6px; }
.bento .cell p { font-size: 14px; color: var(--ink-soft); }
.bento .cell .meta { font-size: 12.5px; color: var(--muted); margin-top: 10px; display: inline-flex; gap: 12px; }
.bento .span2 { grid-column: span 2; }
.bento .row2 { grid-row: span 2; }
.cell__wash { position: absolute; inset: 0; opacity: 0.6; z-index: -1; }
.wash-blue   { background: radial-gradient(80% 90% at 80% 0%, rgba(79,125,255,0.28), transparent 65%); }
.wash-cyan   { background: radial-gradient(80% 90% at 80% 0%, rgba(56,224,232,0.22), transparent 65%); }
.wash-purple { background: radial-gradient(90% 100% at 75% 10%, rgba(154,92,255,0.30), transparent 65%); }
.wash-pink   { background: radial-gradient(80% 90% at 80% 0%, rgba(228,92,200,0.22), transparent 65%); }
.cell .lvl.grad-b { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cell .lvl.grad-p { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===================== GRAMMAR SHOWCASE ===================== */
.grammar { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 26px; align-items: stretch; }
.gtabs { display: flex; flex-direction: column; gap: 12px; }
.gtab {
  text-align: left; cursor: pointer; padding: 20px 22px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.02); border: 1px solid var(--line);
  transition: border-color .25s ease, background .25s ease, transform .2s ease;
  font-family: var(--font-body); color: var(--ink-soft);
}
.gtab:hover { border-color: var(--line-2); }
.gtab[aria-selected="true"] { background: linear-gradient(140deg, rgba(79,125,255,0.16), rgba(154,92,255,0.08)); border-color: rgba(120,160,255,0.5); }
.gtab .gt-name { font-family: var(--font-head); font-weight: 600; color: #fff; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.gtab .gt-tag { font-size: 12px; color: var(--cyan); border: 1px solid rgba(56,224,232,0.3); padding: 2px 9px; border-radius: 999px; }
.gtab .gt-desc { font-size: 13.5px; margin-top: 6px; color: var(--muted); }

.gpanel { padding: 30px; border-radius: var(--r-lg); display: flex; flex-direction: column; }
.gpanel__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.gpanel__win { display: flex; gap: 7px; }
.gpanel__win i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dtable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.dtable th, .dtable td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.dtable thead th { font-family: var(--font-head); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; }
.dtable tbody th { font-family: var(--font-head); color: var(--ink); font-weight: 600; }
.dtable td .art { font-family: var(--font-head); font-weight: 600; color: #fff; }
.dtable tbody tr:last-child td, .dtable tbody tr:last-child th { border-bottom: none; }
.dtable tr.hot td, .dtable tr.hot th { background: linear-gradient(90deg, rgba(79,125,255,0.12), transparent); }
.gpanel__ex { margin-top: 22px; padding: 18px 20px; border-radius: var(--r-md); background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.gpanel__ex .lbl { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.gpanel__ex .sent { font-family: var(--font-head); font-size: 19px; color: var(--ink); }
.gpanel__ex .sent mark { background: var(--grad-brand); color: #fff; padding: 1px 9px; border-radius: 7px; }
.gpanel__ex .en { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ===================== TESTIMONIALS ===================== */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard { padding: 26px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 16px; }
.tcard .stars { color: var(--cyan); letter-spacing: 2px; font-size: 14px; }
.tcard .quote { font-size: 15.5px; color: var(--ink); line-height: 1.6; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tcard .who .nm { font-family: var(--font-head); font-weight: 600; color: #fff; font-size: 14.5px; }
.tcard .who .rl { font-size: 12.5px; color: var(--muted); }

/* ===================== FAQ ===================== */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; align-items: start; }
.acc { border-bottom: 1px solid var(--line); }
.acc__q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: 17px; padding: 22px 40px 22px 0; position: relative; display: flex; }
.acc__q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--cyan); transition: transform .3s ease; font-weight: 400; }
.acc.is-open .acc__q::after { content: "−"; }
.acc__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc__a p { padding: 0 30px 22px 0; font-size: 15px; color: var(--ink-soft); }

/* ===================== FINAL CTA ===================== */
.cta-band { position: relative; padding: clamp(56px, 8vw, 90px); border-radius: var(--r-xl); text-align: center; overflow: hidden; }
.cta-band::before { content:""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 120% at 50% 0%, rgba(154,92,255,0.35), transparent 60%),
  radial-gradient(50% 90% at 50% 110%, rgba(56,224,232,0.18), transparent 60%),
  linear-gradient(180deg, rgba(20,18,48,0.8), rgba(10,12,30,0.9)); }
.cta-band h2 { font-size: clamp(32px, 5vw, 56px); }
.cta-band .lead { margin: 18px auto 0; }

/* ===================== FOOTER ===================== */
.footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 84px); margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 32px; }
.footer__brandcol p { font-size: 14px; color: var(--muted); margin-top: 16px; max-width: 34ch; }
.footer__news { margin-top: 22px; display: flex; gap: 8px; max-width: 320px; }
.footer__news input { flex: 1; background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); border-radius: 999px; padding: 11px 18px; color: var(--ink); font-family: var(--font-body); font-size: 14px; }
.footer__news input:focus { outline: none; border-color: rgba(120,160,255,0.6); }
.footer__col h4 { font-family: var(--font-head); font-size: 13px; color: #fff; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer__col a { font-size: 14px; color: var(--muted); transition: color .2s ease; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { margin-top: 48px; padding: 26px 0 40px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-soft); transition: border-color .2s, color .2s, transform .2s; }
.socials a:hover { color: #fff; border-color: rgba(120,160,255,0.6); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

/* ===================== REVEAL ANIM ===================== */
/* Base state stays fully visible (opacity:1) so content can never be hidden
   if a transition is throttled/interrupted — entrance is a subtle slide only. */
.reveal { opacity: 1; transform: translateY(18px); transition: transform .7s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.reveal.in { transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: none; }
  .orb, .floatcard { animation: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__right .btn--ghost { display: none; }
  .nav__burger { display: flex; }
  .mobilemenu.is-open { display: block; }
  .mobilemenu {
    position: fixed; inset: 74px 0 auto 0; z-index: 99;
    background: rgba(5,8,22,0.96); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line); padding: 18px 28px 26px;
  }
  .mobilemenu a { display: block; padding: 13px 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); font-family: var(--font-head); }
  .mobilemenu .btn { width: 100%; margin-top: 16px; }
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .bento .span2 { grid-column: span 2; }
  .bento .row2 { grid-row: span 1; }
  .tgrid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .orb-stage { max-width: 420px; margin: 0 auto; width: 100%; }
  .grammar { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .fgrid, .bento, .tgrid, .stats { grid-template-columns: 1fr; }
  .bento .span2 { grid-column: auto; }
  .bento { grid-auto-rows: auto; }
  .bento .cell { min-height: 170px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brandcol { grid-column: span 2; }
  .floatcard--a, .floatcard--c { display: none; }
  .hero__trust { gap: 16px; }
}

/* ===================== COURSE ROADMAP ===================== */
.roadmap { display: flex; flex-direction: column; }
.lvl-group { display: grid; grid-template-columns: 190px 1fr; gap: 30px; padding-bottom: 34px; }
.lvl-rail { position: relative; }
.lvl-rail::before { content: ""; position: absolute; left: 27px; top: 64px; bottom: -34px; width: 2px; background: linear-gradient(var(--line-2), rgba(255,255,255,0.02)); }
.lvl-group:last-child .lvl-rail::before { display: none; }
.lvl-node { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 21px; color: #fff; box-shadow: 0 10px 28px -8px rgba(122,90,255,0.55), inset 0 1px 0 rgba(255,255,255,0.35); }
.lvl-meta { margin-top: 16px; }
.lvl-name { display: block; font-family: var(--font-head); font-weight: 600; font-size: 18px; color: #fff; }
.lvl-cefr { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.lvl-courses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.course-step { padding: 22px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.cs-go { margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--cyan); display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); }
.course-step .i, .track .i { vertical-align: middle; }
.cs-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cs-code { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: #fff; padding: 4px 11px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); letter-spacing: 0.01em; }
.cs-meta { font-size: 12px; color: var(--muted); }
.course-step h3 { font-size: 18px; }
.course-step p { font-size: 13.5px; color: var(--ink-soft); }
.cs-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.cs-topics span { font-size: 11.5px; color: var(--ink-soft); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.track { position: relative; overflow: hidden; padding: 26px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 18px; justify-content: space-between; text-decoration: none; color: inherit; }
.track__tag { display: inline-block; font-family: var(--font-head); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.track h3 { font-size: 21px; margin-bottom: 8px; }
.track p { font-size: 14px; color: var(--ink-soft); }
.track .btn { align-self: flex-start; }

/* ===================== ABOUT / FOUNDER ===================== */
.about-grid { display: grid; grid-template-columns: 360px 1fr; gap: 44px; align-items: start; }
.about-media { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.about-photo { width: 100%; height: 460px; display: block; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-card); position: relative; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.about-creds { display: flex; flex-direction: column; gap: 9px; }
.cred { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); padding: 11px 15px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255,255,255,0.025); }
.cred__e { font-size: 16px; }
.about-body { display: flex; flex-direction: column; gap: 16px; }
.about-body p { font-size: 16px; color: var(--ink-soft); }
.about-body b { color: var(--ink); font-weight: 600; }
.about-lead { font-size: 18px !important; color: var(--ink) !important; line-height: 1.55; }
.about-phil { padding: 26px; border-radius: var(--r-lg); margin-top: 8px; }
.about-phil h3 { font-size: 20px; }
.about-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.about-chips span { font-size: 13px; color: var(--ink-soft); padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(79,125,255,0.06); }
.about-quote { margin: 8px 0 0; padding: 0 0 0 22px; border-left: 2px solid var(--cyan); font-family: var(--font-head); font-size: clamp(18px,2.2vw,23px); font-weight: 500; color: #fff; line-height: 1.4; letter-spacing: -0.01em; }

.about-learn { margin-top: clamp(56px, 7vw, 88px); }
.learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.learn-card { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: var(--r-md); }
.learn-card .ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, rgba(79,125,255,0.22), rgba(154,92,255,0.12)); border: 1px solid var(--line-2); }
.learn-card h4 { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.3; }
.about-cta { margin-top: clamp(48px, 6vw, 72px); padding: 34px 38px; border-radius: var(--r-xl); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(79,125,255,0.12), rgba(154,92,255,0.06)); }
.about-cta .btn { flex-shrink: 0; }

/* ===================== EXAM PREP ===================== */
.exam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.exam { padding: 30px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 18px; }
.exam__top { display: flex; align-items: center; gap: 14px; }
.exam__badge { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--line-2); }
.exam__top h3 { font-size: 22px; }
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--font-head); font-size: 13px; font-weight: 500; color: var(--ink-soft); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); }
.chip--hot { color: #fff; background: var(--grad-brand); border-color: transparent; box-shadow: 0 4px 14px -4px rgba(122,90,255,0.6); }
.exam__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.exam__list li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-soft); }
.exam__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }
.exam .btn { align-self: flex-start; margin-top: 4px; }
.matstrip { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mat { padding: 22px; border-radius: var(--r-md); text-align: center; }
.mat__n { display: block; font-family: var(--font-head); font-weight: 700; font-size: 26px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mat__l { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ===================== FLASHCARDS ===================== */
.fc-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 20px; align-items: stretch; }
.fc-side { padding: 26px; border-radius: var(--r-lg); display: flex; flex-direction: column; }
.fc-decks { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 22px; }
.fc-deck { text-align: left; cursor: pointer; font-family: var(--font-body); display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255,255,255,0.02); color: var(--ink-soft); transition: border-color .2s, background .2s; }
.fc-deck:hover { border-color: var(--line-2); }
.fc-deck[aria-selected="true"] { background: linear-gradient(140deg, rgba(79,125,255,0.16), rgba(154,92,255,0.08)); border-color: rgba(120,160,255,0.5); color: #fff; }
.fc-deck .nm { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.fc-deck .ct { font-size: 12px; color: var(--muted); }
.fc-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: auto; text-align: center; }
.fc-stat__n { display: block; font-family: var(--font-head); font-weight: 700; font-size: 24px; color: #fff; }
.fc-stat__l { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.meter-fill { height: 100%; border-radius: 999px; background: var(--grad-cool); width: 0%; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.fc-side .meter { height: 7px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.fc-hint { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

.fc-main { display: flex; flex-direction: column; gap: 18px; }
.fc-card { position: relative; flex: 1; min-height: 300px; cursor: pointer; perspective: 1400px; }
.fc-card.flip .fc-front { transform: rotateY(180deg); }
.fc-card.flip .fc-back { transform: rotateY(360deg); }
.fc-face {
  position: absolute; inset: 0; border-radius: var(--r-xl);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 30px;
  backface-visibility: hidden; transition: transform .55s cubic-bezier(.4,.1,.2,1);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  box-shadow: var(--shadow-card);
}
.fc-front { transform: rotateY(0deg); }
.fc-back { transform: rotateY(180deg); background: linear-gradient(180deg, rgba(79,125,255,0.16), rgba(154,92,255,0.06)); }
.fc-tag { font-family: var(--font-head); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.fc-word { font-family: var(--font-head); font-weight: 700; font-size: clamp(34px, 5vw, 52px); color: #fff; letter-spacing: -0.02em; }
.fc-sub { font-size: 15px; color: var(--ink-soft); max-width: 36ch; }
.fc-flip { position: absolute; bottom: 18px; font-size: 12px; color: var(--muted); }
.fc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fc-actions .btn { width: 100%; }
.fc-done { position: absolute; inset: 0; border-radius: var(--r-xl); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; z-index: 3; }
.fc-done[hidden] { display: none; }
.fc-main { position: relative; }
.fc-pop { animation: fcPop .35s ease; }
@keyframes fcPop { 0%{transform:scale(.96);opacity:.4} 100%{transform:scale(1);opacity:1} }

/* ===================== DAILY PROGRESS ===================== */
.dp-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 20px; align-items: stretch; }
.dp-goal, .dp-streak { padding: 28px; border-radius: var(--r-lg); display: flex; flex-direction: column; }
.dp-ring-wrap { display: grid; place-items: center; margin: 18px 0 22px; }
.dp-ring { position: relative; width: 170px; height: 170px; }
.dp-ring svg { transform: rotate(-90deg); }
.dp-track { stroke: rgba(255,255,255,0.07); }
.dp-bar { stroke: url(#dpGrad); stroke: var(--cyan); transition: stroke-dashoffset .7s cubic-bezier(.2,.7,.2,1); filter: drop-shadow(0 0 6px rgba(56,224,232,0.5)); }
.dp-ring__lbl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dp-ring__lbl b { font-family: var(--font-head); font-weight: 700; font-size: 38px; color: #fff; line-height: 1; }
.dp-ring__lbl span { font-size: 13px; color: var(--muted); margin-top: 4px; }
.dp-goal .fc-hint { text-align: center; margin-top: 14px; }
.dp-streak__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.dp-flame { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.dp-flame span:first-child { font-family: var(--font-head); font-weight: 700; font-size: 44px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.dp-flame__ico { font-size: 28px; }
.dp-best { text-align: right; font-size: 12px; color: var(--muted); }
.dp-best b { font-family: var(--font-head); font-size: 22px; color: var(--ink); }
.dp-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-bottom: 22px; }
.dp-day { text-align: center; }
.dp-day .ddot { width: 100%; aspect-ratio: 1; max-width: 46px; margin: 0 auto 7px; border-radius: 14px; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 16px; color: var(--muted); background: rgba(255,255,255,0.02); transition: all .3s ease; }
.dp-day.done .ddot { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: 0 6px 18px -6px rgba(122,90,255,0.7); }
.dp-day.today .ddot { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.dp-day .dl { font-size: 11px; color: var(--muted); }
.dp-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; }
.dp-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); color: var(--muted); }
.dp-badge.on { color: #fff; border-color: rgba(120,160,255,0.5); background: linear-gradient(140deg, rgba(79,125,255,0.18), rgba(154,92,255,0.08)); }
.dp-badge .e { font-size: 15px; }

@media (max-width: 860px) {
  .exam-grid, .fc-wrap, .dp-grid { grid-template-columns: 1fr; }
  .matstrip { grid-template-columns: 1fr 1fr; }
  .fc-card { min-height: 260px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-media { position: static; }
  .about-photo { height: 380px; max-width: 420px; }
  .learn-grid { grid-template-columns: 1fr 1fr; }
  .lvl-group { grid-template-columns: 1fr; gap: 18px; padding-bottom: 28px; }
  .lvl-rail { display: flex; align-items: center; gap: 16px; }
  .lvl-rail::before { display: none; }
  .lvl-meta { margin-top: 0; }
  .tracks { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .matstrip { grid-template-columns: 1fr 1fr; }
  .fc-stats { gap: 6px; }
  .lvl-courses { grid-template-columns: 1fr; }
  .learn-grid { grid-template-columns: 1fr; }
  .about-cta { padding: 26px; }
}

/* ===========================================================================
   GERMAN-FLAG THEME  (Schwarz · Rot · Gold)  — toggled via [data-theme="flag"]
   --blue is set inline by the tweaks panel to the chosen accent.
   =========================================================================== */
:root[data-theme="flag"] {
  --cyan:   #FFCE00;            /* gold  */
  --purple: #C8102E;           /* deep red */
  --pink:   #FFCE00;           /* gold  */
  --blue:   #E2001A;           /* flag red — default accent so theme is consistent everywhere */
  --grad-brand: linear-gradient(120deg, #1a1a1d 0%, var(--blue) 55%, #FFCE00 120%);
  --grad-cool:  linear-gradient(120deg, #FFCE00 0%, var(--blue) 100%);
  --grad-text:  linear-gradient(120deg, #ffffff 0%, #FFE6A0 45%, #FFCE00 100%);
  --glow-soft:  0 24px 80px -24px rgba(226,0,26,0.32);
  --line-2: rgba(255,206,0,0.22);
}
:root[data-theme="flag"] .cosmos {
  background:
    radial-gradient(58% 40% at 50% -6%, rgba(226,0,26,0.20), transparent 70%),
    radial-gradient(40% 30% at 85% 8%, rgba(255,206,0,0.14), transparent 70%),
    radial-gradient(45% 35% at 12% 22%, rgba(226,0,26,0.14), transparent 70%),
    var(--bg);
}
:root[data-theme="flag"] .orb {
  background:
    radial-gradient(38% 38% at 34% 30%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(120% 120% at 70% 78%, #1a1a1d 0%, #5e0a16 32%, var(--blue) 62%, #FFCE00 118%);
  box-shadow:
    inset -22px -28px 60px rgba(0,0,0,0.6),
    inset 18px 18px 50px rgba(255,206,0,0.30),
    0 0 90px 8px rgba(226,0,26,0.45),
    0 0 180px 30px rgba(255,206,0,0.25);
}
:root[data-theme="flag"] .orb-ring { border-color: rgba(255,206,0,0.4); box-shadow: 0 0 40px rgba(255,206,0,0.25); }
:root[data-theme="flag"] .eyebrow { color: #FFCE00; }
:root[data-theme="flag"] .dot { background: #FFCE00; box-shadow: 0 0 10px #FFCE00; }
:root[data-theme="flag"] .stars-row,
:root[data-theme="flag"] .tcard .stars { color: #FFCE00; }

/* Black-background variant */
:root[data-bg="black"] { --bg: #08080A; --bg-2: #0d0d10; }

/* Flag stripe — slim Schwarz·Rot·Gold bar pinned to the very top */
.flag-stripe { display: none; }
:root[data-stripe="on"] .flag-stripe {
  display: block; position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 200;
  background: linear-gradient(90deg, #111114 0 33.33%, #E2001A 33.33% 66.66%, #FFCE00 66.66% 100%);
}
:root[data-stripe="on"] .nav { top: 4px; }

/* ===================== TWEAKS PANEL ===================== */
.tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 300;
  width: 290px; max-width: calc(100vw - 40px);
  padding: 18px; border-radius: var(--r-lg);
  background: rgba(10,12,26,0.92); backdrop-filter: blur(18px);
  border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px rgba(0,0,0,0.75);
  font-family: var(--font-body); color: var(--ink-soft);
  transform: translateY(14px) scale(0.98); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.tweaks.on { transform: none; opacity: 1; pointer-events: auto; }
.tweaks__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tweaks__title { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: #fff; }
.tweaks__x { background: none; border: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.tweaks__x:hover { color: #fff; }
.tw-row { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.tw-row.tw-toggle { flex-direction: row; align-items: center; justify-content: space-between; }
.tw-lbl { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tw-seg { display: flex; gap: 6px; }
.tw-seg button {
  flex: 1; font-family: var(--font-body); font-size: 13.5px; cursor: pointer;
  padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.03); color: var(--ink-soft); transition: all .18s ease;
}
.tw-seg button[aria-pressed="true"] { background: var(--grad-brand); color: #fff; border-color: transparent; }
.tw-sw { display: flex; gap: 10px; }
.tw-sw button { width: 38px; height: 38px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); transition: transform .15s ease; }
.tw-sw button[aria-pressed="true"] { border-color: #fff; transform: scale(1.08); }
.tw-switch {
  width: 44px; height: 26px; border-radius: 999px; cursor: pointer; position: relative;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.06); transition: background .2s ease;
}
.tw-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.tw-switch[aria-pressed="true"] { background: var(--blue); }
.tw-switch[aria-pressed="true"]::after { transform: translateX(18px); }
.tweaks__note { font-size: 11.5px; color: var(--muted); margin: 4px 0 0; line-height: 1.5; }
@media (max-width: 620px) { .tweaks { right: 12px; bottom: 12px; } }

/* ===========================================================================
   HOME UPGRADE — AI tutor, news, ticker, course grid, how-it-works, WhatsApp
   =========================================================================== */

/* ---- 🔊 say buttons ---- */
.say-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); color: var(--ink); font-size: 13px; cursor: pointer; flex-shrink: 0; transition: all .15s; vertical-align: middle; }
.say-btn:hover { border-color: rgba(120,160,255,0.6); background: rgba(79,125,255,0.1); }
.say-btn.saying { background: var(--grad-brand); border-color: transparent; transform: scale(1.08); }

/* ---- Select-any-text-to-hear-it popup ---- */
.dk-select-say { position: fixed; z-index: 400; transform: translate(-50%, 0) scale(0.9); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--grad-brand); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 13px;
  box-shadow: 0 10px 26px -8px rgba(122,90,255,0.6); transition: opacity .12s, transform .12s; }
.dk-select-say.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }

/* ---- Meet your AI tutor ---- */
.tutor-sec { }
.tutor-grid { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: center; }
.tutor-photo { position: relative; }
.tutor-photo img { width: 100%; height: 420px; object-fit: cover; object-position: 50% 18%; border-radius: var(--r-xl); border: 1px solid var(--line-2); box-shadow: var(--shadow-card); }
.tutor-photo .pulse { position: absolute; bottom: 18px; left: 18px; display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px; background: rgba(10,12,26,0.8); backdrop-filter: blur(10px); border: 1px solid var(--line-2); font-size: 13px; color: #fff; }
.tutor-photo .pulse i { width: 9px; height: 9px; border-radius: 50%; background: #2ea06e; box-shadow: 0 0 0 0 rgba(46,160,110,0.6); animation: pdot 2s infinite; }
@keyframes pdot { 0% { box-shadow: 0 0 0 0 rgba(46,160,110,0.5);} 70%{ box-shadow: 0 0 0 10px rgba(46,160,110,0);} 100%{ box-shadow:0 0 0 0 rgba(46,160,110,0);} }
.tutor-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.tutor-feat { display: flex; gap: 12px; align-items: flex-start; }
.tutor-feat .ic { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; font-size: 17px; background: linear-gradient(140deg, rgba(79,125,255,0.22), rgba(154,92,255,0.12)); border: 1px solid var(--line-2); }
.tutor-feat b { display: block; font-family: var(--font-head); font-size: 15px; color: #fff; }
.tutor-feat span { font-size: 13px; color: var(--ink-soft); }

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 30px 26px; border-radius: var(--r-lg); position: relative; }
.step__n { font-family: var(--font-head); font-weight: 700; font-size: 14px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad-brand); box-shadow: 0 8px 20px -6px rgba(122,90,255,0.5); margin-bottom: 18px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* ---- Course grid w/ locks ---- */
.cgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ccard { padding: 20px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 8px; position: relative; text-decoration: none; transition: transform .25s, border-color .25s; }
.ccard:hover { transform: translateY(-4px); }
.ccard__code { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: #fff; letter-spacing: -0.02em; }
.ccard__t { font-size: 13.5px; color: var(--ink-soft); line-height: 1.35; }
.ccard__lvl { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.ccard__lock { position: absolute; top: 16px; right: 16px; font-size: 15px; opacity: 0.6; }
.ccard.locked { opacity: 0.6; }
.ccard.locked:hover { transform: none; }
.ccard .ccard__go { margin-top: 6px; font-size: 12.5px; color: var(--cyan); }

/* ---- News section ---- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { padding: 22px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 10px; }
.news-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.news-tag { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 999px; }
.news-card h3 { font-size: 16.5px; line-height: 1.3; }
.news-card p { font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.news-link { font-size: 13px; color: var(--cyan); margin-top: auto; }

/* ---- News ticker ---- */
.ticker { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02); padding: 12px 0; }
.ticker__label { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 0 18px; background: var(--grad-brand); color: #fff; font-family: var(--font-head); font-size: 12.5px; font-weight: 600; }
.ticker__track { display: inline-flex; align-items: center; gap: 16px; white-space: nowrap; padding-left: 180px; animation: tick 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.tick-item { font-size: 13.5px; color: var(--ink-soft); }
.tick-dot { color: var(--cyan); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Podcasts ---- */
.pod-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.pod-tab { font-family: var(--font-body); font-size: 13.5px; cursor: pointer; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); color: var(--ink-soft); transition: all .15s; }
.pod-tab[aria-pressed="true"] { background: var(--grad-brand); color: #fff; border-color: transparent; }
.pod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pod-card { padding: 22px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 12px; }
.pod-card .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(140deg, rgba(56,224,232,0.2), rgba(79,125,255,0.12)); border: 1px solid var(--line-2); }
.pod-card h4 { font-family: var(--font-head); font-size: 16px; color: #fff; }
.pod-card p { font-size: 13px; color: var(--ink-soft); flex: 1; }
.pod-card .pod-lvl { font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--cyan); }
.pod-card .btn { align-self: flex-start; }

/* ---- Floating WhatsApp ---- */
.wa-fab { position: fixed; right: 20px; bottom: 90px; z-index: 290; width: 54px; height: 54px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,0.6); transition: transform .2s; }
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 28px; height: 28px; }

/* ===================== AI TUTOR WIDGET ===================== */
.tut-fab { position: fixed; right: 20px; bottom: 20px; z-index: 295; display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--grad-brand); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 14px; box-shadow: 0 12px 30px -8px rgba(122,90,255,0.6); transition: transform .2s; }
.tut-fab:hover { transform: translateY(-2px); }
.tut-fab__ic { font-size: 16px; }
.tut-panel { position: fixed; right: 20px; bottom: 20px; z-index: 296; width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 90px); display: flex; flex-direction: column;
  background: rgba(11,13,26,0.97); backdrop-filter: blur(20px); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: 0 40px 90px -20px rgba(0,0,0,0.8);
  transform: translateY(20px) scale(0.96); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.tut-panel.on { transform: none; opacity: 1; pointer-events: auto; }
.tut-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.tut-head b { font-family: var(--font-head); font-size: 15px; color: #fff; display: block; }
.tut-head span { font-size: 12px; color: var(--muted); }
.tut-head .tut-x { margin-left: auto; background: none; border: none; color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; }
.tut-ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: #fff; background: var(--grad-brand); flex-shrink: 0; }
.tut-ava.lg { width: 38px; height: 38px; }
.tut-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.tut-msg { display: flex; gap: 9px; align-items: flex-start; }
.tut-user { justify-content: flex-end; }
.tut-bubble { max-width: 80%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; position: relative; }
.tut-bot .tut-bubble { background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--ink); border-top-left-radius: 4px; }
.tut-user .tut-bubble { background: var(--grad-brand); color: #fff; border-top-right-radius: 4px; }
.tut-bubble i { color: var(--cyan); font-style: italic; }
.tut-bubble .hintn { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.tut-say { display: inline-flex; margin-left: 6px; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.05); color: var(--ink); cursor: pointer; font-size: 11px; vertical-align: middle; }
.tut-chips { display: flex; gap: 7px; padding: 0 16px 10px; flex-wrap: wrap; }
.tut-chips button { font-family: var(--font-body); font-size: 12px; cursor: pointer; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); color: var(--ink-soft); }
.tut-chips button:hover { border-color: rgba(120,160,255,0.6); color: #fff; }
.tut-form { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); }
.tut-form input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); border-radius: 999px; padding: 11px 16px; color: #fff; font-family: var(--font-body); font-size: 14px; }
.tut-form input:focus { outline: none; border-color: rgba(120,160,255,0.6); }
.tut-form button { width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer; background: var(--grad-brand); color: #fff; font-size: 18px; flex-shrink: 0; }
.tut-typing { display: inline-flex; gap: 4px; align-items: center; }
.tut-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); opacity: 0.5; animation: tutblink 1.2s infinite; }
.tut-typing span:nth-child(2) { animation-delay: 0.2s; }
.tut-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes tutblink { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.tut-gear { background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; margin-left: auto; padding: 0 4px; }
.tut-gear:hover { color: #fff; }
.tut-head .tut-x { margin-left: 4px; }

/* ---- Voice-clone settings modal ---- */
.vc-overlay { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(5,8,22,0.78); backdrop-filter: blur(8px); }
.vc-overlay.on { display: flex; }
.vc-modal { position: relative; max-width: 440px; width: 100%; padding: 32px; border-radius: var(--r-xl); background: rgba(13,15,28,0.98); border: 1px solid var(--line-2); box-shadow: 0 40px 90px -20px rgba(0,0,0,0.8); }
.vc-x { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--muted); font-size: 24px; cursor: pointer; }
.vc-ic { font-size: 34px; margin-bottom: 8px; }
.vc-modal h3 { font-size: 22px; margin-bottom: 8px; }
.vc-modal p { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; line-height: 1.55; }
.vc-lab { display: block; font-family: var(--font-head); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.vc-in { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 14px; color: #fff; font-family: var(--font-body); font-size: 14px; margin-bottom: 16px; }
.vc-in:focus { outline: none; border-color: rgba(120,160,255,0.6); }
.vc-toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; cursor: pointer; }
.vc-toggle input { width: 18px; height: 18px; accent-color: var(--blue); }
.vc-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.vc-status { font-size: 13px; color: var(--muted); }
.vc-actions { display: flex; gap: 10px; }
.vc-actions .btn { flex: 1; }
.vc-warn { font-size: 12px; color: var(--muted); margin: 16px 0 0; line-height: 1.5; padding: 12px 14px; border-radius: 10px; background: rgba(255,206,0,0.06); border: 1px solid rgba(255,206,0,0.18); }

@media (max-width: 1024px) { .cgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 920px) {
  .tutor-grid { grid-template-columns: 1fr; gap: 28px; }
  .tutor-photo img { height: 360px; max-width: 420px; }
  .news-grid, .pod-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .cgrid, .news-grid, .pod-grid, .tutor-feats { grid-template-columns: 1fr; }
  .tut-panel { right: 8px; bottom: 8px; height: calc(100vh - 80px); }
  .tut-fab__txt { display: none; }
  .wa-fab { bottom: 80px; }
}
