/* =============================================================
 * EdGame landing page — sleek, responsive, dark-navy + gold
 *
 * Single-file stylesheet. Read top to bottom — sections are marked
 * with "---------- <name> ----------" block comments so you can jump
 * around. (Never write a comment-closing star-slash inside this
 * header: it ends the comment early and the browser then discards
 * the :root token block below, which strips every colour and font.)
 *
 * Design system:
 *   - Palette + radii + shadows tokenized in :root (see below)
 *   - Font stack: Inter (400-900) + JetBrains Mono for accents
 *   - Every animated / hover state is transition-based; no keyframes
 *     except .pulse (hero eyebrow) and .pin-pop (Profile pins)
 *
 * Responsive:
 *   - Mobile-first — default rules assume ≤639px viewport
 *   - Breakpoints applied via @media (min-width: N): 640 · 700 · 768
 *     · 900 · 1024 · 1280
 *   - Every grid section declares grid-template-columns: 1fr in the
 *     default and widens with min-width queries
 *
 * Do NOT change without reading AGENTS.md:
 *   - .js-loaded .reveal-on-scroll (opacity gated on JS load)
 *   - .pin-1 through .pin-6 percentages (calibrated to a specific
 *     screenshot at assets/img/profile_admin_1440.png)
 *   - .mobile-cta positioning (sticky demo pill on ≤900px)
 * ============================================================= */

/* ---------- Tokens ---------- */
:root {
    --bg:            #060b1a;
    --bg-2:          #0b1120;
    --bg-3:          #10192e;
    --bg-elev:       #141d34;
    --border:        rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 216, 77, 0.35);

    --text:          #f4f5f7;
    --text-mute:     rgba(244, 245, 247, 0.72);
    --text-dim:      rgba(244, 245, 247, 0.5);

    --gold:          #ffd84d;
    --gold-2:        #ffb547;
    --cyan:          #5ac8fa;
    --cyan-2:        #24aef0;
    --purple:        #a48bff;
    --green:         #46c78f;
    --red:           #f56565;

    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 18px;
    --radius-xl: 28px;

    --shadow-card:  0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.55);
    --shadow-lift:  0 30px 80px -20px rgba(255, 216, 77, 0.25);

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Utility ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-mute);
    margin: 0 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.eyebrow.gold { color: var(--gold); }
.eyebrow.cyan { color: var(--cyan); }
.pulse {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(70, 199, 143, 0.4);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(70, 199, 143, 0.5); }
    70%  { box-shadow: 0 0 0 12px rgba(70, 199, 143, 0); }
    100% { box-shadow: 0 0 0 0 rgba(70, 199, 143, 0); }
}

.hi {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.3rem); }
p  { margin: 0 0 12px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-xl { padding: 18px 34px; font-size: 17px; }

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #191320;
    box-shadow: var(--shadow-lift);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 35px 90px -20px rgba(255, 216, 77, 0.4);
    color: #191320;
}
.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--gold);
    color: var(--gold);
}
.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.12);
}
.btn-ghost:hover {
    background: var(--gold);
    color: #191320;
    border-color: var(--gold);
}

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px;
    background: rgba(6, 11, 26, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    color: var(--text); font-weight: 800; font-size: 17px;
    text-decoration: none;
    letter-spacing: -0.01em;
}
.nav-brand img { width: 34px; height: 34px; object-fit: contain; }
.nav-brand:hover { color: var(--gold); }

