/* Public landing page: full-bleed WebGL hero plus dense product storytelling. */

.landing-page {
    --hero-ink: #071522;
    --hero-muted: #50657a;
    --hero-soft: rgba(255, 255, 255, 0.84);
    --hero-line: rgba(37, 99, 235, 0.16);
    --hero-blue: #2563eb;
    --hero-blue-strong: #1d4ed8;
    --hero-green: #10b981;
    --hero-coral: #f97316;
    --hero-yellow: #f59e0b;
    --scroll-progress: 0;
    --scroll-angle: 0deg;
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow-x: clip;
    background:
        radial-gradient(circle at 10% 14%, rgba(37, 99, 235, 0.16), transparent 24%),
        radial-gradient(circle at 86% 12%, rgba(16, 185, 129, 0.16), transparent 24%),
        linear-gradient(180deg, #f7fbff 0%, #eef7fb 46%, #f9fbfe 100%) !important;
    color: var(--hero-ink);
}

.landing-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 90px 90px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 88%);
    opacity: 0.7;
}

.landing-page::after {
    content: none !important;
}

html[data-theme="dark"] .landing-page {
    --hero-ink: #f5fbff;
    --hero-muted: #b7c8d9;
    --hero-soft: rgba(8, 16, 24, 0.68);
    --hero-line: rgba(90, 169, 255, 0.25);
    --hero-blue: #5aa9ff;
    --hero-blue-strong: #2d7ee8;
    --hero-green: #70efbd;
    --hero-coral: #ff987a;
    --hero-yellow: #ffd866;
    background:
        linear-gradient(180deg, #071018 0%, #091923 48%, #0b1016 100%) !important;
}

.landing-nav {
    position: fixed;
    top: 0.75rem;
    left: 50%;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100vw - 1rem));
    min-height: 3.2rem;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 18px 48px rgba(38, 82, 124, 0.14) !important;
    padding: 0.42rem 0.56rem 0.42rem 0.92rem;
    transform: translateX(-50%);
    backdrop-filter: blur(18px);
}

html[data-theme="dark"] .landing-nav {
    border-color: rgba(120, 208, 255, 0.18) !important;
    background: rgba(7, 16, 24, 0.74) !important;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.25) !important;
}

.landing-nav .classroom-logo {
    font-size: 1.05rem;
    font-weight: 800;
}

.landing-nav .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.34rem;
    margin-left: auto;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.05rem;
    border-radius: 999px;
    color: var(--hero-muted);
    padding: 0 0.62rem;
    font-size: 0.78rem;
    font-weight: 820;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
}

.nav-link:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--hero-ink);
}

.text-button {
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
    transition: background-color 180ms ease, color 180ms ease;
}

.text-button:hover {
    background: rgba(37, 99, 235, 0.08);
}

.scroll-orbit {
    position: fixed;
    right: clamp(0.65rem, 2vw, 1.4rem);
    bottom: clamp(0.65rem, 2vw, 1.4rem);
    z-index: 45;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 0.58rem;
    border: 1px solid rgba(255, 255, 255, 0.64);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 18px 48px rgba(38, 82, 124, 0.14);
    padding: 0.42rem 0.72rem 0.42rem 0.42rem;
    backdrop-filter: blur(18px);
}

html[data-theme="dark"] .scroll-orbit {
    border-color: rgba(120, 208, 255, 0.18);
    background: rgba(7, 16, 24, 0.74);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.25);
}

.orbit-dial {
    position: relative;
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.88) 0 42%, transparent 43%),
        conic-gradient(from -90deg, var(--hero-blue) 0 var(--scroll-angle), rgba(11, 120, 255, 0.13) var(--scroll-angle) 360deg);
}

html[data-theme="dark"] .orbit-dial {
    background:
        radial-gradient(circle at center, rgba(7, 16, 24, 0.9) 0 42%, transparent 43%),
        conic-gradient(from -90deg, var(--hero-blue) 0 var(--scroll-angle), rgba(112, 216, 255, 0.13) var(--scroll-angle) 360deg);
}

.orbit-ring,
.orbit-pulse,
.orbit-satellite,
.orbit-node {
    position: absolute;
    pointer-events: none;
}

.orbit-ring {
    inset: 0.42rem;
    border: 1px solid color-mix(in srgb, var(--hero-blue) 32%, transparent);
    border-radius: inherit;
}

