/* ================================================
   HOUSE OF QUANT — Design System & Styles
   ================================================ */

/* ─── CSS Custom Properties ─── */
:root {
    /* Colors */
    --bg-primary: #000f26;
    --bg-secondary: #001a3a;
    --bg-tertiary: #00243d;
    --bg-card: rgba(0, 26, 58, 0.6);
    --bg-card-hover: rgba(0, 36, 61, 0.8);

    --text-primary: #e8f4f8;
    --text-secondary: #8cb4c7;
    --text-muted: #5a8a9e;

    --accent-blue: #00aace;
    --accent-violet: #00d4ff;
    --accent-cyan: #00aace;
    --accent-emerald: #10b981;

    --gradient-primary: linear-gradient(135deg, #00aace, #00d4ff);
    --gradient-hero: linear-gradient(180deg, #000f26 0%, #001a3a 50%, #000f26 100%);
    --gradient-card-border: linear-gradient(135deg, rgba(0, 170, 206, .3), rgba(0, 212, 255, .3));

    --glass-bg: rgba(0, 15, 38, 0.65);
    --glass-border: rgba(0, 170, 206, 0.08);
    --glass-blur: 16px;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
    --gap-xs: 8px;
    --gap-sm: 12px;
    --gap-md: 20px;
    --gap-lg: 32px;
    --gap-xl: 48px;
    --gap-2xl: 64px;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Misc */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow: 0 0 60px rgba(0, 170, 206, 0.15);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input {
    font: inherit;
    border: none;
    outline: none;
    background: none;
    color: inherit;
}

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

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

/* ─── Utilities ─── */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(148, 163, 184, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ─── Animations ─── */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-dot {

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

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(6, 10, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-lg);
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    z-index: 1001;
}

.logo__icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.logo__accent {
    color: var(--text-muted);
    font-weight: 400;
    margin: 0 2px;
}

.navbar__nav {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
}

.nav__link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    transition: width var(--transition);
}

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

.nav__link:hover::after {
    width: 100%;
}

.navbar__cta {
    font-size: var(--text-sm);
}

@media (max-width: 1024px) {
    .navbar__cta {
        font-size: var(--text-xs) !important;
        padding: 8px 16px !important;
    }
}

.navbar__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    z-index: 1001;
}

.navbar__burger span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ─── Mobile Nav ─── */
@media (max-width: 768px) {
    .navbar__nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(6, 10, 20, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        gap: var(--gap-xl);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
    }

    .navbar__nav.is-open {
        opacity: 1;
        pointer-events: all;
    }

    .nav__link {
        font-size: var(--text-2xl);
        font-weight: 600;
    }

    .navbar__cta {
        display: inline-flex !important;
        width: 80%;
        justify-content: center;
        margin-top: var(--gap-md);
        font-size: var(--text-base) !important;
        padding: 14px 24px !important;
    }

    .navbar__burger {
        display: flex;
    }

    .navbar__burger.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .navbar__burger.is-open span:nth-child(2) {
        opacity: 0;
    }

    .navbar__burger.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* ================================================
   HERO
   ================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 140px 0 80px;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 170, 206, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-xs);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: rgba(0, 170, 206, 0.1);
    border: 1px solid rgba(0, 170, 206, 0.2);
    color: var(--accent-blue);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--gap-lg);
}

.badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    animation: pulse-dot 2s ease infinite;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, var(--text-7xl));
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: var(--gap-lg);
}

.hero__subtitle {
    font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto var(--gap-xl);
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-md);
    margin-bottom: var(--gap-2xl);
    flex-wrap: wrap;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-xs);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
}

.btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 24px rgba(0, 170, 206, 0.3);
}

.btn--primary:hover {
    box-shadow: 0 8px 40px rgba(0, 170, 206, 0.45);
    transform: translateY(-2px);
}

.btn--ghost {
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
    border-color: rgba(148, 163, 184, 0.25);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.btn--lg {
    padding: 16px 32px;
    font-size: var(--text-base);
    border-radius: var(--radius-md);
}

/* ─── Hero Stats ─── */
.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-lg);
    padding-top: var(--gap-xl);
    border-top: 1px solid var(--glass-border);
}

.hero__stat {
    text-align: center;
}

.stat__value {
    font-size: var(--text-3xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat__value-suffix {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--accent-violet);
}

.stat__label {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.hero__scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: scroll-bounce 2s ease infinite;
}

/* ================================================
   SECTION HEADERS
   ================================================ */
.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--gap-2xl);
}

