:root {
    --black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --mid-gray: #2a2a2a;
    --light-gray: #4a4a4a;
    --border-gray: #333333;
    --text-gray: #a0a0a0;
    --white: #ffffff;
    --off-white: #e8e8e8;
    --accent: #2d5f7f;
    --accent-light: #3d7fa0;
}

[data-theme="light"] {
    --black: #ffffff;
    --dark-gray: #f5f5f5;
    --mid-gray: #e8e8e8;
    --light-gray: #d0d0d0;
    --border-gray: #cccccc;
    --text-gray: #606060;
    --white: #0a0a0a;
    --off-white: #1a1a1a;
    --accent: #2d5f7f;
    --accent-light: #3d7fa0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--black);
    color: var(--off-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), transparent);
    border-bottom: 1px solid transparent;
}

.nav-logo {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

.logo-bracket {
    color: var(--text-gray);
}

.nav-indicator {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: var(--text-gray);
}

.current-section {
    color: var(--white);
    font-weight: 600;
}

.separator {
    margin: 0 5px;
    opacity: 0.3;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 25px;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-gray);
    color: var(--white);
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.theme-toggle:hover {
    border-color: var(--accent);
    background: var(--mid-gray);
}

.theme-icon {
    transition: opacity 0.3s ease;
}

.dark-icon {
    opacity: 1;
}

.light-icon {
    opacity: 0;
    position: absolute;
}

[data-theme="light"] .dark-icon {
    opacity: 0;
}

[data-theme="light"] .light-icon {
    opacity: 1;
    position: relative;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blueprint-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

[data-theme="light"] .blueprint-grid {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--text-gray);
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.3s;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--white);
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.5s;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 60px;
    font-weight: 300;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.7s;
}

.hero-metrics {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.9s;
}

.metric {
    text-align: center;
}

.metric-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.metric-divider {
    width: 1px;
    background: var(--border-gray);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Common Section Styles */
.section {
    min-height: 100vh;
    padding: 100px 40px;
    position: relative;
    transition: background-color 0.3s ease;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-gray);
}

.section-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.5px;
}

/* Definition Section */
.definition {
    background: var(--dark-gray);
}

.content-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.definition-block h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.definition-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.spec-item {
    padding: 20px;
    background: var(--mid-gray);
    border: 1px solid var(--border-gray);
    border-radius: 2px;
}

.spec-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-value {
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 500;
}

/* Schematic Visualization - PURE 2D */
.schematic {
    position: relative;
    height: 500px;
    background: var(--mid-gray);
    border: 1px solid var(--border-gray);
    padding: 20px;
    overflow: hidden;
}

.schematic-container-3d {
    position: relative;
    width: 100%;
    height: 100%;
}

.schematic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 19px,
            rgba(255, 255, 255, 0.02) 19px,
            rgba(255, 255, 255, 0.02) 20px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 19px,
            rgba(255, 255, 255, 0.02) 19px,
            rgba(255, 255, 255, 0.02) 20px
        );
    pointer-events: none;
}

[data-theme="light"] .schematic::before {
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 19px,
            rgba(0, 0, 0, 0.03) 19px,
            rgba(0, 0, 0, 0.03) 20px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 19px,
            rgba(0, 0, 0, 0.03) 19px,
            rgba(0, 0, 0, 0.03) 20px
        );
}

.schematic-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: absolute;
    z-index: 10;
}

.schematic-label.top {
    top: 15px;
    left: 20px;
}

.schematic-label.bottom {
    bottom: 15px;
    left: 20px;
}

