/* ══════════════════════════════════════════════════
   XPLANE.AI — Landing Page Styles
   ══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --purple:  #7B4DFF;
    --orange:  #F5A623;
    --blue:    #3B82F6;
    --magenta: #9C2C6B;
    --coral:   #FF4B5C;
    --green:   #10B981;
    --bg:      #0B0820;
    --font-h:  'Nunito', sans-serif;
    --font-b:  'Space Grotesk', sans-serif;
}

html {
    scroll-behavior: smooth;
    background: var(--bg); /* safety net — never let Bootstrap win */
}

body {
    font-family: var(--font-b) !important;
    background-color: var(--bg) !important; /* override Bootstrap's #fff */
    color: #fff !important;
    overflow-x: hidden;
    line-height: 1.6;
}
body.has-fixed-footer { padding-bottom: 62px; }

/* navbar removed — no styles needed */
@keyframes ringRotate {
    to { transform: rotate(360deg); }
}

/* ── Starfield ───────────────────────────────────── */
#starfield {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}

/* ── Logo Watermark ───────────────────────────────── */
.logo-watermark {
    position: fixed;
    bottom: -80px; right: -80px;
    width: 560px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.11;
    filter: saturate(0) brightness(2);
    transform: rotate(-12deg);
    -webkit-mask-image: radial-gradient(ellipse 65% 65% at 100% 100%, transparent 0%, transparent 25%, black 65%);
    mask-image:         radial-gradient(ellipse 65% 65% at 100% 100%, transparent 0%, transparent 25%, black 65%);
    animation: wmBreathe 9s ease-in-out infinite;
}
.logo-watermark img { width: 100%; display: block; }
@keyframes wmBreathe {
    0%,100% { opacity: .11; transform: rotate(-12deg) scale(1); }
    50%      { opacity: .17; transform: rotate(-12deg) scale(1.04); }
}

/* z-stack */
section, footer, .modal { position: relative; z-index: 2; }

/* ══════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════ */
.hero-section {
    overflow: visible;
    /* Semi-transparent so the canvas starfield bleeds through */
    background: linear-gradient(
        140deg,
        rgba(13, 8, 38, 0.92)  0%,
        rgba(26, 12, 82, 0.88) 35%,
        rgba(13, 30, 106, 0.85) 70%,
        rgba(7, 18, 46, 0.92)  100%
    );
    padding-top: 3rem;
    position: relative;
    min-height: 100vh;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 55% 65% at 15% 55%, rgba(123,77,255,.3) 0%, transparent 58%),
        radial-gradient(ellipse 50% 55% at 88% 65%, rgba(59,130,246,.22) 0%, transparent 55%),
        radial-gradient(ellipse 35% 35% at 55% 15%, rgba(245,166,35,.1) 0%, transparent 50%);
    pointer-events: none; z-index: 1;
}
.hero-section .container-xl { position: relative; z-index: 2; }

/* ══════════════════════════════════════════════════
   HERO BRAND BLOCK  (logo + wordmark)
   ══════════════════════════════════════════════════ */