.orbit-pulse {
    inset: 1.2rem;
    border-radius: inherit;
    background: var(--hero-blue);
    box-shadow: 0 0 24px color-mix(in srgb, var(--hero-blue) 48%, transparent);
    opacity: 0.72;
    transform: scale(calc(0.62 + var(--scroll-progress) * 0.52));
}

.orbit-satellite {
    top: calc(50% - 1.62rem);
    left: 50%;
    width: 0.56rem;
    height: 0.56rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--hero-green);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--hero-green) 18%, transparent);
    transform: translate(-50%, -50%) rotate(var(--scroll-angle));
    transform-origin: 50% calc(50% + 1.62rem);
}

.orbit-node {
    top: calc(50% - 1.64rem);
    left: 50%;
    width: 0.36rem;
    height: 0.36rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--hero-muted) 34%, transparent);
    transform: translate(-50%, -50%) rotate(calc(var(--node-angle) + 90deg));
    transform-origin: 50% calc(50% + 1.64rem);
}

.orbit-node.active {
    background: var(--hero-yellow);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--hero-yellow) 18%, transparent);
}

.orbit-readout {
    display: grid;
    min-width: 5.2rem;
    line-height: 1;
}

.orbit-readout span {
    color: var(--hero-blue);
    font-size: 0.66rem;
    font-weight: 880;
    text-transform: uppercase;
}

.orbit-readout strong {
    margin-top: 0.16rem;
    color: var(--hero-ink);
    font-family: var(--font-display);
    font-size: 1.12rem;
    line-height: 1;
}

.atlas-hero {
    position: relative;
    display: grid;
    min-height: 100svh;
    overflow: clip;
    border-bottom: 1px solid var(--hero-line);
    padding: clamp(5.3rem, 7vw, 7rem) clamp(1rem, 4vw, 4rem) clamp(2.5rem, 5vw, 4.75rem);
}

.atlas-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--page-bg) 88%, transparent));
}

.hero-webgl {
    position: fixed;
    inset: -8vh -4vw;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.72), rgba(238, 247, 251, 0.34) 38%, rgba(255, 255, 255, 0.58));
    opacity: 0.96;
}

.hero-webgl::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(22deg, transparent 0 31%, rgba(11, 120, 255, 0.08) 31.1% 31.35%, transparent 31.45% 100%),
        linear-gradient(145deg, transparent 0 45%, rgba(0, 167, 122, 0.07) 45.1% 45.34%, transparent 45.44% 100%),
        linear-gradient(78deg, transparent 0 58%, rgba(215, 164, 0, 0.06) 58.1% 58.28%, transparent 58.38% 100%);
    background-size: 68rem 42rem, 54rem 36rem, 62rem 48rem;
    transform: translate3d(calc(var(--webgl-scroll, 0) * -6rem), calc(var(--webgl-scroll, 0) * 5rem), 0);
}

html[data-theme="dark"] .hero-webgl {
    background:
        linear-gradient(115deg, rgba(7, 16, 24, 0.9), rgba(9, 25, 35, 0.62) 46%, rgba(6, 13, 20, 0.9));
}

#landing-webgl-canvas {
    display: block;
    width: 100%;
    height: 116vh;
}

.webgl-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    opacity: 0;
    pointer-events: none;
}

.webgl-fallback span {
    border-right: 1px solid rgba(11, 120, 255, 0.1);
    background:
        linear-gradient(180deg, transparent, rgba(0, 167, 122, 0.08), transparent);
    animation: fallbackPulse 5s ease-in-out infinite;
}

.webgl-fallback span:nth-child(2) {
    animation-delay: 0.6s;
}

.webgl-fallback span:nth-child(3) {
    animation-delay: 1.2s;
}

.webgl-fallback span:nth-child(4) {
    animation-delay: 1.8s;
}

.no-webgl .webgl-fallback {
    opacity: 1;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.5fr);
    align-items: end;
    gap: clamp(1rem, 3vw, 3rem);
    width: min(1240px, 100%);
    margin: auto;
}

.hero-copy {
    display: grid;
    gap: 1.15rem;
    max-width: 58rem;
}

