/* ============================================================
   Mission / Why-DTN / Space — shared styles
   Reuses tokens from styles.css (--primary, --secondary, etc.)
   ============================================================ */

/* ----------- Mission Teaser (used inside index.html) -------- */
.mission-teaser {
    padding: 80px 0 40px;
    position: relative;
    z-index: 5;
}

.mission-teaser-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 32px 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.06) 0%,
        rgba(118, 75, 162, 0.04) 100%);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    box-shadow: var(--glass-inset-highlight);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.mission-teaser-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.08) 0%,
        transparent 50%,
        rgba(240, 147, 251, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.mission-teaser-card:hover {
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
}

.mission-teaser-card:hover::before {
    opacity: 1;
}

.mission-teaser-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.mission-teaser-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 12px;
}

.mission-teaser-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.mission-teaser-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 640px;
}

.mission-teaser-arrow {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.mission-teaser-arrow svg {
    width: 22px;
    height: 22px;
}

.mission-teaser-card:hover .mission-teaser-arrow {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .mission-teaser {
        padding: 60px 0 20px;
    }
    .mission-teaser-card {
        flex-direction: column;
        text-align: left;
        padding: 28px 24px;
        gap: 20px;
        align-items: flex-start;
    }
    .mission-teaser-arrow {
        align-self: flex-end;
    }
}

/* ============================================================
   MISSION HERO — full-viewport with 3D globe canvas
   ============================================================ */
.mission-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #050814;
    display: flex;
    align-items: center;
}

#globe-canvas,
#constellation-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.mission-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%,
        transparent 0%,
        rgba(5, 8, 20, 0.5) 70%,
        rgba(5, 8, 20, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

.mission-hero-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px clamp(24px, 5vw, 64px) 80px;
}

.mission-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--primary);
    padding: 8px 16px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 100px;
    background: rgba(102, 126, 234, 0.05);
    margin-bottom: 32px;
}

.mission-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 32px;
    max-width: 900px;
}

.mission-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mission-title-line {
    display: block;
}

.mission-subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 720px;
    margin-bottom: 48px;
}

.mission-cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-mission-primary,
.btn-mission-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-mission-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.btn-mission-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 50px rgba(102, 126, 234, 0.45);
}

.btn-mission-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    box-shadow: var(--glass-inset-highlight);
}

.btn-mission-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.btn-mission-primary svg,
.btn-mission-secondary svg {
    width: 18px;
    height: 18px;
}

/* ============================================================
   GENERIC SECTIONS for /mission and /why-dtn and /space
   ============================================================ */
.mission-section {
    padding: 100px 0;
    position: relative;
}

.mission-section.compact {
    padding: 70px 0;
}

.mission-section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mission-section-header.left {
    text-align: left;
    margin-left: 0;
}

.mission-section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 16px;
}

.mission-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.mission-section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto;
}

/* ----------- Problem grid (3 cards) -------- */
.mission-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mission-problem-card {
    padding: 36px 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    box-shadow: var(--glass-inset-highlight);
    transition: all 0.3s ease;
}

.mission-problem-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-4px);
}

.mission-problem-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #fff;
}

.mission-problem-icon svg {
    width: 24px;
    height: 24px;
}

.mission-problem-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.mission-problem-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ----------- Pillar stack (3 layered cards) -------- */
.mission-pillar-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 920px;
    margin: 0 auto;
    position: relative;
}

.mission-pillar-stack::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 60px;
    bottom: 60px;
    width: 2px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(102, 126, 234, 0.3) 20%,
        rgba(102, 126, 234, 0.3) 80%,
        transparent 100%);
    z-index: 0;
}

.mission-pillar-card {
    display: flex;
    gap: 32px;
    padding: 36px 36px 36px 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    box-shadow: var(--glass-inset-highlight);
    position: relative;
    z-index: 1;
}

.mission-pillar-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.mission-pillar-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.mission-pillar-content p {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ----------- Timing 2-column grid -------- */
.mission-timing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1080px;
    margin: 0 auto;
}

.mission-timing-col {
    padding: 40px 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.02);
}