.section__tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(0, 170, 206, 0.1);
    border: 1px solid rgba(0, 170, 206, 0.15);
    color: var(--accent-blue);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--gap-md);
}

.section__title {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: var(--gap-md);
}

.section__desc {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ================================================
   ABOUT
   ================================================ */
.about {
    background: var(--bg-secondary);
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-lg);
}

.about__card {
    padding: var(--gap-xl);
}

.about__icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(0, 170, 206, 0.1);
    color: var(--accent-blue);
    margin-bottom: var(--gap-md);
}

.about__card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--gap-sm);
}

.about__card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.8;
}

/* ================================================
   INVESTMENT VERTICALS
   ================================================ */
.verticals__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-lg);
}

.vertical-card {
    padding: var(--gap-xl);
    position: relative;
    overflow: hidden;
}

.vertical-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition);
}

.vertical-card:hover::before {
    opacity: 1;
}

.vertical-card__icon {
    color: var(--accent-blue);
    margin-bottom: var(--gap-md);
}

.vertical-card__number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: var(--text-4xl);
    font-weight: 900;
    color: rgba(0, 170, 206, 0.06);
    font-family: var(--font-mono);
    line-height: 1;
}

.vertical-card__title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--gap-sm);
}

.vertical-card__desc {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.8;
    margin-bottom: var(--gap-md);
}

.vertical-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-xs);
}

.vertical-card__tags li {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(0, 170, 206, 0.08);
    border: 1px solid rgba(0, 170, 206, 0.12);
    color: var(--accent-blue);
    font-size: var(--text-xs);
    font-weight: 500;
}

/* ================================================
   QUANT STRATEGIES
   ================================================ */
.strategies {
    background: var(--bg-secondary);
}

.strategies__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-lg);
}

.strategy-card {
    padding: var(--gap-xl);
}

.strategy-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--gap-md);
}

.strategy-card__icon-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(0, 170, 206, 0.1);
    color: var(--accent-blue);
}

.strategy-card__badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    background: rgba(0, 170, 206, 0.1);
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.strategy-card__badge--ai {
    background: rgba(0, 170, 206, 0.15);
    color: var(--accent-violet);
}

.strategy-card h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--gap-sm);
}

.strategy-card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.8;
    margin-bottom: var(--gap-md);
}

.strategy-card__meta {
    display: flex;
    justify-content: space-between;
    padding-top: var(--gap-md);
    border-top: 1px solid var(--glass-border);
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ================================================
   AI AGENTS
   ================================================ */
.agents__pipeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--gap-2xl);
    flex-wrap: wrap;
}

.pipeline__step {
    flex: 1;
    min-width: 180px;
    max-width: 240px;
    text-align: center;
    padding: var(--gap-lg);
}

.pipeline__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 170, 206, 0.1);
    border: 1px solid rgba(0, 170, 206, 0.2);
    color: var(--accent-blue);
    margin: 0 auto var(--gap-md);
    transition: all var(--transition);
}

.pipeline__step:hover .pipeline__icon {
    background: rgba(0, 170, 206, 0.2);
    box-shadow: 0 0 40px rgba(0, 170, 206, 0.2);
    transform: scale(1.05);
}

.pipeline__step h3 {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--gap-xs);
}

.pipeline__step p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.pipeline__connector {
    display: flex;
    align-items: center;
    padding-top: 52px;
    color: rgba(0, 170, 206, 0.3);
}

/* ─── Orchestrator Card ─── */
.agents__orchestrator {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--gap-xl);
    padding: var(--gap-xl);
    align-items: center;
}

.orchestrator__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.orchestrator__center {
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gap-sm);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, rgba(0, 170, 206, 0.05) 70%);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: var(--accent-violet);
    animation: float 4s ease infinite;
}

.orchestrator__center span {
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.orchestrator__info h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--gap-sm);
}

.orchestrator__info p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.8;
    margin-bottom: var(--gap-lg);
}

.orchestrator__features {
    display: grid;
    gap: var(--gap-sm);
}

.orchestrator__feature {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.orchestrator__feature svg {
    flex-shrink: 0;
    color: var(--accent-emerald);
}

/* ================================================
   PERFORMANCE
   ================================================ */
.performance {
    background: var(--bg-secondary);
}

.performance__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-lg);
    margin-bottom: var(--gap-xl);
}

