/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deep-navy: #0A192F;
    --action-orange: #FF8C00;
    --cyber-lime: #CCFF00;
    --dark-bg: #020c1b;
    --card-bg: #112240;
    --text-primary: #E6F1FF;
    --text-secondary: #8892B0;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background-color: var(--deep-navy);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Mono', monospace;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(204, 255, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--cyber-lime);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.btn-primary {
    background: var(--action-orange);
    color: var(--deep-navy);
}

.btn-primary:hover {
    background: var(--cyber-lime);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--cyber-lime);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--action-orange);
}

.btn-primary.large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(204, 255, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204, 255, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.sonar-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    border: 2px solid rgba(204, 255, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: sonar 4s ease-out infinite;
}

@keyframes sonar {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--cyber-lime);
    text-shadow: 0 0 20px rgba(204, 255, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

/* Hull Visualization */
.hull-visualization {
    margin-top: 3rem;
}

.hull-svg {
    width: 100%;
    max-width: 800px;
    height: auto;
}

.compartment-rect {
    fill: rgba(17, 34, 64, 0.8);
    stroke: var(--cyber-lime);
    stroke-width: 2;
    transition: all 0.3s;
}

.compartment:hover .compartment-rect {
    fill: rgba(255, 140, 0, 0.3);
    stroke: var(--action-orange);
}

.compartment-label {
    fill: var(--text-primary);
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    text-anchor: middle;
}

.connection-line {
    stroke: var(--cyber-lime);
    stroke-width: 2;
}

/* Sections */
.bulkhead-section, .plugins-section, .telemetry-section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--cyber-lime);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid rgba(204, 255, 0, 0.2);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--action-orange);
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--action-orange);
}

.feature-status {
    margin-top: 1rem;
    color: var(--cyber-lime);
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
}

/* Plugins Grid */
.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.plugin-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border: 1px solid rgba(204, 255, 0, 0.2);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s;
}

.plugin-card:hover {
    border-color: var(--cyber-lime);
    transform: translateY(-3px);
}

.plugin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plugin-name {
    font-family: 'Space Mono', monospace;
    color: var(--cyber-lime);
    font-size: 1.1rem;
}

.plugin-version {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.plugin-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.plugin-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.plugin-link {
    color: var(--action-orange);
    text-decoration: none;
    font-weight: 500;
}

.plugin-link:hover {
    color: var(--cyber-lime);
}

/* Telemetry Section */
.telemetry-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.telemetry-left, .telemetry-right {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid rgba(204, 255, 0, 0.2);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.telemetry-left h3, .telemetry-right h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--cyber-lime);
}

.pipeline-status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: rgba(10, 25, 47, 0.5);
    border-left: 3px solid var(--cyber-lime);
}

.status-label {
    font-family: 'Space Mono', monospace;
}

.status-value {
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 3px;
}

.status-value.running {
    background: rgba(204, 255, 0, 0.2);
    color: var(--cyber-lime);
}

/* Console Output */
.console-output {
    background: var(--dark-bg);
    padding: 1rem;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    max-height: 300px;
    overflow-y: auto;
}

.log-entry {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid;
}

.log-entry.info {
    border-color: #64B5F6;
    color: #64B5F6;
}

.log-entry.success {
    border-color: var(--cyber-lime);
    color: var(--cyber-lime);
}

.log-entry.warning {
    border-color: #FFB74D;
    color: #FFB74D;
}

.log-entry.action {
    border-color: var(--action-orange);
    color: var(--action-orange);
}

/* Hull Integrity Meter */
.hull-integrity-meter {
    background: var(--card-bg);
    padding: 2rem;
    border: 2px solid var(--cyber-lime);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.meter-label {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    color: var(--cyber-lime);
    margin-bottom: 1rem;
    text-align: center;
}

.meter-bar {
    width: 100%;
    height: 40px;
    background: var(--dark-bg);
    border: 2px solid var(--cyber-lime);
    position: relative;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyber-lime), var(--action-orange));
    transition: width 0.5s;
    position: relative;
}

.meter-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.meter-value {
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    color: var(--cyber-lime);
    margin-top: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(180deg, var(--deep-navy) 0%, var(--card-bg) 100%);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--cyber-lime);
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(204, 255, 0, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--cyber-lime);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--action-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(204, 255, 0, 0.1);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .telemetry-container {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
}
