@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Oswald:wght@500;600&display=swap');

:root {
    --bg-black: #050505;
    --bg-navy: #0a0d14;
    --text-white: #f0f0f2;
    --text-muted: #8e95a5;
    --lunar-grey: #2a2c33;
    --solar-gold: #ffc107;
    --cyan-glow: #00e5ff;
    --copper-accent: #d97743;
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

h1 { font-size: clamp(3rem, 6vw, 6rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 4rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.5rem); margin-bottom: 1rem; }

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Utility */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 0;
}

.text-gold { color: var(--solar-gold); }
.text-cyan { color: var(--cyan-glow); }

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--solar-gold);
    color: var(--bg-black);
}

.btn-primary:hover {
    background-color: #e0a800;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border-color: var(--lunar-grey);
}

.btn-secondary:hover {
    border-color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--lunar-grey);
    transition: transform 0.3s ease;
}

.wordmark {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-white);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-white);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('./assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0.4) 50%, rgba(5,5,5,0.1) 100%);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
}

.hero .cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

/* Sunlight Section */
.sunlight {
    background-color: var(--bg-black);
    position: relative;
    padding: 8rem 0;
}

.sunlight-visual {
    width: 100%;
    height: 400px;
    background-image: url('./assets/sunlight-bg.png');
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin-top: 4rem;
    border: 1px solid var(--lunar-grey);
    position: relative;
    overflow: hidden;
}

.energy-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--solar-gold);
    box-shadow: 0 0 10px var(--solar-gold);
    transition: width 1.5s ease-out;
}

.sunlight.active .energy-line {
    width: 100%;
}

/* The Power Problem */
.power-problem {
    background-color: var(--bg-navy);
    border-top: 1px solid var(--lunar-grey);
    border-bottom: 1px solid var(--lunar-grey);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.panel {
    padding: 3rem;
    border: 1px solid var(--lunar-grey);
    background: rgba(42, 44, 51, 0.2);
}

.panel h3 {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.panel.right-panel h3 {
    color: var(--cyan-glow);
}

.panel ul {
    list-style: none;
}

.panel li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.panel.right-panel li {
    color: var(--text-white);
}

.panel li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--lunar-grey);
}

.panel.right-panel li::before {
    background: var(--cyan-glow);
    box-shadow: 0 0 5px var(--cyan-glow);
}

/* Generate Store Deliver */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.tech-card {
    border: 1px solid var(--lunar-grey);
    padding: 3rem 2rem;
    background: linear-gradient(180deg, rgba(10,13,20,0) 0%, rgba(10,13,20,1) 100%);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--solar-gold);
}

.tech-card h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.card-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--lunar-grey);
}

.tech-card:hover .card-accent-line {
    background: var(--solar-gold);
}

/* Trajectory */
.trajectory {
    background-color: var(--bg-navy);
}

.trajectory-path {
    margin-top: 4rem;
    position: relative;
    padding: 2rem 0;
}

.path-line {
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--lunar-grey);
    z-index: 1;
}

.path-progress {
    position: absolute;
    top: 24px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cyan-glow);
    box-shadow: 0 0 8px var(--cyan-glow);
    z-index: 2;
    transition: width 0.5s ease;
}

.stages {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 3;
}

.stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.stage.active {
    opacity: 1;
}

.stage-marker {
    width: 12px;
    height: 12px;
    background: var(--bg-black);
    border: 2px solid var(--lunar-grey);
    border-radius: 50%;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.stage.active .stage-marker {
    border-color: var(--solar-gold);
    background: var(--solar-gold);
    box-shadow: 0 0 10px var(--solar-gold);
}

.stage-time {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--cyan-glow);
    margin-bottom: 0.5rem;
}

.stage-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Scroll Scrubbed Infrastructure */
.infrastructure {
    background-color: var(--bg-black);
    padding: 8rem 0;
}

.infra-visual-container {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background-image: url('./assets/infrastructure-bg.png');
    background-size: cover;
    background-position: center;
    border: 1px solid var(--lunar-grey);
    margin-top: 4rem;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.infra-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5,5,5,0.7);
    transition: background 0.5s;
}

.infrastructure.active .infra-overlay {
    background: rgba(5,5,5,0.3);
}

.infra-labels {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.infra-label {
    background: rgba(10, 13, 20, 0.8);
    border: 1px solid var(--cyan-glow);
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan-glow);
    opacity: 0.3;
    transition: opacity 0.5s;
}

.infrastructure.active .infra-label {
    opacity: 1;
}

/* Timeline */
.timeline-section {
    background-color: var(--bg-navy);
}

.timeline {
    margin-top: 4rem;
    border-left: 1px solid var(--cyan-glow);
    padding-left: 3rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--bg-navy);
    border: 2px solid var(--solar-gold);
    border-radius: 50%;
    transform: translateX(-50%);
}

.timeline-phase {
    font-family: var(--font-heading);
    color: var(--solar-gold);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-output {
    font-size: 0.9rem;
    color: var(--cyan-glow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
}

/* Use Cases */
.use-cases-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    list-style: none;
}

.use-cases-list li {
    border: 1px solid var(--lunar-grey);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* Governance */
.governance {
    background-color: var(--bg-navy);
    border-top: 1px solid var(--lunar-grey);
}

.gov-list {
    margin-top: 2rem;
    list-style: none;
}

.gov-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.gov-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background: var(--copper-accent);
}

/* CTA */
.final-cta {
    text-align: center;
    background: linear-gradient(to top, rgba(10,13,20,1), rgba(5,5,5,1));
    border-top: 1px solid var(--lunar-grey);
}

.final-cta .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.final-cta p {
    text-align: center;
    margin-bottom: 3rem;
}

.final-cta .cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Form Styles */
.contact-form {
    margin-top: 4rem;
    width: 100%;
    max-width: 600px;
    text-align: left;
    background: rgba(42, 44, 51, 0.1);
    padding: 3rem;
    border: 1px solid var(--lunar-grey);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--lunar-grey);
    color: var(--text-white);
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--cyan-glow);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e95a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
footer {
    background-color: var(--bg-black);
    padding: 2rem 5%;
    border-top: 1px solid var(--lunar-grey);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile nav handling */
    }
    
    .hero .cta-group {
        flex-direction: column;
    }
    
    .stages {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        padding-left: 2rem;
    }
    
    .path-line {
        top: 0;
        left: 5px;
        width: 1px;
        height: 100%;
    }
    
    .path-progress {
        top: 0;
        left: 5px;
        width: 1px;
        height: 0;
        transition: height 0.5s ease;
    }
    
    .stage {
        flex-direction: row;
        width: auto;
        text-align: left;
    }
    
    .stage-marker {
        margin-bottom: 0;
        margin-right: 1rem;
        position: relative;
        left: -29px; /* align with vertical line */
        background: var(--bg-navy);
    }
    
    .stage-time {
        margin-bottom: 0;
        margin-right: 1rem;
        width: 60px;
    }
    
    .final-cta .cta-group {
        flex-direction: column;
    }
}

/* Animation utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