.eyebrow {
    margin: 0;
    color: var(--hero-blue) !important;
    font-size: 0.75rem;
    font-weight: 880;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.system-copy h2,
.final-cta h2 {
    margin: 0;
    color: var(--hero-ink);
    font-family: var(--font-display);
    font-weight: 820;
    line-height: 0.98;
}

.hero-copy h1 {
    max-width: 10.8em;
    font-size: clamp(3.2rem, 6.6vw, 6rem);
    letter-spacing: 0 !important;
    text-wrap: balance;
    text-shadow: 0 10px 30px rgba(7, 21, 34, 0.04);
}

.hero-lede {
    max-width: 46rem;
    margin: 0;
    color: var(--hero-muted);
    font-size: clamp(1.02rem, 1.6vw, 1.22rem);
    font-weight: 560;
    line-height: 1.55;
}

.prompt-form {
    display: grid;
    gap: 0.55rem;
    width: min(100%, 45rem);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 1.25rem;
    background: var(--hero-soft);
    box-shadow: 0 24px 70px rgba(38, 82, 124, 0.14);
    padding: 0.78rem;
    backdrop-filter: blur(18px);
}

html[data-theme="dark"] .prompt-form {
    border-color: rgba(120, 208, 255, 0.18);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.prompt-form label {
    color: var(--hero-muted);
    font-size: 0.74rem;
    font-weight: 860;
    text-transform: uppercase;
}

.prompt-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
}

.prompt-row input {
    min-width: 0;
    min-height: 3.25rem;
    border: 1px solid rgba(11, 120, 255, 0.2) !important;
    border-radius: 0.9rem !important;
    background: rgba(255, 255, 255, 0.86) !important;
    color: var(--hero-ink);
    padding: 0 0.95rem;
    font-size: 1rem;
    outline: none;
}

html[data-theme="dark"] .prompt-row input {
    background: rgba(9, 25, 35, 0.88) !important;
    border-color: rgba(112, 216, 255, 0.22) !important;
}

.prompt-row input:focus {
    border-color: var(--hero-blue) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--hero-blue) 18%, transparent);
}

.prompt-row .btn-primary {
    min-height: 3.25rem;
    border-color: var(--hero-blue) !important;
    background: var(--hero-blue) !important;
    padding-inline: 1.15rem;
    font-size: 0.9rem;
}

.prompt-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.example-line {
    margin: 0;
    color: var(--hero-muted);
    font-size: 0.88rem;
}

.example-line span {
    color: var(--hero-ink);
    font-weight: 840;
}

.prompt-footer .text-button {
    color: var(--hero-blue) !important;
}

.hero-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    width: min(100%, 52rem);
}

.scene-chip,
.sample-course-card {
    display: grid !important;
    gap: 0.22rem;
    min-height: 5.2rem;
    border: 1px solid rgba(37, 99, 235, 0.18) !important;
    border-radius: 1rem !important;
    background: rgba(255, 255, 255, 0.62) !important;
    color: var(--hero-ink) !important;
    padding: 0.75rem !important;
    text-align: left;
    box-shadow: none !important;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
    backdrop-filter: blur(12px);
}

html[data-theme="dark"] .scene-chip,
html[data-theme="dark"] .sample-course-card {
    border-color: rgba(112, 216, 255, 0.15) !important;
    background: rgba(8, 16, 24, 0.58) !important;
}

.scene-chip:hover,
.scene-chip.active {
    border-color: var(--hero-blue) !important;
    background: rgba(255, 255, 255, 0.82) !important;
    transform: translateY(-2px);
}

html[data-theme="dark"] .scene-chip:hover,
html[data-theme="dark"] .scene-chip.active {
    background: rgba(10, 32, 45, 0.82) !important;
}

.scene-chip span,
.sample-course-card span {
    color: var(--hero-blue);
    font-size: 0.68rem;
    font-weight: 880;
    text-transform: uppercase;
}

.scene-chip strong,
.sample-course-card strong {
    color: var(--hero-ink);
    font-size: 0.9rem;
    line-height: 1.2;
}

.hero-control-panel {
    position: relative;
    display: grid;
    gap: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.3rem;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 28px 80px rgba(21, 58, 92, 0.16);
    padding: 1rem;
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.hero-control-panel::before {
    content: "";
    position: absolute;
    inset: auto -1rem -1rem auto;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 68%);
    pointer-events: none;
}

html[data-theme="dark"] .hero-control-panel {
    border-color: rgba(120, 208, 255, 0.18);
    background: rgba(7, 16, 24, 0.68);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.panel-status {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--hero-line);
    padding-bottom: 0.8rem;
}

