:root {
    /* Sovereign Theme */
    --bg-color: #050505;
    --grid-color: rgba(255, 255, 255, 0.03);
    --text-primary: #FFFFFF;
    --text-secondary: #888888;
    --accent-color: #00FF94;
    /* System Green */
    --accent-glow: rgba(0, 255, 148, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --border-color: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Cinzel', serif;

    --spacing-unit: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: crosshair;
    /* Precision cursor */
}

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

/* Swiss Grid Background */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* Smoke/Liquid Background Container */
.smoke-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.4;
    background: radial-gradient(circle at 50% 50%, #111 0%, #050505 70%);
}

/* Typography Utilities */
h1,
h2,
h3 {
    font-weight: 400;
}

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

/* Navigation */
.nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    z-index: 100;
    mix-blend-mode: difference;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.dot {
    color: var(--accent-color);
}

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

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

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-kicker {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 8rem);
    line-height: 0.9;
    letter-spacing: -2px;
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.hero-sub {
    margin-top: 3rem;
    color: var(--text-secondary);
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-decoration {
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    margin: 2rem auto;
}

/* Sections */
.section {
    padding: 8rem 4rem;
    border-top: 1px solid var(--border-color);
    max-width: 1600px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 6rem;
    gap: 2rem;
}

.section-number {
    font-family: var(--font-sans);
    color: var(--accent-color);
    font-size: 0.9rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 2px;
}

/* Cards (Glassmorphism) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    /* Borders via gap */
    background: var(--border-color);
    /* Creates borders between cards */
    border: 1px solid var(--border-color);
}

.glass-card {
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(10px);
    padding: 4rem 2rem;
    position: relative;
    transition: background 0.3s;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

.glass-card h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 300px;
}

/* Ventures List */
.ventures-list {
    display: flex;
    flex-direction: column;
}

.venture-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: padding 0.3s;
}

.venture-row:hover {
    padding-left: 1rem;
    background: linear-gradient(90deg, var(--glass-bg), transparent);
}

.venture-id {
    color: var(--accent-color);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    width: 100px;
}

.venture-name {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    flex-grow: 1;
}

.venture-cat {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-right: 4rem;
}

.venture-link {
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    transition: all 0.3s;
}

.venture-link:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

/* Protocol / Contact */
.protocol-content {
    max-width: 800px;
}

.protocol-text {
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

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

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group label {
    font-size: 0.8rem;
    color: var(--accent-color);
}

.input-group input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1.5rem;
}

.input-group input:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
}

.btn-submit {
    grid-column: span 2;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 1.5rem;
    margin-top: 2rem;
    cursor: pointer;
    font-family: var(--font-sans);
    letter-spacing: 2px;
    transition: all 0.3s;
}

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

/* Footer */
footer {
    padding: 4rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

/* Scanner Line Effect */
.scanner-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    animation: scan 4s linear infinite;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes scan {
    0% {
        transform: translateY(-100vh);
    }

    100% {
        transform: translateY(100vh);
    }
}

/* Responsive & Mobile V2 */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-bar {
        padding: 2rem;
    }
}

@media (max-width: 768px) {

    /* Mobile Navigation - Bottom Floating Pill */
    .nav-bar {
        position: fixed;
        top: auto;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        flex-direction: row;
        justify-content: space-around;
        padding: 1rem 1.5rem;
        background: rgba(10, 10, 10, 0.8);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border-color);
        border-radius: 100px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        gap: 0;
    }

    .logo {
        display: none;
        /* Hide logo in bottom nav to save space */
    }

    .nav-links {
        gap: 0;
        width: 100%;
        justify-content: space-around;
        font-size: 0.7rem;
    }

    .nav-links li {
        text-align: center;
    }

    /* Mobile Typography & Layout */
    .hero-section {
        align-items: flex-end;
        /* Align bottom for mobile drama */
        padding-bottom: 20vh;
        text-align: left;
        padding-left: 1.5rem;
    }

    .hero-content {
        text-align: left;
    }

    .hero-title {
        font-size: clamp(3rem, 15vw, 6rem);
        line-height: 0.85;
    }

    .hero-sub {
        margin-top: 1.5rem;
        padding: 0;
        font-size: 0.9rem;
        max-width: 80%;
    }

    /* Horizontal Snap Scroll for Cards */
    .section {
        padding: 4rem 0;
        /* Remove side padding for full bleed scroll */
    }

    .section-header {
        padding: 0 1.5rem;
        flex-direction: row;
        align-items: baseline;
        margin-bottom: 2rem;
    }

    .card-grid {
        display: flex;
        /* Switch to flex for carousel */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0 1.5rem 2rem 1.5rem;
        /* Padding for scroll area */
        border: none;
        background: transparent;
    }

    .glass-card {
        flex: 0 0 85vw;
        /* nearly full width cards */
        scroll-snap-align: start;
        padding: 2rem;
        border: 1px solid var(--border-color);
        background: rgba(10, 10, 10, 0.6);
        border-radius: 12px;
    }

    /* Hide scrollbar */
    .card-grid::-webkit-scrollbar {
        display: none;
    }

    /* Ventures Mobile */
    .ventures-list {
        padding: 0 1.5rem;
    }

    .venture-row {
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .venture-name {
        font-size: 1.5rem;
    }

    /* Form Mobile */
    .contact-form {
        padding: 0 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 8rem;
        /* Space for bottom nav */
    }

    .footer-content {
        padding-bottom: 6rem;
        /* Space for bottom nav */
    }
}