/* ========================================
   ICE VAULT - Premium Thermoelectric Energy Website
   ======================================== */

:root {
    /* Color System */
    --bg-deep: #030712;
    --bg-dark: #0a0f1a;
    --bg-card: #0f172a;
    --bg-card-hover: #111827;
    --bg-elevated: #1e293b;
    
    --fg-primary: #f8fafc;
    --fg-secondary: #cbd5e1;
    --fg-muted: #64748b;
    --fg-subtle: #475569;
    
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: #22d3ee;
    --accent-blue: #3b82f6;
    --accent-blue-glow: #60a5fa;
    --accent-amber: #f59e0b;
    --accent-amber-glow: #fbbf24;
    --accent-emerald: #10b981;
    --accent-emerald-glow: #34d399;
    --accent-rose: #f43f5e;
    --accent-rose-glow: #fb7185;
    --accent-violet: #a855f7;
    --accent-violet-glow: #c084fc;
    
    --gradient-primary: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 50%, var(--accent-violet) 100%);
    --gradient-warm: linear-gradient(135deg, var(--accent-amber) 0%, #ef4444 50%, #ec4899 100%);
    --gradient-cold: linear-gradient(135deg, #0ea5e9 0%, var(--accent-cyan) 50%, #06b6d4 100%);
    --gradient-surface: linear-gradient(145deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.7) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    
    --border-subtle: rgba(148, 163, 184, 0.1);
    --border-default: rgba(148, 163, 184, 0.2);
    --border-strong: rgba(148, 163, 184, 0.3);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.3);
    --shadow-glow-warm: 0 0 40px rgba(245, 158, 11, 0.3);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --container-max: 1280px;
    --container-padding: 24px;
    --nav-height: 72px;
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-fast: 1ms;
        --transition-base: 1ms;
        --transition-slow: 1ms;
        --transition-bounce: 1ms;
    }
}

/* ========================================
   Reset & Base
   ======================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--fg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: rgba(6, 182, 212, 0.3);
    color: var(--fg-primary);
}

::scrollbar {
    width: 8px;
    height: 8px;
}

::scrollbar-track {
    background: var(--bg-deep);
}

::scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-violet));
    border-radius: var(--radius-full);
}

::scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-cyan-glow), var(--accent-violet-glow));
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--fg-primary);
}

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

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    position: relative;
    padding-left: 24px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--fg-secondary);
    max-width: 600px;
    line-height: 1.7;
}

p {
    color: var(--fg-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-cyan);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

canvas {
    display: block;
}

/* ========================================
   Container
   ======================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--fg-primary);
    border: 1px solid var(--border-default);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-ghost {
    background: transparent;
    color: var(--fg-secondary);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    color: var(--fg-primary);
    background: var(--bg-card);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1rem;
}

/* ========================================
   Cursor Glow
   ======================================== */

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0;
    transition: opacity var(--transition-base);
    mix-blend-mode: screen;
}