.hero-brand {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* ── Logo centrepiece ────────────────────────────── */
.hero-logo-wrap {
    position: relative;
    display: inline-block;
    /* extra room for orbit dots + glow halo */
    padding: 26px;
    margin: -26px;
    flex-shrink: 0;
}

.hero-logo-ring {
    position: relative;
    width: 148px; height: 148px;
    border-radius: 38px;
}
.hero-logo-ring::before {
    content: '';
    position: absolute;
    inset: -3px; border-radius: 42px;
    background: conic-gradient(from 0deg, var(--purple), var(--blue), var(--orange), var(--magenta), var(--coral), var(--purple));
    animation: ringRotate 5s linear infinite;
    z-index: 0;
}
.hero-logo-ring::after {
    content: '';
    position: absolute;
    inset: -20px; border-radius: 68px;
    background: conic-gradient(from 0deg,
        rgba(123,77,255,.55), rgba(59,130,246,.55),
        rgba(245,166,35,.55), rgba(156,44,107,.5),
        rgba(255,75,92,.45), rgba(123,77,255,.55));
    filter: blur(24px);
    animation: ringRotate 5s linear infinite;
    z-index: 0; opacity: .75;
}

.hero-logo-inner {
    position: relative; z-index: 1;
    width: 100%; height: 100%;
    background: #fff;
    border-radius: 36px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    /* Visible internal padding so logo doesn't touch edges */
    padding: 12px;
}
.hero-logo-img {
    width: 100%; height: 100%;
    object-fit: contain;       /* full logo visible, padded inside */
    display: block;
}

/* Orbiting colour dots */
.orbit-dot {
    position: absolute;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform-origin: 0 0;
}
.od-1 { width: 12px; height: 12px; background: var(--orange); box-shadow: 0 0 14px var(--orange), 0 0 28px rgba(245,166,35,.4); margin: -6px; --r: 100px; animation: orbit 4s linear infinite; }
.od-2 { width: 10px; height: 10px; background: var(--blue);   box-shadow: 0 0 12px var(--blue),   0 0 24px rgba(59,130,246,.4);  margin: -5px; --r: 104px; animation: orbit 6s linear infinite reverse; }
.od-3 { width:  8px; height:  8px; background: var(--magenta);box-shadow: 0 0 10px var(--magenta),0 0 20px rgba(156,44,107,.4); margin: -4px; --r: 102px; animation: orbit 5s linear infinite; animation-delay: -2s; }
@keyframes orbit {
    from { transform: rotate(0deg)   translateX(var(--r)) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg); }
}

/* ── Wordmark ─────────────────────────────────────── */
.hero-wordmark {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

/* Single-line block — all characters inline inside this */
.wm-text {
    display: block;
    white-space: nowrap;
    line-height: 1;
}
.wm-x {
    font-family: var(--font-h);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--purple), #a78bfa);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.04em;
    text-shadow: none;
    filter: drop-shadow(0 0 18px rgba(123,77,255,.7));
}
.wm-plane {
    font-family: var(--font-h);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -.04em;
}
.wm-dot {
    font-family: var(--font-h);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 900;
    color: var(--orange);
    letter-spacing: -.04em;
}
.wm-ai {
    font-family: var(--font-h);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), #FFD700);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.04em;
    filter: drop-shadow(0 0 14px rgba(245,166,35,.6));
}
.wm-tagline {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(255,255,255,.45);
    margin-top: .35rem;
}

.hero-row { min-height: 100vh; padding: 5rem 0 4rem; }

/* ── Scroll indicator ────────────────────────────── */
.scroll-hint {
    /* Fixed to viewport so the footer never covers it */
    position: fixed;
    bottom: 5.5rem;   /* well above the 62px fixed footer */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1035;    /* above sections, below modal, below footer (1030) — wait, footer is 1030 so use 1031 */
    pointer-events: none;
    transition: opacity .6s ease;
    white-space: nowrap;
}
.scroll-hint.hidden { opacity: 0; pointer-events: none; }

.scroll-hint-text {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: rgba(255,255,255,.7);
    text-shadow: 0 2px 12px rgba(123,77,255,.6);
}
.scroll-hint-chevron {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(123,77,255,.5);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.85);
    animation: scrollBounce 1.8s ease-in-out infinite;
    background: rgba(123,77,255,.18);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 18px rgba(123,77,255,.35);
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0);   opacity: .65; }
    50%       { transform: translateY(9px); opacity: 1;   }
}