/* Frame Structure - Clean 2D */
.frame-left,
.frame-right {
    position: absolute;
    width: 6px;
    height: 320px;
    background: linear-gradient(90deg, #444, #555, #444);
    bottom: 80px;
    border-radius: 1px;
}

.frame-left {
    left: 50px;
}

.frame-right {
    right: 50px;
}

.gantry-beam {
    position: absolute;
    top: 80px;
    left: 50px;
    right: 50px;
    height: 10px;
    background: linear-gradient(180deg, #555, #444);
    border-radius: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.gantry-rail {
    display: none;
}

/* Print Head Assembly - All elements move together */
.x-carriage {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 40px;
    animation: nozzleMovement 14s ease-in-out infinite;
}

.carriage-body {
    width: 40px;
    height: 28px;
    background: linear-gradient(135deg, #555, #666);
    border: 1px solid #333;
    border-radius: 2px;
    position: relative;
    margin: 0 auto;
}

.carriage-body::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 8px;
    right: 8px;
    height: 5px;
    background: var(--accent);
    opacity: 0.7;
}

.carriage-wheel {
    display: none;
}

/* Z-Axis - moves with carriage */
.z-axis {
    position: absolute;
    top: 118px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    width: 40px;
    animation: nozzleMovement 14s ease-in-out infinite;
}

.z-rail {
    width: 5px;
    height: 90px;
    background: linear-gradient(to right, #444, #555);
    margin: 0 auto;
}

.z-motor {
    display: none;
}

/* Extruder Assembly - moves with carriage and z-axis */
.extruder-assembly {
    position: absolute;
    top: 208px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    width: 40px;
    animation: nozzleMovement 14s ease-in-out infinite;
}

.extruder-mount {
    width: 24px;
    height: 14px;
    background: linear-gradient(to bottom, #555, #444);
    margin: 0 auto;
    border-radius: 1px;
}

.extruder-body {
    width: 28px;
    height: 24px;
    background: linear-gradient(135deg, #666, #555);
    margin: 2px auto;
    border: 1px solid #333;
    border-radius: 2px;
    position: relative;
}

.extruder-body::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    height: 4px;
    background: var(--accent-light);
    opacity: 0.6;
}

.nozzle-cone {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 18px solid var(--accent);
    margin: 0 auto;
    filter: drop-shadow(0 3px 6px rgba(45, 95, 127, 0.5));
    position: relative;
}

.nozzle-cone::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-light);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(61, 127, 160, 0.8);
}

.material-flow {
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, var(--accent-light), transparent);
    margin: 0 auto;
    animation: materialExtrude 0.6s ease-in-out infinite;
}

.material-flow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(61, 127, 160, 0.7), transparent);
    animation: flowPulse 0.5s ease-in-out infinite;
}

/* Nozzle Movement - Left to Right and Back */
@keyframes nozzleMovement {
    /* Layer 1 - Left to Right */
    0% { left: 20%; }
    10% { left: 80%; }

    /* Return */
    10%, 14.3% { left: 80%; }

    /* Layer 2 - Right to Left */
    14.3% { left: 80%; }
    24.3% { left: 20%; }

    /* Return */
    24.3%, 28.6% { left: 20%; }

    /* Layer 3 - Left to Right */
    28.6% { left: 20%; }
    38.6% { left: 80%; }

    /* Return */
    38.6%, 42.9% { left: 80%; }

    /* Layer 4 - Right to Left */
    42.9% { left: 80%; }
    52.9% { left: 20%; }

    /* Return */
    52.9%, 57.1% { left: 20%; }

    /* Layer 5 - Left to Right */
    57.1% { left: 20%; }
    67.1% { left: 80%; }

    /* Return */
    67.1%, 71.4% { left: 80%; }

    /* Layer 6 - Right to Left */
    71.4% { left: 80%; }
    81.4% { left: 20%; }

    /* Return */
    81.4%, 85.7% { left: 20%; }

    /* Layer 7 - Left to Right */
    85.7% { left: 20%; }
    95.7% { left: 80%; }

    /* Final Return */
    95.7%, 100% { left: 80%; }
    100% { left: 20%; }
}

@keyframes materialExtrude {
    0%, 100% {
        opacity: 0.6;
        height: 22px;
    }
    50% {
        opacity: 1;
        height: 32px;
    }
}

@keyframes flowPulse {
    0%, 100% {
        opacity: 0.7;
        transform: translateX(-50%) scale(0.9);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.4);
    }
}

/* Print Bed - Simplified 2D */
.print-bed {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    z-index: 1;
}

.bed-surface {
    height: 6px;
    background: linear-gradient(180deg, #555, #444);
    border: 1px solid #333;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    position: relative;
}

.bed-surface::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 15px,
        rgba(255, 255, 255, 0.02) 15px,
        rgba(255, 255, 255, 0.02) 16px
    );
}