.cursor-glow.active {
    opacity: 1;
}

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.nav.scrolled {
    background: rgba(3, 7, 18, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    color: var(--fg-primary);
}

.nav-logo:hover {
    color: var(--fg-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    stroke: var(--accent-cyan);
    transition: stroke var(--transition-base);
}

.nav-logo:hover .logo-icon {
    stroke: var(--accent-cyan-glow);
}

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

.nav-link {
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fg-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--fg-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--fg-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.hamburger {
    top: 50%;
    transform: translate(-50%, -50%);
}

.hamburger::before {
    content: '';
    top: -6px;
}

.hamburger::after {
    content: '';
    bottom: -6px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    bottom: 0;
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

#particleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 70%, rgba(168, 85, 247, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 100% 100% at 50% 100%, rgba(245, 158, 11, 0.04) 0%, transparent 50%),
        var(--bg-deep);
}

.hero-content {
    flex: 1;
    max-width: 700px;
    padding: 0 var(--container-padding);
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--gradient-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--fg-secondary);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    animation: fadeSlideUp 0.8s var(--transition-bounce) both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
    animation: fadeSlideUp 0.8s var(--transition-bounce) 0.1s both;
}

.title-line {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

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

.title-line.electric {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--fg-secondary);
    margin-bottom: 32px;
    animation: fadeSlideUp 0.8s var(--transition-bounce) 0.2s both;
    max-width: 560px;
}

.hero-description strong {
    color: var(--fg-primary);
    font-weight: 600;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeSlideUp 0.8s var(--transition-bounce) 0.3s both;
}

.stat {
    padding: 20px;
    background: var(--gradient-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.stat:hover {
    border-color: var(--border-default);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-unit {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.8s var(--transition-bounce) 0.4s both;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px var(--container-padding);
    position: relative;
    z-index: 1;
}

.device-showcase {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
}

.device-layers {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-slow);
    transform-style: preserve-3d;
}

.cold-side {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-bottom: none;
    padding-top: 40px;
}

.hot-side {
    background: linear-gradient(0deg, rgba(239, 68, 68, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-top: none;
    padding-bottom: 40px;
}

.thermoelectric-module {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 160px;
}

.module-body {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 100px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
}

.pellet-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.pellet-row.n-type .pellet {
    background: linear-gradient(180deg, #0ea5e9 0%, #0369a1 100%);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.pellet-row.p-type .pellet {
    background: linear-gradient(180deg, #ef4444 0%, #991b1b 100%);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.pellet {
    width: 14px;
    height: 18px;
    border-radius: 3px;
    position: relative;
    animation: pelletGlow 3s ease-in-out infinite alternate;
}

@keyframes pelletGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.3); }
}

.copper-junctions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.junction {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
    animation: junctionPulse 1.5s ease-in-out infinite;
}

@keyframes junctionPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.5); opacity: 1; }
}

.module-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

.temp-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.temp-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
}

.temp-indicator.cold .temp-value {
    color: var(--accent-cyan);
}

.temp-indicator.hot .temp-value {
    color: var(--accent-rose);
}

.temp-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ice-crystals,
.heat-waves {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.ice-crystal {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0.6;
    animation: floatCrystal 8s ease-in-out infinite;
}

.ice-crystal:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.ice-crystal:nth-child(2) { top: 30%; right: 20%; animation-delay: 1s; }
.ice-crystal:nth-child(3) { bottom: 25%; left: 20%; animation-delay: 2s; }
.ice-crystal:nth-child(4) { bottom: 15%; right: 15%; animation-delay: 3s; }
.ice-crystal:nth-child(5) { top: 50%; left: 50%; animation-delay: 4s; }
.ice-crystal:nth-child(6) { top: 10%; left: 50%; animation-delay: 5s; }

@keyframes floatCrystal {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
    25% { transform: translateY(-20px) rotate(90deg); opacity: 0.8; }
    50% { transform: translateY(0) rotate(180deg); opacity: 0.4; }
    75% { transform: translateY(20px) rotate(270deg); opacity: 0.6; }
}

.heat-wave {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 60%;
    height: 40px;
    background: linear-gradient(0deg, rgba(239, 68, 68, 0.3) 0%, transparent 100%);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: heatRise 3s ease-in-out infinite;
}

.heat-wave:nth-child(1) { animation-delay: 0s; height: 30px; }
.heat-wave:nth-child(2) { animation-delay: 0.5s; height: 40px; }
.heat-wave:nth-child(3) { animation-delay: 1s; height: 35px; }
.heat-wave:nth-child(4) { animation-delay: 1.5s; height: 45px; }

@keyframes heatRise {
    0% { transform: translateX(-50%) translateY(0) scaleX(1); opacity: 0.5; }
    100% { transform: translateX(-50%) translateY(-100px) scaleX(0.3); opacity: 0; }
}

.electron-flow {
    position: absolute;
    inset: -20px;
    pointer-events: none;
    z-index: 10;
}

.electron {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent-cyan);
    animation: electronFlow 2s ease-in-out infinite;
}

@keyframes electronFlow {
    0% { 
        top: 10%; 
        left: 50%; 
        transform: translateX(-50%);
        opacity: 0; 
    }
    10% { opacity: 1; }
    40% { 
        top: 50%; 
        opacity: 1; 
    }
    50% { 
        top: 52%; 
        background: var(--accent-amber);
        box-shadow: 0 0 10px var(--accent-amber), 0 0 20px var(--accent-amber);
    }
    90% { opacity: 1; }
    100% { 
        top: 90%; 
        left: 50%; 
        transform: translateX(-50%);
        opacity: 0; 
    }
}

.power-output {
    position: absolute;
    bottom: -140px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 360px;
    background: var(--gradient-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
}

.voltage-display,
.current-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.voltage-label,
.current-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.voltage-value,
.current-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.voltage-unit,
.current-unit {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.power-bar {
    height: 8px;
    background: var(--bg-dark);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.power-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1s var(--transition-bounce);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--fg-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: bounce 2s ease-in-out infinite;
    z-index: 1;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ========================================
   Science Section
   ======================================== */

.science {
    padding: 120px 0;
    position: relative;
}

.science::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.science-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.science-card {
    background: var(--gradient-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.science-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.science-card:hover {
    border-color: var(--border-default);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.science-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
    margin-bottom: 20px;
    transition: all var(--transition-base);
}

.science-card:hover .card-icon {
    background: var(--gradient-primary);
    color: #fff;
    transform: scale(1.05) rotate(3deg);
}

.science-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.science-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.formula {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
}

.formula-label {
    color: var(--fg-muted);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.formula-value {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Interactive Demo */

.interactive-demo {
    background: var(--gradient-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(10px);
}

.interactive-demo h3 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 1.5rem;
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.demo-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    min-height: 200px;
}

.demo-material {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-radius: var(--radius-md);
    position: relative;
}

.demo-material.n-type {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.15) 0%, rgba(3, 105, 161, 0.1) 100%);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.demo-material.p-type {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.15) 0%, rgba(153, 27, 27, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.material-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.demo-material.n-type .material-label { color: var(--accent-cyan); }
.demo-material.p-type .material-label { color: var(--accent-rose); }

.carriers {
    width: 100%;
    height: 80px;
    position: relative;
    overflow: hidden;
}

.carrier {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: carrierMove 2s ease-in-out infinite;
}

.demo-material.n-type .carrier {
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.demo-material.p-type .carrier {
    background: var(--accent-rose);
    box-shadow: 0 0 10px var(--accent-rose);
}

@keyframes carrierMove {
    0% { transform: translateX(-50px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(calc(100% + 50px)); opacity: 0; }
}

.demo-junction {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-amber) 0%, #ef4444 100%);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glow-warm);
    animation: junctionGlow 2s ease-in-out infinite;
}

@keyframes junctionGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.5); }
    50% { box-shadow: 0 0 40px rgba(245, 158, 11, 0.8); }
}

.demo-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--fg-secondary);
}

.control-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-dark);
    border-radius: var(--radius-full);
    outline: none;
    cursor: pointer;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-glow);
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.control-value {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-align: right;
}

.demo-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px;
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.result-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.result-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fg-primary);
}