.nav-links {
    display: none;
    gap: 28px;
}
.nav-links a {
    color: var(--text-mute);
    font-size: 14px;
    font-weight: 500;
    transition: color 160ms;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta { display: none; }

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 250ms, opacity 250ms;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav open (mobile) */
.nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    padding: 16px 24px 24px;
    background: rgba(6, 11, 26, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    gap: 16px;
}
.nav.is-open .nav-links a { font-size: 15px; padding: 8px 0; }
.nav.is-open .nav-links::after {
    content: '';
    order: 99;
}

@media (min-width: 900px) {
    .nav { padding: 18px 40px; }
    .nav-links { display: flex; }
    .nav-cta { display: flex; }
    .nav-toggle { display: none; }
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    padding: 48px 24px 80px;
    overflow: hidden;
    background:
      radial-gradient(ellipse at 20% -10%, rgba(90, 200, 250, 0.15), transparent 55%),
      radial-gradient(ellipse at 90% 10%, rgba(255, 216, 77, 0.14), transparent 50%),
      var(--bg);
}
.hero-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}
.hero-bg-orb-1 { width: 400px; height: 400px; background: rgba(90, 200, 250, 0.25); top: -100px; left: -100px; }
.hero-bg-orb-2 { width: 500px; height: 500px; background: rgba(255, 216, 77, 0.15); top: 20%; right: -180px; }

.hero-inner {
    position: relative; z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lede {
    color: var(--text-mute);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    max-width: 560px;
    margin: 0 0 32px;
}
.hero-cta {
    display: flex; flex-wrap: wrap; gap: 12px;
    margin-bottom: 44px;
}
.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 520px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.hero-proof strong {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
}
.hero-proof span {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.35;
}

.hero-visual { position: relative; }
.hero-shot {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border);
    background: var(--bg-2);
    transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
    transition: transform 400ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.hero-shot:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg) scale(1.01); }
.hero-shot-frame { display: block; }
.hero-shot-frame img { width: 100%; height: auto; display: block; }
.hero-badge {
    position: absolute; top: 16px; right: 16px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: rgba(6, 11, 26, 0.92);
    border: 1px solid var(--green);
    border-radius: 999px;
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    box-shadow: 0 4px 20px rgba(70, 199, 143, 0.3);
}
.hero-shot-caption {
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
    margin: 16px 0 0;
}
.hero-shot-caption em { font-style: normal; }

@media (min-width: 1024px) {
    .hero { padding: 80px 40px 120px; }
    .hero-inner { grid-template-columns: 1.05fr 1.15fr; gap: 60px; }
}

/* ---------- Trust bar ---------- */
.trust-bar {
    padding: 20px 24px;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.trust-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 8px 28px;
    justify-content: center; align-items: center;
    color: var(--text-mute);
    font-size: 13px;
}

/* ---------- Section base ---------- */
section {
    padding: 80px 24px;
}
@media (min-width: 900px) { section { padding: 100px 40px; } }
.section-head {
    max-width: 780px;
    margin: 0 auto 48px;
    text-align: center;
}
.section-head h2 { margin-bottom: 16px; }
.section-head .sub {
    color: var(--text-mute);
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    margin: 0;
}

/* ---------- How it works ---------- */
.how { background: var(--bg-2); }
.how-steps {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.how-step {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    transition: transform 200ms, border-color 200ms, box-shadow 200ms;
}
.how-step:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-hover);
}
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #191320;
    font-weight: 800; font-size: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 12px 30px -8px rgba(255, 216, 77, 0.4);
}
.how-step h3 { color: var(--text); margin-bottom: 12px; }
.how-step p { color: var(--text-mute); font-size: 15px; margin: 0; }
@media (min-width: 900px) {
    .how-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ---------- Dimensions ---------- */
.dims-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.dim-card {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    transition: transform 200ms, border-color 200ms;
}
.dim-card:hover {
    transform: translateY(-3px);
    border-color: var(--cyan);
}
.dim-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(90, 200, 250, 0.14);
    color: var(--cyan);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.4px;
    margin-bottom: 14px;
}
.dim-card h3 { margin-bottom: 6px; }
.dim-lede {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
}
.dim-card p:not(.dim-lede) {
    color: var(--text-mute);
    font-size: 14px;
    margin-bottom: 20px;
}
.dim-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}
.dim-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--cyan) 0%, var(--gold) 100%);
    border-radius: 3px;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.dim-card-off .dim-badge { background: rgba(255,255,255,0.06); color: var(--text-dim); }
