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

:root {
    --bg-black: #030407;
    --bg-steel: #0a0e17;
    --text-white: #f0f0f2;
    --text-muted: #7c8599;
    --lunar-grey: #1c212b;
    --neon-blue: #00e5ff;
    --rail-glow: #00b8d4;
    --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;
}

.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(--neon-blue);
    color: var(--bg-black);
}

.btn-primary:hover {
    background-color: var(--rail-glow);
    box-shadow: 0 0 20px rgba(0, 229, 255, 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(3, 4, 7, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--lunar-grey);
    transition: all 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(--neon-blue);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('./assets/railstar-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(3,4,7,0.95) 0%, rgba(3,4,7,0.6) 50%, rgba(3,4,7,0.2) 100%);
}

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

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

/* Hero Stats Bar */
.hero-stats {
    position: absolute;
    top: 80px;
    right: 5%;
    z-index: 10;
    display: flex;
    gap: 2rem;
    background: rgba(3, 4, 7, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--lunar-grey);
    padding: 1rem 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--neon-blue);
}

.pulse-glow {
    animation: pulse 2s ease-in-out infinite;
    color: var(--copper-accent);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Problem Section */
.problem-section {
    background-color: var(--bg-steel);
    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(28, 33, 43, 0.2);
}

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

.panel.right-panel h3 {
    color: var(--neon-blue);
}

.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(--neon-blue);
    box-shadow: 0 0 5px var(--neon-blue);
}

/* Propulsive vs EM Section */
.propulsive-section {
    background-color: var(--bg-black);
    border-bottom: 1px solid var(--lunar-grey);
}

.spec-table {
    margin-top: 4rem;
    border: 1px solid var(--lunar-grey);
    overflow: hidden;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.spec-row.spec-header {
    background: rgba(28, 33, 43, 0.4);
}

.spec-cell {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--lunar-grey);
    font-size: 0.9rem;
}

.spec-cell.label {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-white);
    font-size: 0.85rem;
}

.spec-cell.dim {
    color: var(--text-muted);
}

.spec-cell.bright {
    color: var(--neon-blue);
}

.spec-cell.highlight {
    color: var(--neon-blue);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-row.spec-header .spec-cell {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--neon-blue);
}

.callout-line {
    text-align: center;
    max-width: 800px;
    margin: 4rem auto 0;
    font-size: 1.4rem;
    color: var(--neon-blue);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* System Section */
.system-section {
    background-color: var(--bg-steel);
}

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

.tight-grid {
    gap: 1rem;
}

.tech-card {
    border: 1px solid var(--lunar-grey);
    padding: 3rem 2rem;
    background: linear-gradient(180deg, rgba(10,14,23,0) 0%, rgba(10,14,23,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(--neon-blue);
}

.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(--neon-blue);
}

/* Power Section */
.power-section {
    background-color: var(--bg-black);
    border-top: 1px solid var(--lunar-grey);
    border-bottom: 1px solid var(--lunar-grey);
}

.power-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.power-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 200px;
}

.power-node {
    width: 120px;
    height: 120px;
    border: 2px solid var(--lunar-grey);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 23, 0.8);
    transition: all 0.5s ease;
}

.power-node.active-node {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.node-icon {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.node-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-white);
}

.node-desc {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 180px;
}

.power-connector {
    width: 80px;
    height: 2px;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 60px;
}

.connector-line {
    width: 100%;
    height: 1px;
    background: var(--lunar-grey);
}

.connector-pulse {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-blue);
    animation: movePulse 2s ease-in-out infinite;
}

@keyframes movePulse {
    0% { left: 0; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: calc(100% - 12px); opacity: 0; }
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Canister Section */
.canister-section {
    background-color: var(--bg-steel);
    padding: 8rem 0;
}

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

.canister-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 4, 7, 0.8);
    transition: background 0.8s ease-in-out;
}