.panel-status span,
.snapshot-header span,
.pane-kicker {
    color: var(--hero-blue);
    font-size: 0.68rem;
    font-weight: 880;
    text-transform: uppercase;
}

.panel-status strong {
    color: var(--hero-ink);
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.08;
    text-align: right;
}

.course-map-preview {
    display: grid;
    gap: 0.38rem;
}

.map-node {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.12rem 0.62rem;
    align-items: start;
}

.map-node span {
    grid-row: 1 / 3;
    display: grid;
    width: 2.1rem;
    height: 2.1rem;
    place-items: center;
    border-radius: 0.72rem;
    background: color-mix(in srgb, var(--hero-blue) 12%, white);
    color: var(--hero-blue);
    font-size: 0.72rem;
    font-weight: 860;
}

html[data-theme="dark"] .map-node span {
    background: rgba(112, 216, 255, 0.12);
}

.map-node.node-active span {
    background: var(--hero-blue);
    color: white;
}

.map-node strong {
    color: var(--hero-ink);
    font-size: 0.94rem;
}

.map-node p {
    margin: 0;
    color: var(--hero-muted);
    font-size: 0.8rem;
    line-height: 1.38;
}

.map-thread {
    width: 1px;
    height: 1rem;
    margin-left: 1.05rem;
    background: var(--hero-line);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.48rem;
}

.hero-metrics span {
    display: grid;
    gap: 0.16rem;
    min-height: 4rem;
    border: 1px solid var(--hero-line);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.48);
    color: var(--hero-muted);
    padding: 0.7rem;
    font-size: 0.78rem;
    line-height: 1.18;
}

html[data-theme="dark"] .hero-metrics span {
    background: rgba(8, 16, 24, 0.48);
}

.hero-metrics strong {
    color: var(--hero-ink);
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1;
}

.signal-strip,
.landing-section,
.proof-section,
.final-cta {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.signal-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 1.2rem 0;
}