.mission-timing-col h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mission-timing-col h3::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.6);
}

.mission-timing-col p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ----------- Spend transparency table -------- */
.mission-spend-table {
    display: flex;
    flex-direction: column;
    gap: 1px;
    max-width: 920px;
    margin: 0 auto;
    background: var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.mission-spend-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 32px 36px;
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

.mission-spend-row:hover {
    background: rgba(102, 126, 234, 0.04);
}

.mission-spend-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mission-spend-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ----------- Final CTA -------- */
.mission-final-cta {
    text-align: center;
    padding: 100px 24px;
    border-top: 1px solid var(--border-color);
}

.mission-final-cta h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.mission-final-cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.mission-final-cta-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ============================================================
   WHY DTN — text-only deep dive
   ============================================================ */
.dtn-hero {
    padding: 180px 0 80px;
    text-align: left;
    position: relative;
}

.dtn-hero-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px;
}

.dtn-paragraph {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.85;
    max-width: 760px;
    margin: 0 auto;
}

.dtn-paragraph + .dtn-paragraph {
    margin-top: 24px;
}

/* ----------- NASA Timeline -------- */
.dtn-timeline {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    padding-left: 32px;
}

.dtn-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(180deg,
        rgba(102, 126, 234, 0.5) 0%,
        rgba(102, 126, 234, 0.15) 100%);
}

.dtn-timeline-item {
    position: relative;
    padding: 0 0 36px 32px;
}

.dtn-timeline-item:last-child {
    padding-bottom: 0;
}

.dtn-timeline-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.dtn-timeline-date {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.dtn-timeline-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.dtn-timeline-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ----------- Stack diagram (inline SVG) -------- */
.dtn-stack-diagram {
    max-width: 520px;
    margin: 48px auto 0;
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.02);
}

.dtn-stack-layer {
    padding: 22px 24px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.dtn-stack-layer:last-child {
    margin-bottom: 0;
}

.dtn-stack-layer-1 {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.18), rgba(102, 126, 234, 0.08));
    border: 1px solid rgba(102, 126, 234, 0.35);
}

.dtn-stack-layer-2 {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.18), rgba(118, 75, 162, 0.08));
    border: 1px solid rgba(118, 75, 162, 0.35);
}

.dtn-stack-layer-3 {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.16), rgba(240, 147, 251, 0.06));
    border: 1px solid rgba(240, 147, 251, 0.3);
}

.dtn-stack-layer-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.dtn-stack-layer-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dtn-stack-arrow {
    text-align: center;
    color: var(--text-muted);
    margin: 4px 0;
    font-size: 1.1rem;
}

/* ============================================================
   SPACE — compatibility list, use-case cards
   ============================================================ */
.space-compat-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    max-width: 920px;
    margin: 0 auto;
}

.space-compat-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.space-compat-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.space-compat-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.space-compat-text small {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 400;
}

.space-usecase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 920px;
    margin: 0 auto;
}

.space-usecase-card {
    padding: 32px 28px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.space-usecase-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-4px);
}

.space-usecase-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.space-usecase-card p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.space-partnership-block {
    max-width: 820px;
    margin: 0 auto;
    padding: 56px 48px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.06) 0%,
        rgba(118, 75, 162, 0.04) 100%);
    text-align: center;
}

.space-partnership-block h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.space-partnership-block p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 968px) {
    .mission-problem-grid {
        grid-template-columns: 1fr;
    }
    .mission-timing-grid {
        grid-template-columns: 1fr;
    }
    .space-usecase-grid {
        grid-template-columns: 1fr;
    }
    .mission-pillar-card {
        flex-direction: column;
        gap: 20px;
        padding: 28px 24px;
    }
    .mission-pillar-stack::before {
        display: none;
    }
    .mission-spend-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 24px 24px;
    }
}

@media (max-width: 640px) {
    .mission-section {
        padding: 70px 0;
    }
    .mission-hero-overlay {
        padding: 140px 24px 60px;
    }
    .mission-eyebrow {
        font-size: 0.7rem;
    }
    .dtn-hero {
        padding: 140px 0 60px;
    }
    .dtn-timeline {
        padding-left: 24px;
    }
    .space-partnership-block {
        padding: 40px 28px;
    }
}

