/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --accent: #ffffff;
    --line-color: #333333;
    --highlight: #ffffff;
    --gradient-primary: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.03"/></svg>');
    pointer-events: none;
    z-index: 1;
}

body>* {
    position: relative;
    z-index: 2;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
    opacity: 0;
    animation: titleReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.hero-title {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    line-height: 1;
    opacity: 0;
    animation: titleReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3), 0 0 60px rgba(255, 255, 255, 0.15);
}

.hero-headline {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    opacity: 0;
    text-transform: uppercase;
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    margin: 0 auto 3rem;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--text-primary), transparent);
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-title.in-view::after {
    width: 100%;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 800px;
}

.mono {
    font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
    font-size: 0.95em;
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.1em 0.3em;
    border: 1px solid var(--line-color);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mono:hover {
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.highlight {
    color: var(--highlight);
    font-weight: 600;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--text-primary), transparent);
    opacity: 0.5;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-darker);
}

#networkCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
}

.btn-primary,
.btn-secondary {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0);
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    left: 0;
}

.btn-primary:hover,
.btn-secondary:hover {
    color: var(--bg-dark);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.4), 0 0 80px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

.btn-secondary::before {
    background: var(--line-color);
}

/* Mission Section */
.mission {
    padding: 8rem 0;
    border-top: 1px solid var(--line-color);
    border-bottom: 1px solid var(--line-color);
}

.mission-content {
    max-width: 900px;
}

.mission-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.mission-emphasis {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    color: var(--text-primary);
    margin: 3rem 0;
}

/* Architecture Section */
.architecture {
    padding: 8rem 0;
    background-color: var(--bg-darker);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.pillar-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line-color);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pillar-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.pillar-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.pillar-content {
    flex: 1;
}

.pillar-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.pillar-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--highlight);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.pillar-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Deployment Sections */
.deployment {
    padding: 8rem 0;
    border-top: 1px solid var(--line-color);
    border-bottom: 1px solid var(--line-color);
    position: relative;
    overflow: hidden;
}

.section-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.35;
}

.deployment .container {
    position: relative;
    z-index: 2;
}

.deployment-human {
    background-color: var(--bg-darker);
}

.deployment-asset {
    background-color: var(--bg-dark);
}

.deployment-header {
    margin-bottom: 2rem;
}

.deployment-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.status-badge {
    color: var(--text-secondary);
    margin-left: 1rem;
    position: relative;
    padding-left: 1.2rem;
}

.status-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
        opacity: 1;
    }

    50% {
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0);
        opacity: 0.8;
    }
}

.deployment-tagline {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.deployment-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 4rem;
    line-height: 1.8;
}

.deployment-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.feature-item {
    border-left: 1px solid var(--line-color);
    padding-left: 2rem;
    padding: 2rem;
    padding-left: 2rem;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

.feature-item:hover {
    transform: translateX(10px);
    border-left-color: var(--text-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-title {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.feature-text {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.8;
}

.deployment-outcome {
    margin-top: 4rem;
    padding: 2rem;
    border: 1px solid var(--line-color);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.deployment-outcome::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.deployment-outcome:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.deployment-outcome:hover::before {
    opacity: 1;
}

.outcome-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-primary);
    line-height: 1.8;
}



/* Methodology Section */
.methodology {
    padding: 8rem 0;
    background-color: var(--bg-darker);
    border-top: 1px solid var(--line-color);
    border-bottom: 1px solid var(--line-color);
}

.methodology-content {
    max-width: 900px;
}

.methodology-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.methodology-emphasis {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    color: var(--text-primary);
    margin-top: 3rem;
}

/* Footer */
.footer {
    padding: 8rem 0 4rem;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--line-color);
}

.footer-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 900px;
}

.footer-info {
    margin-bottom: 3rem;
}

.footer-contact {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 2;
}

.btn-terminal {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    background: transparent;
    border: 1px solid var(--line-color);
    color: var(--text-primary);
    padding: 1rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
}

.btn-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.btn-terminal:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-terminal:hover::before {
    left: 100%;
}

.terminal-prompt {
    color: var(--text-muted);
}

.terminal-command {
    color: var(--text-primary);
}

.terminal-cursor {
    color: var(--text-primary);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    .stack-layer {
        flex-direction: column;
        gap: 1.5rem;
    }

    .deployment-features {
        grid-template-columns: 1fr;
    }

    .mission,
    .architecture,
    .deployment,
    .methodology,
    .footer {
        padding: 4rem 0;
    }
}

/* Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.3), 0 0 60px rgba(255, 255, 255, 0.15);
    }

    50% {
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.5), 0 0 80px rgba(255, 255, 255, 0.25);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.1);
}

/* Loading State */
body {
    transition: opacity 0.8s ease;
}

/* Enhanced visualization containers */

.visualization-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.visualization-container:hover::before {
    opacity: 1;
    animation: borderGlow 2s infinite;
}

@keyframes borderGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Smooth scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--text-primary), transparent);
    z-index: 9998;
    transition: width 0.1s ease;
}