.signal-strip div,
.workflow-grid article,
.capability-grid article,
.proof-card {
    border: 1px solid var(--hero-line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 50px rgba(38, 82, 124, 0.08);
    padding: 1rem;
    opacity: calc(0.62 + (var(--reveal, 1) * 0.38));
    transform:
        translate3d(0, calc((1 - var(--reveal, 1)) * 24px), 0)
        rotateX(calc((1 - var(--reveal, 1)) * 3deg));
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

html[data-theme="dark"] .signal-strip div,
html[data-theme="dark"] .workflow-grid article,
html[data-theme="dark"] .capability-grid article,
html[data-theme="dark"] .proof-card {
    background: rgba(9, 18, 26, 0.72);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.signal-strip strong,
.workflow-grid h3,
.capability-grid h3,
.proof-card strong {
    color: var(--hero-ink);
}

.signal-strip strong {
    display: block;
    margin-bottom: 0.28rem;
    font-size: 0.98rem;
}

.signal-strip span,
.workflow-grid p,
.capability-grid p,
.proof-card span,
.proof-card p {
    color: var(--hero-muted);
    line-height: 1.48;
}

.signal-strip span {
    font-size: 0.9rem;
}

.landing-section {
    padding: clamp(2.6rem, 7vw, 5.5rem) 0;
}

.section-heading {
    display: grid;
    gap: 0.72rem;
    max-width: 48rem;
    margin-bottom: 1.35rem;
}

.section-heading.compact {
    max-width: 34rem;
}

.section-heading h2,
.system-copy h2,
.final-cta h2 {
    font-size: clamp(2rem, 4.8vw, 4.4rem);
}

.section-heading span,
.system-copy p {
    color: var(--hero-muted);
    font-size: 1rem;
    line-height: 1.58;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.workflow-grid article {
    display: grid;
    align-content: start;
    gap: 0.6rem;
    min-height: 15rem;
}

.step-index,
.capability-grid article > span {
    display: inline-flex;
    width: max-content;
    border-radius: 999px;
    background: color-mix(in srgb, var(--hero-green) 12%, white);
    color: var(--hero-green);
    padding: 0.26rem 0.52rem;
    font-size: 0.72rem;
    font-weight: 880;
}

html[data-theme="dark"] .step-index,
html[data-theme="dark"] .capability-grid article > span {
    background: rgba(112, 239, 189, 0.12);
}

.workflow-grid h3,
.capability-grid h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.22rem;
    line-height: 1.12;
}

.workflow-grid p,
.capability-grid p {
    margin: 0;
    font-size: 0.92rem;
}

.product-system {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(20rem, 1fr);
    align-items: center;
    gap: clamp(1rem, 4vw, 4rem);
}

.system-copy {
    display: grid;
    gap: 0.95rem;
    opacity: calc(0.66 + (var(--reveal, 1) * 0.34));
    transform: translate3d(calc((1 - var(--reveal, 1)) * -18px), calc((1 - var(--reveal, 1)) * 12px), 0);
    transition: transform 180ms ease, opacity 180ms ease;
}

.system-copy p {
    margin: 0;
}

.system-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.workspace-snapshot {
    border: 1px solid var(--hero-line);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 28px 80px rgba(38, 82, 124, 0.12);
    padding: 0.95rem;
    opacity: calc(0.68 + (var(--reveal, 1) * 0.32));
    transform:
        translate3d(calc((1 - var(--reveal, 1)) * 18px), calc((1 - var(--reveal, 1)) * 16px), 0)
        rotateY(calc((1 - var(--reveal, 1)) * -2deg));
    transition: transform 180ms ease, opacity 180ms ease;
}

html[data-theme="dark"] .workspace-snapshot {
    background: rgba(9, 18, 26, 0.76);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.snapshot-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    border-bottom: 1px solid var(--hero-line);
    padding-bottom: 0.85rem;
}

.snapshot-header strong {
    display: block;
    margin-top: 0.16rem;
    color: var(--hero-ink);
    font-family: var(--font-display);
    font-size: 1.42rem;
    line-height: 1.05;
}

.snapshot-header b {
    border: 1px solid var(--hero-line);
    border-radius: 999px;
    color: var(--hero-muted);
    padding: 0.28rem 0.58rem;
    font-size: 0.76rem;
    white-space: nowrap;
}

.snapshot-body {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(13rem, 0.7fr);
    gap: 0.7rem;
    padding-top: 0.75rem;
}

.lesson-pane,
.task-pane,
.insight-pane {
    border: 1px solid var(--hero-line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.54);
    padding: 0.95rem;
}

html[data-theme="dark"] .lesson-pane,
html[data-theme="dark"] .task-pane,
html[data-theme="dark"] .insight-pane {
    background: rgba(6, 14, 21, 0.54);
}

.lesson-pane {
    display: grid;
    gap: 0.8rem;
    min-height: 18rem;
}

.lesson-pane h3 {
    margin: 0;
    color: var(--hero-ink);
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.4vw, 2.8rem);
    line-height: 1;
}

.mini-graph {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 0.45rem;
    min-height: 8rem;
    border-left: 1px solid var(--hero-line);
    border-bottom: 1px solid var(--hero-line);
    padding: 0.6rem 0.5rem 0;
}

.mini-graph span {
    display: block;
    height: var(--h);
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, var(--hero-blue), var(--hero-green));
}

.task-pane ul {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.task-pane li {
    display: grid;
    gap: 0.1rem;
    border-bottom: 1px solid var(--hero-line);
    padding-bottom: 0.55rem;
}

.task-pane li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.task-pane strong,
.insight-pane strong {
    color: var(--hero-ink);
}

.task-pane span,
.insight-pane span {
    color: var(--hero-muted);
    font-size: 0.86rem;
}

.insight-pane {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.36rem;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.capability-grid article {
    display: grid;
    gap: 0.65rem;
    min-height: 13rem;
}

.proof-section {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 0.72fr));
    gap: 0.75rem;
    padding: 0 0 clamp(2.6rem, 6vw, 5rem);
}

.proof-card {
    display: grid;
    align-content: center;
    gap: 0.5rem;
    min-height: 11rem;
}

.proof-card strong {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 0.95;
}

.proof-card.primary-proof {
    align-content: start;
    background: linear-gradient(135deg, rgba(11, 120, 255, 0.12), rgba(0, 167, 122, 0.12));
}

.primary-proof span {
    color: var(--hero-blue);
    font-size: 0.72rem;
    font-weight: 880;
    text-transform: uppercase;
}

.primary-proof strong {
    font-size: clamp(1.8rem, 3.5vw, 3.1rem);
}

.primary-proof p {
    margin: 0;
}

.final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--hero-line);
    border-radius: 1.4rem 1.4rem 0 0;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 -20px 70px rgba(38, 82, 124, 0.09);
    padding: clamp(1.2rem, 4vw, 2rem);
    opacity: calc(0.68 + (var(--reveal, 1) * 0.32));
    transform: translate3d(0, calc((1 - var(--reveal, 1)) * 18px), 0);
    transition: transform 180ms ease, opacity 180ms ease;
}