.canister-section.active .canister-overlay {
    background: rgba(3, 4, 7, 0.2);
}

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

.canister-label {
    background: rgba(3, 4, 7, 0.8);
    border: 1px solid var(--neon-blue);
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon-blue);
    opacity: 0.3;
    transition: all 0.5s ease-in-out;
    transform: translateY(10px);
}

.canister-section.active .canister-label {
    opacity: 1;
    transform: translateY(0);
}

/* SKU Section */
.sku-section {
    background-color: var(--bg-black);
    border-top: 1px solid var(--lunar-grey);
}

.sku-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.sku-card {
    border: 1px solid var(--lunar-grey);
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(10, 14, 23, 0.5);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.sku-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-4px);
}

.sku-header {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.sku-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.sku-mass {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
}

.sku-detail {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Cadence Section */
.cadence-section {
    background-color: var(--bg-steel);
    border-top: 1px solid var(--lunar-grey);
}

.cadence-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.cadence-stat {
    text-align: center;
    padding: 3rem 1.5rem;
    border: 1px solid var(--lunar-grey);
    background: rgba(10, 14, 23, 0.3);
}

.cadence-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
}

.cadence-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.timeline {
    margin-top: 4rem;
    border-left: 1px solid var(--neon-blue);
    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-black);
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    transform: translateX(-50%);
}

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

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

/* Investment Section */
.investment-section {
    background-color: var(--bg-steel);
    border-top: 1px solid var(--lunar-grey);
}

.cost-callout {
    margin-top: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 3rem;
    border: 1px solid var(--neon-blue);
    background: rgba(0, 229, 255, 0.05);
}

.cost-label {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cost-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--neon-blue);
}

/* Growth Section */
.growth-section {
    background-color: var(--bg-black);
    border-top: 1px solid var(--lunar-grey);
}

.growth-rings {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4rem;
    gap: 0;
}

.ring {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid var(--lunar-grey);
    padding: 2rem 3rem;
    text-align: center;
    width: 100%;
    transition: border-color 0.3s ease;
}

.ring:hover {
    border-color: var(--neon-blue);
}

.ring-outer {
    max-width: 900px;
    background: rgba(10, 14, 23, 0.2);
}

.ring-mid {
    max-width: 650px;
    background: rgba(10, 14, 23, 0.4);
    border-top: none;
}

.ring-inner {
    max-width: 400px;
    background: rgba(0, 229, 255, 0.05);
    border-top: none;
    border-color: var(--neon-blue);
}

.ring-label {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.ring-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Risk Section */
.risk-section {
    background-color: var(--bg-steel);
    border-top: 1px solid var(--lunar-grey);
}

/* CTA Section */
.final-cta {
    text-align: center;
    background: linear-gradient(to top, rgba(10,14,23,1), rgba(3,4,7,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(28, 33, 43, 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(--neon-blue);
}

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='%237c8599' 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;
    }

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

    .cadence-stats {
        grid-template-columns: 1fr 1fr;
    }

    .spec-row {
        grid-template-columns: 1fr;
    }

    .spec-row.spec-header {
        display: none;
    }

    .spec-cell.label {
        background: rgba(28, 33, 43, 0.4);
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero .cta-group {
        flex-direction: column;
    }

    .hero-stats {
        display: none;
    }

    .final-cta .cta-group {
        flex-direction: column;
    }

    .cadence-stats {
        grid-template-columns: 1fr;
    }

    .power-connector {
        width: 2px;
        height: 40px;
        margin-bottom: 0;
    }

    .power-flow {
        flex-direction: column;
    }

    .connector-pulse {
        animation: movePulseV 2s ease-in-out infinite;
    }

    @keyframes movePulseV {
        0% { top: 0; left: -5px; opacity: 0; }
        20% { opacity: 1; }
        80% { opacity: 1; }
        100% { top: calc(100% - 12px); left: -5px; opacity: 0; }
    }
}

/* 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);
}
