:root {
    --bg-dark: #000a14;
    --bg-panel: #001524;
    --primary-navy: #003057;
    --neon-green: #7FA650;
    --neon-green-dim: rgba(127, 166, 80, 0.2);
    --neon-cyan: #4fffd9;
    --text-main: #e0e6ed;
    --text-muted: #8899a6;

    --font-display: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-display);
    overflow-x: hidden;
}

/* Grid Overlay Background */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(127, 166, 80, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 166, 80, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 10, 20, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neon-green-dim);
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    filter: brightness(0) invert(1);
    /* Make logo completely white */
    opacity: 0.9;
}

.brand-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    padding: 4px 10px;
    /* Increased padding */
    border-radius: 2px;
    opacity: 0.8;
    letter-spacing: 0.05em;
    /* Add letter spacing */
}

.nav-menu {
    display: flex;
    gap: 3rem;
    /* Increased gap from 2rem */
    align-items: center;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* Add letter spacing */
}

.nav-link:hover {
    color: var(--neon-green);
}

.nav-num {
    color: var(--primary-navy);
    font-weight: bold;
    margin-right: 0.25rem;
    /* Add space after number */
}

.btn-primary {
    background: var(--neon-green);
    color: var(--bg-dark);
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 0.85rem 2rem;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    border: 1px solid var(--neon-green);
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: transparent;
    color: var(--neon-green);
    box-shadow: 0 0 15px rgba(127, 166, 80, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 0.85rem 2rem;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    border: 1px solid var(--text-muted);
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.btn-outline:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    padding-bottom: 4rem;
    background: linear-gradient(to right, rgba(0, 10, 20, 0.95), rgba(0, 10, 20, 0.6)), url('global_network.png');
    background-size: cover;
    background-position: 50% 50%;
    /* Ensure visual clarity for text */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    /* Adjusted ratio */
    gap: 6rem;
    /* Increased grid gap */
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(127, 166, 80, 0.1);
    border: 1px solid var(--neon-green-dim);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-green);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(127, 166, 80, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(127, 166, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(127, 166, 80, 0);
    }
}

h1 {
    font-size: 5.5rem;
    /* Increased size */
    line-height: 1.1;
    /* Increased line-height */
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: -3px;
    /* tighter tracking for large text */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-sub {
    font-size: 1.35rem;
    /* Slightly larger */
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 4rem;
    /* More space */
    line-height: 1.7;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.metrics-grid {
    display: flex;
    gap: 3rem;
}

.metric-box {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-family: var(--font-mono);
    color: var(--primary-navy);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--neon-green);
}

/* Execution Monitor Visual */
.execution-monitor {
    width: 460px;
    background: rgba(0, 21, 36, 0.9);
    border: 1px solid var(--primary-navy);
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    position: relative;
    backdrop-filter: blur(10px);
}

.monitor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.monitor-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.status-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-green);
    letter-spacing: 0.05em;
}

.shipment-id {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Tracking Line */
.monitor-track {
    position: relative;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 2rem;
    margin-bottom: 2.5rem;
}

.track-line {
    position: absolute;
    left: -2px;
    top: 0;
    width: 2px;
    height: 100%;
    /* Highlight line handled by JS height */
}

.track-progress {
    width: 100%;
    background: var(--neon-green);
    height: 0%;
    transition: height 0.5s ease;
    box-shadow: 0 0 10px var(--neon-green);
}

.track-step {
    position: relative;
    opacity: 0.5;
    transition: 0.3s;
}

.track-step.active {
    opacity: 1;
}

.track-step.completed {
    opacity: 1;
}

.step-marker {
    position: absolute;
    left: -2.35rem;
    /* center on line */
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--bg-dark);
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    transition: 0.3s;
}

.track-step.active .step-marker {
    background: var(--bg-dark);
    border-color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    scale: 1.2;
}

.track-step.completed .step-marker {
    background: var(--neon-green);
    border-color: var(--neon-green);
}

.step-label {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-main);
}

.monitor-details {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 4px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: var(--text-muted);
}

.detail-value {
    font-family: var(--font-mono);
    color: var(--text-main);
}

.detail-value.highlight {
    color: var(--neon-green);
}

/* Features Section */
.features {
    padding: 8rem 0;
    /* Increased padding */
    position: relative;
    border-top: 1px solid var(--primary-navy);
}

.section-head {
    margin-bottom: 5rem;
    /* Increased margin */
}

.section-marker {
    font-family: var(--font-mono);
    color: var(--neon-green);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

h2 {
    font-size: 3.5rem;
    text-transform: uppercase;
}

.cards-scroller {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    /* Slightly wider minimum */
    gap: 3rem;
    /* Increased gap */
}

.tech-card {
    background: var(--bg-panel);
    border: 1px solid var(--primary-navy);
    padding: 3rem;
    /* Increased padding */
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.tech-card:hover,
.tech-card.active {
    border-color: var(--neon-green);
    transform: translateY(-10px);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-navy);
}

.tech-card:hover::before {
    background: var(--neon-green);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.card-icon {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--primary-navy);
}

.tech-card:hover .card-icon {
    color: var(--neon-green);
}

.tech-card h3 {
    font-size: 1.25rem;
    /* max-width removed to fix cutoff */
    text-align: right;
    color: var(--text-main);
}

.card-body p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.fill {
    height: 100%;
    background: var(--neon-green);
}

/* Intel Section */
.intel {
    padding: 8rem 0;
    /* Increased padding */
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-panel));
}

.intel-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    /* Increased gap */
    align-items: center;
}

.data-list {
    list-style: none;
    font-family: var(--font-mono);
    margin-top: 3rem;
}

.data-list li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* Increased gap */
    padding: 2rem 0;
    /* Increased padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.list-marker {
    color: var(--neon-green);
}

.list-line {
    flex-grow: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.list-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 5px;
    height: 5px;
    background: var(--primary-navy);
}

.list-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer Terminal */
footer {
    padding: 6rem 0 2rem;
}

/* Footer */
footer {
    padding: 6rem 0 2rem;
    background: #000c18;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 4rem;
}

.footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-cta p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.copyright {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.4;
}

@media (max-width: 900px) {

    .hero-grid,
    .intel-layout {
        grid-template-columns: 1fr;
    }

    .radar-container {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    h1 {
        font-size: 3rem;
    }

    .nav-menu {
        display: none;
    }
}