:root {
    --bg-color: #050505;
    --card-bg: #0a0a0a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-accent: #ffffff;
    --accent-color: #3b82f6;
    /* Titanium Blue */
    --border-color: #333;
    --border-active: #555;

    --font-ui: 'Inter', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --spacing-container: 120px;
    --grid-line-color: rgba(255, 255, 255, 0.03);

    --header-bg: rgba(5, 5, 5, 0.8);
    --footer-bg: #000000;
}

[data-theme="light"] {
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-accent: #111827;
    --border-color: #e5e7eb;
    --border-active: #9ca3af;
    --grid-line-color: rgba(0, 0, 0, 0.05);

    --header-bg: rgba(255, 255, 255, 0.8);
    --footer-bg: #ffffff;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for fixed header */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
    /* Defined cursor style */
}

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

/* Background Effects */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(var(--grid-line-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(59, 130, 246, 0.1);
    animation: scanline 8s linear infinite;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

@keyframes scanline {
    0% {
        top: -10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}

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

p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.code-block {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-left: 2px solid var(--accent-color);
    margin-top: 10px;
}

.code-block .prompt {
    color: var(--accent-color);
}

.code-block .output {
    color: #10b981;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    width: 100%;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    z-index: 50;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.version {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-left: 10px;
    font-weight: 400;
}

nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--text-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.status-indicator {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 5px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Changed from default (flex-start) */
    padding: 0 10%;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

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

.typewriter-text {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--text-accent);
    min-height: 2.2em;
    /* Reserve space for two lines */
    display: inline-block;
    position: relative;
}

.typewriter-text::after {
    content: '_';
    opacity: 1;
    animation: blink 1s infinite;
    color: var(--accent-color);
    margin-left: 5px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.shutter-text {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: block;
    letter-spacing: 0.2em;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    position: relative;
    max-width: 800px;
    /* Prevent text overlap */
}

.hero-sub {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.hero-image-container {
    position: absolute;
    /* Take out of flow to maximize size */
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    width: 60%;
    /* Occupy right side securely */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1;
    pointer-events: none;
    /* Let clicks pass through if it overlaps bits */
}

.hero-image {
    width: 100%;
    /* Force width */
    height: auto;
    max-height: 100vh;
    /* Allow full height */
    object-fit: cover;
    filter: grayscale(80%) contrast(1.2) drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    opacity: 0.8;
    /* Slight fade to blend */
}

.cta-group {
    display: flex;
    gap: 20px;
}

button,
.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    font-family: var(--font-mono);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    color: var(--text-accent);
}

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

.btn-secondary:hover {
    border-color: var(--text-primary);
}

/* Sections */
.section-container {
    padding: var(--spacing-container) 10%;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 60px;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-color);
}

.section-header h2 {
    font-size: 2.5rem;
}

/* Capabilities Grid */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.card-header h3 {
    font-size: 1.2rem;
}

.card ul {
    list-style: none;
}

.card li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    padding-left: 15px;
    position: relative;
}

.card li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Architecture */
.architecture-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 40px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

.arch-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.arch-box {
    border: 1px solid var(--border-color);
    padding: 20px;
    width: 250px;
    text-align: center;
    background: var(--card-bg);
    position: relative;
}

.arch-box .label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.arch-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}

/* Key Features */
.features-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-demo-img {
    width: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-demo-img:hover {
    transform: scale(1.02);
    border-color: var(--accent-color);
}

.feature-list-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-arrow {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-size: 1.2rem;
    line-height: 1.6;
}

.feature-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Mission Profiles */
.mission-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mission-item {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.mission-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.mission-id {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 1.2rem;
    opacity: 0.7;
}

.mission-content h3 {
    margin-bottom: 10px;
}

/* Security */
.security-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: rgba(255, 0, 0, 0.02);
    border: 1px solid rgba(255, 0, 0, 0.1);
    padding: 40px;
}

.security-item h3 {
    color: #fca5a5;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 60px 10%;
    background: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.2em;
}

.footer-tagline {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.copyright {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Utilities */
@media (max-width: 768px) {
    .main-header {
        padding: 15px 20px;
    }

    .hero {
        padding: 0 5%;
        justify-content: center;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-link {
        display: none;
    }

    /* Simplified mobile nav */
    .section-container {
        padding: 60px 5%;
    }

    .architecture-diagram {
        flex-direction: column;
    }

    .features-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mission-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .security-panel {
        grid-template-columns: 1fr;
    }
}