:root {
  color-scheme: light;
  --purple: #7349ff;
  --purple-deep: #5730de;
  --purple-soft: #eee9ff;
  --ink: #0a0f1c;
  --muted: #526077;
  --surface: #fff;
  --surface-alt: #f5f7ff;
  --line: rgba(87, 48, 222, .12);
  --shadow: 0 28px 80px rgba(56, 48, 120, .16);
  --page-bg: #fbfcff;
  --nav-color: #3f4b61;
  --glass-bg: rgba(255,255,255,.72);
  --card-bg: #fff;
  --max: 1180px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f7f8ff;
  --muted: #b6bfd0;
  --surface: #111827;
  --surface-alt: #0f1625;
  --line: rgba(166, 139, 255, .22);
  --shadow: 0 28px 80px rgba(0, 0, 0, .38);
  --page-bg: #0a0f1c;
  --nav-color: #cbd3e3;
  --glass-bg: rgba(17,24,39,.78);
  --card-bg: #111827;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-shell { position: relative; overflow: hidden; min-height: 100vh; }
.ambient { position: absolute; z-index: -1; border-radius: 999px; filter: blur(2px); pointer-events: none; will-change: transform; }
.ambient-one { width: 620px; height: 620px; top: -250px; left: -260px; background: radial-gradient(circle, rgba(115, 73, 255, .2), transparent 68%); }
.ambient-two { width: 560px; height: 560px; top: 160px; right: -290px; background: radial-gradient(circle, rgba(75, 190, 255, .18), transparent 68%); }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 28px; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { border-radius: 15px; box-shadow: 0 9px 24px rgba(115, 73, 255, .25); }
.brand span, .footer-brand span { display: flex; flex-direction: column; }
.brand strong { font-size: 1.12rem; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: .73rem; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { color: var(--nav-color); font-size: .91rem; font-weight: 700; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--purple); }
.nav-cta { padding: 10px 17px; color: #fff !important; background: linear-gradient(135deg, var(--purple), var(--purple-deep)); border-radius: 999px; box-shadow: 0 8px 24px rgba(115, 73, 255, .22); transition: transform .2s ease, box-shadow .2s ease; }
.nav-cta:hover, .nav-cta:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(115, 73, 255, .3); }

.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; min-height: 720px; padding-block: 78px 62px; }
.eyebrow, .section-kicker { color: var(--purple-deep); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass-bg); }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 5px rgba(115, 73, 255, .12); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 22px 0; max-width: 720px; font-size: clamp(3.35rem, 6vw, 6rem); line-height: .98; letter-spacing: -.065em; }
.hero-title-line, .hero-title-accent { display: block; }
.hero-title-line { color: var(--ink); }
.hero-title-accent { color: var(--purple); }
.hero-dynamic { min-height: 280px; transition: opacity .26s ease, transform .26s ease, filter .26s ease; }
.hero-dynamic.is-changing { opacity: 0; transform: translateY(12px); filter: blur(4px); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(115,73,255,.18); background: rgba(115,73,255,.08); color: var(--purple); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; width: fit-content; }
.hero-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(115,73,255,.12); }
.hero-lead { max-width: 640px; margin-bottom: 28px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.play-button { min-width: 176px; display: inline-flex; align-items: center; gap: 12px; padding: 10px 17px; color: #fff; background: var(--ink); border-radius: 13px; text-decoration: none; box-shadow: 0 14px 34px rgba(10, 15, 28, .2); transition: transform .2s ease, box-shadow .2s ease; }
.play-button:hover, .play-button:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(10, 15, 28, .25); }
.play-button span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.play-button small { font-size: .56rem; letter-spacing: .08em; }
.play-button strong { font-size: 1.15rem; font-weight: 600; }
.play-mark { width: 25px; height: 29px; flex: 0 0 auto; background: conic-gradient(from 32deg at 35% 50%, #00d37f, #30a9ff 28%, #8a4dff 53%, #ff4567 74%, #ffc938); clip-path: polygon(0 0, 100% 50%, 0 100%, 29% 50%); }
.text-link { color: var(--purple-deep); font-weight: 800; text-decoration: none; }
.text-link span { display: inline-block; margin-left: 5px; transition: transform .2s ease; }
.text-link:hover span, .text-link:focus-visible span { transform: translateY(4px); }
.benefit-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 38px; }
.benefit-row div { padding-left: 14px; border-left: 2px solid rgba(115, 73, 255, .2); }
.benefit-row strong, .benefit-row span { display: block; }
.benefit-row strong { font-size: .94rem; }
.benefit-row span { margin-top: 3px; color: var(--muted); font-size: .76rem; line-height: 1.4; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.hero-visual::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: linear-gradient(145deg, #e6f3ff, #eee9ff); box-shadow: inset 0 0 0 1px rgba(115,73,255,.06); }
.phone { position: relative; z-index: 1; padding: 10px; border: 2px solid #20263b; border-radius: 48px; background: #101625; box-shadow: var(--shadow); }
.phone::after { content: ""; position: absolute; inset: 10px; border-radius: 37px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); pointer-events: none; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }
.phone-screen { transition: opacity .26s ease, transform .26s ease, filter .26s ease; }
.phone-screen.is-changing { opacity: 0; transform: translateX(18px) scale(.985); filter: blur(3px); }
.phone-hero { width: 292px; height: 612px; transform: rotate(3deg); }
.phone-speaker { position: absolute; z-index: 2; top: 17px; left: 50%; width: 58px; height: 16px; transform: translateX(-50%); border-radius: 999px; background: #0b101c; }
.floating-note { position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 12px 15px; background: rgba(255,255,255,.92); border: 1px solid rgba(115,73,255,.12); border-radius: 15px; color: #29334a; font-size: .8rem; font-weight: 800; box-shadow: 0 14px 30px rgba(49, 42, 100, .12); backdrop-filter: blur(10px); }
.floating-note span { display: grid; place-items: center; width: 25px; height: 25px; color: #fff; background: var(--purple); border-radius: 8px; }
.note-top { top: 110px; right: -4px; }
.note-bottom { left: 8px; bottom: 110px; }
.sparkle { position: absolute; z-index: 2; color: var(--purple); font-size: 2rem; }
.sparkle-one { top: 54px; left: 38px; }
.sparkle-two { right: 25px; bottom: 38px; color: #f4b916; font-size: 1.45rem; }

.about-section, .features-section { padding-block: 105px; }
.about-section { border-top: 1px solid rgba(115, 73, 255, .08); }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading.compact { max-width: 720px; }
.section-heading h2, .cta-panel h2 { margin: 12px 0 17px; font-size: clamp(2.25rem, 4vw, 4rem); line-height: 1.08; letter-spacing: -.045em; }
.section-heading p { color: var(--muted); font-size: 1.05rem; }
.learning-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.learning-flow article { display: flex; gap: 18px; min-height: 210px; padding: 28px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 46px rgba(48, 45, 90, .07); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background-color .35s ease; }
.learning-flow article:hover { transform: translateY(-6px); border-color: rgba(115, 73, 255, .22); box-shadow: 0 24px 55px rgba(48, 45, 90, .12); }
.step-number { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; color: var(--purple); background: var(--purple-soft); border-radius: 14px; font-weight: 900; }
.learning-flow h3 { margin: 4px 0 10px; font-size: 1.15rem; }
.learning-flow p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }

.features-section { width: min(calc(100% - 24px), 1240px); margin-inline: auto; padding-inline: min(3vw, 32px); background: linear-gradient(180deg, #f1efff 0%, #f6f9ff 100%); border: 1px solid rgba(115,73,255,.08); border-radius: 42px; }
.features-section .section-heading { margin-inline: auto; text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { position: relative; min-height: 620px; overflow: hidden; padding: 28px 28px 0; border: 1px solid rgba(255,255,255,.7); border-radius: 28px; box-shadow: 0 22px 50px rgba(44, 38, 95, .11); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.feature-card:hover { transform: translateY(-9px); box-shadow: 0 30px 66px rgba(44, 38, 95, .17); }
.feature-card.violet { background: linear-gradient(160deg, #e7ddff, #f8f6ff 58%); }
.feature-card.blue { background: linear-gradient(160deg, #dcefff, #f6fbff 58%); }
.feature-card.gold { background: linear-gradient(160deg, #fff0c6, #fffaf0 58%); }
.feature-copy { position: relative; z-index: 2; }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; background: var(--purple); border-radius: 13px; font-size: 1.25rem; font-weight: 900; }
.blue .feature-icon { background: #386fd7; }
.gold .feature-icon { background: #dfa20c; }
.feature-card h3 { margin: 18px 0 8px; font-size: 1.55rem; letter-spacing: -.03em; }
.feature-card p { color: var(--muted); font-size: .9rem; }
.feature-phone { position: absolute; width: 245px; height: 515px; left: 50%; bottom: -210px; padding: 7px; transform: translateX(-50%) rotate(-2deg); background: #111727; border-radius: 35px; box-shadow: 0 22px 48px rgba(24,30,58,.22); transition: transform .45s cubic-bezier(.2,.8,.2,1), bottom .45s cubic-bezier(.2,.8,.2,1); }
.feature-card:nth-child(2) .feature-phone { transform: translateX(-50%) rotate(2deg); }
.feature-card:hover .feature-phone { bottom: -190px; transform: translateX(-50%) rotate(0deg); }
.feature-phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 29px; }

.cta-section { padding-block: 105px 70px; }
.cta-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 42px; padding: 60px; color: #fff; background: linear-gradient(135deg, #7349ff 0%, #5630d8 62%, #342080 100%); border-radius: 34px; box-shadow: 0 26px 70px rgba(79, 50, 180, .25); }
.cta-panel::before { content: ""; position: absolute; width: 440px; height: 440px; right: -190px; top: -230px; border: 75px solid rgba(255,255,255,.08); border-radius: 50%; }
.section-kicker.light { color: #e8dfff; }
.cta-panel h2 { max-width: 620px; margin-bottom: 12px; }
.cta-panel p { max-width: 620px; margin-bottom: 0; color: #e7e0ff; }
.cta-download { position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.cta-download > img { border-radius: 22px; box-shadow: 0 14px 34px rgba(18,10,64,.25); }
.light-button { background: #fff; color: var(--ink); }

footer { padding-block: 0 34px; }
.footer-shell { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 26px; border-top: 1px solid rgba(115,73,255,.12); }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { border-radius: 11px; }
.footer-brand strong { font-size: .92rem; }
.footer-brand small { color: var(--muted); font-size: .7rem; }
.footer-links { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-main-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--muted); font-size: .79rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--purple); }
.footer-policy-links { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; }

html[data-theme="dark"] .ambient-one { background: radial-gradient(circle, rgba(115, 73, 255, .24), transparent 68%); }
html[data-theme="dark"] .ambient-two { background: radial-gradient(circle, rgba(45, 139, 255, .17), transparent 68%); }
html[data-theme="dark"] .section-kicker,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .text-link { color: #b9a8ff; }
html[data-theme="dark"] .play-button:not(.light-button) { color: #0a0f1c; background: #f7f8ff; }
html[data-theme="dark"] .hero-visual::before { background: linear-gradient(145deg, #14253d, #281d4e); box-shadow: inset 0 0 0 1px rgba(173,149,255,.12); }
html[data-theme="dark"] .floating-note { color: #f4f6ff; background: rgba(17,24,39,.9); border-color: rgba(166,139,255,.2); box-shadow: 0 14px 34px rgba(0,0,0,.3); }
html[data-theme="dark"] .about-section { border-color: rgba(166,139,255,.12); }
html[data-theme="dark"] .learning-flow article { box-shadow: 0 18px 46px rgba(0,0,0,.2); }
html[data-theme="dark"] .features-section { background: linear-gradient(180deg, #17142b 0%, #0f1728 100%); border-color: rgba(166,139,255,.14); }
html[data-theme="dark"] .feature-card.violet { background: linear-gradient(160deg, #302550, #181526 62%); }
html[data-theme="dark"] .feature-card.blue { background: linear-gradient(160deg, #19314a, #111b29 62%); }
html[data-theme="dark"] .feature-card.gold { background: linear-gradient(160deg, #3b3020, #1c1915 62%); }
html[data-theme="dark"] .feature-card { border-color: rgba(255,255,255,.08); box-shadow: 0 22px 50px rgba(0,0,0,.25); }
html[data-theme="dark"] .feature-card:hover { box-shadow: 0 30px 66px rgba(0,0,0,.35); }
html[data-theme="dark"] .footer-shell { border-color: rgba(166,139,255,.14); }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 90px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-dynamic { display: flex; flex-direction: column; align-items: center; min-height: 270px; }
  .hero-actions { justify-content: center; }
  .benefit-row { width: min(100%, 660px); text-align: left; }
  .hero-visual { min-height: 630px; }
  .learning-flow, .feature-grid { grid-template-columns: 1fr; }
  .learning-flow article { min-height: 0; }
  .feature-card { min-height: 560px; }
  .feature-phone { width: 270px; height: 565px; bottom: -235px; }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-download { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .site-header { gap: 8px; padding-top: 18px; }
  .brand img { width: 44px; height: 44px; border-radius: 13px; }
  .brand small, nav a:not(.nav-cta) { display: none; }
  nav { gap: 0; }
  .header-actions { gap: 6px; }
  .nav-cta { padding: 9px 11px; font-size: .76rem; }
  .hero { min-height: auto; padding-block: 68px 40px; }
  h1 { font-size: clamp(3rem, 16vw, 4.6rem); }
  .hero-dynamic { min-height: 300px; }
  .hero-lead { font-size: .98rem; }
  .benefit-row { grid-template-columns: 1fr; gap: 13px; }
  .benefit-row div { text-align: left; }
  .hero-visual { min-height: 540px; }
  .hero-visual::before { width: 410px; height: 410px; }
  .phone-hero { width: 248px; height: 520px; }
  .note-top { right: -6px; top: 90px; }
  .note-bottom { left: -5px; bottom: 82px; }
  .floating-note { padding: 9px 11px; font-size: .68rem; }
  .floating-note span { width: 22px; height: 22px; }
  .about-section, .features-section { padding-block: 74px; }
  .section-heading { margin-bottom: 30px; }
  .learning-flow article { padding: 23px; }
  .features-section { width: min(calc(100% - 14px), 1240px); border-radius: 30px; }
  .feature-card { min-height: 530px; padding: 24px 23px 0; }
  .feature-phone { width: 235px; height: 495px; bottom: -210px; }
  .cta-section { padding-block: 74px 52px; }
  .cta-panel { padding: 36px 26px; border-radius: 27px; }
  .cta-download { align-items: flex-start; flex-direction: column; }
  .cta-download > img { width: 72px; height: 72px; border-radius: 18px; }
  .footer-shell { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 13px; }
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .site-header { animation: enter-down .65s both; }
  .motion-ready:not(.intro-complete) .hero-copy > * { animation: enter-up .7s both; }
  .motion-ready:not(.intro-complete) .hero-copy > :nth-child(2) { animation-delay: 70ms; }
  .motion-ready:not(.intro-complete) .hero-copy > :nth-child(3) { animation-delay: 140ms; }
  .motion-ready:not(.intro-complete) .hero-copy > :nth-child(4) { animation-delay: 210ms; }
  .motion-ready:not(.intro-complete) .hero-copy > :nth-child(5) { animation-delay: 280ms; }
  .motion-ready .hero-visual { animation: hero-arrive .85s .14s both; }
  .ambient-one { animation: ambient-one 14s ease-in-out infinite alternate; }
  .ambient-two { animation: ambient-two 17s ease-in-out infinite alternate; }
  .phone-hero { animation: phone-float 6s 1s ease-in-out infinite; }
  .note-top { animation: note-float 4.8s .6s ease-in-out infinite; }
  .note-bottom { animation: note-float 5.4s 1.1s ease-in-out infinite reverse; }
  .sparkle-one { animation: sparkle-pulse 3.2s ease-in-out infinite; }
  .sparkle-two { animation: sparkle-pulse 3.8s 1s ease-in-out infinite; }
  .eyebrow span { animation: dot-pulse 2.2s ease-out infinite; }
  .cta-download > img { animation: icon-float 4.5s ease-in-out infinite; }

  .motion-ready [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease var(--reveal-delay, 0ms), transform .65s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0ms);
  }
  .motion-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
  .motion-ready .learning-flow article.is-visible:hover { transform: translateY(-6px); }
  .motion-ready .feature-card.is-visible:hover { transform: translateY(-9px); }

  @keyframes enter-down { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes enter-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes hero-arrive { from { opacity: 0; transform: translateY(28px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes phone-float { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-10px); } }
  @keyframes note-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
  @keyframes sparkle-pulse { 0%, 100% { opacity: .65; transform: scale(.84) rotate(0); } 50% { opacity: 1; transform: scale(1.12) rotate(18deg); } }
  @keyframes dot-pulse { 0% { box-shadow: 0 0 0 0 rgba(115,73,255,.28); } 70%, 100% { box-shadow: 0 0 0 9px rgba(115,73,255,0); } }
  @keyframes ambient-one { to { transform: translate(42px, 32px) scale(1.06); } }
  @keyframes ambient-two { to { transform: translate(-45px, 35px) scale(.94); } }
  @keyframes icon-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
}

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