/* === CSS RESET & BASE === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Theme: Deep Space */
    --bg: #060611;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #7c3aed; /* Electric Violet */
    --accent-glow: rgba(124, 58, 237, 0.5);
    --white: #ffffff;
    --black: #000000;

    /* Typography */
    --font-heading: 'IBM Plex Mono', monospace;
    --font-body: 'IBM Plex Sans', sans-serif;

    /* Spacing & Sizing */
    --radius-sm: 0; /* Brutalist: no radius */
    --radius-md: 0;
    --radius-lg: 0;
    --pill: 999px;

    --container-max: 1200px;
    --section-pad: 60px; /* Spacing Strategy: Dense (50-60px) */
    --gap: 20px;

    /* Effects */
    --shadow-brutal: 4px 4px 0px 0px #000000;
    --shadow-brutal-hover: 2px 2px 0px 0px #000000;
    --glass-bg: rgba(6, 6, 17, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
    background: #9061f9;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 18px; /* Content Density: Low (18px) */
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    width: 100%;
    max-width: 100vw;
}

/* Background Texture: Animated CSS Gradient */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(-45deg, #060611, #0b0b1e, #130a24, #060611);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Star-dot pattern overlay */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

h1, h2, h3, h4, .mono {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

section {
    padding: var(--section-pad) 0;
    position: relative;
}

/* Centered Floating Content Layout Scheme */
.floating-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Navigation Style: Centered Logo Nav + Floating Pill Wrapper */
.nav-pill-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    max-width: 90vw;
}

.nav-pill {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--pill);
    padding: 10px 30px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links.left { margin-right: auto; }
.nav-links.right { margin-left: auto; }

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Brutalist Buttons */
.btn-brutal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--white);
    border: 3px solid var(--black);
    box-shadow: var(--shadow-brutal);
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-brutal:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-brutal-hover);
}

/* Hero Style: Vertical Split Triptych */
.hero-split {
    display: flex;
    height: 90vh;
    min-height: 700px;
    width: 100%;
}

.hero-strip {
    height: 100%;
}

.hero-strip-img {
    flex: 2;
    background-size: cover;
    background-position: center;
}

.hero-strip-content {
    flex: 3;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg);
}

.hero-strip-accent {
    flex: 1;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 4rem;
    color: var(--bg);
    opacity: 0.8;
}

/* Split-Screen Layout Archetype */
.split-section {
    display: flex;
    align-items: stretch;
    min-height: 600px;
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-media {
    flex: 1;
    overflow: hidden;
}

.split-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-text {
    flex: 1;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Full-width media + compact text overlay */
.overlay-section {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.overlay-panel {
    max-width: 600px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 48px;
    text-align: center;
}

/* Section Dividers: Gradient Fade */
.gradient-fade {
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    margin-top: -150px;
    position: relative;
    z-index: 2;
}

/* Animated Border Gradients for Cards */
.gradient-border-card {
    position: relative;
    padding: 48px;
    background: var(--bg);
    z-index: 1;
    height: 100%;
}

.gradient-border-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: conic-gradient(from 0deg, var(--accent), transparent, var(--accent), transparent, var(--accent));
    animation: rotateGradient 4s linear infinite;
}

@keyframes rotateGradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Grid Strategy */
.grid-standard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Social Media Feed */
.social-feed {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.social-card {
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
}

.social-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.social-card:hover img {
    transform: scale(1.1);
}

.social-overlay {
    position: absolute;
    inset: 0;
    background: rgba(124, 58, 237, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.social-card:hover .social-overlay {
    opacity: 1;
}

/* Interactive Element: Configurator */
.configurator {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.config-preview {
    background: var(--bg);
    border: 2px solid var(--accent);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.config-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.config-group h4 {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.config-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.config-btn {
    padding: 8px 16px;
    border: 1px solid var(--text-muted);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.8rem;
}

.config-btn.active {
    background: var(--accent);
    border-color: var(--accent);
}

/* Testimonial Spotlight */
.testimonial-spotlight {
    display: flex;
    gap: 60px;
    align-items: center;
}

.testimonial-image {
    flex: 1;
}

.testimonial-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.testimonial-content {
    flex: 1;
}

.testimonial-quote {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Stats Banner Inner Page */
.stats-banner {
    background: var(--accent);
    color: var(--bg);
    padding: 40px 0;
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item h2 {
    font-size: 3.5rem;
    margin-bottom: 0;
}

/* Footer Style: Dark Contrast Footer */
.footer {
    background: #020205;
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 24px;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s;
}

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 40px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.breadcrumbs a {
    color: var(--accent);
}

.breadcrumbs span {
    margin: 0 10px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-split {
        flex-direction: column;
        height: auto;
    }
    .hero-strip-accent {
        display: none;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    .container {
        padding: 0 16px;
    }
    section {
        padding: 40px 0;
    }
    .nav-pill {
        width: 100%;
        border-radius: 20px;
        justify-content: space-between;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 20px;
        border: 1px solid var(--glass-border);
        margin-top: 10px;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .split-section, .split-section.reverse {
        flex-direction: column;
    }
    .split-text, .hero-strip-content {
        padding: 40px 20px;
    }
    .grid-standard, .stats-grid, .social-feed {
        grid-template-columns: 1fr;
    }
    .configurator {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .testimonial-spotlight {
        flex-direction: column;
    }
    .testimonial-image img {
        height: 300px;
    }
}
