/* AnatomyBase — Clinical 3D Platform Stylesheet */
:root {
    color-scheme: dark;
    --bg-deep: #03060b;
    --bg-base: #060a12;
    --bg-elevated: #0c1424;
    --glass-bg: rgba(10, 17, 30, 0.78);
    --glass-bg-strong: rgba(8, 13, 24, 0.92);
    --glass-border: rgba(148, 163, 184, 0.16);
    --glass-border-hover: rgba(56, 189, 248, 0.38);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --cyan: #38bdf8;
    --cyan-soft: rgba(56, 189, 248, 0.14);
    --emerald: #34d399;
    --emerald-soft: rgba(52, 211, 153, 0.14);
    --amber: #fbbf24;
    --amber-soft: rgba(251, 191, 36, 0.14);
    --rose: #f43f5e;
    --rose-soft: rgba(244, 63, 94, 0.14);
    --violet: #a78bfa;
    --violet-soft: rgba(167, 139, 250, 0.14);
    --sky: #60a5fa;
    --sky-soft: rgba(96, 165, 250, 0.14);

    --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --container: 1320px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 50% at 65% 8%, rgba(14, 42, 72, 0.55) 0%, transparent 65%),
        radial-gradient(ellipse 65% 45% at 15% 28%, rgba(12, 34, 56, 0.42) 0%, transparent 60%),
        linear-gradient(180deg, #060a12 0%, #04070e 55%, #03060b 100%);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

/* Subtle surgical coordinate grid */
.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(to right, rgba(56, 189, 248, 0.032) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.032) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 90% 75% at 50% 25%, black 25%, transparent 90%);
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font-family: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    position: relative;
    z-index: 2;
}

.font-mono {
    font-family: var(--font-mono);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Typography & Section Headers */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan);
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 10px var(--emerald);
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: -0.03em;
    color: #ffffff;
}

.section {
    padding: clamp(26px, 3.4vw, 46px) 0;
    position: relative;
}

.section-header {
    max-width: 740px;
    margin-bottom: clamp(18px, 2.4vw, 30px);
}

.section-header h2 {
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.12;
    margin: 10px 0 14px;
}

.section-header p {
    margin: 0;
    font-size: clamp(15px, 1.3vw, 17px);
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    color: #041322;
    box-shadow: 0 8px 26px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.42);
}

.btn-emerald {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #032219;
    box-shadow: 0 8px 26px rgba(52, 211, 153, 0.28);
}

.btn-emerald:hover {
    background: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.72);
    color: var(--text-primary);
    border-color: rgba(148, 163, 184, 0.24);
}

.btn-secondary:hover {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(20, 32, 54, 0.9);
    color: #ffffff;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: rgba(148, 163, 184, 0.18);
}

.btn-ghost:hover {
    color: var(--cyan);
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.08);
}

.btn-sm {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 9px;
}

/* Top Navigation Bar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 72px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(5, 9, 17, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.site-header.is-scrolled {
    background: rgba(4, 8, 15, 0.92);
    border-bottom-color: rgba(56, 189, 248, 0.22);
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.22), rgba(14, 165, 233, 0.14));
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: var(--cyan);
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.18);
}

.brand-accent {
    color: var(--cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.18s ease;
}

.nav-links a:hover {
    color: var(--cyan);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-drawer {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 39;
    background: rgba(6, 10, 18, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px clamp(20px, 4vw, 48px) 26px;
    flex-direction: column;
    gap: 14px;
}

.mobile-drawer.is-open {
    display: flex;
}

.mobile-drawer a {
    padding: 8px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

/* Hero Section */
.hero-section {
    padding: clamp(26px, 3.5vw, 48px) 0 clamp(24px, 3vw, 42px);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
    gap: clamp(20px, 2.8vw, 36px);
    align-items: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.28);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #bae6fd;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(36px, 4.7vw, 62px);
    line-height: 1.06;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.hero-title .text-gradient {
    background: linear-gradient(125deg, #ffffff 10%, #7dd3fc 52%, #34d399 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    font-size: clamp(16px, 1.45vw, 18px);
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 0 28px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.metric-card {
    background: rgba(12, 20, 36, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
}

.metric-value {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.metric-value span {
    color: var(--cyan);
}

.metric-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Hero Interactive 3D Specimen Viewport */
.hero-viewport-card {
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at 50% 45%, #11223b 0%, #070e1b 68%, #040811 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.viewport-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(7, 12, 22, 0.78);
    flex-wrap: wrap;
}

.specimen-switch {
    display: inline-flex;
    flex-wrap: wrap;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    padding: 3px;
    gap: 3px;
}

.specimen-tab {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.18s ease;
}

.specimen-tab.is-active {
    background: rgba(56, 189, 248, 0.2);
    color: #e0f2fe;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.4);
}

.viewport-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tool-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.75);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.16s ease;
}

.tool-chip:hover {
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.45);
}

.tool-chip.is-active {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.55);
    color: var(--cyan);
}

