/* Fonts loaded from index extra_head; avoid duplicate @import here */

/* ─── Landing scope (index only: body.page-landing) ─── */
html:has(body.page-landing) {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html:has(body.page-landing) {
        scroll-behavior: auto;
    }
}
body.page-landing {
    font-family: 'DM Sans', system-ui, sans-serif;
    --landing-sage: #6d8f7e;
    --landing-sage-dim: rgba(109, 143, 126, 0.35);
    --landing-clay: #b87d62;
    --landing-clay-dim: rgba(184, 125, 98, 0.35);
    --landing-amber: #c9a227;
    --landing-parchment: #e8dcc8;
    --landing-ink-muted: rgba(232, 220, 200, 0.55);
}

body.page-landing main.page-landing-main {
    padding: 0;
    max-width: none;
}

body.page-landing .landing-page {
    position: relative;
    overflow-x: clip;
}

/* Tighter, editorial dock on the marketing page only */
body.page-landing .nav-dock.nav-dock--studio {
    top: 14px;
    padding: 9px 10px 9px 12px;
    border-radius: 16px;
    gap: 6px 12px;
    max-width: min(680px, 92vw);
    background: rgba(22, 19, 24, 0.62);
    backdrop-filter: blur(22px) saturate(1.2);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
    border: 1px solid rgba(232, 220, 200, 0.09);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 18px 44px -22px rgba(0, 0, 0, 0.55);
}

[data-theme="light-temp-disabled"] body.page-landing .nav-dock.nav-dock--studio {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(15, 23, 42, 0.07);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 14px 36px -18px rgba(15, 23, 42, 0.12);
}

body.page-landing .nav-dock-divider {
    height: 18px;
    opacity: 0.55;
}

body.page-landing .nav-dock-brand {
    padding: 4px 12px 4px 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

body.page-landing .nav-dock-brand-mark {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

body.page-landing .nav-dock .nav-link {
    font-size: 0.8125rem;
    padding: 7px 14px;
    border-radius: 10px;
}

body.page-landing .nav-dock a.nav-link[href*="register"] {
    background: linear-gradient(135deg, rgba(109, 143, 126, 0.35) 0%, rgba(184, 125, 98, 0.28) 100%);
    border: 1px solid rgba(232, 220, 200, 0.16);
    color: #f7f4ef;
}

[data-theme="light-temp-disabled"] body.page-landing .nav-dock a.nav-link[href*="register"] {
    background: linear-gradient(135deg, rgba(90, 125, 108, 0.2) 0%, rgba(160, 110, 88, 0.16) 100%);
    border-color: rgba(55, 48, 40, 0.12);
    color: var(--text-primary);
}

.landing-cursor-aura {
    position: fixed;
    width: 420px;
    height: 420px;
    margin: -210px 0 0 -210px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 40%, rgba(109, 143, 126, 0.2) 0%, transparent 42%),
        radial-gradient(circle at 70% 55%, rgba(201, 162, 39, 0.12) 0%, transparent 45%),
        radial-gradient(circle, rgba(184, 125, 98, 0.1) 0%, transparent 68%);
    pointer-events: none;
    z-index: 5;
    opacity: 0.88;
    mix-blend-mode: screen;
    transition: opacity 0.6s ease;
}

[data-theme="light-temp-disabled"] .landing-cursor-aura {
    mix-blend-mode: multiply;
    background:
        radial-gradient(circle at 40% 45%, rgba(90, 125, 108, 0.14) 0%, transparent 42%),
        radial-gradient(circle at 65% 50%, rgba(180, 140, 60, 0.1) 0%, transparent 48%);
}

/* Demo hero */
.landing-demo-hero {
    position: relative;
    background:
        radial-gradient(ellipse 120% 80% at 15% 20%, rgba(109, 143, 126, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 90% 70% at 85% 65%, rgba(184, 125, 98, 0.07) 0%, transparent 48%),
        var(--bg-dark);
}

.landing-demo-scroll-track {
    position: relative;
}

.landing-demo-sticky {
    pointer-events: none;
    align-items: stretch;
    justify-content: center;
    isolation: isolate;
    gap: 0;
}

.landing-demo-ambient {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(rgba(232, 220, 200, 0.045) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 72% 58% at 50% 42%, black 18%, transparent 74%);
    opacity: 0.55;
    pointer-events: none;
}

[data-theme="light-temp-disabled"] .landing-demo-ambient {
    background-image: radial-gradient(rgba(55, 48, 40, 0.06) 1px, transparent 1px);
    opacity: 0.5;
}

.landing-demo-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse 88% 72% at 50% 44%, transparent 38%, rgba(10, 8, 12, 0.92) 88%, var(--bg-dark) 100%);
    pointer-events: none;
}