/* ========================================
   Technology Section
   ======================================== */

.technology {
    padding: 120px 0;
    position: relative;
}

.technology::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.tech-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

.tech-visual {
    position: sticky;
    top: calc(var(--nav-height) + 40px);
}

.tech-schematic {
    width: 100%;
    height: auto;
    max-height: 600px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.tech-specs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.spec-card {
    background: var(--gradient-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.spec-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition-base);
}

.spec-card:hover {
    border-color: var(--border-default);
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.spec-card:hover::before {
    transform: scaleY(1);
}

.spec-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.spec-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-cyan);
    opacity: 0.5;
}

.spec-card h3 {
    font-size: 1.125rem;
    margin: 0;
}

.spec-card > p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.spec-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-details li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.875rem;
}

.spec-details li:last-child {
    border-bottom: none;
}

.spec-details li span:first-child {
    color: var(--fg-muted);
}

.spec-details li span:last-child {
    color: var(--fg-primary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    white-space: nowrap;
}

/* Architecture Diagram */

.architecture-diagram {
    background: var(--gradient-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(10px);
}

.architecture-diagram h3 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 1.5rem;
}

.chain-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.chain-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    min-width: 140px;
    transition: all var(--transition-base);
    position: relative;
}

.chain-step:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.chain-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2px;
    background: var(--gradient-primary);
    animation: arrowFlow 2s linear infinite;
}

@keyframes arrowFlow {
    0% { background-position: 0%; opacity: 0.5; }
    100% { background-position: 100%; opacity: 1; }
}

.step-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
}

.chain-step:hover .step-icon {
    background: var(--gradient-primary);
    color: #fff;
}

.chain-step span {
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    color: var(--fg-secondary);
}

/* ========================================
   Prototype Section
   ======================================== */

.prototype {
    padding: 120px 0;
    position: relative;
}

.prototype::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.prototype-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
    align-items: start;
}

.prototype-main {
    position: relative;
}

.prototype-image-container {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.prototype-3d {
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Crect fill='%231e293b' width='400' height='300'/%3E%3Cg stroke='%23334155' stroke-width='1' opacity='0.5'%3E%3Cline x1='0' y1='50' x2='400' y2='50'/%3E%3Cline x1='0' y1='100' x2='400' y2='100'/%3E%3Cline x1='0' y1='150' x2='400' y2='150'/%3E%3Cline x1='0' y1='200' x2='400' y2='200'/%3E%3Cline x1='0' y1='250' x2='400' y2='250'/%3E%3Cline x1='50' y1='0' x2='50' y2='300'/%3E%3Cline x1='100' y1='0' x2='100' y2='300'/%3E%3Cline x1='150' y1='0' x2='150' y2='300'/%3E%3Cline x1='200' y1='0' x2='200' y2='300'/%3E%3Cline x1='250' y1='0' x2='250' y2='300'/%3E%3Cline x1='300' y1='0' x2='300' y2='300'/%3E%3Cline x1='350' y1='0' x2='350' y2='300'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg-muted);
    font-size: 1rem;
}