html[data-theme="dark"] .final-cta {
    background: rgba(9, 18, 26, 0.74);
    box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.2);
}

.final-cta > div {
    display: grid;
    gap: 0.5rem;
    max-width: 50rem;
}

.final-cta .btn-primary {
    min-height: 3rem;
    padding-inline: 1.1rem;
}

@keyframes fallbackPulse {
    0%, 100% {
        transform: translateY(-5%);
        opacity: 0.2;
    }
    50% {
        transform: translateY(5%);
        opacity: 0.64;
    }
}

@media (max-width: 1080px) {
    .hero-grid,
    .product-system,
    .proof-section {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: 11em;
        font-size: clamp(3rem, 8.4vw, 5rem);
    }

    .hero-control-panel {
        max-width: 44rem;
    }

    .hero-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-grid,
    .capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .landing-nav {
        top: 0.45rem;
        width: min(100% - 0.8rem, 44rem);
        border-radius: 1rem;
        padding: 0.55rem 0.62rem;
        align-items: center;
    }

    .landing-footer {
        flex-direction: column;
        align-items: flex-start;
        width: min(100% - 1rem, 1180px);
        padding-bottom: calc(1.5rem + var(--safe-bottom));
    }

    .landing-footer-links {
        width: 100%;
        justify-content: flex-start;
    }

    .landing-nav .classroom-logo {
        margin-right: auto;
    }

    .nav-link {
        display: none;
    }

    .landing-nav .nav-actions {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-top: 0.2rem;
        scrollbar-width: none;
    }

    .landing-nav .nav-actions::-webkit-scrollbar {
        display: none;
    }

    .atlas-hero {
        padding-top: 7rem;
    }

    .hero-actions,
    .signal-strip,
    .workflow-grid,
    .capability-grid,
    .snapshot-body {
        grid-template-columns: 1fr;
    }

    .signal-strip {
        gap: 0.55rem;
    }

    .prompt-row {
        grid-template-columns: 1fr;
    }

    .prompt-row .btn-primary {
        width: 100%;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .final-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .scroll-orbit {
        right: 0.55rem;
        bottom: 0.55rem;
        gap: 0.42rem;
        padding: 0.34rem 0.52rem 0.34rem 0.34rem;
    }

    .orbit-dial {
        width: 2.75rem;
        height: 2.75rem;
    }

    .orbit-satellite {
        top: calc(50% - 1.32rem);
        transform-origin: 50% calc(50% + 1.32rem);
    }

    .orbit-node {
        top: calc(50% - 1.34rem);
        transform-origin: 50% calc(50% + 1.34rem);
    }

    .orbit-readout {
        min-width: 4.3rem;
    }

    .orbit-readout strong {
        font-size: 0.98rem;
    }
}

@media (max-width: 620px) {
    .hero-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .atlas-hero {
        padding-inline: 0.75rem;
    }

    .hero-copy {
        gap: 0.9rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.55rem, 12.8vw, 3.35rem);
        line-height: 1;
    }

    .hero-lede {
        font-size: 0.98rem;
        line-height: 1.48;
    }

    .prompt-form {
        padding: 0.62rem;
    }

    .signal-strip,
    .landing-section,
    .proof-section,
    .final-cta {
        width: min(100% - 1rem, 1180px);
    }

    .hero-control-panel,
    .prompt-form,
    .workspace-snapshot {
        border-radius: 1rem;
    }

    .scroll-orbit {
        padding: 0.34rem;
    }

    .orbit-readout {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #landing-webgl-canvas {
        opacity: 0.82;
    }

    .orbit-pulse,
    .orbit-satellite {
        transition: none;
    }

    .signal-strip div,
    .workflow-grid article,
    .capability-grid article,
    .proof-card,
    .system-copy,
    .workspace-snapshot,
    .final-cta {
        opacity: 1;
        transform: none;
    }
}