.landing-hero-split {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 4vw, 3.5rem);
    align-items: center;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(0.75rem, 2vw, 1.25rem);
    pointer-events: none;
}

.landing-demo-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    pointer-events: none;
    position: relative;
    z-index: 3;
}

.landing-hero-intro {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 36rem;
    margin: 0;
    padding: 0;
    pointer-events: auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (max-width: 900px) {
    .landing-hero-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.75rem;
    }

    .landing-hero-intro {
        text-align: center;
        margin: 0 auto;
        max-width: 40rem;
    }

    .landing-demo-column {
        width: 100%;
    }
}

.landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--landing-ink-muted);
    margin-bottom: 1rem;
}

.landing-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7d9f88, #c4a06e);
    box-shadow: 0 0 12px rgba(196, 165, 116, 0.35);
}

[data-theme="light-temp-disabled"] .landing-eyebrow {
    color: rgba(55, 48, 40, 0.5);
}

.landing-hero-title {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: clamp(1.65rem, 3.6vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.landing-hero-title em {
    font-style: italic;
    font-weight: 600;
    background: linear-gradient(125deg, #c4a574 0%, #8fb5a4 42%, #9ab8d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light-temp-disabled"] .landing-hero-title em {
    background: linear-gradient(125deg, #8a5a3c 0%, #3d6b58 45%, #3d5a80 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero-lede {
    font-size: clamp(1rem, 2.1vw, 1.2rem);
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 34rem;
    margin: 0 0 1.5rem;
}

@media (max-width: 900px) {
    .landing-hero-lede {
        margin: 0 auto 1.5rem;
    }
}

.landing-hero-cta {
    font-size: 0.95rem;
    padding: 0.65rem 1.5rem;
}

body.page-landing .landing-hero-cta.btn-primary {
    background: linear-gradient(135deg, #5a6f64 0%, #4d5f56 52%, #6a5348 100%);
    border: 1px solid rgba(232, 220, 200, 0.2);
    color: #faf7f2;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.28);
}

body.page-landing .landing-hero-cta.btn-primary:hover {
    filter: brightness(1.07);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.32);
}

[data-theme="light-temp-disabled"] body.page-landing .landing-hero-cta.btn-primary {
    background: linear-gradient(135deg, #4a6358 0%, #5c4a42 100%);
    color: #fff;
    border-color: rgba(55, 48, 40, 0.15);
}

.landing-scroll-cue {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    z-index: 6;
    pointer-events: none;
    animation: landing-cue-pulse 2.4s ease-in-out infinite;
}

@keyframes landing-cue-pulse {
    0%, 100% { opacity: 0.35; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.85; transform: translateX(-50%) translateY(-4px); }
}

.landing-demo-focus-wrap {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: min(680px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: 50% 50%;
    will-change: transform, border-radius;
    pointer-events: none;
}

@media (max-width: 900px) {
    .landing-demo-focus-wrap {
        transform-origin: 50% 50%;
    }
}

.landing-demo-zoom-layer {
    width: 100%;
    max-width: 680px;
    background: #121018;
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(232, 220, 200, 0.06) inset;
}

.landing-demo-click-ring {
    position: absolute;
    left: 50%;
    top: 45%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(168, 201, 184, 0.95);
    box-shadow: 0 0 16px rgba(201, 162, 39, 0.35);
    opacity: 0;
    z-index: 90;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.35);
}

.landing-demo-click-ring.is-pulse {
    animation: landing-demo-click-pulse 0.52s ease-out forwards;
}

@keyframes landing-demo-click-pulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.35);
    }
    25% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(6);
    }
}

/* Demo dashboard — warm “study hall” (landing mock only) */
.demo-dash {
    height: 100%;
    min-height: 0;
    padding: 0.75rem 0.85rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    overflow: hidden;
    text-align: left;
    background: linear-gradient(180deg, rgba(28, 26, 32, 0.97) 0%, rgba(16, 14, 20, 0.98) 100%);
}

.demo-dash-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.demo-dash-intro {
    min-width: 0;
}

.demo-dash-kicker {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    margin: 0 0 0.2rem;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(232, 220, 200, 0.45);
}

.demo-dash-kicker i {
    font-size: 0.55rem;
    opacity: 0.85;
}

.demo-dash-title {
    margin: 0 0 0.15rem;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 0.84rem !important;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #f4f0e8;
}

.demo-dash-name {
    font-style: italic;
    font-weight: 600;
    background: linear-gradient(120deg, #d4b87a 0%, #9dbfaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.demo-dash-lede {
    margin: 0;
    font-size: 0.62rem;
    line-height: 1.4;
    color: rgba(232, 220, 200, 0.52);
    max-width: 14rem;
}

.demo-dash-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
}

.demo-dash-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.4rem;
    border-radius: 10px;
    background: rgba(255, 248, 240, 0.04);
    border: 1px solid rgba(232, 220, 200, 0.08);
}

