:root {
    --bg-dark: #040812;
    --bg-card: rgba(16, 25, 48, 0.6);
    --bg-card-hover: rgba(22, 35, 68, 0.8);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.5);
    --status-good: #10b981;
    --status-good-glow: rgba(16, 185, 129, 0.5);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography elements */
h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h1 .highlight {
    background: linear-gradient(to right, #e0f2fe, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 1rem 0;
    background: rgba(4, 8, 18, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent);
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 10rem);
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(4, 8, 18, 0.3) 0%,
            rgba(4, 8, 18, 0.8) 80%,
            var(--bg-dark) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #cbd5e1;
}

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

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-btn.primary {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--accent-glow);
}

.cta-btn.primary:hover {
    background: #0ea5e9;
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}

/* Global Section Styles */
section {
    padding: 8rem 2rem;
    position: relative;
}

.prose-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; /* Ensure unboxed sections align with boxed sections horizontally */
    box-sizing: border-box;
}

/* Split Layout for SVG Animation */
.prose-container.split-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
}

.split-content {
    flex: 1;
    min-width: 300px;
}

.split-graphic {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.network-animation {
    width: 100%;
    max-width: 550px;
    height: auto;
}

.dashed-line {
    animation: dash 30s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -1000;
    }
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.section-badge.center {
    display: table;
    margin: 0 auto 1.5rem auto;
}

.glow-divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 2rem;
    box-shadow: 0 0 10px var(--accent-glow);
}

.prose-section {
    padding: 6rem 0; /* padding horizontal moved to container */
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.prose-section p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.alternate {
    /* Base alternate (used on status-section) */
    background: radial-gradient(circle at right center, rgba(14, 25, 52, 0.8) 0%, var(--bg-dark) 60%);
}

.prose-section.alternate {
    background: transparent;
    border-bottom: none;
}

.prose-section.alternate .prose-container {
    background: radial-gradient(circle at right center, rgba(14, 25, 52, 0.8) 0%, rgba(10, 15, 30, 0.6) 100%);
    border-radius: 24px;
    padding: 4rem 2rem; /* MATCH horizontal padding with normal container (2rem) */
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    box-sizing: border-box;
}

/* Benefits Grid Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.benefit-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.benefit-card h3 {
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.benefit-card p {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
}

/* Status Section */
.status-section {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.status-subtitle {
    margin-bottom: 4rem;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.status-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.status-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.status-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

/* Status Indicator & Pulse Animation */
.status-indicator {
    position: relative;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mid CTA Section */
.cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pulse-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--status-good);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px var(--status-good-glow);
}

.pulse-ring {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--status-good);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 2s infinite cubic-bezier(0.21, 0.53, 0.56, 0.8);
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.status-text {
    font-weight: 500;
    color: var(--status-good);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.status-metric {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
    background: rgba(0, 0, 0, 0.2);
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 2rem;
    background-color: rgba(2, 4, 10, 0.5);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: left;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 250px;
    text-align: left;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.footer-logo span {
    color: rgba(255, 255, 255, 0.3);
}

.footer-col h3 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-col p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-col strong {
    color: #cbd5e1;
}

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

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

    section {
        padding: 5rem 1.5rem;
    }

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

    .footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

.footer-content {
    flex-direction: column;
    justify-content: center;
    text-align: center;
}