.bed-support {
    position: absolute;
    top: 6px;
    width: 6px;
    height: 15px;
    background: linear-gradient(90deg, #444, #555);
}

.bed-support.left {
    left: 8%;
}

.bed-support.right {
    right: 8%;
}

/* Printed Structure - Synchronized with Nozzle */
.printed-structure {
    position: absolute;
    bottom: 86px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
    z-index: 2;
}

.print-layer {
    height: 16px;
    background: linear-gradient(135deg,
        rgba(45, 95, 127, 0.3),
        rgba(45, 95, 127, 0.2),
        rgba(45, 95, 127, 0.25)
    );
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid var(--accent);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    clip-path: inset(0 100% 0 0);
}

/* Layer reveal animations - synchronized with nozzle */
.print-layer[data-layer="1"] {
    animation: revealLayer1 14s ease-in-out infinite;
}

.print-layer[data-layer="2"] {
    animation: revealLayer2 14s ease-in-out infinite;
}

.print-layer[data-layer="3"] {
    animation: revealLayer3 14s ease-in-out infinite;
}

.print-layer[data-layer="4"] {
    animation: revealLayer4 14s ease-in-out infinite;
}

.print-layer[data-layer="5"] {
    animation: revealLayer5 14s ease-in-out infinite;
}

.print-layer[data-layer="6"] {
    animation: revealLayer6 14s ease-in-out infinite;
}

.print-layer[data-layer="7"] {
    animation: revealLayer7 14s ease-in-out infinite;
}

/* Glow effect as layer is being printed */
.print-layer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to left,
        rgba(61, 127, 160, 0.8),
        transparent
    );
    opacity: 0;
}

.print-layer[data-layer="1"]::after {
    animation: layerGlow1 14s ease-in-out infinite;
}

.print-layer[data-layer="2"]::after {
    animation: layerGlow2 14s ease-in-out infinite;
}

.print-layer[data-layer="3"]::after {
    animation: layerGlow3 14s ease-in-out infinite;
}

.print-layer[data-layer="4"]::after {
    animation: layerGlow4 14s ease-in-out infinite;
}

.print-layer[data-layer="5"]::after {
    animation: layerGlow5 14s ease-in-out infinite;
}

.print-layer[data-layer="6"]::after {
    animation: layerGlow6 14s ease-in-out infinite;
}

.print-layer[data-layer="7"]::after {
    animation: layerGlow7 14s ease-in-out infinite;
}