/* ── Eyebrow ─────────────────────────────────────── */
.eyebrow-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(123,77,255,.2);
    border: 1px solid rgba(123,77,255,.5);
    color: #C4B0FF;
    font-size: .78rem; font-weight: 600;
    letter-spacing: .07em; text-transform: uppercase;
    padding: .35rem 1rem; border-radius: 99px;
    backdrop-filter: blur(8px);
}
.dot-pulse {
    width: 8px; height: 8px;
    background: var(--purple); border-radius: 50%;
    animation: dotPulse 1.6s ease-in-out infinite;
}
@keyframes dotPulse {
    0%   { box-shadow: 0 0 0 0 rgba(123,77,255,.7); }
    70%  { box-shadow: 0 0 0 8px rgba(123,77,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(123,77,255,0); }
}

/* ── Headline ─────────────────────────────────────── */
.hero-headline {
    font-family: var(--font-h);
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 900; line-height: 1.1; color: #fff;
    text-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.shimmer-text {
    background: linear-gradient(90deg, #a78bfa, #7B4DFF, #60a5fa, #7B4DFF, #a78bfa);
    background-size: 300% 100%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}
@keyframes shimmer { to { background-position: -300% 50%; } }

.orange-text {
    background: linear-gradient(135deg, var(--orange), #FFD700);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(.95rem, 2vw, 1.18rem);
    color: rgba(255,255,255,.8); max-width: 500px; line-height: 1.78;
}
.hero-sub strong { color: #fff; }

/* ── CTA buttons ─────────────────────────────────── */
.cta-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.btn-appstore {
    display: inline-flex; align-items: center; gap: 12px;
    background: #fff; color: #000;
    padding: 13px 26px; border-radius: 14px;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 6px 24px rgba(0,0,0,.4);
    transition: transform .25s, box-shadow .25s;
}
.btn-appstore:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 36px rgba(255,255,255,.25); color: #000; }
.btn-appstore svg { flex-shrink: 0; }
.btn-appstore-text { display: flex; flex-direction: column; line-height: 1.18; text-align: left; }
.btn-appstore-text span { font-size: .63rem; font-weight: 400; opacity: .7; letter-spacing: .03em; }
.btn-appstore-text strong { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; }

.btn-appstore-large { padding: 16px 36px; }
.btn-appstore-large .btn-appstore-text strong { font-size: 1.3rem; }

.btn-demo {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255,255,255,.25); color: #fff;
    padding: 13px 24px; border-radius: 14px;
    text-decoration: none; font-weight: 600; font-size: .95rem;
    transition: all .25s;
}
.btn-demo:hover { background: rgba(255,255,255,.2); transform: translateY(-3px); color: #fff; box-shadow: 0 8px 28px rgba(255,255,255,.15); }
.play-circle {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--orange), #FF8C42);
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(245,166,35,.4);
}

/* ── Trust chips ─────────────────────────────────── */
.trust-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: .38rem .9rem; border-radius: 99px;
    font-size: .76rem; font-weight: 700; letter-spacing: .02em;
}
.chip-green   { background: rgba(16,185,129,.15);  color: #6ee7b7; border: 1px solid rgba(16,185,129,.3); }
.chip-blue    { background: rgba(59,130,246,.15);  color: #93c5fd; border: 1px solid rgba(59,130,246,.3); }
.chip-orange  { background: rgba(245,166,35,.15);  color: #fcd34d; border: 1px solid rgba(245,166,35,.3); }
.chip-magenta { background: rgba(156,44,107,.2);   color: #f9a8d4; border: 1px solid rgba(156,44,107,.35); }

/* ══════════════════════════════════════════════════
   PHONE SCENE  (left column, bigger)
   ══════════════════════════════════════════════════ */
.hero-phone-col { padding: 3rem 1rem; }
.hero-content-col { padding: 3rem 1.5rem; }

.phone-scene {
    position: relative;
    width: 380px; height: 740px;
}

.phone-frame {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 340px; height: 700px;
    background: linear-gradient(160deg, #18182c, #28284a);
    border-radius: 50px; padding: 14px;
    box-shadow:
        0 40px 100px rgba(0,0,0,.65),
        0 0 0 2px rgba(255,255,255,.13),
        inset 0 0 0 1px rgba(255,255,255,.06);
    z-index: 3;
    animation: phoneFloat 7s ease-in-out infinite;
}
@keyframes phoneFloat {
    0%,100% { transform: translate(-50%,-50%) translateY(0)    rotateY(-4deg); }
    50%      { transform: translate(-50%,-50%) translateY(-20px) rotateY(4deg); }
}

.phone-notch {
    width: 100px; height: 24px;
    background: #0a0a14; border-radius: 0 0 18px 18px;
    margin: 0 auto 4px;
}
.phone-screen {
    width: 100%; height: calc(100% - 28px);
    border-radius: 40px; overflow: hidden; background: #000;
}
.phone-screenshot { width: 100%; height: 100%; object-fit: cover; display: block; }

.phone-glow {
    position: absolute; left: 50%; top: 56%;
    transform: translate(-50%,-50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(123,77,255,.42) 0%, rgba(59,130,246,.2) 42%, transparent 68%);
    border-radius: 50%; filter: blur(55px); z-index: 1;
    animation: glowPulse 4s ease-in-out infinite; pointer-events: none;
}
@keyframes glowPulse {
    0%,100% { opacity: .6; transform: translate(-50%,-50%) scale(1); }
    50%      { opacity: .85; transform: translate(-50%,-50%) scale(1.1); }
}

/* ── Floating cards ──────────────────────────────── */
.float-card {
    position: absolute;
    background: rgba(18,18,40,.82);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px; padding: 12px 16px;
    z-index: 5; color: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,.4);
    white-space: nowrap;
    font-family: var(--font-b);
}

/* Achievement card — top left */
.card-badge {
    top: 48px; left: -120px;
    display: flex; align-items: center; gap: 10px;
    animation: flt 5s ease-in-out infinite;
}
.fc-icon {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.fc-orange { background: linear-gradient(135deg, var(--orange), #FF8C42); }
.fc-title  { font-size: .68rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .07em; }
.fc-sub    { font-size: .84rem; font-weight: 700; color: #fff; }

/* Progress card — right */
.card-progress {
    top: 130px; right: -150px; min-width: 210px;
    animation: flt 6s ease-in-out infinite .9s;
}
.fc-header {
    display: flex; justify-content: space-between;
    font-size: .78rem; font-weight: 700; margin-bottom: 8px; color: #fff;
}
.fc-pct { color: var(--orange); }
.fc-bar-track {
    height: 6px; background: rgba(255,255,255,.14);
    border-radius: 99px; overflow: hidden;
}
.fc-bar-fill {
    height: 100%; width: 40%;
    background: linear-gradient(90deg, var(--orange), #FFD700);
    border-radius: 99px;
    animation: barGrow 2.2s ease-out .6s both;
}
@keyframes barGrow { from { width: 0; } }
.fc-hint { font-size: .7rem; color: rgba(255,255,255,.55); margin-top: 6px; }

/* Subject chips */
.card-subject, .card-math {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    animation: flt 4.5s ease-in-out infinite 1.6s;
}
.card-subject {
    bottom: 200px; left: -110px;
    background: rgba(59,130,246,.18); border-color: rgba(59,130,246,.35);
    color: #93c5fd;
}
.card-math {
    bottom: 110px; right: -100px;
    background: rgba(245,166,35,.18); border-color: rgba(245,166,35,.35);
    color: #fcd34d;
    animation-delay: 2.6s;
}
.subject-name { font-size: .84rem; font-weight: 700; }

@keyframes flt {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-11px); }
}

/* ══════════════════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════════════════ */
.stats-bar {
    background: rgba(11, 8, 32, 0.6);
    border-top: 1px solid rgba(255,255,255,.07);
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: 2.75rem 0;
    backdrop-filter: blur(6px);
}
.stats-inner {
    display: flex; align-items: center;
    justify-content: center; gap: 3rem; flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: .25rem; }

/* Row keeps number + plus sign on one line */
.stat-value {
    display: flex;
    align-items: baseline;
    gap: 1px;
    line-height: 1;
}
.stat-num {
    font-family: var(--font-h); font-size: 2.8rem; font-weight: 900;
    background: linear-gradient(135deg, var(--orange), #FFD700);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; line-height: 1;
    display: inline;
}
.stat-plus {
    font-size: 2rem; /* slightly smaller than the number */
}
.stat-label {
    font-size: .72rem; font-weight: 700;
    color: rgba(255,255,255,.5);
    text-transform: uppercase; letter-spacing: .08em;
}
.stat-divider { width: 1px; height: 52px; background: rgba(255,255,255,.1); }

/* ══════════════════════════════════════════════════
   HOW IT WORKS SECTION
   ══════════════════════════════════════════════════ */
.how-section { padding: 5rem 0 5rem; }

.section-label {
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em;
    color: var(--orange); margin-bottom: .75rem;
}
.section-title {
    font-family: var(--font-h);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 900; color: #fff;
    margin-bottom: 1rem; line-height: 1.15;
}
.section-sub {
    font-size: clamp(.9rem, 1.8vw, 1.1rem);
    color: rgba(255,255,255,.6);
    max-width: 640px;
    line-height: 1.75;
    margin-bottom: 3.5rem;
}

/* ── 3-step flow ─────────────────────────────────── */
.steps-flow {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 4rem;
}

.step-card {
    flex: 1;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px;
    padding: 2rem 1.75rem;
    backdrop-filter: blur(12px);
    transition: transform .3s, box-shadow .3s;
    min-width: 0;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.step-num {
    font-family: var(--font-h);
    font-size: 3rem; font-weight: 900;
    line-height: 1;
    color: rgba(255,255,255,.07);
    margin-bottom: 1rem;
    letter-spacing: -.05em;
}

.step-icon-wrap {
    width: 54px; height: 54px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}
.step-purple { background: rgba(123,77,255,.25); color: #a78bfa; }
.step-blue   { background: rgba(59,130,246,.25);  color: #93c5fd; }
.step-orange { background: rgba(245,166,35,.25);  color: #fcd34d; }

.step-title {
    font-family: var(--font-h);
    font-size: 1.2rem; font-weight: 800; color: #fff;
    margin-bottom: .6rem;
}
.step-desc {
    font-size: .88rem; color: rgba(255,255,255,.65);
    line-height: 1.72; margin-bottom: 1.25rem;
}

/* Wide step-2 card */
.step-card-wide { flex: 1.35; }
.step-card-wide .step-desc strong { color: #fff; }

/* ── Explanation Ladder ──────────────────────────── */
.ladder {
    display: flex; flex-direction: column; gap: .6rem;
    margin-top: .25rem;
}

.ladder-question {
    display: flex; align-items: center; gap: 7px;
    font-size: .78rem; font-weight: 700;
    color: rgba(255,255,255,.55);
    padding: .5rem .75rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
}
.ladder-question svg { flex-shrink: 0; opacity: .6; }

.ladder-track {
    display: flex; flex-direction: column; gap: 0;
    border-left: 2px solid rgba(255,255,255,.1);
    margin-left: 10px;
    padding-left: 1rem;
}

.ladder-step {
    display: flex; align-items: flex-start; gap: 10px;
    padding: .7rem 0;
    position: relative;
}
.ladder-step::before {
    content: '';
    position: absolute;
    left: -1.125rem; top: 1.05rem;
    width: 10px; height: 2px;
    background: rgba(255,255,255,.12);
}

/* Dots */
.ls-dot {
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 2px;
}
.ls-dot-done {
    background: rgba(16,185,129,.25);
    border: 1.5px solid rgba(16,185,129,.5);
    color: #6ee7b7;
}
.ls-dot-active {
    background: rgba(59,130,246,.2);
    border: 1.5px solid rgba(59,130,246,.5);
    position: relative;
}
.ls-dot-pending {
    background: rgba(255,255,255,.05);
    border: 1.5px dashed rgba(255,255,255,.2);
}
.ls-dot-pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--blue);
    display: block;
    animation: dotPulse 1.4s ease-in-out infinite;
}

/* Step content */
.ls-content { flex: 1; min-width: 0; }
.ls-label {
    font-size: .62rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: rgba(255,255,255,.35); margin-bottom: .25rem;
}
.ls-text {
    font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.8);
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.ls-muted { color: rgba(255,255,255,.3) !important; }
.ls-check {
    font-size: .68rem; font-weight: 700; color: #6ee7b7;
    background: rgba(16,185,129,.15); border-radius: 6px;
    padding: .1rem .4rem;
}

/* Active step validation */
.ls-validate {
    margin-top: .6rem;
    padding: .75rem;
    background: rgba(59,130,246,.1);
    border: 1px solid rgba(59,130,246,.25);
    border-radius: 10px;
    font-size: .76rem; color: rgba(255,255,255,.7); line-height: 1.5;
}
.ls-validate-label {
    font-size: .62rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: #93c5fd; display: block; margin-bottom: .35rem;
}
.ls-options { display: flex; gap: .5rem; margin-top: .5rem; }
.ls-opt {
    font-size: .72rem; font-weight: 700;
    padding: .3rem .75rem; border-radius: 8px; cursor: pointer;
    border: 1.5px solid transparent; transition: all .2s;
    font-family: var(--font-b);
}
.ls-opt-wrong {
    background: rgba(255,75,92,.1); border-color: rgba(255,75,92,.3);
    color: #fca5a5;
}
.ls-opt-right {
    background: rgba(16,185,129,.15); border-color: rgba(16,185,129,.4);
    color: #6ee7b7;
}
.ls-opt-wrong:hover  { background: rgba(255,75,92,.2); }
.ls-opt-right:hover  { background: rgba(16,185,129,.25); }

/* Final mastery row */
.ladder-final {
    display: flex; align-items: center; gap: 7px;
    font-size: .75rem; font-weight: 700;
    color: rgba(245,166,35,.8);
    padding: .5rem .75rem;
    background: rgba(245,166,35,.08);
    border: 1px solid rgba(245,166,35,.25);
    border-radius: 10px;
    margin-left: 0;
}
.ladder-final svg { color: var(--orange); flex-shrink: 0; }

/* Subject tags inside step 1 */
.step-tags {
    display: flex; flex-wrap: wrap; gap: .4rem;
}
.step-tags span {
    font-size: .72rem; font-weight: 700;
    padding: .3rem .7rem; border-radius: 99px;
    background: rgba(123,77,255,.18);
    border: 1px solid rgba(123,77,255,.35);
    color: #c4b0ff;
}


/* Mini badges inside step 3 */
.step-badges { display: flex; flex-direction: column; gap: .5rem; }
.mini-badge {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .75rem; font-weight: 700;
    padding: .4rem .8rem; border-radius: 10px;
    background: rgba(255,255,255,.07);
    border: 1px solid var(--bc);
    color: var(--bc);
    width: fit-content;
}

/* Step connectors */
.step-connector {
    display: flex; align-items: center;
    padding: 0 .5rem;
    padding-top: 5rem; /* align with card content visually */
    flex-shrink: 0;
}
.connector-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(123,77,255,.4), rgba(59,130,246,.4));
    border-radius: 99px;
    width: 30px;
}
.connector-arrow { color: rgba(255,255,255,.3); flex-shrink: 0; }

/* ── Bento Grid ──────────────────────────────────── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

.bento-card {
    border-radius: 24px;
    padding: 2rem 1.75rem;
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
    transition: transform .28s, box-shadow .28s;
    display: flex; flex-direction: column; gap: .6rem;
}
.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

/* size variants */
.bento-large  { grid-column: span 1; grid-row: span 2; }
.bento-medium { grid-column: span 1; }
.bento-small  { grid-column: span 1; }

/* colour variants */
.bento-purple { background: rgba(123,77,255,.1);  border-color: rgba(123,77,255,.28); }
.bento-blue   { background: rgba(59,130,246,.1);  border-color: rgba(59,130,246,.28); }
.bento-magenta{ background: rgba(156,44,107,.1);  border-color: rgba(156,44,107,.28); }
.bento-coral  { background: rgba(255,75,92,.1);   border-color: rgba(255,75,92,.28); }
.bento-green  { background: rgba(16,185,129,.1);  border-color: rgba(16,185,129,.28); }

.bento-eyebrow {
    font-size: .68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: rgba(255,255,255,.45);
    margin-bottom: .25rem;
}
.bento-icon-wrap {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: .5rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
}
.bento-purple  .bento-icon-wrap { color: #a78bfa; }
.bento-blue    .bento-icon-wrap { color: #93c5fd; }
.bento-magenta .bento-icon-wrap { color: #f9a8d4; }
.bento-coral   .bento-icon-wrap { color: #fca5a5; }
.bento-green   .bento-icon-wrap { color: #6ee7b7; }

.bento-title {
    font-family: var(--font-h);
    font-size: 1.15rem; font-weight: 800; color: #fff;
    line-height: 1.25;
}
.bento-large .bento-title { font-size: 1.55rem; }
.bento-desc {
    font-size: .84rem; color: rgba(255,255,255,.62);
    line-height: 1.7; flex: 1;
}

.bento-stat { margin-top: auto; padding-top: 1.5rem; }
.bento-stat-num {
    display: block;
    font-family: var(--font-h); font-size: 2.8rem; font-weight: 900;
    background: linear-gradient(135deg, var(--orange), #FFD700);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; line-height: 1;
}
.bento-stat-label {
    font-size: .75rem; font-weight: 600;
    color: rgba(255,255,255,.45);
    text-transform: uppercase; letter-spacing: .07em;
}

/* ══════════════════════════════════════════════════
   WHY XPLANE
   ══════════════════════════════════════════════════ */
.why-section {
    padding: 4.5rem 0 5rem;
    background: rgba(255,255,255,.018);
    border-top: 1px solid rgba(255,255,255,.05);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; margin-top: 2.5rem;
}

.why-card {
    border-radius: 24px;
    padding: 2.25rem 2rem;
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(14px);
    transition: transform .3s, box-shadow .3s;
    /* Coloured top accent — always visible */
    border-top-width: 3px;
}
.why-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,.4); }

.why-kids    { background: rgba(123,77,255,.1);  border-color: rgba(123,77,255,.35); border-top-color: var(--purple); }
.why-parents { background: rgba(59,130,246,.1);  border-color: rgba(59,130,246,.35); border-top-color: var(--blue); }
.why-ai      { background: rgba(245,166,35,.1);  border-color: rgba(245,166,35,.35); border-top-color: var(--orange); }

/* Icon circle — always coloured */
.why-icon-wrap {
    width: 58px; height: 58px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem; flex-shrink: 0;
}
.why-icon-wrap svg { flex-shrink: 0; }
.why-icon-purple { background: rgba(123,77,255,.25); color: #a78bfa; }
.why-icon-blue   { background: rgba(59,130,246,.25);  color: #93c5fd; }
.why-icon-orange { background: rgba(245,166,35,.25);  color: #fcd34d; }

.why-card h3 {
    font-family: var(--font-h); font-size: 1.3rem; font-weight: 900;
    color: #fff;   /* white — clearly visible */
    margin-bottom: .7rem;
}
.why-card p {
    font-size: .88rem;
    color: rgba(255,255,255,.72);   /* visible without hover */
    line-height: 1.72; margin-bottom: 1.25rem;
}

.why-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.why-list li {
    display: flex; align-items: center; gap: 8px;
    font-size: .86rem; font-weight: 600;
    color: rgba(255,255,255,.85);   /* clearly visible */
}

.why-bullet {
    width: 20px; height: 20px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.why-bullet-purple { background: rgba(123,77,255,.3); color: #a78bfa; }
.why-bullet-blue   { background: rgba(59,130,246,.3);  color: #93c5fd; }
.why-bullet-orange { background: rgba(245,166,35,.3);  color: #fcd34d; }

/* ══════════════════════════════════════════════════
   CTA STRIP
   ══════════════════════════════════════════════════ */
.cta-strip {
    padding: 5rem 0 6rem;
    background: linear-gradient(135deg, rgba(123,77,255,.15) 0%, rgba(59,130,246,.1) 100%);
    border-top: 1px solid rgba(255,255,255,.06);
}
.cta-headline {
    font-family: var(--font-h);
    font-size: clamp(1.75rem, 4vw, 2.8rem);
    font-weight: 900; color: #fff; margin-bottom: 1rem;
}
.cta-sub {
    font-size: 1.05rem; color: rgba(255,255,255,.65);
    margin-bottom: 2.5rem; max-width: 480px;
    margin-left: auto; margin-right: auto;
}

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.site-footer-fixed {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(6,4,18,.95);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 1rem 0; z-index: 1030;
}
.site-footer-fixed a {
    color: rgba(255,255,255,.45); text-decoration: none;
    font-size: .78rem; font-weight: 500; transition: color .2s;
}
.site-footer-fixed a:hover { color: #fff; }
.site-footer-fixed span { color: rgba(255,255,255,.18); }

/* ══════════════════════════════════════════════════
   SUBPAGES (privacy / terms)
   ══════════════════════════════════════════════════ */
.banner.sub-banner {
    min-height: 38vh; display: flex;
    align-items: flex-start; padding: 4rem 0 3.5rem;
    background: linear-gradient(
        140deg,
        rgba(13, 8, 38, 0.92)  0%,
        rgba(26, 12, 82, 0.88) 55%,
        rgba(13, 30, 106, 0.85) 100%
    );
    position: relative; overflow: visible;
}
.banner.sub-banner .breadcrumb .breadcrumb-item a { color: rgba(255,255,255,.8); text-decoration: none; }
.banner.sub-banner .breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,.5); }
.banner.sub-banner h1 { font-family: var(--font-h); font-weight: 900; }
.banner.sub-banner p.text-white-50 { color: rgba(255,255,255,.55) !important; }
/* ── Sub-page hero-brand: smaller ring + wordmark ─── */
.sub-banner .hero-logo-ring {
    width: 100px; height: 100px;
    border-radius: 28px;
}
.sub-banner .hero-logo-ring::before { border-radius: 32px; }
.sub-banner .hero-logo-ring::after  { border-radius: 44px; }
.sub-banner .hero-logo-inner        { border-radius: 26px; }
.sub-banner .hero-logo-img          { width: 100%; height: 100%; }
.sub-banner .od-1 { --r: 70px; }
.sub-banner .od-2 { --r: 74px; }
.sub-banner .od-3 { --r: 72px; }

.sub-banner .wm-x,
.sub-banner .wm-plane,
.sub-banner .wm-dot,
.sub-banner .wm-ai {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
}

/* Subpage main content — readable on the dark background */
main.container {
    color: rgba(255,255,255,.85);
}
main.container h2 {
    font-family: var(--font-h);
    font-weight: 800;
    color: #fff;
    margin-bottom: .5rem;
}
main.container p {
    color: rgba(255,255,255,.72);
    line-height: 1.78;
}
main.container hr {
    border-color: rgba(255,255,255,.12);
}
main.container .text-muted {
    color: rgba(255,255,255,.45) !important;
}
main.container a {
    color: var(--orange);
}
main.container a:hover {
    color: #FFD700;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .phone-scene { width: 320px; height: 660px; }
    .phone-frame { width: 290px; height: 600px; }
    .card-badge   { left: -80px; }
    .card-progress{ right: -100px; }
    .card-subject { left: -70px; }
    .card-math    { right: -70px; }
}

@media (max-width: 991px) {
    .hero-row { flex-direction: column-reverse; padding: 3rem 0; }
    .hero-phone-col, .hero-content-col { width: 100%; text-align: center; }
    .cta-row, .trust-chips { justify-content: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-brand { justify-content: center; }
    .float-card { display: none; }
    .steps-flow { flex-direction: column; }
    .step-connector { display: none; }
    .bento-grid { grid-template-columns: 1fr 1fr; }
    .bento-large { grid-column: span 2; grid-row: span 1; }
    .why-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
    .phone-scene { margin-bottom: 2rem; }
    .logo-watermark { width: 300px; }
}

@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large { grid-column: span 1; }
    .stats-inner { gap: 1.5rem; }
    .stat-divider { display: none; }
    .cta-row { flex-direction: column; width: 100%; }
    .btn-appstore, .btn-demo { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .logo-watermark { display: none; }
    .phone-scene { width: 260px; height: 540px; }
    .phone-frame { width: 240px; height: 500px; }
}

img { transition: opacity .3s ease; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