.perf-metric {
    padding: var(--gap-xl) var(--gap-lg);
    text-align: center;
}

.perf-metric__value {
    font-size: var(--text-5xl);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}

.perf-metric__suffix {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--accent-violet);
}

.perf-metric__label {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--gap-sm);
}

.performance__disclaimer {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    padding: var(--gap-lg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

/* ================================================
   TEAM
   ================================================ */
.team__pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-lg);
}

.team__pillar {
    padding: var(--gap-xl);
    text-align: center;
}

.team__pillar-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 170, 206, 0.1);
    border: 1px solid rgba(0, 170, 206, 0.15);
    color: var(--accent-violet);
    margin: 0 auto var(--gap-md);
}

.team__pillar h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--gap-sm);
}

.team__pillar p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.8;
}

/* ================================================
   EARLY ACCESS
   ================================================ */
.early-access {
    background: var(--bg-secondary);
}

.ea__wrapper {
    padding: var(--gap-2xl) var(--gap-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ea__wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(0, 170, 206, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.ea__content {
    position: relative;
    z-index: 1;
}

.ea__title {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: var(--gap-md) 0;
}

.ea__desc {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    max-width: 500px;
    margin: 0 auto var(--gap-xl);
    line-height: 1.8;
}

.ea__form {
    max-width: 480px;
    margin: 0 auto;
}

.ea__input-group {
    display: flex;
    gap: var(--gap-sm);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 6px 6px 6px 20px;
    transition: border-color var(--transition);
}

.ea__input-group:focus-within {
    border-color: rgba(0, 170, 206, 0.4);
}

.ea__input-group input {
    flex: 1;
    padding: 12px 0;
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.ea__input-group input::placeholder {
    color: var(--text-muted);
}

.ea__input-group .btn {
    flex-shrink: 0;
}

.ea__privacy {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--gap-sm);
}

.ea__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-md);
    margin-top: var(--gap-xl);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.ea__email {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-xs);
    color: var(--accent-blue);
    font-weight: 500;
    transition: color var(--transition);
}

.ea__email:hover {
    color: var(--accent-violet);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    padding: var(--gap-2xl) 0 var(--gap-lg);
    border-top: 1px solid var(--glass-border);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--gap-2xl);
    margin-bottom: var(--gap-xl);
}

.footer__brand {
    max-width: 360px;
}

.footer__brand .navbar__logo {
    margin-bottom: var(--gap-md);
}

.footer__brand p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.8;
}

.footer__links {
    display: flex;
    gap: var(--gap-2xl);
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.footer__col h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--gap-xs);
    color: var(--text-primary);
}