.demo-dash-stat-icon {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(109, 143, 126, 0.2);
    color: #b8d4c4;
    font-size: 0.55rem;
}

.demo-dash-stat:nth-child(2) .demo-dash-stat-icon {
    background: rgba(201, 162, 39, 0.15);
    color: #e8d48b;
}

.demo-dash-stat:nth-child(3) .demo-dash-stat-icon {
    background: rgba(184, 125, 98, 0.18);
    color: #e8b8a4;
}

.demo-dash-stat-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.demo-dash-stat-value {
    font-size: 0.78rem;
    font-weight: 700;
    color: #faf7f2;
    line-height: 1;
}

.demo-dash-stat-label {
    font-size: 0.52rem;
    color: rgba(232, 220, 200, 0.45);
    line-height: 1.2;
}

.demo-dash-board {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-top: 0.1rem;
}

.demo-dash-board-title {
    margin: 0 0 0.35rem;
    font-size: 0.58rem !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(232, 220, 200, 0.4);
}

.demo-dash-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.demo-dash-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.45rem 0.38rem 0.35rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(232, 220, 200, 0.06);
}

.demo-dash-row-accent {
    width: 3px;
    align-self: stretch;
    min-height: 1.65rem;
    border-radius: 99px;
    flex-shrink: 0;
}

