/* Custom Styles & Animations */
body {
    background-color: #FFFFFF;
    color: #1A1A1A;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.05em;
    color: #1A1A1A;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #F4F4F4;
}

::-webkit-scrollbar-thumb {
    background: #E5E5E5;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #EF4444;
}

/* Gradient Text */
.text-gradient-red {
    background: linear-gradient(135deg, #1A1A1A 0%, #EF4444 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* High-Tech Borders & Glows */
.onion-border {
    position: relative;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.onion-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), transparent, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.onion-border:hover::before {
    opacity: 1;
}

.onion-border:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.6);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Grid Background */
.bg-grid-white {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black, transparent 95%);
}

/* Full Width Header */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: #FFFFFF;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
}

header.site-header.scrolled .header-container {
    padding: 1rem 2rem;
}

.nav-link {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: #000000;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #EF4444;
    transition: width 0.3s ease;
}

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

/* Tech Card */
.tech-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.tech-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #EF4444);
}

/* Horizontal Timeline */
.timeline-track {
    position: relative;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(280px, auto);
    }

    .bento-col-span-2 {
        grid-column: span 2;
    }

    .bento-row-span-2 {
        grid-row: span 2;
    }
}

@keyframes zoom-slow {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1.2);
    }
}

.hero-title-shadow {
    text-shadow: 0 0 50px rgba(239, 68, 68, 0.4);
}

/* Narrative Hero Styles */
.hero-narrative {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.7);
    max-width: 800px;
}

.hero-highlight {
    color: #000000;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(239, 68, 68, 0.15);
    z-index: -1;
}

.feature-pill {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-pill:hover {
    background: #FFFFFF;
    border-color: #EF4444;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.1);
}

.feature-pill span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1A1A1A;
}

.builder-punchline {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #EF4444;
}

/* Cosmic Design System */
.hero-space {
    background: transparent;
    position: relative;
    overflow: hidden;
    color: #1A1A1A;
}

.stars-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.star {
    position: absolute;
    background: #EF4444;
    border-radius: 50%;
    opacity: 0.2;
    animation: twinkle var(--duration) ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.orbit-line {
    position: absolute;
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    transform: rotateX(75deg);
    pointer-events: none;
}

.satellite-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.satellite-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #EF4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #EF4444;
    animation: orbit var(--duration) linear infinite;
}

@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(var(--radius)) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(var(--radius)) rotate(-360deg);
    }
}

/* Typography Overrides for Lite Mode */
.hero-space h1 {
    color: #111827;
    text-shadow: none;
}

.hero-space p {
    color: #4B5563;
}

.hero-space .builder-punchline span {
    color: #111827;
}

/* Premium Buttons */
.btn-premium-primary {
    background: #EF4444;
    color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
    border: 1px solid rgba(239, 68, 68, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium-primary:hover {
    background: #DC2626;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.6);
}

.btn-premium-secondary {
    background: #F9FAFB;
    color: #111827;
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium-secondary:hover {
    background: #F3F4F6;
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/* What We're Building Specifics */
.building-grid {
    background: #F9FAFB;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
}

.building-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.building-item:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    transform: scale(1.05);
}

.building-item .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.building-item span {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #111827;
}

/* Scan Line Animation */
.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.5), transparent);
    top: 50%;
    animation: scan-move 4s linear infinite;
    pointer-events: none;
}

@keyframes scan-move {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

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

/* Frontier Section Styles - LITE THEME */
.frontier-section {
    padding: 10rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: #FFFFFF;
    position: relative;
}

.frontier-header {
    margin-bottom: 5rem;
    position: relative;
}

.frontier-number {
    font-size: 12rem;
    line-height: 1;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    color: rgba(239, 68, 68, 0.03);
    position: absolute;
    top: -4rem;
    left: -2rem;
    z-index: 0;
    pointer-events: none;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tech-module {
    background: #F9FAFB;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 3rem;
    border-radius: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.tech-module:hover {
    background: #FFFFFF;
    border-color: rgba(239, 68, 68, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.tech-module-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: #111827;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Orbitron', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tech-module-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 2px;
}

.tech-module-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4B5563;
}

.strategic-box {
    background: rgba(239, 68, 68, 0.02);
    border: 1px solid rgba(239, 68, 68, 0.08);
    padding: 3rem;
    border-radius: 2.5rem;
    margin-top: 5rem;
}

.strategic-title {
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #EF4444;
    margin-bottom: 1.5rem;
}

.strategic-text {
    font-size: 1.125rem;
    color: #1F2937;
    line-height: 1.7;
    font-weight: 400;
}

.frontier-visual {
    position: relative;
    border-radius: 3rem;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.frontier-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(1.1);
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.frontier-section:hover .frontier-visual img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

.frontier-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
}