.footer__col a {
    font-size: var(--text-sm);
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer__col a:hover {
    color: var(--accent-blue);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--gap-lg);
    border-top: 1px solid var(--glass-border);
    font-size: var(--text-xs);
    color: var(--text-muted);
    gap: var(--gap-lg);
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* Prevent horizontal overflow on all viewports */
html,
body {
    overflow-x: hidden;
}

/* ─── Tablet ─── */
@media (max-width: 1024px) {

    .about__grid,
    .verticals__grid,
    .strategies__grid,
    .team__pillars {
        grid-template-columns: repeat(2, 1fr);
    }

    .performance__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .agents__orchestrator {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
    :root {
        --section-padding: 72px;
    }

    .container {
        padding: 0 20px;
    }

    /* Grids → single column */
    .about__grid,
    .verticals__grid,
    .strategies__grid,
    .team__pillars,
    .performance__grid {
        grid-template-columns: 1fr;
    }

    /* Hero */
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero__subtitle {
        font-size: var(--text-base);
    }

    .hero__badge {
        font-size: var(--text-xs);
        padding: 6px 16px;
    }

    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gap-md);
    }

    .stat__value {
        font-size: var(--text-2xl);
    }

    .stat__value-suffix {
        font-size: var(--text-base);
    }

    .hero__scroll-hint {
        display: none;
    }

    /* Section headers */
    .section__title {
        font-size: clamp(1.5rem, 6vw, 2.25rem);
    }

    .section__desc {
        font-size: var(--text-base);
    }

    /* Cards */
    .about__card,
    .vertical-card,
    .strategy-card,
    .team__pillar {
        padding: var(--gap-lg);
    }

    /* Pipeline */
    .pipeline__connector {
        display: none;
    }

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

    .pipeline__step {
        max-width: 100%;
        width: 100%;
    }

    /* Orchestrator */
    .agents__orchestrator {
        padding: var(--gap-lg);
    }

    .orchestrator__center {
        width: 120px;
        height: 120px;
    }

    .orchestrator__center svg {
        width: 32px;
        height: 32px;
    }

    .orchestrator__info h3 {
        font-size: var(--text-xl);
    }

    /* Performance */
    .perf-metric {
        padding: var(--gap-lg) var(--gap-md);
    }

    .perf-metric__value {
        font-size: var(--text-4xl);
    }

    .perf-metric__suffix {
        font-size: var(--text-xl);
    }

    /* Early access */
    .ea__wrapper {
        padding: var(--gap-xl) var(--gap-lg);
    }

    .ea__title {
        font-size: var(--text-2xl);
    }

    .ea__desc {
        font-size: var(--text-base);
    }

    .ea__input-group {
        flex-direction: column;
        padding: 6px;
    }

    .ea__input-group input {
        text-align: center;
        padding: 12px 16px;
    }

    .ea__contact {
        flex-direction: column;
        gap: var(--gap-sm);
    }

    /* Footer */
    .footer__inner {
        grid-template-columns: 1fr;
        gap: var(--gap-xl);
    }

    .footer__links {
        flex-wrap: wrap;
        gap: var(--gap-xl);
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Strategy card meta */
    .strategy-card__meta {
        flex-direction: column;
        gap: var(--gap-xs);
        align-items: flex-start;
    }

    /* Buttons */
    .btn--lg {
        padding: 14px 28px;
        font-size: var(--text-sm);
    }
}

/* ─── Small Mobile ─── */
@media (max-width: 480px) {
    :root {
        --section-padding: 56px;
    }

    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 0 48px;
    }

    .hero__title {
        font-size: 1.75rem;
        line-height: 1.15;
    }

    .hero__subtitle {
        font-size: var(--text-sm);
        line-height: 1.7;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__stats {
        grid-template-columns: 1fr 1fr;
        gap: var(--gap-sm);
    }

    .stat__value {
        font-size: var(--text-xl);
    }

    .stat__label {
        font-size: 0.65rem;
    }

    /* Section headers */
    .section__title {
        font-size: 1.4rem;
    }

    .section__desc {
        font-size: var(--text-sm);
    }

    .section__header {
        margin-bottom: var(--gap-xl);
    }

    /* Cards compact */
    .about__card,
    .vertical-card,
    .strategy-card,
    .team__pillar {
        padding: var(--gap-md);
    }

    .vertical-card__number {
        font-size: var(--text-3xl);
    }

    /* Performance */
    .performance__grid {
        grid-template-columns: 1fr 1fr;
    }

    .perf-metric {
        padding: var(--gap-md);
    }

    .perf-metric__value {
        font-size: var(--text-3xl);
    }

    .perf-metric__suffix {
        font-size: var(--text-base);
    }

    .performance__disclaimer {
        font-size: 0.65rem;
        padding: var(--gap-md);
    }

    /* Pipeline steps */
    .pipeline__icon {
        width: 56px;
        height: 56px;
    }

    .pipeline__icon svg {
        width: 24px;
        height: 24px;
    }

    /* Orchestrator */
    .orchestrator__center {
        width: 100px;
        height: 100px;
    }

    .orchestrator__info h3 {
        font-size: var(--text-lg);
    }

    /* EA */
    .ea__title {
        font-size: var(--text-xl);
    }

    .ea__desc {
        font-size: var(--text-sm);
    }

    .ea__email {
        font-size: var(--text-xs);
    }

    /* Footer */
    .footer__links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--gap-lg);
    }

    .footer__brand {
        text-align: center;
    }

    .footer__brand .navbar__logo {
        justify-content: center;
    }
}

/* ─── Ultra-small (Galaxy Fold, etc.) ─── */
@media (max-width: 360px) {
    .hero__title {
        font-size: 1.5rem;
    }

    .hero__badge {
        font-size: 0.65rem;
        padding: 5px 12px;
    }

    .section__title {
        font-size: 1.25rem;
    }

    .navbar__logo .logo__text {
        font-size: var(--text-base);
    }

    .vertical-card__tags {
        gap: 4px;
    }

    .vertical-card__tags li {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}