.hero-canvas-wrap {
    position: relative;
    height: clamp(360px, 46vh, 470px);
    cursor: grab;
    overflow: hidden;
}

.hero-canvas-wrap:active {
    cursor: grabbing;
}

#hero-webgl {
    position: absolute;
    inset: 0;
}

#hero-pins-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6;
}

.hero-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(7, 12, 22, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.28);
    backdrop-filter: blur(8px);
    padding: 3px 9px 3px 6px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease;
}

.hero-pin:hover,
.hero-pin.is-selected {
    transform: translate(-50%, -50%) scale(1.06);
    border-color: var(--cyan);
    z-index: 10;
}

.hero-pin-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    box-shadow: 0 0 10px currentColor;
    flex-shrink: 0;
}

.hero-pin-label {
    font-size: 11px;
    font-weight: 500;
    color: #f8fafc;
    white-space: nowrap;
}

.hud-badge {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(7, 12, 22, 0.78);
    border: 1px solid rgba(56, 189, 248, 0.28);
    font-family: var(--font-mono);
    font-size: 11px;
    color: #bae6fd;
    pointer-events: none;
}

.hud-drag-hint {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 5;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(7, 12, 22, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 11px;
    color: var(--text-secondary);
    pointer-events: none;
}

.viewport-footer {
    padding: 13px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(6, 11, 20, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.pin-telemetry {
    min-width: 0;
    flex: 1;
}

.pin-telemetry-code {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--cyan);
    text-transform: uppercase;
}

.pin-telemetry-text {
    font-size: 12px;
    color: #cbd5e1;
    margin-top: 2px;
    line-height: 1.4;
}

.webgl-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Live Interactive Free Demo Theater */
.demo-module-card {
    max-width: 560px;
    margin-bottom: 12px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(52, 211, 153, 0.55);
    background: linear-gradient(145deg, rgba(14, 32, 46, 0.9), rgba(10, 22, 34, 0.85));
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.12);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.demo-card-code {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--emerald);
}

.demo-card-duration {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
}

.demo-card-title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
}

.demo-card-sub {
    font-size: 13px;
    color: var(--text-secondary);
}

.theater-stage-panel {
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.theater-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(7, 12, 22, 0.88);
    flex-wrap: wrap;
}

.theater-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 10px var(--emerald);
    flex-shrink: 0;
}

.theater-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.theater-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.theater-poster {
    position: absolute;
    inset: 0;
    padding: clamp(24px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at 78% 22%, rgba(56, 189, 248, 0.16), transparent 55%),
        radial-gradient(circle at 20% 80%, rgba(52, 211, 153, 0.12), transparent 55%),
        rgba(6, 11, 20, 0.92);
}

.theater-poster.is-hidden {
    display: none;
}

.poster-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.poster-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #bae6fd;
}

.poster-title {
    font-size: clamp(24px, 2.8vw, 34px);
    line-height: 1.15;
    margin-bottom: 12px;
}

.poster-summary {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 580px;
    margin: 0 0 20px;
}

.poster-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.theater-iframe {
    width: 100%;
    height: 960px;
    border: 0;
    display: block;
    background: #060a12;
}

/* Clinical Companion Panel */
.companion-tab {
    padding: 8px 10px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s ease;
}

.companion-tab.is-active {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.36);
    color: #e0f2fe;
}

.chapter-row {
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.chapter-row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.chapter-row-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.chapter-row-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--cyan);
}

