:root {
    /* Colors - Matte, Authoritative, Disciplined */
    --bg-dark: #080808;
    /* Deeper black */
    --bg-charcoal: #0f0f0f;
    --glass-bg: rgba(255, 255, 255, 0.02);
    /* Lower opacity for matte feel */
    --glass-border: rgba(255, 255, 255, 0.05);
    /* Subtler border */
    --text-primary: #e0e0e0;
    /* Not pure white, slightly softened */
    --text-secondary: #757575;
    /* Darker, serious grey */
    --accent-gold: #a68b5b;
    /* Muted Bronze/Gold */
    --accent-gold-dim: #5c4d32;

    /* Effects */
    --glass-blur: 60px;
    /* Heavy blur for matte look */
    --glass-shadow:
        0 4px 30px rgba(0, 0, 0, 0.5),
        /* Deeper shadow */
        0 0 0 1px rgba(255, 255, 255, 0.03);
    /* Sharp inner line */
    --glass-shadow-hover:
        0 10px 40px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(166, 139, 91, 0.2);
    /* Subtle gold hint on hover */
    --grain-strength: 0.08;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing - Reduced for tighter flow */
    --section-spacing: 120px;
    /* Reduced from 160px */
    --container-width: 1300px;
    /* Increased for better spacing */
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    /* Increased line height */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Noise Overlay - Film Grain */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    /* Top layer for texture */
    /* Above fog, below content */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.35;
    mix-blend-mode: overlay;
}

/* Background - Static, Deep, Matte */
.fog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 15%, rgba(20, 20, 20, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(15, 15, 20, 0.4) 0%, transparent 50%);
    background-color: var(--bg-dark);
}

/* Removing animation wrappers for disciplined feel */
.fog-motion-wrapper,
.fog-blob,
.wrapper-1,
.wrapper-2,
.wrapper-3,
.blob-1,
.blob-2,
.blob-3 {
    display: none;
}

/* Complex Animation Paths */
@keyframes driftRotational-1 {
    0% {
        transform: rotate(0deg) scale(1) translate(0, 0);
    }

    33% {
        transform: rotate(120deg) scale(1.1) translate(5%, 5%);
    }

    66% {
        transform: rotate(240deg) scale(0.9) translate(-5%, 10%);
    }

    100% {
        transform: rotate(360deg) scale(1) translate(0, 0);
    }
}

@keyframes driftRotational-2 {
    0% {
        transform: rotate(0deg) scale(1) translate(0, 0);
    }

    50% {
        transform: rotate(-180deg) scale(1.15) translate(-10%, -5%);
    }

    100% {
        transform: rotate(-360deg) scale(1) translate(0, 0);
    }
}

@keyframes driftVertical {
    0% {
        transform: translate(0, -10%) scale(1);
    }

    50% {
        transform: translate(20%, 10%) scale(1.1);
    }

    100% {
        transform: translate(-10%, -10%) scale(1);
    }
}

/* Typography - Disciplined */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    text-transform: uppercase;
    /* Authoritative casing */
}