.demo-dash-row-accent--sage {
    background: linear-gradient(180deg, #7d9f88, #4d6358);
}

.demo-dash-row-accent--clay {
    background: linear-gradient(180deg, #c9957e, #8a5a44);
}

.demo-dash-row-accent--amber {
    background: linear-gradient(180deg, #d4b04a, #9a7a2e);
}

.demo-dash-row-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.06rem;
}

.demo-dash-row-title {
    font-size: 0.62rem;
    font-weight: 600;
    color: #f0ebe3;
}

.demo-dash-row-meta {
    font-size: 0.52rem;
    color: rgba(232, 220, 200, 0.42);
}

.demo-dash-pill {
    flex-shrink: 0;
    font-size: 0.48rem;
    font-weight: 600;
    padding: 0.14rem 0.38rem;
    border-radius: 999px;
    background: rgba(109, 143, 126, 0.2);
    color: #c5ddd0;
    border: 1px solid rgba(109, 143, 126, 0.28);
}

.demo-dash-pill--muted {
    background: rgba(255, 248, 240, 0.06);
    color: rgba(232, 220, 200, 0.55);
    border-color: rgba(232, 220, 200, 0.1);
}

.demo-dash-pill--warn {
    background: rgba(201, 162, 39, 0.12);
    color: #ecd9a0;
    border-color: rgba(201, 162, 39, 0.28);
}

/* Demo notes view — mirrors view_syllabus main-layout / sidebar / editors */
.demo-vsyll-layout {
    background: #0a0a10;
}

.demo-vsyll-sidebar {
    width: 38%;
    max-width: 210px;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.55rem 0.5rem 0.55rem 0.55rem;
    background: rgba(255, 255, 255, 0.02);
}

.demo-vsyll-sidebar-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.demo-vsyll-icon-wrap {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.demo-vsyll-topics-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.demo-vsyll-badge {
    font-size: 0.48rem;
    font-weight: 600;
    padding: 0.18rem 0.4rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.32);
    white-space: nowrap;
}

.demo-vsyll-add-topic {
    font-size: 0.52rem;
    font-weight: 600;
    padding: 0.3rem 0.4rem;
    border-radius: 0.45rem;
    text-align: center;
    color: #c4b5fd;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.22);
    margin-bottom: 0.45rem;
}

.demo-vsyll-outline {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.4rem;
}

.demo-vsyll-topic-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.58rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.2rem;
}

.demo-vsyll-chev {
    flex-shrink: 0;
}

.demo-vsyll-topic-name {
    line-height: 1.25;
}

.demo-vsyll-subtopics {
    margin-left: 0.35rem;
    padding-left: 0.45rem;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.demo-vsyll-sub {
    font-size: 0.52rem;
    color: #9ca3af;
    line-height: 1.3;
}

.demo-vsyll-sub.active {
    color: #c5ddd0;
}

.demo-vsyll-notes {
    background: rgba(0, 0, 0, 0.25);
}

.demo-vsyll-note-scroll {
    height: 100%;
    overflow: auto;
    padding: 0.55rem 0.6rem 0.55rem 0.65rem;
}

.demo-vsyll-subtopic-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}

.demo-vsyll-subtopic-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(129, 140, 248, 0.35);
}

.demo-vsyll-subtopic-titles {
    flex: 1;
    min-width: 0;
}

.demo-vsyll-subtopic-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    margin: 0 0 0.25rem;
    line-height: 1.15;
}

.demo-vsyll-topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.5rem;
    font-weight: 600;
    color: #fff;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(129, 140, 248, 0.35);
}

.demo-vsyll-hint {
    font-size: 0.48rem;
    color: #9ca3af;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.35rem;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    max-width: 38%;
    line-height: 1.25;
}

.demo-vsyll-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.4rem;
}

.demo-vsyll-editors {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.demo-vsyll-editor {
    position: relative;
    border-radius: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.45rem 0.5rem 0.5rem;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.demo-vsyll-editor:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.demo-vsyll-editor-meta {
    font-size: 0.48rem;
    color: #9ca3af;
    margin-bottom: 0.3rem;
}

.demo-vsyll-editor-body {
    font-size: 0.55rem;
    line-height: 1.45;
    color: #d1d5db;
}

.demo-vsyll-h3 {
    font-weight: 700;
    color: #b8d4c4;
    margin: 0 0 0.2rem;
    font-size: 0.58rem;
}

.demo-vsyll-p {
    margin: 0;
}

.demo-vsyll-quote {
    font-style: italic;
    color: #9ca3af;
}

.demo-vsyll-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-top: 0.15rem;
}

.demo-vsyll-tags span {
    font-size: 0.48rem;
    padding: 0.12rem 0.32rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.06);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-demo-sticky .demo-progress-dots {
    margin-bottom: 0.85rem;
}

.landing-demo-sticky .demo-labels-container {
    margin-top: 0.75rem;
    max-width: 100%;
}

.landing-demo-column .demo-step-label {
    text-align: center;
}

.landing-demo-column .demo-step-label h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.landing-demo-column .demo-step-label p {
    font-size: 0.8125rem;
    line-height: 1.45;
}

/* Scrolly + lower sections */
.landing-scrolly {
    padding-top: 4rem;
    padding-bottom: 4rem;
    border-top: 1px solid rgba(232, 220, 200, 0.06);
    background: linear-gradient(180deg, rgba(18, 16, 22, 0.5) 0%, transparent 28%);
}

.landing-scrolly .scroll-step h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 4.5vw, 3.25rem) !important;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text-primary);
}

