/* ============ Tokens ============ */
:root {
  --pink: #D72FA0;
  --pink-dark: #B4238A;
  --purple: #4D45A4;
  --purple-dark: #3B3580;
  --yellow: #F9AE3B;
  --yellow-dark: #E0952A;

  --ink: #211A33;
  --ink-soft: #574F73;
  --muted: #837C9C;
  --line: #E8E4F2;
  --surface: #FFFFFF;
  --surface-alt: #FBF8FF;

  --gradient: linear-gradient(120deg, var(--pink) 0%, var(--purple) 100%);

  --shadow-sm: 0 2px 8px rgba(33, 26, 51, 0.06);
  --shadow-md: 0 12px 32px rgba(77, 69, 164, 0.14);
  --shadow-lg: 0 24px 60px rgba(77, 69, 164, 0.18);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --container: 1160px;
  --font-head: 'Poppins', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ============ Reset ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; color: var(--ink-soft); line-height: 1.65; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

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

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn--white {
  background: #fff;
  color: var(--purple);
}
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ============ Topbar ============ */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: .82rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 8px 24px;
  flex-wrap: wrap;
  text-align: center;
}
.topbar a { color: var(--yellow); font-weight: 600; }
.topbar a:hover { color: #fff; }

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 34px; object-fit: contain; }
.brand__word {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .5px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.nav a:hover { color: var(--pink); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ============ Hero ============ */
.hero {
  background: radial-gradient(circle at 85% 10%, rgba(215,47,160,.10), transparent 55%),
              radial-gradient(circle at 5% 90%, rgba(77,69,164,.10), transparent 55%),
              var(--surface-alt);
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 14px;
}
.eyebrow--center { display: block; text-align: center; }
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 800;
}
.hero__lead {
  font-size: 1.08rem;
  max-width: 46ch;
}
.hero__actions {
  display: flex;
  gap: 14px;
  margin: 28px 0 40px;
  flex-wrap: wrap;
}
.hero__trust {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-family: var(--font-head); color: var(--purple); font-size: 1.1rem; }
.trust-item span { color: var(--muted); font-size: .85rem; }

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: var(--gradient);
  opacity: .08;
  border-radius: 50%;
  filter: blur(20px);
}
.hero__visual img {
  position: relative;
  max-width: 420px;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(77,69,164,.25));
}

/* ============ Objective banner ============ */
.objective {
  background: var(--gradient);
  padding: 44px 0;
}
.objective__inner { text-align: center; }
.objective__quote {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.5;
}
.objective__quote span { color: var(--yellow); }

/* ============ Sections ============ */
.section { padding: 88px 0; }
.section--alt { background: var(--surface-alt); }
.section__head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section__lead { font-size: 1.02rem; }

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.pillar__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pillar h3 { margin-top: 10px; }
.pillar p { margin: 0; font-size: .95rem; }

/* Feature blocks */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature-block--reverse .feature-block__text { order: 2; }
.feature-block--reverse .feature-block__visual { order: 1; }

.feature-block h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }

.check-list { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.check-list--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  max-width: 900px;
  margin: 0 auto;
}
.check-list li {
  position: relative;
  padding-left: 34px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 10px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.check-list strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
.check-list span { color: var(--ink-soft); font-size: .92rem; }

/* Icon cards */
.icon-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.icon-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.icon-card svg { width: 34px; height: 34px; margin: 0 auto 12px; }
.icon-card span { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); }
.icon-card--pink svg { color: var(--pink); }
.icon-card--purple svg { color: var(--purple); }
.icon-card--yellow svg { color: var(--yellow-dark); }
.icon-card:nth-child(odd) { transform: translateY(-10px); }

.icon-card-grid--row {
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin: 32px auto 48px;
}
.icon-card-grid--row .icon-card:nth-child(odd) { transform: none; }

/* Report card */
.report-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.report-card__head { display: flex; gap: 6px; margin-bottom: 20px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--pink { background: var(--pink); }
.dot--yellow { background: var(--yellow); }
.dot--purple { background: var(--purple); }
.report-row { margin-bottom: 16px; }
.report-row span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.bar { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  text-align: center;
  padding: 8px;
}
.step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .9rem; margin: 0; }