.dim-card-off h3, .dim-card-off .dim-lede { color: var(--text-dim); }
.dim-card-off .dim-bar span { background: rgba(255,255,255,0.15); }
@media (min-width: 700px)  { .dims-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dims-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- Profile ---------- */
.profile { background: var(--bg-2); }
.profile-shot-wrap {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}
.profile-shot {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border);
}
.profile-shot img { width: 100%; height: auto; display: block; }
.profile-callouts {
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.profile-callouts li {
    display: flex;
    gap: 16px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: border-color 200ms;
}
.profile-callouts li:hover { border-color: var(--gold); }
.callout-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #191320;
    font-weight: 800; font-size: 14px;
    border-radius: 8px;
    flex-shrink: 0;
}
.profile-callouts h4 { margin: 0 0 4px; font-size: 15px; }
.profile-callouts p { margin: 0; color: var(--text-mute); font-size: 13px; }
@media (min-width: 900px)  { .profile-callouts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
    .profile-shot-wrap { grid-template-columns: 1.4fr 1fr; gap: 48px; }
    .profile-callouts { grid-template-columns: 1fr; }
}

/* ---------- Audiences ---------- */
.aud-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.aud-card {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: transform 200ms, border-color 200ms, box-shadow 200ms;
}
.aud-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-hover);
}
.aud-card-featured {
    background: linear-gradient(140deg, rgba(255, 216, 77, 0.12), rgba(90, 200, 250, 0.08));
    border-color: rgba(255, 216, 77, 0.5);
}
.aud-badge {
    position: absolute; top: -12px; right: 20px;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #191320;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 24px -4px rgba(255, 216, 77, 0.5);
}
.aud-icon { font-size: 40px; line-height: 1; }
.aud-card h3 { margin: 0; }
.aud-headline {
    color: var(--gold);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.35;
}
.aud-headline em { font-style: italic; }
.aud-card ul {
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.aud-card li {
    color: var(--text-mute);
    font-size: 14px;
    padding-left: 22px;
    position: relative;
    line-height: 1.45;
}
.aud-card li::before {
    content: "✓";
    position: absolute; left: 0; top: 0;
    color: var(--gold);
    font-weight: 700;
}
@media (min-width: 900px) { .aud-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- Matrix ---------- */
.matrix { background: var(--bg-2); }
.matrix-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.matrix-cell {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: transform 200ms, border-color 200ms;
}
.matrix-cell:hover {
    transform: translateY(-3px);
    border-color: var(--cyan);
}
.matrix-emoji { font-size: 48px; display: block; margin-bottom: 12px; line-height: 1; }
.matrix-cell h4 { margin: 0 0 6px; font-size: 20px; }
.matrix-sub {
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 12px;
}
.matrix-topics {
    color: var(--text-mute);
    font-size: 13px;
    margin: 0;
}
.matrix-langs .lang-flags {
    display: flex; flex-direction: column; gap: 8px;
    align-items: center;
    color: var(--text-mute); font-size: 13px;
}
@media (min-width: 700px)  { .matrix-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .matrix-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ---------- Game preview ---------- */
.game-preview-inner,
.tp-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
.gp-copy h2 { margin-bottom: 20px; }
.gp-copy p { color: var(--text-mute); font-size: 16px; margin-bottom: 24px; }
.gp-copy .btn { margin-top: 8px; }
.gp-features {
    list-style: none;
    padding: 0; margin: 0 0 24px;
    display: flex; flex-direction: column; gap: 12px;
}
.gp-features li {
    color: var(--text-mute);
    font-size: 15px;
    padding-left: 26px;
    position: relative;
}
.gp-features li::before {
    content: '';
    position: absolute; left: 0; top: 9px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--gold));
}
.gp-features strong { color: var(--text); }
.gp-visual-frame,
.tp-visual-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border);
}
.gp-visual-frame img,
.tp-visual-frame img {
    width: 100%; height: auto; display: block;
}
@media (min-width: 1024px) {
    .game-preview-inner { grid-template-columns: 1fr 1.15fr; gap: 64px; }
    .tp-inner           { grid-template-columns: 1.15fr 1fr; gap: 64px; }
}