.chapter-row-pearl {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.cheat-card {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.cheat-card h4 {
    font-size: 13px;
    color: var(--cyan);
    margin-bottom: 8px;
}

.cheat-card ul {
    margin: 0;
    padding-left: 16px;
    display: grid;
    gap: 6px;
    font-size: 12.5px;
    color: #cbd5e1;
}

.quiz-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-progress {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--cyan);
}

.quiz-question {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.5;
}

.quiz-options {
    display: grid;
    gap: 8px;
}

.quiz-opt {
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.quiz-opt:hover:not(:disabled) {
    border-color: var(--cyan);
    background: rgba(56, 189, 248, 0.12);
}

.quiz-opt.is-correct {
    border-color: var(--emerald);
    background: rgba(52, 211, 153, 0.18);
    color: #ecfdf5;
}

.quiz-opt.is-wrong {
    border-color: var(--rose);
    background: rgba(244, 63, 94, 0.16);
    color: #ffe4e6;
}

.quiz-feedback {
    padding: 11px 13px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-size: 12.5px;
    color: #cbd5e1;
}

/* 3-Pillar Clinical Methodology */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pillar-card {
    padding: 26px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pillar-card:hover {
    transform: translateY(-3px);
    border-color: var(--glass-border-hover);
}

.pillar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--cyan-soft);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--cyan);
}

.pillar-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.pillar-card h3 {
    font-size: 20px;
    line-height: 1.25;
}

.pillar-card p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Audience Selector & Spotlight */
.audience-shell {
    border-radius: 22px;
    padding: clamp(20px, 3vw, 32px);
    display: grid;
    grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.45fr);
    gap: clamp(14px, 2vw, 22px);
}

.audience-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audience-tab {
    text-align: left;
    padding: 15px 16px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.14);
    cursor: pointer;
    transition: all 0.18s ease;
}

.audience-tab:hover {
    border-color: rgba(56, 189, 248, 0.35);
}

.audience-tab.is-active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(14, 165, 233, 0.08));
    border-color: rgba(56, 189, 248, 0.55);
}

.audience-tab strong {
    display: block;
    font-size: 15px;
    color: #ffffff;
}

.audience-tab span {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.audience-spotlight {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 6px;
}

.audience-spotlight h3 {
    font-size: clamp(22px, 2.5vw, 30px);
    line-height: 1.2;
}

.audience-spotlight p {
    margin: 0;
    font-size: 15px;
    color: var(--text-secondary);
}

.audience-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.audience-chip {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #bae6fd;
}

.audience-outcomes {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.audience-outcomes li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #cbd5e1;
}

.audience-outcomes li::before {
    content: "✓";
    color: var(--emerald);
    font-weight: 700;
    flex-shrink: 0;
}

/* 30-Module Curriculum Catalog */
.catalog-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.search-input-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

#catalog-search {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(10, 17, 30, 0.85);
    color: #ffffff;
    font-size: 14px;
}

#catalog-search::placeholder {
    color: var(--text-muted);
}

.catalog-count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--cyan);
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--glass-border);
}

.symptom-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.symptom-label {
    font-size: 12px;
    color: var(--text-muted);
}

.symptom-btn {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.65);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.symptom-btn:hover {
    border-color: var(--cyan);
    color: #ffffff;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-pill {
    padding: 8px 13px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(12, 19, 34, 0.7);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.16s ease;
}

.cat-pill:hover {
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.4);
}

.cat-pill.is-active {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.52);
    color: #e0f2fe;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

#catalog .modules-grid {
    gap: 12px;
}

.module-card {
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.42);
}

.module-card.is-live {
    border-color: rgba(52, 211, 153, 0.42);
    background: linear-gradient(155deg, rgba(11, 27, 36, 0.88), rgba(10, 17, 30, 0.82));
}

.module-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.module-code {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.status-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 0.06em;
}

.status-live {
    background: var(--emerald-soft);
    border: 1px solid rgba(52, 211, 153, 0.48);
    color: var(--emerald);
}

.status-phase1 {
    background: var(--cyan-soft);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--cyan);
}

.status-pro {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #cbd5e1;
}

.module-title {
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 6px;
}

.module-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.module-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.module-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
}

.module-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.module-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.empty-catalog {
    padding: 40px 24px;
    text-align: center;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Platform Capabilities Bento */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.bento-card {
    padding: 22px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bento-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--cyan);
}