/* Layer 1: 0-10% (Left to Right) */
@keyframes revealLayer1 {
    0% { clip-path: inset(0 100% 0 0); }
    10% { clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

@keyframes layerGlow1 {
    0% { opacity: 0; }
    1% { opacity: 1; }
    10% { opacity: 1; }
    11% { opacity: 0; }
    100% { opacity: 0; }
}

/* Layer 2: 14.3-24.3% (Right to Left) */
@keyframes revealLayer2 {
    0%, 14.3% { clip-path: inset(0 100% 0 0); }
    24.3% { clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

@keyframes layerGlow2 {
    0%, 14.3% { opacity: 0; }
    15% { opacity: 1; }
    24.3% { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}

/* Layer 3: 28.6-38.6% (Left to Right) */
@keyframes revealLayer3 {
    0%, 28.6% { clip-path: inset(0 100% 0 0); }
    38.6% { clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

@keyframes layerGlow3 {
    0%, 28.6% { opacity: 0; }
    29% { opacity: 1; }
    38.6% { opacity: 1; }
    39% { opacity: 0; }
    100% { opacity: 0; }
}

/* Layer 4: 42.9-52.9% (Right to Left) */
@keyframes revealLayer4 {
    0%, 42.9% { clip-path: inset(0 100% 0 0); }
    52.9% { clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

@keyframes layerGlow4 {
    0%, 42.9% { opacity: 0; }
    43.5% { opacity: 1; }
    52.9% { opacity: 1; }
    53.5% { opacity: 0; }
    100% { opacity: 0; }
}

/* Layer 5: 57.1-67.1% (Left to Right) */
@keyframes revealLayer5 {
    0%, 57.1% { clip-path: inset(0 100% 0 0); }
    67.1% { clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

@keyframes layerGlow5 {
    0%, 57.1% { opacity: 0; }
    58% { opacity: 1; }
    67.1% { opacity: 1; }
    68% { opacity: 0; }
    100% { opacity: 0; }
}

/* Layer 6: 71.4-81.4% (Right to Left) */
@keyframes revealLayer6 {
    0%, 71.4% { clip-path: inset(0 100% 0 0); }
    81.4% { clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

@keyframes layerGlow6 {
    0%, 71.4% { opacity: 0; }
    72% { opacity: 1; }
    81.4% { opacity: 1; }
    82% { opacity: 0; }
    100% { opacity: 0; }
}

/* Layer 7: 85.7-95.7% (Left to Right) */
@keyframes revealLayer7 {
    0%, 85.7% { clip-path: inset(0 100% 0 0); }
    95.7% { clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

@keyframes layerGlow7 {
    0%, 85.7% { opacity: 0; }
    86.5% { opacity: 1; }
    95.7% { opacity: 1; }
    96.5% { opacity: 0; }
    100% { opacity: 0; }
}

/* Annotations */
.annotation {
    position: absolute;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 8;
    background: rgba(26, 26, 26, 0.8);
    padding: 3px 6px;
    border: 1px solid var(--border-gray);
    line-height: 1.3;
}

[data-theme="light"] .annotation {
    background: rgba(245, 245, 245, 0.9);
}

.annotation.x-axis {
    top: 42px;
    left: 50%;
    transform: translateX(-50%);
}

.annotation.z-axis-label {
    top: 140px;
    left: 20px;
}

.annotation.nozzle-label {
    top: 260px;
    right: 20px;
    text-align: right;
}

.annotation .sub {
    font-size: 0.55rem;
    color: var(--accent-light);
}

/* Coordinate System */
.coordinate-system {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 8;
}

.axis-x,
.axis-y {
    position: absolute;
    background: var(--accent);
}

.axis-x {
    width: 40px;
    height: 2px;
    bottom: 0;
    right: 0;
}

.axis-x::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -2px;
    width: 0;
    height: 0;
    border-left: 6px solid var(--accent);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

.axis-y {
    width: 2px;
    height: 40px;
    bottom: 0;
    right: 0;
}

.axis-y::after {
    content: '';
    position: absolute;
    right: -3px;
    top: -6px;
    width: 0;
    height: 0;
    border-bottom: 6px solid var(--accent);
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
}

.axis-label {
    position: absolute;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
}

.axis-label.x {
    right: -16px;
    bottom: -2px;
}

.axis-label.y {
    right: -2px;
    top: -20px;
}

.axis-z {
    width: 2px;
    height: 35px;
    bottom: 0;
    right: 0;
    transform: rotateY(45deg) rotateX(45deg);
    transform-origin: bottom;
}

.axis-z::after {
    content: '';
    position: absolute;
    right: -3px;
    bottom: 32px;
    width: 0;
    height: 0;
    border-bottom: 6px solid var(--accent);
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    transform: rotateZ(-45deg);
}

.axis-label.z {
    right: -18px;
    bottom: 32px;
}

/* Process Section */
.process {
    background: var(--black);
}

.process-flow {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: start;
}

.process-stage {
    background: var(--dark-gray);
    border: 1px solid var(--border-gray);
    padding: 35px 30px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease;
}

.process-stage:hover {
    border-color: var(--accent);
}

.process-connector {
    display: none;
}

.stage-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    font-weight: 600;
}

.stage-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
    letter-spacing: -0.3px;
}

.stage-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-gray);
    flex-grow: 1;
}

.stage-detail {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-light);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-gray);
}

.technical-notes {
    max-width: 1400px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.note {
    padding: 15px 20px;
    background: var(--dark-gray);
    border-left: 2px solid var(--accent);
    font-size: 0.95rem;
    color: var(--text-gray);
}

.note-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    color: var(--white);
    margin-right: 10px;
}

/* Advantages Section */
.advantages {
    background: var(--dark-gray);
}

.advantages-layout {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.advantage-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 25px;
    padding: 30px;
    background: var(--mid-gray);
    border: 1px solid var(--border-gray);
    transition: border-color 0.3s ease;
}

.advantage-item:hover {
    border-color: var(--accent);
}

.advantage-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.advantage-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--white);
}

.advantage-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.data-bar {
    margin-bottom: 10px;
    position: relative;
}

.bar-fill {
    height: 6px;
    background: var(--border-gray);
    margin-bottom: 5px;
    transition: width 0.5s ease;
}

.bar-fill.active {
    background: var(--accent);
}

.bar-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-gray);
}

.cost-comparison {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.cost-item {
    flex: 1;
    padding: 15px;
    background: var(--dark-gray);
    border: 1px solid var(--border-gray);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cost-item.active {
    border-color: var(--accent);
    background: rgba(45, 95, 127, 0.1);
}

.cost-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
}

.cost-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
}

/* Projects Section */
.projects {
    background: var(--black);
}

.projects-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project {
    background: var(--dark-gray);
    border: 1px solid var(--border-gray);
    padding: 30px;
    transition: border-color 0.3s ease;
}

.project:hover {
    border-color: var(--accent);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-gray);
}

.project-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
}

.project-status {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    padding: 10px 0;
}

.detail-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--off-white);
}

/* Future Section */
.future {
    background: var(--dark-gray);
}

.future-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.future-category {
    background: var(--mid-gray);
    border: 1px solid var(--border-gray);
    padding: 30px;
    transition: border-color 0.3s ease;
}

.future-category:hover {
    border-color: var(--accent);
}

.future-category h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--white);
}

