/* Flyary website. Night-sky hero with a self-drawing flight track, glass surfaces and scroll reveals.
   Every animation is an enhancement: without JavaScript or with reduced motion everything is visible. */
:root {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0b1b2b;
  background: #fff;
  color-scheme: light;
  interpolate-size: allow-keywords;
  --ink: #0b1b2b;
  --muted: #566677;
  --line: #e2e9ef;
  --blue: #0784c3;
  --sky: #38bdf8;
  --green: #34d399;
  --night: #050d1a;
  --night-2: #0a1a2e;
  --brand: linear-gradient(120deg, #38bdf8 0%, #0ea5e9 38%, #10b981 100%);
  --radius: 24px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 30px 80px -30px rgba(6, 30, 56, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: 1.5; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
figure, p, h1, h2, h3, ol, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; border-radius: 8px; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; letter-spacing: -.03em; }
p { text-wrap: pretty; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.icon { width: 18px; height: 18px; flex: none; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; color: var(--ink); background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid rgba(11, 27, 43, .07); transition: background .35s var(--ease), color .35s var(--ease), border-color .35s; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.home .header { position: fixed; inset: 0 0 auto; }
.home .header:not(.is-scrolled) { background: transparent; color: #fff; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 20px; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.desktop-nav { display: flex; gap: 30px; font-size: 15px; font-weight: 550; }
.desktop-nav a { opacity: .78; position: relative; transition: opacity .2s; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.desktop-nav a:hover { opacity: 1; }
.desktop-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.languages { display: flex; gap: 2px; }
.languages a { font-size: 12px; font-weight: 650; letter-spacing: .06em; padding: 6px 8px; border-radius: 8px; opacity: .6; transition: opacity .2s, background .2s; }
.languages a:hover { opacity: 1; }
.languages a[aria-current="page"] { opacity: 1; background: rgba(11, 27, 43, .07); }
.home .header:not(.is-scrolled) .languages a[aria-current="page"] { background: rgba(255, 255, 255, .14); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid currentColor; border-color: rgba(127, 140, 155, .35); background: transparent; color: inherit; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20.5px; transform: rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- Buttons & links ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 650; font-size: 16px; border: 1px solid transparent; position: relative; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; white-space: nowrap; }
.button .icon { transition: transform .3s var(--ease); }
.button:hover .icon { transform: translateX(3px); }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.button-primary { color: #fff; background: linear-gradient(135deg, #0ea5e9, #0369a1); box-shadow: 0 10px 30px -12px rgba(14, 165, 233, .9); }
.button-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.button-primary:hover::after { transform: translateX(120%); }
.button-glow { box-shadow: 0 0 0 1px rgba(125, 211, 252, .35), 0 18px 50px -12px rgba(14, 165, 233, .95); }
.button-ghost { color: #fff; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(10px); }
.button-ghost:hover { background: rgba(255, 255, 255, .13); }
.button-white { background: #fff; color: var(--ink); box-shadow: 0 12px 40px -14px rgba(0, 0, 0, .45); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--blue); }
.text-link .icon { transition: transform .3s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.small-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.gradient-text { background: linear-gradient(100deg, #7dd3fc, #38bdf8 30%, #34d399 65%, #a7f3d0 85%, #7dd3fc); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: max(760px, 100svh); display: flex; align-items: center; padding: 140px 0 120px; color: #fff; background: radial-gradient(120% 90% at 70% 0%, #0c2a48 0%, var(--night) 55%), var(--night); }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.aurora-1 { width: 60vw; height: 60vw; left: -18vw; top: -26vw; background: radial-gradient(circle, #0ea5e9 0%, transparent 65%); }
.aurora-2 { width: 50vw; height: 50vw; right: -14vw; top: 8vw; background: radial-gradient(circle, #10b981 0%, transparent 62%); opacity: .38; }
.aurora-3 { width: 36vw; height: 36vw; left: 30vw; bottom: -22vw; background: radial-gradient(circle, #6366f1 0%, transparent 65%); opacity: .3; }
.contours { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(148, 197, 255, .11); stroke-width: 1.2; }
.flight { position: absolute; inset: 0; width: 100%; height: 100%; }
.flight-path { fill: none; stroke: url(#trail); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(56, 189, 248, .55)); }
.glider { display: none; }
.stars { position: absolute; inset: 0; opacity: .55; background-image: radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 68%, #cfe8ff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 52% 16%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 71% 44%, #d6f5ff 50%, transparent 51%), radial-gradient(1px 1px at 86% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 92% 70%, #bfe7ff 50%, transparent 51%), radial-gradient(1px 1px at 40% 88%, #fff 50%, transparent 51%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; z-index: -1; background: linear-gradient(transparent, rgba(5, 13, 26, .9)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.eyebrow-pill { color: #cdeafe; padding: 9px 16px 9px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); font-size: 11px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); }
.hero h1 { font-size: clamp(46px, 5.6vw, 82px); line-height: .98; font-weight: 780; letter-spacing: -.05em; margin: 28px 0 24px; }
.hero-intro { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; color: rgba(226, 238, 250, .78); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 36px 0 24px; }
.hero .small-note { color: rgba(226, 238, 250, .62); }
.hero .small-note .icon { color: var(--green); }
.hero-stage { position: relative; height: 640px; perspective: 1400px; }
.hero-stage figcaption { position: absolute; left: 0; right: 0; bottom: -40px; text-align: center; font-size: 12px; color: rgba(226, 238, 250, .5); }
.stage-glow { position: absolute; inset: 12% 8%; border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, .45), rgba(16, 185, 129, .18) 45%, transparent 70%); filter: blur(40px); }
.phone { position: relative; border-radius: 40px; padding: 9px; background: linear-gradient(160deg, #26384f, #0c1727 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 40px 90px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .35); }
.phone-screen { border-radius: 32px; overflow: hidden; background: #fff; }
.phone-screen img { width: 100%; height: auto; }
.hero-stage .phone { position: absolute; width: min(300px, 46%); }
.phone-back { left: 4%; top: 72px; opacity: .92; }
.phone-front { right: 8%; top: 0; }
.hero-chips { list-style: none; padding: 0; }
.chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 650; color: #fff; white-space: nowrap; background: rgba(12, 28, 48, .62); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(14px); box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .8); }
.chip .icon { color: var(--sky); width: 16px; height: 16px; }
.chip-0 { left: -2%; top: 34%; }
.chip-1 { right: -2%; bottom: 20%; }
.chip-2 { left: 12%; bottom: 6%; }
.chip-1 .icon { color: var(--green); }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(226, 238, 250, .55); }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 22px 0; background: #fff; border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee-list { display: flex; gap: 12px; padding: 0 12px 0 0; list-style: none; }
.marquee-list li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #22384d; background: #f3f8fb; border: 1px solid var(--line); }
.marquee-list .icon { width: 14px; height: 14px; color: var(--blue); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(84px, 10vw, 140px); }
.section-heading { max-width: 760px; margin-bottom: 56px; }
.section-heading h2, .school-copy h2, .together h2, .faq-section h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; font-weight: 760; margin-top: 16px; }
.section-heading.split { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; }
.section-intro { font-size: 18px; line-height: 1.75; color: var(--muted); }

/* Product explorer */
.explorer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: center; }
.preview-tabs { display: grid; gap: 12px; }
.preview-tab { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 20px; border: 1px solid var(--line); background: #fff; position: relative; overflow: hidden; transition: border-color .3s, box-shadow .3s var(--ease), transform .3s var(--ease), background .3s; }
.preview-tab:hover { border-color: #c8d9e6; transform: translateX(4px); }
.preview-tab::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px; background: var(--brand); transform: scaleY(0); transition: transform .4s var(--ease); }
.preview-tab[aria-selected="true"] { border-color: transparent; background: linear-gradient(135deg, #f0f9ff, #ecfdf5); box-shadow: 0 20px 50px -30px rgba(7, 132, 195, .55); }
.preview-tab[aria-selected="true"]::before { transform: scaleY(1); }
.tab-index { font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; color: #9fb3c4; }
.preview-tab[aria-selected="true"] .tab-index { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tab-body { display: grid; gap: 4px; }
.tab-title { font-size: 18px; font-weight: 700; }
.tab-description { font-size: 14px; color: var(--muted); }
.preview-tab > .icon { color: #9fb3c4; transition: transform .3s var(--ease), color .3s; }
.preview-tab[aria-selected="true"] > .icon { color: var(--blue); transform: translateX(4px); }
.preview-panels { margin-top: 28px; }
.preview-panel { padding: 8px 4px 28px; }
.preview-panel + .preview-panel { border-top: 1px solid var(--line); padding-top: 28px; }
.enhanced .preview-panel + .preview-panel { border-top: 0; padding-top: 8px; }
.preview-panel h3 { font-size: 24px; line-height: 1.25; }
.preview-panel p { margin-top: 12px; font-size: 16px; line-height: 1.75; color: var(--muted); }
.panel-points { list-style: none; padding: 0; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.panel-points li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: #f1f6fa; color: #27425a; }
.panel-points .icon { width: 14px; height: 14px; color: #10b981; }
.fallback-screen { width: min(280px, 100%); margin-top: 24px; border-radius: 26px; box-shadow: var(--shadow); }
.enhanced .fallback-screen { display: none; }
#app:not(.enhanced) .explorer-grid { grid-template-columns: 1fr; }
#app:not(.enhanced) .explorer-stage { display: none; }
.explorer-stage { position: relative; display: grid; justify-items: center; }
.explorer-stage .phone { width: min(330px, 80%); }
.explorer-stage .stage-glow { background: radial-gradient(circle, rgba(56, 189, 248, .35), rgba(16, 185, 129, .15) 45%, transparent 70%); }
.explorer-stage figcaption, .school-visual figcaption, .community-visual figcaption { margin-top: 22px; font-size: 12px; color: var(--muted); text-align: center; }
#preview-image { transition: opacity .25s var(--ease), transform .35s var(--ease); }
#preview-image.is-swapping { opacity: 0; transform: scale(.985); }

/* Pilot features */
.pilot-section { padding-top: clamp(24px, 4vw, 56px); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 44px; }
.feature-card { position: relative; overflow: hidden; isolation: isolate; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.feature-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, .14), transparent 60%); }
.feature-card:hover { transform: translateY(-6px); border-color: #cfe0ec; box-shadow: var(--shadow); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--blue); background: linear-gradient(135deg, #e0f2fe, #d1fae5); margin-bottom: 26px; }
.feature-icon .icon { width: 24px; height: 24px; }
.feature-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--blue); }
.feature-card h3 { font-size: 23px; margin: 10px 0 12px; }
.feature-card p:last-child { color: var(--muted); line-height: 1.75; font-size: 15px; }

/* Schools */
.school-section { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); padding-top: clamp(90px, 11vw, 150px); }
.school-backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.school-backdrop .aurora-2 { left: -20vw; right: auto; top: 20%; opacity: .25; }
.school-backdrop .aurora-3 { left: auto; right: -10vw; bottom: -10vw; opacity: .3; }
.school-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 88px; align-items: center; }
.school-visual { position: relative; display: grid; justify-items: center; }
.school-visual .phone { width: min(330px, 86%); }
.school-visual figcaption { color: rgba(226, 238, 250, .5); }
.school-copy .eyebrow { color: #7dd3fc; }
.school-copy .section-intro { color: rgba(226, 238, 250, .72); margin-top: 22px; }
.school-steps { list-style: none; padding: 0; margin: 40px 0 40px; position: relative; display: grid; gap: 26px; }
.school-steps::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: rgba(255, 255, 255, .12); }
.school-steps::after { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(#38bdf8, #34d399); transform-origin: top; }
.school-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 20px; position: relative; }
.step-node { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #0f2540; border: 1px solid rgba(125, 211, 252, .35); color: #7dd3fc; box-shadow: 0 0 0 6px rgba(5, 13, 26, .9); }
.step-label { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #6ee7b7; }
.school-steps h3 { font-size: 20px; margin: 4px 0 6px; }
.school-steps p:last-child { color: rgba(226, 238, 250, .7); line-height: 1.7; font-size: 15px; }
.school-copy .small-note { color: rgba(226, 238, 250, .55); margin-top: 18px; }
.school-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(70px, 9vw, 110px); padding: 26px 0 40px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: rgba(226, 238, 250, .55); }

/* Together */
.together { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 80px; align-items: center; }
.together-copy > p:not(.eyebrow) { margin-top: 22px; font-size: 18px; line-height: 1.75; color: var(--muted); max-width: 540px; }
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 32px; }
.tag-list li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 650; border: 1px solid var(--line); background: #fff; }
.tag-list .icon { color: var(--blue); width: 16px; height: 16px; }
.community-visual { position: relative; display: grid; justify-items: center; }
.community-visual .phone { width: min(320px, 82%); }

/* FAQ */
.faq-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; border-top: 1px solid var(--line); }
.faq-intro { position: sticky; top: 120px; }
.faq-intro .text-link { margin-top: 28px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: 18px; font-weight: 650; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); transition: transform .35s var(--ease), background .3s, border-color .3s; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: currentColor; }
.faq-plus::after { transform: rotate(90deg); }
details[open] .faq-plus { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: #fff; }
.faq-answer p { padding: 0 48px 28px 0; font-size: 16px; line-height: 1.8; color: var(--muted); }
details::details-content { transition: height .4s var(--ease), content-visibility .4s allow-discrete; height: 0; overflow: clip; }
details[open]::details-content { height: auto; }

/* Final call to action */
.final-cta { padding: 20px 0 clamp(90px, 10vw, 130px); }
.final-card { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: clamp(40px, 6vw, 80px); border-radius: 36px; color: #fff; background: linear-gradient(120deg, #075985 0%, #0284c7 38%, #0ea5e9 62%, #059669 100%); box-shadow: 0 40px 100px -40px rgba(3, 105, 161, .8); }
.final-card h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.05; font-weight: 760; }
.final-card p { margin-top: 16px; font-size: 17px; color: rgba(255, 255, 255, .82); }
.final-sheen { position: absolute; inset: -50%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 255, 255, .28), transparent), radial-gradient(closest-side, rgba(52, 211, 153, .45), transparent); background-size: 40% 40%, 55% 55%; background-position: 20% 30%, 80% 70%; background-repeat: no-repeat; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 36px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 30px; align-items: start; }
.footer-top p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.footer-top .sample-note { margin-top: 6px; font-size: 12px; opacity: .8; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 30px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom a:hover { color: var(--blue); }
.back-top { display: inline-flex; align-items: center; gap: 6px; }
.back-top .icon { width: 14px; height: 14px; transform: rotate(-45deg); }

/* ---------- Motion (only where people allow it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .aurora-1 { animation: drift 22s ease-in-out infinite alternate; }
  .aurora-2 { animation: drift 26s ease-in-out -6s infinite alternate-reverse; }
  .aurora-3 { animation: drift 30s ease-in-out -12s infinite alternate; }
  .contours { animation: contours 40s linear infinite alternate; }
  .stars { animation: twinkle 6s ease-in-out infinite alternate; }
  .flight-path { stroke-dashoffset: 1; animation: draw 3.6s .4s var(--ease) forwards; }
  .gradient-text { animation: shimmer 9s linear infinite; }
  .pulse { animation: pulse 2.4s ease-out infinite; }
  .hero-stage .phone-front { animation: float 7s ease-in-out infinite; }
  .hero-stage .phone-back { animation: float-back 8s ease-in-out -2s infinite; }
  .chip-0 { animation: float 6s ease-in-out -1s infinite; }
  .chip-1 { animation: float 7s ease-in-out -3s infinite; }
  .chip-2 { animation: float 8s ease-in-out -5s infinite; }
  .scroll-hint .icon { animation: bob 2s ease-in-out infinite; }
  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .final-sheen { animation: sheen 14s ease-in-out infinite alternate; }
  .stage-glow { animation: glow 6s ease-in-out infinite alternate; }
  /* Tilt follows the pointer (site.js sets --rx/--ry). */
  [data-tilt] { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .6s var(--ease); }
  .phone-back { rotate: -7deg; }
  .phone-front { rotate: 3deg; }
  @supports (offset-path: path("M0 0")) {
    .glider { display: block; offset-path: path("M-60 566 C 160 588, 330 528, 520 556 S 760 556, 880 460 S 1010 210, 1150 250 S 1330 170, 1520 50"); offset-rotate: auto; offset-distance: 0%; animation: glide 11s 1.2s linear infinite; }
  }
  /* Content reveals once it scrolls into view (only with JavaScript). */
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .hero-stage.reveal { transform: translateY(40px) scale(.97); }
  .js .hero-stage.reveal.is-visible { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
  @supports (animation-timeline: view()) {
    .school-steps::after { animation: fill-line linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vw, 4vw, 0) scale(1.15); } }
@keyframes contours { from { transform: translateX(-2%); } to { transform: translateX(2%) translateY(-1%); } }
@keyframes twinkle { from { opacity: .35; } to { opacity: .7; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes glide { 0% { offset-distance: 0%; opacity: 0; } 6% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes shimmer { to { background-position: 200% 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); } 80%, 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes float-back { 0%, 100% { translate: 0 0; } 50% { translate: 0 10px; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes sheen { from { background-position: 10% 20%, 90% 80%; } to { background-position: 70% 60%, 30% 20%; } }
@keyframes glow { from { opacity: .7; transform: scale(.95); } to { opacity: 1; transform: scale(1.05); } }
@keyframes fill-line { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Without motion the marquee becomes a static, wrapped list. */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { width: auto; justify-content: center; }
  .marquee-list { flex-wrap: wrap; justify-content: center; padding-inline: 16px; }
  .marquee-list[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 56px); }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { display: grid; gap: 2px; position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; padding: 10px; border-radius: 22px; color: var(--ink); background: rgba(255, 255, 255, .97); box-shadow: 0 30px 70px -20px rgba(6, 20, 40, .45); border: 1px solid var(--line); }
  .mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-radius: 14px; font-size: 17px; font-weight: 600; }
  .mobile-nav a:hover { background: #f1f6fa; }
  .no-script-nav { position: static; margin: 0 16px 12px; }
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero-copy { max-width: 680px; }
  .hero-stage { height: 560px; width: min(560px, 100%); margin-inline: auto; }
  .explorer-grid, .school-grid, .together, .faq-section { grid-template-columns: 1fr; gap: 56px; }
  .section-heading.split { grid-template-columns: 1fr; gap: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .school-visual { order: 2; }
  .final-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { gap: 10px; min-height: 68px; }
  .header-cta { display: none; }
  .header-actions { gap: 6px; }
  .brand { font-size: 18px; }
  .brand img { width: 32px; height: 32px; }
  .languages a { padding: 6px 6px; }
  .hero { min-height: auto; padding: 116px 0 96px; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero-actions .button { width: 100%; }
  /* Two phones: 58 % of the stage wide, 2.16 times as tall, the back one set 60 px lower. */
  .hero-stage { height: calc((100vw - 32px) * .58 * 2.2 + 70px); }
  .hero-stage .phone { width: 58%; }
  .hero-stage figcaption { bottom: -34px; }
  .phone { border-radius: 30px; padding: 7px; }
  .phone-screen { border-radius: 24px; }
  .phone-back { left: 0; top: 60px; }
  .phone-front { right: 0; }
  .chip { font-size: 12px; padding: 8px 11px; white-space: normal; max-width: 58%; }
  .chip-0 { left: 0; top: 60%; }
  .chip-1 { right: 0; top: auto; bottom: 12%; }
  .chip-2 { display: none; }
  .scroll-hint { display: none; }
  .preview-tab { padding: 16px; gap: 12px; }
  .tab-title { font-size: 16px; }
  .feature-card { padding: 26px; }
  .faq-answer p { padding-right: 0; }
  .final-card { border-radius: 28px; }
  .final-card .button { width: 100%; }
  .footer-top { flex-direction: column; }
}
@media (max-width: 360px) {
  .brand span { display: none; }
  .button { padding: 0 18px; }
}