/* CTA */
.cta {
  background: var(--ink);
  padding: 72px 0;
}
.cta__inner { text-align: center; }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); max-width: 620px; margin: 0 auto .4em; }
.cta p { color: rgba(255,255,255,.7); max-width: 480px; margin: 0 auto 28px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.contact-card svg { width: 30px; height: 30px; margin: 0 auto 14px; color: var(--pink); }
.contact-card strong { display: block; color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.contact-card span { display: block; color: var(--purple); font-weight: 700; font-size: 1.05rem; }

/* ============ Footer ============ */
.footer {
  background: var(--ink);
  padding: 40px 0;
  color: rgba(255,255,255,.6);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}
.brand--footer .brand__word { -webkit-text-fill-color: #fff; background: none; color: #fff; }
.footer p { margin: 0; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer__nav { display: flex; gap: 20px; }
.footer__nav a { font-size: .85rem; color: rgba(255,255,255,.75); }
.footer__nav a:hover { color: var(--yellow); }
.footer__copy { width: 100%; text-align: center; margin-top: 14px; font-size: .78rem; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__visual img { max-width: 280px; }
  .pillars { grid-template-columns: 1fr; }
  .feature-block,
  .feature-block--reverse .feature-block__text,
  .feature-block--reverse .feature-block__visual {
    order: unset;
  }
  .feature-block { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .icon-card-grid--row { grid-template-columns: 1fr 1fr; }
  .check-list--grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .icon-card-grid--row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav, .header__cta { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: flex; }
  .icon-card:nth-child(odd) { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .topbar span { display: none; }
  .chat-demo { height: min(560px, 84vh); }
  .msg { max-width: 88%; }
  .demo-modal { padding: 10px; }
  .demo-modal__close { top: -10px; right: 4px; }
}

/* ============ Demo launcher ============ */
.demo-launcher {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.demo-launcher__img {
  max-width: 220px;
  filter: drop-shadow(0 16px 30px rgba(77,69,164,.2));
}
.demo-launcher__hint { margin: 0; font-size: .82rem; color: var(--muted); }

/* ============ Demo modal ============ */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.demo-modal[hidden] { display: none; }
.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 26, 51, .58);
  backdrop-filter: blur(3px);
  animation: fadeIn .18s ease;
}
.demo-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  animation: dialogIn .22s ease;
}
.demo-modal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.demo-modal__close:hover { color: var(--pink); }
.demo-modal__close svg { width: 16px; height: 16px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialogIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* ============ Chat demo ============ */
.chat-demo {
  width: 100%;
  height: min(640px, 84vh);
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chat-demo__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
  flex-shrink: 0;
}
.chat-demo__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
  box-shadow: var(--shadow-sm);
  object-fit: contain;
}
.chat-demo__title { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.chat-demo__title strong { font-size: .92rem; }
.chat-demo__title span { font-size: .76rem; color: var(--muted); }
.chat-demo__restart {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color .15s ease, color .15s ease;
}
.chat-demo__restart:hover { border-color: var(--pink); color: var(--pink); }

.chat-demo__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #fff, var(--surface-alt) 260px);
}
/* Flex items with overflow != visible (like .quiz-card, for its rounded-corner
   clipping) get an automatic minimum size of 0 instead of their content size,
   so once total chat content exceeds the fixed-height body, flexbox shrinks
   them toward zero to make room. flex-shrink: 0 keeps every message/card at
   its natural content height regardless of overflow. */
.chat-demo__body > * { flex-shrink: 0; }

.msg {
  max-width: 78%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: .9rem;
  line-height: 1.55;
  animation: msgIn .25s ease;
}
.msg--bot {
  align-self: flex-start;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.msg--user {
  align-self: flex-end;
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg--system {
  align-self: center;
  background: transparent;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
  max-width: 100%;
  padding: 2px;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.q-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--purple);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 8px;
}
.q-timer::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}
.q-timer.is-low { color: var(--pink); border-color: var(--pink); }
.q-timer.is-low::before { background: var(--pink); }

.quiz-card__media {
  overflow: hidden;
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quiz-card__media svg { width: 100%; height: auto; display: block; }

.video-mock {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  width: 100%;
  padding: 0;
}
.video-mock__play {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform .15s ease, opacity .15s ease;
}
.video-mock:hover .video-mock__play { transform: scale(1.08); }
.video-mock__play svg { width: 18px; height: 18px; }
.video-mock__label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: .7rem;
  color: #fff;
  background: rgba(0,0,0,.32);
  padding: 3px 9px;
  border-radius: 999px;
}
.video-mock__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--yellow);
  width: 0%;
}

/* Question card */
.quiz-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: msgIn .25s ease;
}
.quiz-card__meta {
  display: flex;
  justify-content: flex-end;
  padding: 10px 14px 0;
}
.quiz-card__question {
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  padding: 18px 22px;
  line-height: 1.4;
}
.quiz-card__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}
.quiz-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
  text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, opacity .15s ease;
}
.quiz-tile--a { background: var(--pink); }
.quiz-tile--b { background: var(--purple); }
.quiz-tile:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quiz-tile.is-selected { box-shadow: 0 0 0 3px #fff inset, 0 0 0 5px currentColor; }
.quiz-tile.is-dimmed { opacity: .35; }
.quiz-tile:disabled { cursor: default; }

@media (max-width: 480px) {
  .quiz-card__options { grid-template-columns: 1fr; }
}

.demo-summary {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.demo-summary strong { color: var(--purple); }

.chat-demo__footer {
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  background: #fff;
  flex-shrink: 0;
}
.chat-demo__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.chat-demo__input-row { display: flex; gap: 10px; }
.chat-demo__input-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: .88rem;
  color: var(--ink);
  background: var(--surface-alt);
}
.chat-demo__input-row input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(215,47,160,.14);
  background: #fff;
}
.btn--sm { padding: 9px 18px; font-size: .84rem; }
