:root {
  --background: #0a0d14;
  --background-soft: #13151c;
  --surface: #151822;
  --surface-raised: #1a1d29;
  --surface-light: #252932;
  --ink: #ffffff;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, .12);
  --line-soft: rgba(255, 255, 255, .07);
  --accent: #6366f1;
  --secondary: #8b5cf6;
  --accent-dark: #5558dc;
  --accent-soft: rgba(99, 102, 241, .14);
  --dark: #080a12;
  --dark-muted: #9ca3af;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: 1160px;
  --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection { color: #fff; background: var(--accent); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.section { padding: 120px 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 1000; padding: 10px 16px; color: var(--background); background: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 16px; }
.eyebrow { margin-bottom: 16px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
h1, h2 { max-width: 850px; font-weight: 600; letter-spacing: -.045em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 5vw, 4.8rem); }
h2 { font-size: clamp(2.35rem, 3.6vw, 3.25rem); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-height); border-bottom: 1px solid transparent; transition: background .2s ease, border-color .2s ease; }
.site-header.scrolled { border-color: var(--line-soft); background: rgba(10, 13, 20, .9); backdrop-filter: blur(16px); }
.header-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-size: 17px; font-weight: 700; letter-spacing: -.03em; }
.brand img { border-radius: 9px; }
.main-nav { display: flex; align-items: center; gap: 32px; color: var(--muted); font-size: 14px; font-weight: 500; }
.main-nav a, .footer-inner nav a { transition: color .2s ease; }
.main-nav a:hover, .footer-inner nav a:hover { color: var(--ink); }
.header-cta { justify-self: end; padding: 9px 15px; color: #fff; background: linear-gradient(120deg, var(--accent), var(--secondary)); border-radius: 9px; font-size: 13px; font-weight: 600; }
.menu-button { display: none; justify-self: end; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.menu-button span { display: block; width: 16px; height: 1px; margin: 5px auto; background: var(--ink); transition: transform .2s ease; }

/* Buttons */
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 0 21px; border: 1px solid transparent; border-radius: 11px; font-size: 14px; font-weight: 600; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: linear-gradient(120deg, var(--accent), var(--secondary)); }
.button-primary:hover { background: linear-gradient(120deg, var(--accent-dark), #7c4ce0); }
.button-secondary { border-color: var(--line); background: var(--surface); }
.button-secondary:hover { border-color: rgba(255, 255, 255, .24); background: var(--surface-raised); }
.button-light { color: #fff; background: linear-gradient(120deg, var(--accent), var(--secondary)); }
.text-link { display: inline-flex; align-items: center; gap: 16px; margin-top: 28px; color: var(--accent); font-size: 14px; font-weight: 600; }

/* Hero */
.hero { padding: 170px 0 100px; background: radial-gradient(circle at 78% 24%, rgba(99, 102, 241, .12), transparent 28%), var(--background); }
.hero-inner { display: grid; grid-template-columns: .82fr 1.18fr; gap: 76px; align-items: center; }
.hero-lead { max-width: 610px; margin: 28px 0 32px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 12px; }

/* Product preview */
.product-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 32px 80px rgba(0, 0, 0, .3); }
.preview-bar { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #ddd9e3; font-size: 12px; }
.preview-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.preview-brand img { border-radius: 5px; }
.preview-level { padding: 4px 8px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 99px; color: var(--dark-muted); font-size: 10px; }
.preview-content { display: grid; grid-template-columns: 1fr 190px; }
.preview-video { min-height: 390px; position: relative; overflow: hidden; background: linear-gradient(180deg, #7d7892 0 48%, #2a2632 48% 100%); }
.preview-video::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 21, 30, .35), transparent 55%), linear-gradient(0deg, rgba(23, 21, 30, .65), transparent 50%); }
.preview-orb { position: absolute; top: 50px; right: 45px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 220, 194, .65); box-shadow: 0 0 60px rgba(255, 210, 180, .3); }
.preview-silhouette { position: absolute; left: 24%; bottom: 55px; width: 48px; height: 135px; border-radius: 50% 50% 8px 8px; background: #1b1820; box-shadow: 0 -38px 0 -9px #1b1820; }
.preview-subtitle { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: max-content; max-width: 90%; padding: 10px 14px; color: #fff; background: rgba(15, 13, 19, .78); border-radius: 7px; font-size: 14px; font-weight: 500; text-align: center; }
.preview-subtitle mark { padding: 2px 4px; color: #1a1720; background: #d8d2ff; border-radius: 4px; }
.preview-word { display: flex; flex-direction: column; justify-content: center; padding: 20px; border-left: 1px solid rgba(255, 255, 255, .1); color: #f5f3f7; }
.preview-word > span { color: #8d80ed; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.preview-word strong { margin: 5px 0 8px; font-size: 20px; }
.preview-word p { color: var(--dark-muted); font-size: 12px; }
.preview-word button { margin-top: 24px; padding: 10px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 8px; color: #fff; background: transparent; font-size: 11px; font-weight: 600; }

/* Workflow */
.workflow { border-top: 1px solid var(--line-soft); background: var(--background-soft); }
.section-heading > p:last-child { max-width: 530px; margin-top: 20px; color: var(--muted); font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 56px; }
.feature-card { min-height: 240px; padding: 26px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface); }
.feature-number { display: block; margin-bottom: 52px; color: var(--muted); font-size: 11px; font-weight: 600; }
.feature-card h3 { margin-bottom: 10px; font-size: 20px; letter-spacing: -.025em; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.shadow-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-top: 20px; padding: 48px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--surface-raised); }
.shadow-copy h3 { max-width: 460px; font-size: 28px; line-height: 1.2; letter-spacing: -.035em; }
.shadow-copy > p:last-child { max-width: 530px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.shadow-steps { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.shadow-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.shadow-steps li:last-child { border-bottom: 0; }
.shadow-steps li > span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #c7c8ff; font-size: 11px; }
.shadow-steps strong, .shadow-steps small { display: block; }
.shadow-steps strong { font-size: 14px; }
.shadow-steps small { margin-top: 2px; color: var(--muted); font-size: 12px; }

/* MCP and flashcards */
.mcp-section { position: relative; overflow: hidden; border-top: 1px solid var(--line-soft); background: var(--background); }
.mcp-section::before { content: ""; position: absolute; top: 80px; right: -180px; width: 520px; height: 520px; border-radius: 50%; background: rgba(99, 102, 241, .08); filter: blur(90px); pointer-events: none; }
.mcp-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 92px; align-items: center; position: relative; }
.mcp-copy > p:not(.eyebrow):not(.mcp-security) { max-width: 570px; margin-top: 24px; color: var(--muted); font-size: 16px; }
.mcp-steps { display: grid; gap: 0; margin: 34px 0 0; padding: 0; list-style: none; }
.mcp-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.mcp-steps li > span { padding-top: 2px; color: #a9abff; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.mcp-steps strong { display: block; font-size: 14px; }
.mcp-steps p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.mcp-security { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; color: #b7bcc6; font-size: 11px; }
.mcp-security span { flex: 0 0 auto; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #0a0d14; background: #a7e66e; font-size: 10px; font-weight: 700; }
.mcp-visual { min-height: 560px; position: relative; padding: 70px 34px 34px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, var(--surface-raised), var(--surface)); box-shadow: 0 34px 80px rgba(0, 0, 0, .28); }
.mcp-flow { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; width: max-content; color: var(--muted); font-size: 10px; }
.mcp-flow span, .mcp-flow strong { padding: 5px 8px; border: 1px solid var(--line); border-radius: 99px; background: rgba(10, 13, 20, .5); }
.mcp-flow strong { color: #d8d5ff; border-color: rgba(99, 102, 241, .45); background: var(--accent-soft); font-size: 9px; letter-spacing: .08em; }
.mcp-flow i { color: #6b7280; font-style: normal; }
.chat-window { overflow: hidden; padding-bottom: 76px; border: 1px solid var(--line-soft); border-radius: 13px; background: #10131b; }
.window-title { height: 42px; display: flex; align-items: center; gap: 6px; padding: 0 13px; border-bottom: 1px solid var(--line-soft); }
.window-title > span { width: 6px; height: 6px; border-radius: 50%; background: #4b4f5a; }
.window-title p { margin-left: 6px; color: #8b919d; font-size: 9px; }
.chat-message { max-width: 82%; margin: 18px; padding: 12px 14px; border-radius: 10px; color: #d7d9df; font-size: 11px; line-height: 1.6; }
.user-message { margin-left: auto; background: var(--surface-light); }
.ai-message { background: rgba(99, 102, 241, .12); border: 1px solid rgba(99, 102, 241, .18); }
.mcp-status { display: flex; align-items: center; gap: 10px; margin: 24px 18px 0; padding: 12px; border: 1px solid rgba(167, 230, 110, .18); border-radius: 10px; background: rgba(167, 230, 110, .06); }
.status-mark { flex: 0 0 auto; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #11170c; background: #a7e66e; font-size: 11px; font-weight: 700; }
.mcp-status strong, .mcp-status small { display: block; }
.mcp-status strong { color: #e5e8dd; font-size: 10px; }
.mcp-status small { margin-top: 2px; color: #92998c; font-size: 8px; }
.suggestion-card { position: absolute; right: 18px; bottom: 24px; width: min(340px, calc(100% - 52px)); padding: 20px; border: 1px solid rgba(139, 92, 246, .35); border-radius: 13px; background: #1f2230; box-shadow: 0 24px 50px rgba(0, 0, 0, .36); }
.suggestion-head { display: flex; justify-content: space-between; margin-bottom: 16px; }
.suggestion-head span { padding: 3px 7px; border-radius: 99px; color: #c7c8ff; background: var(--accent-soft); font-size: 8px; font-weight: 700; }
.suggestion-head small { color: var(--muted); font-size: 8px; }
.suggestion-card > strong { display: block; font-size: 13px; }
.suggestion-card > p { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.suggestion-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 18px; font-size: 9px; font-weight: 600; }
.suggestion-actions span { color: var(--muted); }
.suggestion-actions b { padding: 7px 10px; border-radius: 7px; color: #fff; background: linear-gradient(120deg, var(--accent), var(--secondary)); font-weight: 600; }
.flashcard-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 82px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.flashcard-grid article { padding: 28px 24px; border-right: 1px solid var(--line-soft); }
.flashcard-grid article:first-child { padding-left: 0; }
.flashcard-grid article:last-child { padding-right: 0; border-right: 0; }
.flashcard-grid article > span { color: #a9abff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.flashcard-grid h3 { margin: 14px 0 8px; font-size: 16px; letter-spacing: -.025em; }
.flashcard-grid p { color: var(--muted); font-size: 12px; line-height: 1.65; }

/* Teachers */
.teacher-section { overflow: hidden; }
.teacher-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; align-items: center; }
.teacher-copy > p:not(.eyebrow) { max-width: 530px; margin-top: 24px; color: var(--muted); font-size: 17px; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.role-grid strong, .role-grid span { display: block; }
.role-grid strong { margin-bottom: 7px; color: #c7c8ff; font-size: 12px; }
.role-grid span { color: var(--muted); font-size: 12px; line-height: 1.65; }
.teacher-card { max-width: 530px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 24px 60px rgba(0, 0, 0, .22); }
.teacher-profile { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.teacher-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #28222f; background: #e7d1c6; font-size: 11px; font-weight: 700; }
.teacher-profile strong, .teacher-profile small { display: block; }
.teacher-profile strong { font-size: 13px; }
.teacher-profile small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.verified { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); font-size: 10px; }
.lesson-card { margin: 24px 0 14px; padding: 30px; color: #fff; background: var(--surface-light); border-radius: 12px; }
.lesson-card > span { color: #b4abc0; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.lesson-card h3 { max-width: 320px; margin: 28px 0 30px; font-size: 26px; line-height: 1.25; letter-spacing: -.035em; }
.lesson-card p { display: flex; justify-content: space-between; color: #b4abc0; font-size: 11px; }
.student-progress { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; }
.student-progress strong { color: var(--ink); font-weight: 600; }

/* Continuity */
.continuity { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.continuity-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: center; }
.continuity-copy > p:last-child { max-width: 500px; margin-top: 22px; color: var(--muted); font-size: 16px; }
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; }
.platform-grid a { min-height: 98px; display: flex; flex-direction: column; justify-content: center; padding: 20px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--surface-raised); transition: background .2s ease; }
.platform-grid a:nth-child(2n) { border-right: 0; }
.platform-grid a:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.platform-grid a:hover { background: var(--surface-light); }
.platform-grid strong, .platform-grid span { display: block; }
.platform-grid strong { font-size: 14px; }
.platform-grid span { margin-top: 4px; color: var(--muted); font-size: 11px; }

/* Pricing */
.pricing { background: var(--background-soft); }
.pricing-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.pricing-heading h2 { max-width: 720px; }
.billing-tabs { flex: 0 0 auto; display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--background); }
.billing-tabs button { padding: 8px 13px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 600; cursor: pointer; }
.billing-tabs button.active { color: var(--ink); background: var(--surface-light); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 54px; }
.plan { min-height: 430px; position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.plan.featured { border-color: var(--accent); }
.plan-badge { position: absolute; top: 24px; right: 24px; padding: 4px 8px; color: var(--accent); background: var(--accent-soft); border-radius: 99px; font-size: 10px; font-weight: 700; }
.plan-name h3 { font-size: 18px; }
.plan-name p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 42px 0 34px; }
.plan-price strong { font-size: 42px; line-height: 1; letter-spacing: -.05em; }
.plan-price span { color: var(--muted); font-size: 12px; }
.plan ul { display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.plan li { position: relative; padding-left: 18px; color: var(--muted); font-size: 13px; }
.plan li::before { content: ""; position: absolute; top: 9px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.plan-button { min-height: 44px; display: grid; place-items: center; margin-top: auto; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; font-weight: 600; }
.plan-button:hover { border-color: rgba(255, 255, 255, .26); background: var(--surface-light); }
.plan-button.filled { color: #fff; border-color: var(--accent); background: linear-gradient(120deg, var(--accent), var(--secondary)); }
.pricing-note { margin-top: 18px; color: var(--muted); font-size: 12px; text-align: right; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 100px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px 0; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--muted); font-size: 20px; font-weight: 400; transition: transform .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 620px; padding: 0 44px 22px 0; color: var(--muted); font-size: 14px; }

/* Download and footer */
.download { padding: 80px 0; color: #fff; background: var(--dark); border-top: 1px solid var(--line-soft); }
.download-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.download-inner img { border-radius: 13px; }
.download-inner h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.035em; }
.download-inner p { margin-top: 8px; color: var(--dark-muted); font-size: 14px; }
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); background: var(--background); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--muted); font-size: 12px; }
.footer-inner p { justify-self: center; }
.footer-inner nav { justify-self: end; display: flex; gap: 22px; }

/* Motion */
.motion-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.motion-ready .reveal[data-delay="1"] { transition-delay: .08s; }
.motion-ready .reveal[data-delay="2"] { transition-delay: .16s; }
.motion-ready .reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { max-width: 760px; }
  .product-preview { width: min(760px, 100%); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .mcp-grid { grid-template-columns: 1fr; gap: 56px; }
  .mcp-copy { max-width: 760px; }
  .mcp-visual { width: min(700px, 100%); }
  .flashcard-grid { grid-template-columns: 1fr 1fr; }
  .flashcard-grid article:nth-child(2) { border-right: 0; }
  .flashcard-grid article:nth-child(-n + 2) { border-bottom: 1px solid var(--line-soft); }
  .flashcard-grid article:nth-child(3) { padding-left: 0; }
  .teacher-grid { gap: 56px; }
  .continuity-inner { gap: 52px; }
}

@media (max-width: 760px) {
  :root { --header-height: 64px; }
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .section { padding: 88px 0; }
  .header-inner { grid-template-columns: 1fr auto; }
  .main-nav { position: fixed; inset: var(--header-height) 0 auto; display: none; padding: 24px 16px; border-bottom: 1px solid var(--line); background: rgba(10, 13, 20, .98); flex-direction: column; align-items: flex-start; }
  .site-header.menu-open .main-nav { display: flex; }
  .header-cta { display: none; }
  .menu-button { display: block; }
  .site-header.menu-open .menu-button span:first-child { transform: translateY(3px) rotate(45deg); }
  .site-header.menu-open .menu-button span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .hero { padding: 130px 0 80px; }
  h1 { font-size: clamp(3rem, 12vw, 4.6rem); }
  .preview-content { grid-template-columns: 1fr; }
  .preview-video { min-height: 340px; }
  .preview-word { border-top: 1px solid rgba(255, 255, 255, .1); border-left: 0; }
  .feature-grid, .shadow-feature, .teacher-grid, .continuity-inner, .plan-grid, .faq-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 220px; }
  .shadow-feature { gap: 30px; padding: 34px; }
  .mcp-visual { min-height: 530px; padding-inline: 22px; }
  .teacher-copy { max-width: 680px; }
  .teacher-card { width: 100%; }
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .pricing-heading { display: grid; }
  .billing-tabs { width: max-content; }
  .plan { min-height: 390px; }
  .faq-grid { gap: 42px; }
  .download-inner { grid-template-columns: auto 1fr; }
  .download-inner .button { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr auto; gap: 24px; }
  .footer-inner p { justify-self: end; }
  .footer-inner nav { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 480px) {
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  .section { padding: 72px 0; }
  h1 { font-size: 2.85rem; }
  h2 { font-size: 2.25rem; }
  .hero { padding-top: 112px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .preview-video { min-height: 280px; }
  .preview-orb { right: 24px; width: 100px; height: 100px; }
  .feature-card, .teacher-card, .plan { padding: 22px; }
  .feature-number { margin-bottom: 44px; }
  .shadow-feature { padding: 24px; }
  .mcp-visual { min-height: 500px; padding: 66px 14px 20px; }
  .mcp-flow { gap: 5px; }
  .chat-message { max-width: 88%; margin: 14px; }
  .mcp-status { margin-inline: 14px; }
  .suggestion-card { right: 10px; bottom: 14px; width: calc(100% - 28px); }
  .flashcard-grid { grid-template-columns: 1fr; }
  .flashcard-grid article, .flashcard-grid article:first-child, .flashcard-grid article:nth-child(3), .flashcard-grid article:last-child { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .flashcard-grid article:last-child { border-bottom: 0; }
  .role-grid, .platform-grid { grid-template-columns: 1fr; }
  .platform-grid a { border-right: 0; }
  .platform-grid a:last-child { grid-column: auto; }
  .lesson-card { padding: 24px; }
  .lesson-card h3 { font-size: 22px; }
  .plan-badge { top: 20px; right: 20px; }
  .download { padding: 64px 0; }
  .download-inner { grid-template-columns: 1fr; }
  .download-inner .button { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner p, .footer-inner nav { justify-self: start; }
  .footer-inner nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
}