.landing-scrolly .scroll-step p {
    font-size: clamp(1.05rem, 2vw, 1.25rem) !important;
    line-height: 1.55;
}

.landing-curricula {
    border-top: 1px solid var(--glass-border);
}

.landing-curricula h2 {
    font-family: 'Fraunces', Georgia, serif;
    letter-spacing: -0.03em;
}

.landing-outro h2 {
    font-family: 'Fraunces', Georgia, serif;
    letter-spacing: -0.03em;
    font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
}

.landing-curricula-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(1000px, 100vw);
    height: min(560px, 70vh);
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(196, 165, 116, 0.14) 0%, rgba(109, 143, 126, 0.06) 35%, transparent 62%);
    filter: blur(80px);
}

[data-theme="light-temp-disabled"] .landing-curricula-glow {
    background: radial-gradient(ellipse at center, rgba(90, 125, 108, 0.12) 0%, rgba(180, 140, 90, 0.08) 40%, transparent 65%);
}

.landing-curricula-pill {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(232, 220, 200, 0.88);
    background: rgba(109, 143, 126, 0.15);
    border: 1px solid rgba(232, 220, 200, 0.14);
}

[data-theme="light-temp-disabled"] .landing-curricula-pill {
    color: #3d4a42;
    background: rgba(90, 125, 108, 0.12);
    border-color: rgba(55, 48, 40, 0.1);
}

.landing-section-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.landing-section-lede {
    line-height: 1.55;
}

.landing-outro-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.landing-outro-lede {
    line-height: 1.5;
}