h1 {
    font-size: 4rem;
    /* Increased by ~33% */
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
    font-weight: 400;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.text-gold {
    color: var(--accent-gold);
}

.section-title {
    text-align: center;
    margin-bottom: 6rem;
    /* More breathing room */
}

.section-subtitle {
    text-align: center;
    margin-top: -4rem;
    /* Pull up closer to title */
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    /* Sharp/Matte feel */
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-gold {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}

.btn-gold:hover {
    background-color: #8f764a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(166, 139, 91, 0.3);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.header-btn {
    margin-left: 2rem;
    /* Spacing from nav */
    margin-right: 0;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 100px 0;
    /* Tighter manual override if variable feels too large, or rely on variable */
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    /* Subtle dividing lines */
}

/* Glassmorphism Components - Matte/Frosted */
.glass-panel,
.glass-card,
.step-card,
.leadership-card {
    background: rgba(20, 20, 20, 0.6);
    /* Darker, less transparent */
    backdrop-filter: blur(60px);
    /* Heavy Blur */
    -webkit-backdrop-filter: blur(60px);

    border-radius: 4px;
    /* Sharper corners */
    padding: 1.5rem;
    /* Reduced further to prevent content cutoff */
    box-shadow: none;
    /* Removed default shadow for flatness */
    transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
    /* Rigid transition */
    position: relative;
    overflow: hidden;

    border: 1px solid var(--glass-border);
}

/* Removed Shine Effect CSS block entirely for matte look */

/* Rigid Interactions - No Shine, No Float */
.glass-panel::before,
.glass-card::before,
.step-card::before {
    display: none;
}

.glass-card:hover,
.step-card:hover {
    transform: translateY(0);
    /* No movement */
    border-color: rgba(166, 139, 91, 0.4);
    /* Subtle border highlight */
    background: rgba(30, 30, 30, 0.8);
    /* Slight darkening */
}

.floating-card {
    /* Disable 3D tilt base styles if they exist elsewhere, or just treat as normal card */
    transform-style: flat;
    perspective: none;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.header-container {
    max-width: 100%;
    /* Full width for header to push elements to edges */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    gap: 1rem;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.desktop-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.desktop-nav {
    margin-left: auto;
    /* Push nav to the right */
}

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

.mobile-nav {
    display: none;
    /* Implemented with JS toggle */
    flex-direction: column;
    background: var(--bg-charcoal);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 500;
    transition: color 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a:active {
    color: var(--accent-gold);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    /* Allow growth */
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #0a0a0a 100%);
    position: relative;
    padding-top: 160px;
    /* Increased offset to lower the card */
    padding-bottom: 4rem;
    /* Add bottom padding for scroll safety */
}

.hero-glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 7rem 4rem;
    /* Increased vertical padding significantly */
    border-radius: 16px;
    max-width: 1200px;
    /* Increased width to accommodate single-line text */
    width: 95%;
    /* Widen relative width */
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

/* Text Rotator Animation */
.word-rotator {
    display: inline-grid;
    grid-template-columns: 1fr;
    vertical-align: bottom;
    height: 1.1em;
    overflow: hidden;
    margin-bottom: -0.2em;
    /* Optical alignment */
}

.rotator-item {
    grid-row: 1;
    grid-column: 1;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    color: var(--accent-gold);
}

.rotator-item.active {
    opacity: 1;
    transform: translateY(0);
}

.rotator-item.exit {
    opacity: 0;
    transform: translateY(-100%);
}

.hero-sub {
    font-size: 1.5rem;
    max-width: 700px;
    /* Slightly wider for larger text */
    margin: 0 auto;
    color: var(--text-secondary);
}

/* Market Stats Grid */
.stat-grid {
    display: flex;
    justify-content: space-between;
    /* Space them out evenly */
    gap: 1rem;
    /* Reduce gap to fit */
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: nowrap;
    /* Force single row */
    width: 100%;
    /* Ensure full width usage */
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(166, 139, 91, 0.1);
    border-radius: 50%;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* What GECS Does Grid - Single Row */
.flex-row-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0.5rem;
    /* Padding for hover lift */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE */
    justify-content: center;
    /* Center if they fit, scroll if they don't */
    flex-wrap: wrap;
    /* Wrap on smaller screens preferred by user? "single row" usually implies horizontal scroll or flexbox. Let's start with flex-wrap for best desktop experience. */
}

/* Actually, "beside each other in a single row" usually means 4 columns structure */
@media (min-width: 1024px) {
    .flex-row-scroll {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .glass-card {
        flex: 1;
        min-width: 250px;
    }
}

.flex-row-scroll::-webkit-scrollbar {
    display: none;
}

/* How It Works Steps */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold-dim);
    opacity: 0.5;
    min-width: 80px;
}

.step-subtitle {
    display: block;
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: -0.5rem;
}

.step-emphasis {
    border-left: 2px solid var(--accent-gold-dim);
    padding-left: 1rem;
    margin-left: 0;
    margin-top: 1rem;
    font-style: italic;
    color: var(--text-primary);
    opacity: 0.8;
}

.section-subtext {
    text-align: center;
    max-width: 600px;
    margin: -3rem auto 4rem;
    /* Position between subtitle and content */
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

/* Partner Section */
.partner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.partner-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
}

.partner-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.value-item {
    border-left: 2px solid var(--accent-gold);
    padding-left: 1.5rem;
}

.value-item h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tier-toggles {
    display: none;
    /* Hidden on desktop */
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tier-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    color: var(--text-secondary);
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: all 0.3s ease;
}

.tier-btn.active {
    background: var(--accent-gold);
    color: var(--bg-dark);
    border-color: var(--accent-gold);
}

.table-container {
    overflow-x: auto;
    padding: 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    /* Default for desktop */
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 600;
    color: var(--text-primary);
}

.text-cell {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.comparison-table th.deliverable-col {
    text-align: left;
    width: 30%;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:first-child {
    text-align: left;
    color: var(--text-secondary);
}

.section-header td {
    background: rgba(197, 164, 126, 0.05);
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.access-dot {
    color: var(--accent-gold);
    font-size: 0.8rem;
    /* Smaller, more discreet */
    opacity: 0.8;
}

.x-mark {
    display: none;
}

/* Leadership */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

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

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.leadership-card {
    /* remove max-width: 800px constraint */
    margin: 0;
    display: flex;
    flex-direction: row;
    /* Side by side image and text */
    gap: 2rem;
    align-items: flex-start;
    /* Changed from center to align top */
}

.leader-image-container {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.leader-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.leadership-card:hover .leader-img {
    filter: grayscale(0%);
}

.leader-info {
    flex-grow: 1;
}

/* Placeholder for future image area - REMOVING since we have images now */
.leadership-card::before {
    display: none;
}

/* Stats removed for cleaner look */
.leader-title {
    color: var(--accent-gold);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.leader-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.leader-stats li strong {
    display: block;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.leader-stats li {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Footer */
.glass-footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    background: var(--bg-charcoal);
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
        "trust"
        "copy"
        "links"
        "brand";
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 2rem;
    /* Initial padding */
}

.trust-signals {
    grid-area: trust;
    text-align: center;
    width: 100%;
}

.footer-content>p:first-of-type {
    grid-area: copy;
    justify-self: center;
    /* Center aligned as requested */
    color: var(--text-secondary);
}

.footer-links {
    grid-area: links;
    justify-self: center;
    /* Center aligned */
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    /* Light gray */
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.85rem;
}

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

.footer-brand {
    grid-area: brand;
    justify-self: center;
    /* Center aligned for balance */
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-btn {
        display: none;
        /* Hide top button on mobile, show in menu instead */
    }

    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .leadership-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        /* Fix for off-center images */
    }

    .mobile-nav.active {
        display: flex;
    }

    .leader-stats {
        grid-template-columns: 1fr;
    }

    .hero-glass-panel {
        padding: 2rem;
    }

    .step-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .stat-grid {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        /* Center align on mobile */
    }

    .stat-item {
        width: 100%;
        max-width: 300px;
        /* Limit width */
    }

    .partner-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .step-number {
        font-size: 2rem;
    }

    /* Table Scroll hint */
    .table-container::after {
        content: 'Scroll for more →';
        display: block;
        text-align: center;
        padding: 0.5rem;
        font-size: 0.8rem;
        color: var(--text-secondary);
    }

    .footer-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "trust"
            "copy"
            "links"
            "brand";
        gap: 2rem;
        text-align: center;
    }

    .footer-content>p:first-of-type {
        justify-self: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-brand {
        justify-self: center;
    }

    /* Mobile Table Logic */
    .tier-toggles {
        display: flex;
    }

    .comparison-table {
        min-width: 100%;
        /* Fit to screen */
    }

    /* Hide all data columns by default on mobile */
    .comparison-table th:nth-child(2),
    .comparison-table td:nth-child(2),
    .comparison-table th:nth-child(3),
    .comparison-table td:nth-child(3),
    .comparison-table th:nth-child(4),
    .comparison-table td:nth-child(4) {
        display: none !important;
    }

    /* Show specific column based on wrapper class */
    .show-growth .comparison-table th:nth-child(2),
    .show-growth .comparison-table td:nth-child(2) {
        display: table-cell !important;
    }

    .show-expansion .comparison-table th:nth-child(3),
    .show-expansion .comparison-table td:nth-child(3) {
        display: table-cell !important;
    }

    .show-ally .comparison-table th:nth-child(4),
    .show-ally .comparison-table td:nth-child(4) {
        display: table-cell !important;
    }

    /* Adjust first column width for mobile */
    .comparison-table th.deliverable-col {
        width: 60%;
    }
}