:root {
  --bg: #f7f9fc;
  --surface: rgba(255, 255, 255, 0.82);
  --card: #ffffff;
  --ink: #0d1b2a;
  --muted: #5c6b7a;
  --line: #dde6ef;
  --navy: #102a43;
  --blue: #3b82f6;
  --purple: #6d28d9;
  --soft-purple: #f3e8ff;
  --gold: #f3b600;
  --teal: #0f9488;
  --shadow: 0 24px 70px rgba(16, 42, 67, 0.13);
  --radius: 22px;
}

[data-theme-mode="dark"] {
  --bg: #0d1624;
  --surface: rgba(17, 28, 45, 0.78);
  --card: #111c2d;
  --ink: #f7fbff;
  --muted: #a7b4c3;
  --line: #26374c;
  --navy: #dcecff;
  --soft-purple: #221336;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(109, 40, 217, 0.10), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.10), transparent 26%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.animated-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, .055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 78%);
  animation: gridDrift 18s linear infinite;
}
.animated-bg span {
  position: absolute;
  width: clamp(220px, 28vw, 480px);
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(34px);
  opacity: .22;
  animation: orbFloat 16s ease-in-out infinite;
}
.animated-bg span:nth-child(1) { left: -6%; top: 10%; background: #60a5fa; }
.animated-bg span:nth-child(2) { right: -8%; top: 20%; background: #a5b4fc; animation-delay: -5s; }
.animated-bg span:nth-child(3) { left: 34%; bottom: -20%; background: #99f6e4; animation-delay: -9s; }

[data-theme-mode="dark"] .animated-bg::before {
  background-image:
    linear-gradient(rgba(147, 197, 253, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, .07) 1px, transparent 1px);
}
[data-theme-mode="dark"] .animated-bg span { opacity: .16; }

.loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  z-index: 100;
  transition: opacity .35s ease, visibility .35s ease;
}
.loader span {
  width: 52px;
  height: 52px;
  border: 4px solid var(--line);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loader.hide { opacity: 0; visibility: hidden; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 54px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}
.trial-link, .nav-trial {
  padding: 11px 14px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(109, 40, 217, .22);
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.brand img {
  width: 92px;
  height: 68px;
  object-fit: contain;
  transition: transform .25s ease;
}
.brand:hover img { transform: translateY(-2px) scale(1.04); }
.brand strong { display: block; font-family: Poppins, sans-serif; font-size: 26px; }
.brand small { display: block; color: var(--muted); font-weight: 700; }
.nav-links { display: flex; justify-content: flex-end; align-items: center; gap: 18px; color: var(--muted); font-weight: 800; grid-column: 3; }
.nav-links.always { display: flex; }
.nav-trial { color: #fff !important; margin-left: 4px; }
.nav-links a:hover { color: var(--purple); }
.theme-toggle, .menu-btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 13px;
  min-height: 42px;
  padding: 0 13px;
  font-weight: 800;
  cursor: pointer;
}
.menu-btn { display: none; }
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}
.theme-switch span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #facc15, #60a5fa);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55);
}
[data-theme-mode="dark"] .theme-switch span {
  background: linear-gradient(135deg, #dbeafe, #1e3a8a);
}

.section, .hero { padding: clamp(56px, 8vw, 104px) clamp(16px, 6vw, 84px); }
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 82px);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 900;
  font-size: 12px;
}
.hero-logo { width: 82px; margin-bottom: 18px; filter: drop-shadow(0 18px 24px rgba(16,42,67,.14)); }
h1, h2, h3 { font-family: Poppins, Inter, sans-serif; letter-spacing: -0.02em; }
.hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: .98;
}
.hero h1 span { color: var(--gold); }
.hero-copy > p { max-width: 720px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }
.hero-checks { display: grid; gap: 12px; margin: 28px 0; }
.hero-checks span {
  position: relative;
  padding-left: 40px;
  font-size: 18px;
  font-weight: 800;
}
.hero-checks span::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 50%;
}
.hero-checks span::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.hero-actions, .mini-actions, .socials { display: flex; flex-wrap: wrap; gap: 12px; }
.btn, .mini-actions a, .course-card a, .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn.primary, .course-card a:first-child { background: var(--teal); color: #fff; }
.btn.navy { background: #102a43; color: #fff; }
.btn.ghost, .mini-actions a, .course-card a:last-child { background: var(--card); color: var(--ink); border-color: var(--line); }
.hero-card { position: relative; }
.hero-card img, .visual-panel img {
  width: 100%;
  aspect-ratio: 1.08;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.glass-note {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 18px;
  color: #fff;
  background: rgba(16, 42, 67, .62);
  backdrop-filter: blur(18px);
}
.glass-note span { display: block; color: rgba(255,255,255,.82); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-block: 28px;
}
.page-shell {
  min-height: calc(100vh - 82px);
  padding: clamp(38px, 7vw, 86px) clamp(16px, 6vw, 84px);
}
.standalone {
  padding: 0;
}
.role-page {
  display: grid;
  gap: 22px;
}
.role-page h1, .auth-card h1, .trial-section h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
}
.standalone-card {
  max-width: 760px;
  margin: 0 auto;
}
.detail-hero {
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin-bottom: 28px;
}
.detail-hero h1, .standalone-card h1, .split h1, .contact h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
}
.detail-hero p, .standalone-card p {
  color: var(--muted);
  font-size: 18px;
}
.logo-story {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: center;
  background: linear-gradient(135deg, rgba(243,232,255,.76), rgba(255,255,255,.7));
  border-block: 1px solid var(--line);
}
.logo-tile {
  display: grid;
  place-items: center;
  min-height: 190px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #8b2df2, #9f35ef);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.logo-tile img {
  width: 210px;
  transition: transform .25s ease;
}
.logo-tile:hover img { transform: scale(1.05) rotate(-1deg); }
.logo-story h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}
.logo-story p:last-child {
  max-width: 900px;
  color: var(--muted);
  font-size: 18px;
}
.stats article, .feature-grid article, .course-card, .auth-card, .dashboard-layout, .testimonial-track article, .accordion details, .contact-main, .chart-card, .table-card, .metric-row article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(16,42,67,.08);
  backdrop-filter: blur(12px);
}
.stats article { padding: 24px; text-align: center; }
.stats strong { display: block; font-size: 36px; color: var(--purple); }
.stats span { color: var(--muted); font-weight: 800; }