/* ============================================================
   SPACE SCROLL SCENE — full-page 3D background for /space
   Driven by js/space-scroll-scene.js. Earth → Moon → Mars
   story unfolds as the user scrolls the page.
   ============================================================ */
body.space-scroll {
    background: #050814;
    overflow-x: hidden;
}

#space-scroll-scene {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    display: block;
}

/* Hero is now transparent — scene shows through */
body.space-scroll .mission-hero {
    background: transparent;
}

/* Soften hero vignette so Earth is visible behind the title */
body.space-scroll .mission-hero::after {
    background: radial-gradient(ellipse 75% 60% at 50% 55%,
        transparent 0%,
        rgba(5, 8, 20, 0.28) 55%,
        rgba(5, 8, 20, 0.65) 100%);
}

/* Sections float above the scene */
body.space-scroll .mission-section {
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Strong text shadow so headings read over the 3D scene */
body.space-scroll .mission-title,
body.space-scroll .mission-subtitle,
body.space-scroll .mission-section-title,
body.space-scroll .mission-section-header p {
    text-shadow: 0 2px 24px rgba(5, 8, 20, 0.85),
                 0 0 48px rgba(5, 8, 20, 0.55);
}

/* Cards get a darker glass backdrop so body text is readable */
body.space-scroll .mission-problem-card,
body.space-scroll .space-usecase-card,
body.space-scroll .space-compat-list,
body.space-scroll .space-partnership-block {
    background: rgba(12, 16, 28, 0.62);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

/* Nav gets darker glass for readability over the scene */
body.space-scroll .nav {
    background: rgba(5, 8, 20, 0.72);
}

/* Footer sits above the canvas with solid bg so scene ends cleanly */
body.space-scroll .footer {
    background: rgba(5, 8, 20, 0.96);
    position: relative;
    z-index: 1;
}

/* ============================================================
   DTN DEMO OVERLAY — interactive panels on /space
   ============================================================ */
#dtn-demo {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 32px 40px;
    gap: 24px;
}

.dtn-demo-panel {
    pointer-events: auto;
    width: 320px;
    padding: 22px 24px 18px;
    border-radius: 18px;
    background: rgba(8, 12, 28, 0.78);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid rgba(102, 126, 234, 0.22);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dtn-demo-panel.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dtn-demo-mars {
    border-color: rgba(255, 140, 66, 0.22);
}

.dtn-demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dtn-demo-route-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dtn-demo-icon {
    width: 20px;
    height: 20px;
    color: rgba(155, 181, 255, 0.7);
    flex-shrink: 0;
}

.dtn-demo-mars .dtn-demo-icon {
    color: rgba(255, 179, 139, 0.7);
}

.dtn-demo-route {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.dtn-demo-lighttime {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(155, 181, 255, 0.7);
    letter-spacing: 0.03em;
    background: rgba(102, 126, 234, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.dtn-demo-mars .dtn-demo-lighttime {
    color: rgba(255, 179, 139, 0.7);
    background: rgba(255, 140, 66, 0.1);
    border-color: rgba(255, 140, 66, 0.15);
}

/* --- Relay step indicator --- */
.dtn-demo-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
    padding: 0 2px;
}

.dtn-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.dtn-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.dtn-step.active .dtn-step-dot {
    background: #667eea;
    border-color: #9bb5ff;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.6);
}

.dtn-step.done .dtn-step-dot {
    background: #00e676;
    border-color: #69f0ae;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
}

.dtn-demo-mars .dtn-step.active .dtn-step-dot {
    background: #ff8c42;
    border-color: #ffb38b;
    box-shadow: 0 0 10px rgba(255, 140, 66, 0.6);
}

.dtn-step-label {
    font-size: 0.62rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.3s;
    white-space: nowrap;
}

.dtn-step.active .dtn-step-label,
.dtn-step.done .dtn-step-label {
    color: rgba(255, 255, 255, 0.7);
}

.dtn-step-line {
    flex: 1;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
    border-radius: 1px;
}

.dtn-step-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #667eea, #9bb5ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 1px;
}

.dtn-step-line.filled::after {
    transform: scaleX(1);
}

.dtn-demo-mars .dtn-step-line::after {
    background: linear-gradient(90deg, #ff8c42, #ffb38b);
}

/* --- Send button --- */
.dtn-demo-btn {
    width: 100%;
    padding: 11px 0;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s ease;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.dtn-demo-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.dtn-demo-btn:hover::before {
    left: 120%;
}

.dtn-btn-icon {
    opacity: 0.9;
    flex-shrink: 0;
}

.dtn-demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4),
                0 0 0 1px rgba(102, 126, 234, 0.2);
}

.dtn-demo-btn:active {
    transform: translateY(0) scale(0.98);
}

.dtn-demo-btn:disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.dtn-demo-btn:disabled::before {
    display: none;
}

.dtn-demo-btn-mars {
    background: linear-gradient(135deg, #ff8c42 0%, #e06030 100%);
}

.dtn-demo-btn-mars:hover {
    box-shadow: 0 8px 24px rgba(255, 140, 66, 0.4),
                0 0 0 1px rgba(255, 140, 66, 0.2);
}

/* --- Progress bar --- */
.dtn-demo-progress {
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    margin-bottom: 10px;
}

.dtn-demo-bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: linear-gradient(90deg, #667eea, #9bb5ff);
    transition: width 0.15s linear;
    position: relative;
}

.dtn-demo-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 6px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(155, 181, 255, 0.8);
    opacity: 0;
    transition: opacity 0.2s;
}

.dtn-demo-bar[style*="width: 0%"]::after { opacity: 0; }
.dtn-demo-panel.visible .dtn-demo-bar:not([style*="width: 0%"])::after { opacity: 1; }

.dtn-demo-bar-mars {
    background: linear-gradient(90deg, #e06030, #ffb38b);
}

.dtn-demo-bar-mars::after {
    box-shadow: 0 0 8px rgba(255, 179, 139, 0.8);
}

/* --- Status text --- */
.dtn-demo-status {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.5;
    min-height: 1.2em;
    margin: 0;
    transition: color 0.3s;
}

.dtn-demo-status.delivered {
    color: #00e676;
    font-weight: 600;
}

@media (max-width: 768px) {
    #dtn-demo {
        justify-content: center;
        padding: 0 16px 24px;
        flex-direction: column;
        align-items: center;
    }
    .dtn-demo-panel {
        width: 100%;
        max-width: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #dtn-demo {
        display: none;
    }
}

/* ---------- Zone accent colors (Earth = blue, Mars = amber) ---------- */
[data-space-zone="earth"] .mission-problem-card {
    border-color: rgba(79, 172, 254, 0.18);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.06), var(--glass-inset-highlight);
}
[data-space-zone="earth"] .mission-problem-card:hover {
    border-color: rgba(79, 172, 254, 0.4);
    box-shadow: 0 0 32px rgba(79, 172, 254, 0.12);
}
[data-space-zone="mars"] .space-usecase-card {
    border-color: rgba(255, 140, 66, 0.18);
    box-shadow: 0 0 20px rgba(255, 140, 66, 0.06), var(--glass-inset-highlight);
}
[data-space-zone="mars"] .space-usecase-card:hover {
    border-color: rgba(255, 140, 66, 0.4);
    box-shadow: 0 0 32px rgba(255, 140, 66, 0.12);
}
[data-space-zone="mars"] .mission-problem-icon {
    background: linear-gradient(135deg, #ff8c42, #e06030);
}
[data-space-zone="mars"] .mission-section-eyebrow {
    color: #ff8c42;
}

/* Reduce motion — scene still renders, but scroll response is instant
   and rotation animations are skipped (handled in JS) */
@media (prefers-reduced-motion: reduce) {
    body.space-scroll #space-scroll-scene {
        opacity: 0.85;
    }
}