/* ---------- Teacher preview ---------- */
.teacher-preview { background: var(--bg-2); }

/* ---------- Final CTA ---------- */
.cta {
    position: relative;
    background:
      radial-gradient(ellipse at 30% 20%, rgba(255, 216, 77, 0.16), transparent 55%),
      radial-gradient(ellipse at 70% 80%, rgba(90, 200, 250, 0.12), transparent 50%),
      var(--bg);
    text-align: center;
    padding: 120px 24px;
}
.cta-inner {
    max-width: 780px;
    margin: 0 auto;
}
.cta-inner h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 18px;
}
.cta-lede {
    color: var(--text-mute);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    margin: 0 0 36px;
}
.cta-buttons {
    display: flex; flex-wrap: wrap; gap: 14px;
    justify-content: center;
    margin-bottom: 20px;
}
.cta-micro {
    color: var(--text-dim);
    font-size: 13px;
    margin: 8px 0 0;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 60px 24px 30px;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.footer-brand p {
    color: var(--text-mute);
    font-size: 14px;
    margin-top: 12px;
    max-width: 400px;
}
.footer-tag {
    color: var(--text-dim) !important;
    font-size: 12px !important;
    margin-top: 6px !important;
}
.footer-logo { width: 40px; height: 40px; object-fit: contain; }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 32px;
}
.footer-links {
    display: flex; flex-direction: column; gap: 10px;
}
.footer-links h5 {
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px;
}
.footer-links a {
    color: var(--text-mute);
    font-size: 14px;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
    max-width: 1280px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 12px;
    text-align: center;
}
@media (min-width: 900px) {
    .footer-inner { grid-template-columns: 1.3fr 2fr; }
}

/* ---------- Trust bar alt row (privacy) ---------- */
.trust-inner-alt {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 12px;
}