.split { display: grid; grid-template-columns: 1fr .9fr; gap: 36px; align-items: center; }
.section-title { text-align: center; max-width: 900px; margin: 0 auto 34px; }
.section-title.left { text-align: left; margin-inline: 0; }
.section-title h2, .split h2, .auth-card h2 { margin: 0; font-size: clamp(30px, 4vw, 54px); line-height: 1.08; color: var(--navy); }
.section-title p, .split p { color: var(--muted); font-size: 18px; }

.feature-band { background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(243,232,255,.5)); border-block: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-grid article { min-height: 190px; padding: 28px; text-align: center; display: grid; place-items: center; align-content: center; gap: 14px; }
.feature-grid span { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--soft-purple); color: var(--purple); font-size: 30px; font-weight: 900; }
.feature-grid h3 { margin: 0; font-size: 19px; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.course-card { padding: 18px; overflow: hidden; }
.course-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 17px; margin-bottom: 18px; }
.course-card span { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: #e6fffb; color: #0f766e; font-weight: 900; font-size: 12px; }
.course-card h3 { font-size: 26px; margin: 12px 0 8px; }
.course-card p { color: var(--muted); }
.course-card strong { display: block; margin: 14px 0; }
.course-card div { display: flex; flex-wrap: wrap; gap: 10px; }

.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.auth-card { padding: 26px; }
form { display: grid; gap: 13px; }
label { display: grid; gap: 7px; color: var(--ink); font-weight: 800; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--card);
  outline: none;
}
textarea { min-height: 112px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(109,40,217,.12); }
.forgot-box { margin-top: 18px; padding: 16px; background: #102a43; color: #fff; border-radius: 16px; }
.forgot-box summary { cursor: pointer; font-weight: 900; }
.forgot-box form { margin-top: 16px; }
.forgot-box label { color: #fff; }
.alert { padding: 12px 14px; border-radius: 13px; background: #e6fffb; color: #0f766e; font-weight: 800; }
.alert.error { background: #fff1f2; color: #be123c; }

.dashboard-layout { display: grid; grid-template-columns: 220px 1fr; padding: 20px; gap: 20px; }
.dashboard-layout aside { display: grid; align-content: start; gap: 10px; }
.dashboard-layout aside button { min-height: 46px; border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 14px; font-weight: 900; cursor: pointer; }
.dashboard-layout aside button.active { background: var(--purple); color: #fff; }
.dash-content { display: grid; gap: 16px; }
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-row article { padding: 18px; }
.metric-row span { color: var(--muted); font-weight: 800; }
.metric-row strong { display: block; font-size: 30px; color: var(--purple); }
.chart-card, .table-card { padding: 20px; }
.bars { height: 210px; display: flex; align-items: end; gap: 14px; padding-top: 20px; }
.bars i { flex: 1; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, var(--blue), var(--purple)); animation: grow .8s ease both; }
table { width: 100%; border-collapse: collapse; }
td { padding: 12px; border-top: 1px solid var(--line); color: var(--muted); }

.trial-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.wide { grid-column: 1 / -1; }

.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial-track article { padding: 24px; animation: floaty 5s ease-in-out infinite; }
.testimonial-track article:nth-child(2) { animation-delay: .5s; }
.testimonial-track img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.testimonial-track span { color: var(--gold); letter-spacing: .08em; }
.testimonial-track p { color: var(--muted); }

.gallery-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 16px; }
.gallery-grid img { width: 100%; height: 330px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

.accordion { display: grid; gap: 16px; max-width: 960px; margin: auto; }
.accordion details { overflow: hidden; transition: all .25s ease; }
.accordion summary { padding: 22px 26px; cursor: pointer; color: var(--purple); font-size: 22px; font-weight: 900; list-style: none; }
.accordion summary::after { content: "+"; float: right; }
.accordion details[open] summary::after { content: "-"; }
.accordion p { margin: 0; padding: 0 26px 22px; color: var(--muted); animation: fadeIn .25s ease; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.contact-main { display: flex; gap: 22px; align-items: center; padding: 28px; }
.contact-main img { width: 112px; }
.socials a { border-color: var(--purple); color: var(--purple); background: var(--card); }
.contact iframe { width: 100%; min-height: 320px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

footer { padding: 34px clamp(16px, 6vw, 84px); display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: #102a43; color: #fff; }
footer nav { display: flex; gap: 16px; color: #dbeafe; font-weight: 800; }
footer p { color: #b8c7d8; }

.chatbot { position: fixed; right: 22px; bottom: 22px; z-index: 80; }
.chatbot > button { min-height: 52px; padding: 0 18px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--purple), var(--blue)); font-weight: 900; box-shadow: var(--shadow); cursor: pointer; }
.chatbot section { display: none; width: min(360px, calc(100vw - 32px)); margin-bottom: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.chatbot.open section { display: block; }
.chatbot header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #102a43; color: #fff; }
.chatbot header button { border: 0; background: transparent; color: #fff; font-weight: 800; cursor: pointer; }
.chat-log { max-height: 260px; overflow: auto; padding: 14px; display: grid; gap: 10px; }
.chat-log p { margin: 0; padding: 10px; border-radius: 12px; background: var(--bg); color: var(--ink); }
.chatbot form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chatbot form button { border: 0; border-radius: 12px; padding: 0 14px; background: var(--teal); color: #fff; font-weight: 900; }

.section-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.section-reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow { from { height: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes gridDrift { from { background-position: 0 0; } to { background-position: 54px 54px; } }
@keyframes orbFloat {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(24px,-34px,0) scale(1.08); }
}

@media (max-width: 1100px) {
  .navbar { grid-template-columns: auto 1fr auto; }
  .trial-link { order: 3; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .nav-links.always {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav-links.open { display: flex; }
  .hero, .split, .auth-grid, .contact, .logo-story { grid-template-columns: 1fr; }
  .feature-grid, .stats, .metric-row { grid-template-columns: repeat(2, 1fr); }
  .course-grid, .testimonial-track { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .navbar { gap: 10px; padding: 10px 12px; }
  .trial-link { grid-column: 1 / -1; text-align: center; }
  .brand img { width: 68px; height: 52px; }
  .brand small { display: none; }
  .hero h1 { font-size: 42px; }
  .stats, .feature-grid, .course-grid, .testimonial-track, .metric-row, .trial-form, .gallery-grid, .dashboard-layout { grid-template-columns: 1fr; }
  .gallery-grid img { height: 240px; }
  .contact-main { flex-direction: column; align-items: flex-start; }
  footer { align-items: flex-start; flex-direction: column; }
}