.bento-card h3 {
    font-size: 18px;
}

.bento-card p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.pain-legend-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 4px;
}

.pain-dot-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.pain-dot-chip i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Pricing Section */
.billing-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(12, 19, 34, 0.85);
    border: 1px solid var(--glass-border);
    margin-top: 18px;
}

.billing-btn {
    padding: 8px 14px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.billing-btn.is-active {
    background: rgba(56, 189, 248, 0.2);
    color: #ffffff;
}

.save-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--emerald);
    margin-left: 4px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 880px;
    margin: 0 auto;
    gap: 14px;
}

.price-card {
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.price-card.is-featured {
    border-color: rgba(56, 189, 248, 0.55);
    background: linear-gradient(170deg, rgba(14, 34, 56, 0.9), rgba(9, 15, 28, 0.88));
    box-shadow: 0 22px 54px rgba(14, 165, 233, 0.16);
}

.price-tier {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.price-card h3 {
    font-size: 21px;
    margin: 6px 0 8px;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.price-period {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
}

.price-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.price-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
    font-size: 13px;
    color: #cbd5e1;
}

.price-list li {
    display: flex;
    gap: 8px;
}

.price-list li::before {
    content: "✓";
    color: var(--emerald);
    font-weight: 700;
}

/* Locked Module States & All-Access Upgrade Picker */
.specimen-tab.is-locked {
    opacity: 0.72;
}

.specimen-tab.is-locked::after {
    content: " 🔒";
    font-size: 10px;
    opacity: 0.75;
}

.module-card.is-locked {
    opacity: 0.86;
    border-color: rgba(148, 163, 184, 0.14);
}

.module-card.is-locked:hover {
    opacity: 1;
    border-color: rgba(251, 191, 36, 0.36);
}

.upgrade-lock-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fde68a;
    font-size: 12.5px;
    line-height: 1.45;
}

.upgrade-plan-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.upgrade-plan-option {
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.upgrade-plan-option:hover {
    border-color: rgba(56, 189, 248, 0.45);
}

.upgrade-plan-option.is-selected {
    border-color: rgba(56, 189, 248, 0.7);
    background: rgba(14, 34, 56, 0.9);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.upgrade-plan-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-mono);
}

.upgrade-plan-price {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 4px;
}

.upgrade-plan-sub {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-top: 2px;
}

@media (max-width: 560px) {
    .upgrade-plan-picker {
        grid-template-columns: 1fr;
    }
}

/* FAQ Accordion */
.faq-list {
    display: grid;
    gap: 8px;
    max-width: 900px;
}

.faq-item {
    border-radius: 16px;
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
}

.faq-icon {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--cyan);
    transition: transform 0.2s ease;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 18px;
    font-size: 14px;
    color: var(--text-secondary);
}

.faq-item.is-open .faq-answer {
    display: block;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(4, 7, 13, 0.92);
    padding: 44px 0 34px;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-muted);
}

/* Fullscreen Studio Modal & Info Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(2, 5, 11, 0.88);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-backdrop.is-open {
    display: flex;
}

.studio-modal-shell {
    width: 100%;
    height: 100%;
    max-width: 1600px;
    max-height: 96vh;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #050912;
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
}

.studio-modal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(7, 12, 22, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    flex-wrap: wrap;
}

#studio-modal-frame {
    width: 100%;
    flex: 1;
    border: 0;
    background: #060a12;
}

.info-modal-card {
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 26px;
    background: rgba(9, 15, 27, 0.96);
    border: 1px solid rgba(56, 189, 248, 0.32);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.78);
}

.info-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.close-x {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.info-section-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.info-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.early-access-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.early-access-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.early-access-row input {
    flex: 1;
    min-width: 210px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 14px;
}

.form-status {
    font-size: 13px;
    color: var(--emerald);
    margin: 0;
}

.form-status.is-error {
    color: var(--rose);
}

/* Responsive Breakpoints */
@media (max-width: 1140px) {
    .hero-grid,
    .audience-shell {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 860px) {
    .nav-links,
    .nav-actions .btn-ghost {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-metrics,
    .modules-grid,
    .pricing-grid,
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .nav-actions .btn-primary {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