/* ---------- Numbered pins on Profile screenshot ---------- */
.profile-shot { position: relative; }
.pin {
    position: absolute;
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #191320;
    font-weight: 800; font-size: 15px;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(255, 216, 77, 0.25);
    z-index: 2;
    animation: pin-pop 500ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes pin-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
/* Positions calibrated for the actual populated Profile screenshot at
   1440×900. Percentages so they scale with the responsive image. */
.pin-1 { top: 18%;   left: 11%;  }  /* AD avatar — identity */
.pin-2 { top: 42%;   left: 65%;  }  /* Dimension Scores card — 5 signal bars */
.pin-3 { top: 78%;   left: 65%;  }  /* Math Topic Mastery — per-topic breakdown */
.pin-4 { top: 78%;   left: 12%;  }  /* Key Insights — plain-English callouts */
.pin-5 { top: 43%;   left: 12%;  }  /* Session Summary — accuracy / waves / XP */
.pin-6 { top: 22%;   left: 92%;  }  /* Export Report button */
@media (max-width: 640px) {
    .pin { width: 22px; height: 22px; font-size: 11px; }
}

/* ---------- Differentiation table ---------- */
.diff-table {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.diff-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.diff-row:last-child { border-bottom: 0; }
.diff-row > div:first-child {
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    margin-bottom: 4px;
}
.diff-row > div:nth-child(2),
.diff-row > div:nth-child(3) {
    color: var(--text-mute);
    font-size: 14px;
    line-height: 1.5;
}
.diff-head {
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 24px;
    display: none;
}
.diff-head > div {
    font-size: 11px !important;
    color: var(--text-dim) !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    margin-bottom: 0 !important;
}
.diff-brand-hi { color: var(--gold) !important; font-size: 15px !important; letter-spacing: 0 !important; }
.diff-row-hi {
    background: linear-gradient(140deg, rgba(255, 216, 77, 0.09), rgba(90, 200, 250, 0.05));
    border-left: 3px solid var(--gold);
    padding-left: 21px;
}
.diff-row-hi > div:nth-child(2),
.diff-row-hi > div:nth-child(3) {
    color: var(--text);
    font-size: 15px;
}
@media (min-width: 900px) {
    .diff-row, .diff-head { grid-template-columns: 200px 1fr 1.4fr; gap: 24px; padding: 22px 32px; align-items: start; }
    .diff-head { display: grid; }
    .diff-row > div:first-child { margin-bottom: 0; }
}

/* ---------- Institutional proof ---------- */
.proof-badges {
    max-width: 1100px;
    margin: 0 auto 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.proof-badge {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    text-align: center;
    transition: border-color 200ms, transform 200ms;
}
.proof-badge:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}
.proof-badge strong {
    display: block;
    color: var(--gold);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.proof-badge span {
    color: var(--text-mute);
    font-size: 13px;
    line-height: 1.4;
}
.proof-note {
    max-width: 780px;
    margin: 20px auto 0;
    text-align: center;
    color: var(--text-mute);
    font-size: 14px;
}
@media (min-width: 700px)  { .proof-badges { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .proof-badges { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); }
.faq-grid {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-grid details {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    transition: border-color 200ms;
}
.faq-grid details:hover { border-color: var(--gold); }
.faq-grid summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    list-style: none;
}
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after {
    content: "+";
    font-size: 24px;
    color: var(--gold);
    font-weight: 300;
    transition: transform 250ms;
}
.faq-grid details[open] summary::after { transform: rotate(45deg); }
.faq-grid p {
    margin: 14px 0 0;
    color: var(--text-mute);
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- Privacy ---------- */
.privacy-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(135deg, rgba(90, 200, 250, 0.08), rgba(70, 199, 143, 0.05));
    border: 1px solid rgba(90, 200, 250, 0.25);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}
.privacy-icon { font-size: 56px; line-height: 1; text-align: center; }
.privacy h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 12px; }
.privacy p { color: var(--text-mute); font-size: 15px; margin-bottom: 16px; }
@media (min-width: 700px) {
    .privacy-inner { grid-template-columns: 80px 1fr; padding: 48px; }
    .privacy-icon { text-align: left; }
}

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #191320;
    font-weight: 700;
    font-size: 15px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(255, 216, 77, 0.2);
    align-items: center;
    gap: 8px;
}
@media (max-width: 900px) {
    .mobile-cta { display: inline-flex; }
    /* Ensure last section has bottom padding so CTA doesn't cover content */
    .footer-copy { padding-bottom: 60px; }
}

/* ---------- Reveal-on-scroll ----------
   By default nothing is hidden — this way static renders (Puppeteer,
   social crawlers, OG previewers, screenshot tools) see the full page.
   Only when JS confirms it can run do we hide + reveal on scroll. */
.js-loaded .reveal-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.js-loaded .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * { transition-duration: 0ms !important; animation-duration: 0ms !important; }
    html { scroll-behavior: auto; }
    .hero-shot { transform: none !important; }
}

/* ---------- Mobile CTA hierarchy ---------- */
@media (max-width: 640px) {
    /* On mobile the "See how it works" secondary link should read as a
       link, not a button — a single tap target per screen is more
       thumb-friendly and clarifies which action wins. */
    .hero-cta .btn-secondary {
        background: transparent !important;
        border-color: transparent !important;
        padding: 8px 4px !important;
        text-decoration: underline;
        text-decoration-color: rgba(255, 255, 255, 0.3);
        text-underline-offset: 4px;
        color: var(--text-mute) !important;
    }
    .hero-cta .btn-secondary:hover {
        color: var(--gold) !important;
        text-decoration-color: var(--gold);
        background: transparent !important;
    }
}

/* ---------- Very small screens ---------- */
@media (max-width: 380px) {
    .hero { padding: 32px 16px 60px; }
    section { padding: 60px 16px; }
    .hero-proof { grid-template-columns: 1fr; text-align: center; }
    .btn-lg { padding: 12px 20px; font-size: 15px; }
    .btn-xl { padding: 14px 24px; font-size: 15px; }
    .cta-buttons .btn { width: 100%; justify-content: center; }
}