.prototype-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.overlay-hotspot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: hotspotPulse 2s ease-in-out infinite;
    cursor: pointer;
    pointer-events: auto;
    z-index: 2;
}

.overlay-hotspot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    animation: hotspotRing 2s ease-out infinite;
    opacity: 0;
}

@keyframes hotspotPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 10px var(--accent-cyan); }
    50% { transform: translate(-50%, -50%) scale(1.3); box-shadow: 0 0 20px var(--accent-cyan); }
}

@keyframes hotspotRing {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

.prototype-info {
    margin-top: 20px;
    padding: 20px;
    background: var(--gradient-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    min-height: 80px;
    transition: all var(--transition-base);
}

.prototype-info h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--accent-cyan);
}

.prototype-info p {
    font-size: 0.875rem;
    color: var(--fg-muted);
    margin: 0;
}

.prototype-specs h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--gradient-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.spec-item:hover {
    border-color: var(--border-default);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.spec-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.spec-name {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.spec-value {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--fg-primary);
}

/* Test Results Charts */

.test-results h3 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 1.5rem;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.chart-wrapper {
    background: var(--gradient-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(10px);
}

.chart-wrapper h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--fg-secondary);
    text-align: center;
}

.chart-wrapper canvas {
    width: 100% !important;
    height: 220px !important;
}

/* ========================================
   Applications Section
   ======================================== */

.applications {
    padding: 120px 0;
    position: relative;
}

.applications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.app-card {
    background: var(--gradient-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.app-card:hover {
    border-color: var(--border-default);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.app-card:hover::before {
    transform: scaleX(1);
}

.app-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
    margin-bottom: 20px;
    transition: all var(--transition-base);
}

.app-card:hover .app-icon {
    background: var(--gradient-primary);
    color: #fff;
    transform: scale(1.05) rotate(-3deg);
}

.app-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.app-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.app-metrics {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.app-metrics .metric {
    padding: 6px 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-emerald);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   CTA Section
   ======================================== */

.cta {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(6, 182, 212, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 70%, rgba(168, 85, 247, 0.08) 0%, transparent 60%),
        var(--bg-dark);
}

.cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--fg-secondary);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 80px 0 40px;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-subtle);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 300px;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--fg-muted);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.footer-links h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-muted);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--fg-secondary);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--fg-muted);
}

.footer-credits {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--fg-subtle);
}

/* ========================================
   Reveal Animations
   ======================================== */

[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--transition-bounce), transform 0.8s var(--transition-bounce);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal].reveal-delay-1 { transition-delay: 100ms; }
[data-reveal].reveal-delay-2 { transition-delay: 200ms; }
[data-reveal].reveal-delay-3 { transition-delay: 300ms; }
[data-reveal].reveal-delay-4 { transition-delay: 400ms; }
[data-reveal].reveal-delay-5 { transition-delay: 500ms; }
[data-reveal].reveal-delay-6 { transition-delay: 600ms; }

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: calc(var(--nav-height) + 60px);
        padding-bottom: 60px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
        padding: 40px var(--container-padding) 0;
    }
    
    .device-showcase {
        max-width: 400px;
    }
    
    .power-output {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 24px;
        max-width: 100%;
    }
    
    .tech-showcase {
        grid-template-columns: 1fr;
    }
    
    .tech-visual {
        position: static;
        max-height: 400px;
    }
    
    .prototype-gallery {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
        --nav-height: 64px;
    }
    
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(3, 7, 18, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid var(--border-subtle);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 16px;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
    }
    
    .demo-visual {
        flex-direction: column;
    }
    
    .demo-junction {
        transform: rotate(90deg);
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .spec-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        grid-column: auto;
    }
    
    .chain-step:not(:last-child)::after {
        display: none;
    }
    
    .chain-visual {
        flex-direction: column;
        align-items: stretch;
    }
    
    .chain-step {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .hero-title .title-line {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: 16px 28px;
        font-size: 0.9375rem;
    }
    
    .science-card,
    .app-card,
    .spec-card {
        padding: 24px;
    }
    
    .interactive-demo {
        padding: 24px;
    }
    
    .architecture-diagram {
        padding: 24px;
    }
    
    .test-results .chart-wrapper {
        padding: 16px;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .nav, .hero-actions, .btn, .cursor-glow, .scroll-indicator,
    .demo-controls, .cta, .footer .social-links {
        display: none !important;
    }
    
    body {
        background: #fff !important;
        color: #000 !important;
    }
    
    .hero, .science, .technology, .prototype, .applications {
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
    }
}