:root {
  --ink: #20202a;
  --muted: #69697a;
  --cream: #fffdf8;
  --lavender: #ece8ff;
  --purple: #6855d9;
  --green: #36b781;
  --line: #e6e3dc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Poppins, sans-serif; }

.topbar, .hero, footer { max-width: 1240px; margin: auto; padding-right: 28px; padding-left: 28px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.brand { display: flex; gap: 9px; align-items: center; color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -1px; text-decoration: none; }
.brand > span > span { color: var(--purple); }
.brand-mark { display: grid; width: 31px; height: 31px; place-items: center; color: #fff; background: var(--purple); border-radius: 10px; font-size: 16px; }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a { color: #565667; font-size: 14px; font-weight: 600; text-decoration: none; }
.nav .nav-cta { padding: 11px 17px; color: var(--ink); border: 1px solid #d6d2c9; border-radius: 8px; }
.menu-toggle { display: none; padding: 7px; background: none; border: 0; }

.hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; min-height: 610px; padding-top: 65px; padding-bottom: 85px; }
.eyebrow { margin: 0 0 16px; color: var(--purple); font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.online-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--green); border-radius: 50%; }
h1, h2 { margin: 0; font-size: clamp(45px, 5.2vw, 72px); font-weight: 700; line-height: .99; letter-spacing: -3px; }
h1 em, h2 em { color: var(--purple); font-family: Georgia, serif; font-weight: 400; }
.hero-text { max-width: 480px; margin: 27px 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; }
.hero-actions { gap: 25px; }
.button { display: inline-flex; gap: 22px; align-items: center; padding: 15px 19px; border-radius: 9px; font-size: 14px; font-weight: 700; text-decoration: none; }
.button span { font-size: 20px; }
.button-primary { color: #fff; background: var(--purple); box-shadow: 0 12px 24px #6855d931; }
.text-link { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.text-link span { margin-left: 6px; color: var(--purple); }

.hero-visual { position: relative; display: grid; height: 485px; place-items: center; }
.sun-orb, .grid-orb { position: absolute; border-radius: 50%; }
.sun-orb { width: 410px; height: 410px; background: #f6bf79; opacity: .6; }
.grid-orb { width: 440px; height: 440px; background-image: radial-gradient(#cf8f57 1px, transparent 1px); background-size: 15px 15px; opacity: .35; mask-image: radial-gradient(circle, #000 50%, transparent 71%); }
.phone { position: relative; z-index: 1; width: 257px; height: 495px; overflow: hidden; background: #e8ddd0; border: 8px solid #24232b; border-radius: 32px; box-shadow: 0 23px 36px #713f1c36; }
.phone-speaker { position: absolute; z-index: 2; top: 7px; left: 50%; width: 70px; height: 16px; background: #24232b; border-radius: 0 0 12px 12px; transform: translateX(-50%); }
.chat-head { display: flex; gap: 8px; align-items: center; height: 74px; padding: 24px 10px 8px; background: #f8f4ec; font-size: 11px; }
.chat-head .back { color: #5c5857; font-size: 28px; line-height: 0; }
.bot-avatar, .floating-card > span { display: grid; place-items: center; color: #fff; background: var(--purple); }
.bot-avatar { width: 27px; height: 27px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.chat-head strong, .chat-head small { display: block; }
.chat-head small { color: #2a9a5d; font-size: 8px; }
.dots { margin-left: auto; font-weight: 700; }
.chat-body { height: 381px; padding: 14px 10px; background-color: #ebe2d7; background-image: radial-gradient(#d6cabd .6px, transparent .6px); background-size: 10px 10px; }
.chat-date { width: max-content; padding: 4px 7px; margin: 0 auto 12px; color: #726f6c; background: #d9d2c9; border-radius: 4px; font-size: 7px; }
.bubble { max-width: 205px; padding: 8px 9px; margin: 7px 0; background: #fff; border-radius: 8px; box-shadow: 0 1px 1px #00000010; font-size: 9px; line-height: 1.35; }
.bot { border-top-left-radius: 1px; }
.user { margin-left: auto; background: #d3f6bf; border-top-right-radius: 1px; }
.choices { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.choices button { padding: 4px 7px; color: var(--purple); background: #f6f3ff; border: 1px solid #d9d0f7; border-radius: 4px; font: 600 8px Poppins, sans-serif; }
.typing { margin: 13px 4px; color: #777; font-size: 8px; }
.typing span { animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
.chat-input { display: flex; gap: 9px; align-items: center; height: 36px; padding: 7px 9px; color: #999; background: #f8f4ec; font-size: 8px; }
.chat-input span:nth-child(2) { flex: 1; }
.chat-input b { color: var(--purple); }
.floating-card { position: absolute; z-index: 2; display: flex; gap: 9px; align-items: center; padding: 10px 12px; background: #fffc; border: 1px solid #ffffff99; border-radius: 10px; box-shadow: 0 10px 25px #5638211a; backdrop-filter: blur(8px); }
.floating-card > span { width: 29px; height: 29px; border-radius: 8px; }
.floating-card small, .floating-card strong { display: block; font-size: 9px; }
.floating-card small { color: var(--muted); }
.floating-card strong { font-size: 10px; }
.progress-card { top: 80px; right: 0; }
.lesson-card { bottom: 45px; left: 0; }
.lesson-card > span { background: var(--green); }

.intro, .impact { padding: 100px max(28px, calc((100% - 1120px) / 2)); }
.intro { background: #fff; }
.section-heading { display: flex; gap: 50px; justify-content: space-between; }
.section-heading h2, .how h2, .impact h2, .contact h2 { font-size: 45px; letter-spacing: -2px; }
.section-heading > p { align-self: end; max-width: 340px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-grid { margin-top: 63px; }
.feature-card { padding: 26px 22px; border: 1px solid var(--line); border-radius: 13px; }
.feature-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; font-size: 20px; }
.feature-icon svg { width: 22px; height: 22px; fill: currentColor; }
.violet { color: var(--purple); background: #ebe7ff; }
.orange { color: #ed8c21; background: #fff0df; }
.green { color: var(--green); background: #e2f8ee; }
.feature-card h3, .steps h3 { margin: 22px 0 8px; font-size: 18px; font-weight: 600; }
.feature-card p, .steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; max-width: 1120px; padding: 105px 28px; margin: auto; }
.how-copy > p:last-child { max-width: 350px; margin-top: 22px; color: var(--muted); line-height: 1.65; }
.steps { padding: 0; margin: 2px 0 0; list-style: none; }
.steps li { display: flex; gap: 24px; padding: 0 0 26px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border: 0; }
.steps li > span { color: #b7b0de; font-size: 15px; font-weight: 600; }
.steps h3 { margin-top: 0; }
.impact { background: var(--lavender); }
.impact h2 { font-size: 47px; }
.collaborators { max-width: 1120px; padding: 88px 0; margin: auto; }
.collaborators h2 { font-size: 46px; }
.collaborators-intro { max-width: 560px; margin: 20px 0 40px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; }
.contact-card { padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.contact-icon { display: grid; width: 42px; height: 42px; place-items: center; color: var(--purple); background: var(--lavender); border-radius: 11px; font-size: 18px; font-weight: 700; }
.contact-icon svg { width: 21px; height: 21px; fill: currentColor; }
.contact-card h3 { margin: 21px 0 8px; font-size: 17px; }
.contact-card p { min-height: 44px; margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.github-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; padding: 9px 12px; color: var(--ink); background: #f4f3f7; border-radius: 7px; font-size: 12px; font-weight: 600; text-decoration: none; transition: background .2s ease, color .2s ease; }
.github-link:hover { color: #fff; background: var(--purple); }
.github-link svg { width: 17px; height: 17px; fill: currentColor; }
.contact-note { margin: 22px 0 0; color: var(--muted); font-size: 12px; font-style: italic; }
footer { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding-top: 25px; padding-bottom: 25px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
footer .brand { font-size: 18px; }
footer .brand-mark { width: 25px; height: 25px; font-size: 13px; }
footer a:last-child { color: var(--ink); font-weight: 600; text-decoration: none; }
.reveal { animation: appear .8s ease both; }

@keyframes blink { 50% { opacity: .2; } }
@keyframes appear { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .topbar, .hero, footer { padding-right: 20px; padding-left: 20px; }
  .topbar { height: 70px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; width: 36px; }
  .menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); }
  .nav { position: absolute; z-index: 5; top: 70px; right: 0; left: 0; display: none; flex-direction: column; gap: 18px; align-items: stretch; padding: 20px; background: #fff; box-shadow: 0 8px 20px #0001; }
  .nav.open { display: flex; }
  .nav .nav-cta { text-align: center; }
  .hero { display: block; min-height: 0; padding-top: 54px; padding-bottom: 69px; }
  .hero h1 { font-size: 50px; letter-spacing: -2.5px; }
  .hero-text { font-size: 16px; }
  .hero-actions { flex-direction: column; gap: 18px; align-items: flex-start; }
  .hero-visual { height: 435px; margin-top: 35px; }
  .sun-orb { width: 330px; height: 330px; }
  .grid-orb { width: 370px; height: 370px; }
  .phone { transform: scale(.87); }
  .progress-card { top: 56px; right: -5px; }
  .lesson-card { bottom: 25px; left: -3px; }
  .intro, .impact { padding: 76px 23px; }
  .section-heading, .how { display: block; }
  .section-heading h2, .how h2, .impact h2, .collaborators h2 { font-size: 37px; letter-spacing: -1.7px; }
  .section-heading > p { margin-top: 25px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid { margin-top: 35px; }
  .how { padding: 76px 23px; }
  .steps { margin-top: 45px; }
  .collaborators { padding: 54px 23px; }
  .contact-grid { grid-template-columns: 1fr; }
  footer p { order: 3; width: 100%; margin: 0; }
}
