/* ============================================================================
   supremacy.online - Neo-Corporate Cyberpunk Stylesheet
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0a0e1a;
    color: #d0d8e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================================================
   Navbar
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2a3647;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

body.scrolled .navbar {
    opacity: 1;
}

.navbar-brand {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #d0d8e0;
}

.navbar-indicator {
    display: flex;
    gap: 12px;
    align-items: center;
}

.indicator-node {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2a3647;
    border: 1.5px solid #2a3647;
    transition: all 0.3s ease-out;
    cursor: pointer;
}

.indicator-node.active {
    background-color: #00d9ff;
    border-color: #00d9ff;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.6);
}

/* ============================================================================
   Main Content Layout
   ========================================================================== */

main {
    width: 100%;
}

.section {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e1a 0%, #151b2b 100%);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            90deg,
            rgba(42, 54, 71, 0.03) 0px,
            rgba(42, 54, 71, 0.03) 1px,
            transparent 1px,
            transparent 40px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(42, 54, 71, 0.03) 0px,
            rgba(42, 54, 71, 0.03) 1px,
            transparent 1px,
            transparent 40px
        );
    pointer-events: none;
    z-index: 0;
}

/* ============================================================================
   SVG Elements and Network Visualization
   ========================================================================== */

.network-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.network-line {
    stroke: #2a3647;
    stroke-width: 2;
    fill: none;
    opacity: 0.6;
}

.pulse-line {
    stroke: url(#pulseGradient);
    animation: pulse-flow 3s ease-in-out infinite;
}

.convergence {
    stroke: #00d9ff;
    animation: convergence-draw 1.5s ease-out forwards;
}

.network-node {
    fill: #151b2b;
    stroke: #00d9ff;
    stroke-width: 2;
}

.network-node.corner-node {
    animation: node-appear 0.8s ease-out forwards;
    opacity: 0;
}

.network-node.radial-node,
.network-node.secondary-node,
.network-node.tertiary-node {
    animation: node-pulse 2s ease-in-out infinite;
}

.network-node.central-node {
    animation: central-pulse 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(0, 217, 255, 0.4));
}

.apex-point {
    fill: url(#apexGradient);
    filter: drop-shadow(0 0 30px rgba(0, 217, 255, 0.8));
    animation: apex-glow 1.5s ease-in-out infinite;
}

.apex-glow {
    fill: none;
    stroke: #00d9ff;
    stroke-width: 1;
    opacity: 0.3;
    animation: apex-pulse 2s ease-in-out infinite;
}

/* ============================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    flex-direction: column;
}

.hero-svg {
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: hero-fade-in 1.2s ease-out forwards;
    opacity: 0;
}

.hero-title {
    font-size: clamp(2rem, 12vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    color: #d0d8e0;
}

.domain-text {
    display: inline-block;
    animation: domain-fade-in 2s ease-out forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d0d8e0;
    animation: subtitle-fade-in 2.5s ease-out forwards;
    opacity: 0;
}

/* ============================================================================
   Content Sections
   ========================================================================== */

.content-section {
    flex-direction: row;
    gap: 80px;
    padding: 0 60px;
    align-items: center;
}

.section-network {
    position: relative;
    flex: 1;
    height: 400px;
    min-height: 300px;
    z-index: 2;
}

.section-svg {
    position: relative !important;
    width: 100%;
    height: 100%;
}

.section-content {
    flex: 1;
    z-index: 2;
    max-width: 500px;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    color: #d0d8e0;
}

.section-text {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    font-weight: 500;
    line-height: 1.8;
    color: #d0d8e0;
    margin-bottom: 30px;
}

/* ============================================================================
   Technical Bars
   ========================================================================== */

.tech-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.bar-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #d0d8e0;
    min-width: 130px;
}

.bar-visual {
    flex: 1;
    height: 4px;
    background-color: #2a3647;
    border-radius: 2px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d9ff 0%, #ff006e 100%);
    animation: bar-expand 1.5s ease-out forwards;
    opacity: 0;
}

.bar-value {
    font-size: 11px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #00d9ff;
    min-width: 60px;
    text-align: right;
}

/* ============================================================================
   Apex Section
   ========================================================================== */

.apex-section {
    flex-direction: column;
    gap: 40px;
}

.apex-network {
    width: 500px;
    height: 500px;
    z-index: 2;
}

.apex-content {
    text-align: center;
    z-index: 2;
    max-width: 600px;
}

.apex-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    color: #00f5ff;
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

.apex-text {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    font-weight: 500;
    line-height: 1.8;
    color: #d0d8e0;
}

/* ============================================================================
   Animations
   ========================================================================== */

@keyframes domain-fade-in {
    0% {
        opacity: 0;
        letter-spacing: 0.1em;
    }
    100% {
        opacity: 1;
        letter-spacing: -0.01em;
    }
}

@keyframes hero-fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitle-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes node-appear {
    0% {
        opacity: 0;
        r: 0;
    }
    100% {
        opacity: 1;
        r: 15px;
    }
}

@keyframes node-pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes central-pulse {
    0%, 100% {
        opacity: 0.7;
        r: 60px;
    }
    50% {
        opacity: 1;
        r: 65px;
    }
}

@keyframes pulse-flow {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0.4;
    }
}

@keyframes convergence-draw {
    0% {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
        opacity: 0;
    }
    100% {
        stroke-dasharray: 1000;
        stroke-dashoffset: 0;
        opacity: 0.8;
    }
}

@keyframes apex-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(0, 217, 255, 1));
    }
}

@keyframes apex-pulse {
    0%, 100% {
        r: 50px;
        opacity: 0.2;
    }
    50% {
        r: 80px;
        opacity: 0;
    }
}

@keyframes bar-expand {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* ============================================================================
   SVG Gradients (via inline in HTML would be better, but CSS fallback)
   ========================================================================== */

.network-svg {
    --pulse-gradient: linear-gradient(90deg, #00d9ff 0%, #ff006e 50%, #00d9ff 100%);
    --apex-gradient: radial-gradient(circle at center, #00d9ff 0%, #003d5c 100%);
}

/* ============================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .content-section {
        flex-direction: column;
        gap: 40px;
    }

    .section-network {
        height: 300px;
    }

    .section-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .navbar-indicator {
        gap: 8px;
    }

    .section {
        height: auto;
        min-height: 70vh;
        padding: 60px 20px;
    }

    .hero-section {
        min-height: 100vh;
    }

    .content-section {
        padding: 40px 20px;
    }

    .section-network {
        height: 250px;
    }

    .apex-network {
        width: 300px;
        height: 300px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-text {
        font-size: 0.95rem;
    }

    .apex-title {
        font-size: 2rem;
    }

    .apex-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .navbar {
        height: 50px;
        padding: 0 15px;
    }

    .navbar-brand {
        font-size: 12px;
    }

    .section {
        min-height: 60vh;
        padding: 40px 15px;
    }

    .section-network {
        height: 200px;
    }

    .apex-network {
        width: 250px;
        height: 250px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .section-text {
        font-size: 0.9rem;
    }

    .apex-title {
        font-size: 1.5rem;
    }

    .apex-text {
        font-size: 0.9rem;
    }

    .tech-bar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .bar-label {
        min-width: 100%;
    }
}

/* ============================================================================
   Scrollbar Styling
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: #151b2b;
}

::-webkit-scrollbar-thumb {
    background-color: #00d9ff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #00f5ff;
}