.future-category p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.timeline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-light);
    padding-top: 15px;
    border-top: 1px solid var(--border-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Conclusion Section */
.conclusion {
    background: var(--black);
}

.conclusion-content {
    max-width: 1200px;
    margin: 0 auto;
}

.conclusion-statement {
    margin-bottom: 60px;
}

.conclusion-statement p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.conclusion-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.metric-box {
    background: var(--dark-gray);
    border: 1px solid var(--border-gray);
    padding: 30px;
    text-align: center;
}

.metric-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-figure {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1;
}

.metric-growth {
    font-size: 0.9rem;
    color: var(--accent-light);
}

.conclusion-footer {
    margin-top: 60px;
}

.footer-line {
    width: 100%;
    height: 1px;
    background: var(--border-gray);
    margin-bottom: 30px;
}

.footer-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--off-white);
    text-align: center;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .process-flow {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

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

    .advantages-layout,
    .projects-grid,
    .future-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .section {
        padding: 80px 20px;
    }

    .navbar {
        padding: 15px 20px;
    }

    .hero-metrics {
        gap: 30px;
    }

    .metric-divider {
        display: none;
    }

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

    .schematic {
        height: 400px;
    }

    .process-flow {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Video Section */
.video-section {
    background: var(--dark-gray);
}

.video-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}

.video-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.video-preview {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--mid-gray);
    border: 1px solid var(--border-gray);
    overflow: hidden;
    position: relative;
}

.video-preview video {
    width: 100%;
    height: 100%;
    display: block;
    background: var(--black);
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--mid-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.video-placeholder.hidden {
    display: none;
}

.placeholder-content {
    text-align: center;
    color: var(--text-gray);
}

.placeholder-content svg {
    margin-bottom: 20px;
    opacity: 0.3;
}

.placeholder-content p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--white);
}

.placeholder-path {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-light);
    background: var(--dark-gray);
    padding: 5px 10px;
    border-radius: 3px;
    display: inline-block;
}

.video-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 15px;
}

.video-info p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-gray);
}

.qr-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.qr-container {
    background: var(--mid-gray);
    border: 1px solid var(--border-gray);
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: #ffffff;
    padding: 15px;
    border: 2px solid var(--border-gray);
}

.qr-code img {
    width: 100%;
    height: 100%;
    display: block;
}

.qr-label {
    text-align: center;
}

.qr-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.qr-subtext {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.additional-resources {
    background: var(--mid-gray);
    border: 1px solid var(--border-gray);
    padding: 30px;
}

.additional-resources h4 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resource-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resource-list li {
    border-left: 2px solid var(--accent);
    padding-left: 15px;
}

.resource-list a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    font-family: 'IBM Plex Mono', monospace;
}

.resource-list a:hover {
    color: var(--accent-light);
}

@media (max-width: 1024px) {
    .video-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}