body.page-landing .landing-outro-cta.btn-primary {
    background: linear-gradient(135deg, #5a6f64 0%, #4d5f56 52%, #6a5348 100%);
    border: 1px solid rgba(232, 220, 200, 0.2);
    color: #faf7f2;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.25);
}

body.page-landing .landing-outro-cta.btn-primary:hover {
    filter: brightness(1.07);
}

[data-theme="light-temp-disabled"] body.page-landing .landing-outro-cta.btn-primary {
    background: linear-gradient(135deg, #4a6358 0%, #5c4a42 100%);
    color: #fff;
}

body.page-landing .providers-grid .provider-card h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

body.page-landing .provider-card {
    border-radius: 1.35rem;
    background: rgba(255, 248, 240, 0.035);
    border-color: rgba(232, 220, 200, 0.1);
}

body.page-landing .provider-card:hover {
    border-color: rgba(232, 220, 200, 0.18);
    background: rgba(255, 248, 240, 0.055);
}

body.page-landing .subject-tag {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(232, 220, 200, 0.1);
    color: rgba(232, 220, 200, 0.75);
}

body.page-landing .demo-progress-dot.active {
    background: linear-gradient(135deg, #7d9f88, #c4a06e);
    box-shadow: 0 0 14px rgba(196, 165, 116, 0.35);
}

#demo-login .fa-graduation-cap {
    color: #9dbfaa !important;
}

* {
    font-family: inherit;
}

.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-on-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-on-hover:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.gradient-text {
    background: linear-gradient(135deg, #e666ea 0%, #a24b65 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cta-button {
    background: linear-gradient(135deg, #e666ea 0%, #a24b65 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float 8s infinite linear;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    margin: 80px 0;
}

/* 3D Scrollwheel */
.scroll-prism-container {
    display: inline-block;
    vertical-align: bottom;
    perspective: 1000px;
    height: 1.2em;
    overflow: hidden;
    margin-left: 0.2em;
    position: relative;
    top: 0.1em;
}

.scroll-prism {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate-prism 12s infinite cubic-bezier(0.85, 0, 0.15, 1);
}

.scroll-prism-side {
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    white-space: nowrap;
    left: 0;
    top: 0;
}

    /* 5 sides: 360/5 = 72deg. TranslateZ depends on height. Using em for responsiveness */
.scroll-prism-side:nth-child(1) { transform: rotateX(0deg) translateZ(0.85em); }
.scroll-prism-side:nth-child(2) { transform: rotateX(-72deg) translateZ(0.85em); }
.scroll-prism-side:nth-child(3) { transform: rotateX(-144deg) translateZ(0.85em); }
.scroll-prism-side:nth-child(4) { transform: rotateX(-216deg) translateZ(0.85em); }
.scroll-prism-side:nth-child(5) { transform: rotateX(-288deg) translateZ(0.85em); }

@keyframes rotate-prism {
    0%, 15% { transform: rotateX(0deg); }
    20%, 35% { transform: rotateX(72deg); }
    40%, 55% { transform: rotateX(144deg); }
    60%, 75% { transform: rotateX(216deg); }
    80%, 95% { transform: rotateX(288deg); }
    100% { transform: rotateX(360deg); }
}

@media (max-width: 768px) {
    .scroll-prism-container {
        display: block;
        margin-left: 0;
        margin-top: 0.2em;
        text-align: center;
    }
    .scroll-prism-side {
        justify-content: center;
    }
}

/* Updated Scrollytelling Styles */
.scroll-lock-section {
    background: var(--bg-dark);
}

.visual-item i {
    filter: drop-shadow(0 0 18px rgba(109, 143, 126, 0.35));
}

.syllabus-preview {
    width: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.note-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 12px;
}

.note-line.short { width: 60%; }
.note-line.medium { width: 80%; }
.note-line.accent { background: var(--accent-primary); width: 40%; opacity: 0.6; }

.assignment-node {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.node-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--text-secondary);
}

.node-circle.checked {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Bento Grid Overrides */
.bento-grid {
    padding-bottom: 100px;
}

.bento-item {
    transition: all 0.4s var(--ease-out-expo);
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Scroll Progress Customization */
.scroll-progress-dot.active {
    background: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .scroll-snap-slide h2 {
        font-size: 2rem !important;
    }
    
    .scroll-snap-slide p {
        font-size: 1rem !important;
    }
    
    .feature-icon-large i {
        font-size: 4rem !important;
    }
    
    .feature-icon-medium i {
        font-size: 3rem !important;
    }
    
    .step-number .w-24 {
        width: 4rem !important;
        height: 4rem !important;
    }
    
    .step-number span {
        font-size: 2rem !important;
    }
}

/* Course Providers Section */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.provider-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.provider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.provider-card:hover::before {
    opacity: 1;
}

.provider-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.provider-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease;
}

.provider-card:hover .provider-icon {
    transform: scale(1.1) rotate(5deg);
}

.provider-card.cie .provider-icon { color: #FF9F1C; background: rgba(255, 159, 28, 0.1); border-color: rgba(255, 159, 28, 0.2); }
.provider-card.alevel .provider-icon { color: #2EC4B6; background: rgba(46, 196, 182, 0.1); border-color: rgba(46, 196, 182, 0.2); }
.provider-card.spm .provider-icon { color: #E71D36; background: rgba(231, 29, 54, 0.1); border-color: rgba(231, 29, 54, 0.2); }
.provider-card.ap .provider-icon { color: #7209B7; background: rgba(114, 9, 183, 0.1); border-color: rgba(114, 9, 183, 0.2); }

.subject-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.provider-card:hover .subject-tag {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* --- App Simulation Styles --- */

.app-window {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.app-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.app-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.app-body {
    padding: 1rem;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Chat Simulation */
.chat-sim-msg {
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    max-width: 80%;
    opacity: 0;
    transform: translateY(10px);
    animation: msg-appear 0.5s forwards;
    font-size: 0.875rem;
}

.chat-sim-msg.user {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    margin-left: auto;
    border-bottom-right-radius: 0;
}

.chat-sim-msg.ai {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    margin-right: auto;
    border-bottom-left-radius: 0;
}

@keyframes msg-appear {
    to { opacity: 1; transform: translateY(0); }
}

/* Syllabus Scanning */
.scan-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.doc-icon {
    font-size: 4rem;
    color: #ef4444; /* PDF color */
    position: relative;
}

.scan-beam {
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 4px;
    background: #10b981;
    box-shadow: 0 0 15px #10b981;
    animation: scan-move 2s infinite linear;
    z-index: 10;
}

@keyframes scan-move {
    0% { top: 0; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.topic-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(-10px);
    animation: topic-in 0.3s forwards;
}

@keyframes topic-in {
    to { opacity: 1; transform: translateX(0); }
}

/* Flashcard Flip */
.flashcard-scene {
    perspective: 1000px;
    width: 100%;
    height: 100%;
}

.flashcard {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

.flashcard.flipped {
    transform: rotateY(180deg);
}

.flashcard-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
}

.flashcard-back {
    transform: rotateY(180deg);
    background: rgba(16, 185, 129, 0.1); /* Green tint for answer */
    border-radius: 1rem;
}

/* ===== Interactive Demo Section ===== */

.demo-section,
.landing-demo-hero {
    position: relative;
    overflow: visible;
}

.demo-scroll-area {
    position: relative;
}

.demo-sticky-viewport {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
    padding: 0 1rem;
}

.demo-sticky-viewport.landing-demo-sticky {
    padding: 4.5rem 1rem 1.75rem;
    min-height: 100vh;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .demo-sticky-viewport.landing-demo-sticky {
        padding: 4.75rem 1rem 2.25rem;
    }
}

.demo-app-frame {
    width: 100%;
    max-width: 680px;
    height: 400px;
    background: #121018;
    border: 1px solid rgba(232, 220, 200, 0.1);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 30px 80px -15px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 80px -30px rgba(59, 130, 246, 0.1);
}

.demo-browser-bar {
    height: 36px;
    background: #12121a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
    flex-shrink: 0;
}

.demo-browser-dots {
    display: flex;
    gap: 6px;
}

.demo-browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.demo-url-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'SF Mono', 'Fira Code', monospace;
    display: flex;
    align-items: center;
    gap: 6px;
}

.demo-url-bar i {
    font-size: 8px;
    color: rgba(16, 185, 129, 0.6);
}

.demo-views-container {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background: #100e14;
}

/* Slightly smaller type inside the mock app */
.landing-demo-hero .demo-view h3 {
    font-size: 0.78rem !important;
}

.landing-demo-hero .demo-view .text-base {
    font-size: 0.82rem !important;
}

.landing-demo-hero .demo-view h4 {
    font-size: 0.72rem !important;
}

.demo-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.demo-view.active {
    opacity: 1;
}

.demo-cursor-el {
    position: absolute;
    width: 22px;
    height: 22px;
    z-index: 100;
    pointer-events: none;
    will-change: left, top;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.demo-progress-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.demo-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transition: all 0.35s ease;
}

.demo-progress-dot.active {
    background: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
    transform: scale(1.4);
}

.demo-labels-container {
    position: relative;
    height: 70px;
    width: 100%;
    max-width: 550px;
    margin-top: 20px;
}

.demo-step-label {
    position: absolute;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    pointer-events: auto;
}

.demo-step-label.active {
    opacity: 1;
    transform: translateY(0);
}

.demo-input-field {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    color: white;
    min-height: 32px;
    display: flex;
    align-items: center;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.demo-input-field.focused {
    border-color: rgba(109, 143, 126, 0.55);
    box-shadow: 0 0 0 2px rgba(109, 143, 126, 0.12);
}

.demo-text-caret {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: #9dbfaa;
    margin-left: 1px;
    vertical-align: middle;
    animation: demo-blink 1s step-end infinite;
}

@keyframes demo-blink {
    50% { opacity: 0; }
}

.demo-signin-btn {
    width: 100%;
    padding: 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, #5a6f64 0%, #4d5f56 100%);
    color: #faf7f2;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.25s;
    cursor: default;
    border: 1px solid rgba(232, 220, 200, 0.14);
}

.demo-signin-btn.hovered {
    background: linear-gradient(135deg, #657d70 0%, #566860 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.demo-signin-btn.clicked {
    transform: scale(0.97);
    background: linear-gradient(135deg, #4d5f56 0%, #3d4a44 100%);
}

.demo-new-btn {
    padding: 6px 11px;
    border-radius: 10px;
    background: linear-gradient(135deg, #5a6f64 0%, #5c4a42 100%);
    color: #faf7f2;
    font-size: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.25s;
    white-space: nowrap;
    border: 1px solid rgba(232, 220, 200, 0.14);
    flex-shrink: 0;
}

.demo-new-btn i {
    font-size: 9px;
    opacity: 0.95;
}

.demo-new-btn.hovered {
    background: linear-gradient(135deg, #657d70 0%, #6a5348 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
    transform: scale(1.03);
}

.demo-new-btn.clicked {
    transform: scale(0.96);
    background: linear-gradient(135deg, #4d5f56 0%, #4a3d38 100%);
}

.demo-upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.demo-upload-zone.drag-over {
    border-color: rgba(109, 143, 126, 0.45);
    background: rgba(109, 143, 126, 0.06);
}

.demo-upload-zone.dropped {
    border-color: rgba(109, 143, 126, 0.5);
    background: rgba(109, 143, 126, 0.08);
    border-style: solid;
}

.demo-drag-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    position: absolute;
}

.demo-note-block {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.demo-generate-btn {
    padding: 4px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #5a6f64 0%, #4d5f56 100%);
    color: #faf7f2;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(232, 220, 200, 0.12);
}

.demo-generate-btn.hovered {
    background: linear-gradient(135deg, #657d70 0%, #566860 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.demo-generate-btn.clicked {
    background: linear-gradient(135deg, #4d6358 0%, #3d5248 100%);
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .demo-app-frame {
        height: 350px;
    }

    .demo-labels-container {
        height: 60px;
    }

    .demo-step-label h3 {
        font-size: 1rem;
    }

    .demo-step-label p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .demo-app-frame {
        height: 300px;
        border-radius: 10px;
    }

    .demo-browser-bar {
        height: 30px;
        padding: 0 10px;
    }

    .demo-views-container {
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
    }
}

/* ===== Improved Scrollytelling Visuals (Interactive Mocks) ===== */

/* Override sticky anchoring */
.sticky-visual {
    top: 0 !important;
    height: 100vh !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* App Card Container */
.visual-app-card {
    width: 90%;
    max-width: 500px;
    background: rgba(22, 19, 26, 0.88);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(232, 220, 200, 0.1);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: absolute;
}

.visual-item.active .visual-app-card {
    opacity: 1;
    transform: translateY(0) scale(1);
    position: relative; /* Take space when active */
}

.app-card-header {
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.app-card-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.app-card-body {
    padding: 24px;
    min-height: 300px;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Visual 1: Notes Generator */
.notes-mock-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 12px;
    width: 100%;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.notes-mock-title {
    height: 16px;
    width: 60%;
    background: linear-gradient(90deg, rgba(109, 143, 126, 0.55), rgba(196, 165, 116, 0.4));
    margin-bottom: 24px;
    border-radius: 4px;
}

/* Visual 2: Assignment */
.quiz-option {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-option.selected {
    border-color: rgba(109, 143, 126, 0.55);
    background: rgba(109, 143, 126, 0.12);
    color: white;
}

.quiz-option.correct {
    border-color: rgba(109, 143, 126, 0.65);
    background: rgba(109, 143, 126, 0.14);
    color: white;
}

.quiz-check {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #8fb5a4;
}

.quiz-option.correct .quiz-check {
    opacity: 1;
    transform: scale(1);
}

/* Visual 3: Chat */
.chat-bubble-mock {
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 80%;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.chat-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #5a6f64 0%, #4d5f56 100%);
    color: #faf7f2;
    border-bottom-right-radius: 4px;
    border: 1px solid rgba(232, 220, 200, 0.12);
}

.chat-ai {
    align-self: flex-start;
    background: rgba(255, 248, 240, 0.08);
    color: rgba(250, 247, 242, 0.92);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(232, 220, 200, 0.08);
}

.typing-indicator span {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: typing 1.4s infinite both;
    margin: 0 2px;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

