@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap');

/* ========================================
   eSmart AI Landing Page Styles
   ======================================== */

/* CSS Custom Properties - Color System from dark.json */
:root {
    /* Base Neutral Palette */
    --neutral-50: #fafafa;
    --neutral-100: #f0f1f1;
    --neutral-200: #e2e4e4;
    --neutral-300: #c5c9c9;
    --neutral-400: #9ca3a3;
    --neutral-500: #6b7575;
    --neutral-600: #4d5656;
    --neutral-650: #3d4545;
    --neutral-700: #2d3535;
    --neutral-750: #232a2a;
    --neutral-800: #1a2020;
    --neutral-850: #141919;
    --neutral-900: #0f1313;
    --neutral-950: #0b0e0e;

    /* Teal Accent Palette */
    --teal-100: #d4f0f0;
    --teal-200: #b0e3e3;
    --teal-300: #7fd1d1;
    --teal-400: #4fb8b8;
    --teal-500: #399797;
    --teal-600: #2d7a7a;
    --teal-700: #256363;
    --teal-800: #1e4f4f;
    --teal-900: #183d3d;

    /* Semantic Colors */
    --bg-app: var(--neutral-950);
    --bg-card: var(--neutral-850);
    --bg-pane: var(--neutral-900);
    --bg-input: var(--neutral-800);
    --bg-primary: var(--teal-700);

    --text-high: var(--neutral-100);
    --text-medium: var(--neutral-300);
    --text-subtle: var(--neutral-400);
    --text-disabled: var(--neutral-600);
    --text-primary: var(--teal-500);

    --border-divider: var(--neutral-750);
    --border-card: var(--neutral-800);
    --border-input: var(--neutral-700);
    --border-primary: var(--teal-500);

    --icon-high: var(--neutral-100);
    --icon-medium: var(--neutral-300);
    --icon-primary: var(--teal-500);

    /* State Colors */
    --hover-default: rgba(250, 250, 250, 0.05);
    --hover-primary: rgba(176, 227, 227, 0.1);
    --pressed-default: rgba(250, 250, 250, 0.08);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-app);
    color: var(--text-high);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--teal-500);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--teal-500);
    outline-offset: 2px;
}

/* Ensure touch targets are at least 44x44px */
.nav-link,
.learn-more,
.btn-primary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 65px;
    padding: 0 var(--space-xl);
    transition: all var(--transition-base);
    background: transparent;
}

.header.scrolled {
    background: rgba(11, 14, 14, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-divider);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.8;
}

.header .logo-img {
    height: 32px;
    width: auto;
}

.brand-text {
    font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
    font-weight: 500;
    font-size: 1.45rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--text-high);
    letter-spacing: -0.01em;
    padding-bottom: 11px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

#header.navbar {
    padding-top: 6px;
    padding-bottom: 6px;
}

/* ========================================
   Sections - Common Styles
   ======================================== */
.section {
    min-height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
}

.section-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-xl);
    width: 100%;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--text-high) 0%, var(--text-medium) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tagline {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: var(--space-3xl);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-app);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-xl);
    max-width: 900px;
}

.hero-headline {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: var(--space-xl);
    color: var(--text-high);
    animation: heroFadeIn 0.8s ease-out;
}

.hero-headline-accent {
    background: linear-gradient(135deg, var(--teal-400) 0%, var(--teal-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .hero-tagline,
.hero-tagline {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
    animation: heroFadeIn 0.8s ease-out 0.2s both;
}

.hero-cta {
    animation: heroFadeIn 0.8s ease-out 0.4s both;
}

.hero-btn-learn {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.125rem;
    font-weight: 600;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--teal-700);
    border: none;
    border-radius: 8px;
    color: var(--text-high);
    font-size: 1.125rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary:hover {
    background: var(--teal-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(57, 151, 151, 0.3);
}

.btn-primary svg {
    transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(57, 151, 151, 0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: heroBgPulse 8s ease-in-out infinite;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroBgPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Hero Responsive - Tablet */
@media (max-width: 1024px) {
    .hero-headline {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    .hero .hero-tagline {
        font-size: clamp(1rem, 2vw, 1.25rem);
    }
}

/* Hero Responsive - Mobile */
@media (max-width: 640px) {
    .hero {
        min-height: calc(100vh - 60px);
        padding-top: 60px;
    }

    .hero .hero-content {
        padding: var(--space-lg);
    }

    .hero-headline {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: var(--space-lg);
    }

    .hero .hero-tagline {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        justify-content: center;
        padding: var(--space-sm) var(--space-lg);
        font-size: 1rem;
    }
}

/* Hero Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-headline,
    .hero .hero-tagline,
    .hero-cta {
        animation: none;
    }

    .hero-bg {
        animation: none;
    }

    .btn-primary {
        transition: none;
    }

    .btn-primary svg {
        transition: none;
    }
}

/* ========================================
   Section 1: Split Screen
   ======================================== */
.section-split {
    display: flex;
    flex-direction: row;
    min-height: auto;
}

.split-panel {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-4xl) var(--space-3xl);
    position: relative;
}

.panel-left {
    background: linear-gradient(135deg, var(--bg-app) 0%, var(--neutral-900) 100%);
}

.panel-right {
    background: linear-gradient(135deg, var(--neutral-900) 0%, var(--bg-app) 100%);
}

.split-divider {
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--teal-700) 20%,
        var(--teal-500) 50%,
        var(--teal-700) 80%,
        transparent 100%
    );
    position: relative;
}

.split-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--teal-500);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--teal-500);
}

.panel-content {
    max-width: 480px;
}

.panel-icon {
    color: var(--icon-primary);
    margin-bottom: var(--space-xl);
}

.panel-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    color: var(--text-high);
}

.panel-description {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.feature-list {
    margin-bottom: var(--space-xl);
}

.feature-list li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--text-subtle);
    font-size: 0.9375rem;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--teal-500);
    border-radius: 50%;
}

/* Learn More Link */
.learn-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.learn-more:hover {
    gap: var(--space-md);
    color: var(--teal-300);
}

.learn-more svg {
    transition: transform var(--transition-fast);
}

.learn-more:hover svg {
    transform: translateX(4px);
}

.learn-more.centered {
    display: flex;
    justify-content: center;
    margin-top: var(--space-3xl);
}

/* ========================================
   Section: Bottom Split (Fine Tuning & Foundation)
   ======================================== */
.section-bottom-split {
    display: flex;
    flex-direction: row;
    min-height: auto;
}

.panel-bottom-left {
    background: linear-gradient(135deg, var(--bg-app) 0%, var(--neutral-900) 100%);
}

.panel-bottom-right {
    background: linear-gradient(135deg, var(--neutral-900) 0%, var(--bg-app) 100%);
}

/* Compact foundation visual for half-width panel */
.foundation-visual-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.foundation-visual-compact .visual-element {
    width: 200px;
    height: 200px;
}

.foundation-visual-compact .core {
    width: 40px;
    height: 40px;
}

.foundation-visual-compact .orbit-1 {
    width: 80px;
    height: 80px;
}

.foundation-visual-compact .orbit-2 {
    width: 130px;
    height: 130px;
}

.foundation-visual-compact .orbit-3 {
    width: 180px;
    height: 180px;
}

.foundation-visual-compact .node-1,
.foundation-visual-compact .node-2 {
    animation: orbit1-compact 8s linear infinite;
}

.foundation-visual-compact .node-2 {
    animation-delay: 4s;
}

.foundation-visual-compact .node-3,
.foundation-visual-compact .node-4 {
    animation: orbit2-compact 12s linear infinite;
}

.foundation-visual-compact .node-4 {
    animation-delay: 6s;
}

.foundation-visual-compact .node-5,
.foundation-visual-compact .node-6 {
    animation: orbit3-compact 16s linear infinite;
}

.foundation-visual-compact .node-6 {
    animation-delay: 8s;
}

@keyframes orbit1-compact {
    from { transform: rotate(0deg) translateX(40px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(40px) rotate(-360deg); }
}

@keyframes orbit2-compact {
    from { transform: rotate(0deg) translateX(65px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(65px) rotate(-360deg); }
}

@keyframes orbit3-compact {
    from { transform: rotate(0deg) translateX(90px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(90px) rotate(-360deg); }
}

/* Compact foundation features list */
.foundation-features-compact {
    margin-bottom: var(--space-xl);
}

.foundation-features-compact li {
    display: flex;
    flex-direction: column;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-divider);
}

.foundation-features-compact li:last-child {
    border-bottom: none;
}

/* ========================================
   Section 2: Adaptive AI
   ======================================== */
.section-adaptive {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-app);
    min-height: auto;
    scroll-margin-top: 70px;
}

.section-adaptive .section-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.adaptive-header {
    margin-bottom: var(--space-3xl);
}

.adaptive-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 50%, rgba(57, 151, 151, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 30% 60%, rgba(57, 151, 151, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 70% 40%, rgba(57, 151, 151, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: var(--space-2xl);
    text-align: left;
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--border-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
    color: var(--icon-primary);
    margin-bottom: var(--space-lg);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-high);
}

.card-description {
    color: var(--text-subtle);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ========================================
   Section 3: Foundation Model
   ======================================== */
.section-foundation {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--neutral-900) 0%, var(--bg-app) 50%, var(--neutral-900) 100%);
}

.section-foundation .section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.foundation-description {
    font-size: 1.125rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

.foundation-features {
    margin-bottom: var(--space-2xl);
}

.foundation-features li {
    display: flex;
    flex-direction: column;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-divider);
}

.foundation-features li:last-child {
    border-bottom: none;
}

.feature-highlight {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.feature-text {
    color: var(--text-subtle);
    font-size: 0.9375rem;
}

/* Foundation Visual Element */
.foundation-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.visual-element {
    position: relative;
    width: 320px;
    height: 320px;
}

.core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-700) 100%);
    border-radius: 50%;
    box-shadow:
        0 0 40px rgba(57, 151, 151, 0.5),
        0 0 80px rgba(57, 151, 151, 0.3);
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--border-input);
    border-radius: 50%;
}

.orbit-1 {
    width: 120px;
    height: 120px;
    animation: pulse 4s ease-in-out infinite;
}

.orbit-2 {
    width: 200px;
    height: 200px;
    animation: pulse 4s ease-in-out infinite 0.5s;
}

.orbit-3 {
    width: 280px;
    height: 280px;
    animation: pulse 4s ease-in-out infinite 1s;
}

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--teal-500);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--teal-500);
}

.node-1 {
    top: 50%;
    left: calc(50% + 60px);
    transform: translate(-50%, -50%);
    animation: orbit1 8s linear infinite;
}

.node-2 {
    top: 50%;
    left: calc(50% - 60px);
    transform: translate(-50%, -50%);
    animation: orbit1 8s linear infinite 4s;
}

.node-3 {
    top: 50%;
    left: calc(50% + 100px);
    transform: translate(-50%, -50%);
    animation: orbit2 12s linear infinite;
}

.node-4 {
    top: 50%;
    left: calc(50% - 100px);
    transform: translate(-50%, -50%);
    animation: orbit2 12s linear infinite 6s;
}

.node-5 {
    top: 50%;
    left: calc(50% + 140px);
    transform: translate(-50%, -50%);
    animation: orbit3 16s linear infinite;
}

.node-6 {
    top: 50%;
    left: calc(50% - 140px);
    transform: translate(-50%, -50%);
    animation: orbit3 16s linear infinite 8s;
}

/* ========================================
   Animations
   ======================================== */
@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.02);
    }
}

@keyframes orbit1 {
    from {
        transform: rotate(0deg) translateX(60px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(60px) rotate(-360deg);
    }
}

@keyframes orbit2 {
    from {
        transform: rotate(0deg) translateX(100px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(100px) rotate(-360deg);
    }
}

@keyframes orbit3 {
    from {
        transform: rotate(0deg) translateX(140px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(140px) rotate(-360deg);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for cards */
.feature-card.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.feature-card.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.feature-card.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .section-split {
        flex-direction: column;
    }

    .split-panel {
        min-height: 50vh;
        padding: var(--space-3xl) var(--space-xl);
    }

    .split-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(
            to right,
            transparent 0%,
            var(--teal-700) 20%,
            var(--teal-500) 50%,
            var(--teal-700) 80%,
            transparent 100%
        );
    }

    .split-divider::before {
        display: none;
    }

    .feature-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .section-foundation .section-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .foundation-visual {
        order: -1;
        min-height: 300px;
    }

    .visual-element {
        width: 260px;
        height: 260px;
    }

    .foundation-features li {
        align-items: center;
        text-align: center;
    }

    .section-bottom-split {
        flex-direction: column;
    }

    .foundation-visual-compact {
        margin-bottom: var(--space-lg);
    }

    .foundation-features-compact li {
        align-items: center;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 2.5rem;
        --space-4xl: 3rem;
    }

    .header {
        height: 56px;
            padding: 0 var(--space-md);
    }

    .logo-img {
        height: 28px;
    }

        /* Mobile nav toggle visible */
        .nav-toggle {
            display: flex;
        }
    
        /* Mobile nav menu */
        .header-nav {
            position: fixed;
            top: 56px;
            left: 0;
            right: 0;
            background: rgba(11, 14, 14, 0.95);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            flex-direction: column;
            padding: var(--space-lg);
            gap: 0;
            border-bottom: 1px solid var(--border-divider);
            transform: translateY(-100%);
            opacity: 0;
            pointer-events: none;
            transition: transform var(--transition-base), opacity var(--transition-base);
        }
    
        .header-nav.open {
            transform: translateY(0);
            opacity: 1;
            pointer-events: auto;
        }
    
        /* Always show nav links on mobile when menu is open */
        .header.scrolled .header-nav,
        .header-nav {
            opacity: 0;
            pointer-events: none;
        }
    
        .header-nav.open {
            opacity: 1;
            pointer-events: auto;
        }
    
        .header-nav .nav-link {
            padding: var(--space-md) 0;
            border-bottom: 1px solid var(--border-divider);
            font-size: 1rem;
        }
    
        .header-nav .nav-link:last-child {
            border-bottom: none;
        }
    .section {
        min-height: auto;
    }

    .split-panel {
        min-height: auto;
        padding: var(--space-3xl) var(--space-lg);
    }

    .panel-content {
        max-width: 100%;
    }

    .section-content {
        padding: var(--space-3xl) var(--space-lg);
    }

    .section-adaptive {
        min-height: auto;
        padding: var(--space-4xl) 0;
    }

    .section-foundation {
        min-height: auto;
    }

    .section-bottom-split {
        min-height: auto;
    }

    .foundation-visual-compact .visual-element {
        width: min(160px, 80vw);
            height: min(160px, 80vw);
    }

    .foundation-visual-compact .core {
        width: 30px;
        height: 30px;
    }

    .foundation-visual-compact .orbit-1 { width: 60px; height: 60px; }
    .foundation-visual-compact .orbit-2 { width: 100px; height: 100px; }
    .foundation-visual-compact .orbit-3 { width: 140px; height: 140px; }

    .visual-element {
        width: min(220px, 80vw);
            height: min(220px, 80vw);
    }

    .core {
        width: 40px;
        height: 40px;
    }

    .orbit-1 { width: 80px; height: 80px; }
    .orbit-2 { width: 140px; height: 140px; }
    .orbit-3 { width: 200px; height: 200px; }

    @keyframes orbit1 {
        from { transform: rotate(0deg) translateX(40px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(40px) rotate(-360deg); }
    }

    @keyframes orbit2 {
        from { transform: rotate(0deg) translateX(70px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(70px) rotate(-360deg); }
    }

    @keyframes orbit3 {
        from { transform: rotate(0deg) translateX(100px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
    }

    .node-1, .node-2 { display: none; }
    .node-3 { animation-name: orbit1; }
    .node-4 { animation-name: orbit1; animation-delay: 4s; }
    .node-5 { animation-name: orbit2; }
    .node-6 { animation-name: orbit2; animation-delay: 6s; }
/* Responsive button */
.btn-primary {
    padding: var(--space-sm) var(--space-lg);
    font-size: 1rem;
}
}

/* Small phones */
@media (max-width: 480px) {
    :root {
        --space-xl: 1.25rem;
        --space-2xl: 1.5rem;
        --space-3xl: 2rem;
        --space-4xl: 2.5rem;
    }

    .header {
        height: 52px;
        padding: 0 var(--space-sm);
    }

    .header-nav {
        top: 52px;
    }

    .hero .hero-content {
        padding: var(--space-md);
    }

    .hero-headline {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .hero .hero-tagline {
        font-size: 0.9375rem;
    }

    .btn-primary {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9375rem;
    }

    .split-panel {
        padding: var(--space-2xl) var(--space-md);
    }

    .section-content {
        padding: var(--space-2xl) var(--space-md);
    }

    .feature-card {
        padding: var(--space-lg);
    }

    .panel-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .panel-description {
        font-size: 1rem;
    }

    /* Simplify orbit animations on very small screens */
    .foundation-visual-compact .visual-element {
        width: min(140px, 70vw);
        height: min(140px, 70vw);
    }

    .foundation-visual-compact .orbit-3 {
        display: none;
    }

    .foundation-visual-compact .node-5,
    .foundation-visual-compact .node-6 {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }

    .orbit,
        .node,
        .floating-shape,
        .particle {
            animation: none;
        }
    
        .hero-bg,
        .adaptive-bg {
            animation: none;
        }
    
        .foundation-visual-compact .node-1,
        .foundation-visual-compact .node-2,
        .foundation-visual-compact .node-3,
        .foundation-visual-compact .node-4,
        .foundation-visual-compact .node-5,
        .foundation-visual-compact .node-6 {
        animation: none;
    }

        .learn-more svg,
        .btn-primary svg {
        transition: none;
    }

        .feature-card,
        .btn-primary,
        .nav-link {
            transition: none;
        }
    
        .header-nav {
            transition: none;
        }
    
        .nav-toggle-bar {
        transition: none;
    }
}

/* ========================================
   Header Navigation (for sub-pages)
   ======================================== */
.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.header.scrolled .header-nav {
    opacity: 1;
    pointer-events: auto;
}

.nav-link {
    color: var(--text-medium);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-high);
}

.nav-link.active {
    color: var(--text-primary);
}

/* Mobile Nav Toggle (Hamburger) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-high);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-pane);
    border-top: 1px solid var(--border-divider);
    padding: var(--space-xl) var(--space-xl);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-subtle);
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .footer {
        padding: var(--space-lg) var(--space-md);
    }

    .footer-content {
        font-size: 0.8125rem;
    }
}

/* Site Footer (compact) */
.site-footer {
    background: var(--neutral-900);
    border-top: 1px solid var(--border-divider);
    padding: 1rem 0;
    margin-top: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: auto 1fr 1fr 1fr;
    gap: 1rem 2rem;
    align-items: start;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    height: 22px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-social {
    color: var(--text-subtle);
    transition: color var(--transition-fast);
    width: fit-content;
    display: flex;
}
.footer-social svg {
    width: 16px;
    height: 16px;
}

.footer-social:hover {
    color: var(--teal-400);
}

.footer-heading {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-high);
    margin-bottom: 0.25rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.125rem;
}

.footer-col ul li a {
    color: var(--text-subtle);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--teal-400);
}

@media (max-width: 768px) {
    .site-footer {
        padding: 0.75rem 0;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.5rem 1rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-heading {
        font-size: 0.625rem;
        margin-bottom: 0.125rem;
    }
    .footer-col ul li a {
        font-size: 0.6875rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ========================================
   Model Zoo Page Styles
   ======================================== */
.page-model-zoo {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}
.page-model-zoo .main-content {
    padding-top: 72px;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.page-model-zoo .zoo-hero {
    flex-shrink: 0;
}
.page-model-zoo .garden-mode-bar {
    flex-shrink: 0;
}
.page-model-zoo #browseSection {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.page-model-zoo #testSection {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.page-model-zoo #browseSection > .site-footer,
.page-model-zoo #testSection > .site-footer {
    margin-top: auto;
}
.page-model-zoo #browseSection::-webkit-scrollbar,
.page-model-zoo #testSection::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.page-model-zoo #browseSection::-webkit-scrollbar-track,
.page-model-zoo #testSection::-webkit-scrollbar-track {
    background: var(--bg-panel);
}
.page-model-zoo #browseSection::-webkit-scrollbar-thumb,
.page-model-zoo #testSection::-webkit-scrollbar-thumb {
    background: var(--border-section);
    border-radius: var(--radius-full);
}
.page-model-zoo #browseSection::-webkit-scrollbar-thumb:hover,
.page-model-zoo #testSection::-webkit-scrollbar-thumb:hover {
    background: var(--text-disabled);
}

/* Hero Section */
.zoo-hero {
    position: relative;
    padding: var(--space-md) 0 var(--space-sm) 0;
    overflow: hidden;
}

.zoo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 30% 50%, rgba(57, 151, 151, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 30%, rgba(79, 184, 184, 0.06) 0%, transparent 50%);
    animation: zooHeroGlow 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes zooHeroGlow {
    0%, 100% { opacity: 0.7; filter: hue-rotate(0deg); }
    50% { opacity: 1; filter: hue-rotate(8deg); }
}

.zoo-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.zoo-hero-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    animation: zooFadeUp 0.7s ease-out;
}

.zoo-hero-accent {
    background: linear-gradient(135deg, var(--teal-300) 0%, var(--teal-500) 50%, var(--teal-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: zooGradientText 6s ease-in-out infinite;
}

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

.zoo-hero-sub {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--text-medium);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
    animation: zooFadeUp 0.7s ease-out 0.15s both;
}

@keyframes zooFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.zoo-hero-line {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--teal-400), transparent);
    border-radius: 2px;
    margin: var(--space-sm) auto 0;
    animation: zooFadeUp 0.7s ease-out 0.3s both;
}

.login-cta-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-subtle);
    font-style: italic;
}
.login-cta-inline a {
    color: var(--primary);
    text-decoration: none;
    font-style: normal;
    font-weight: 500;
}
.login-cta-inline a:hover {
    text-decoration: underline;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--text-high) 0%, var(--text-medium) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
}

/* Filters Section */
.zoo-filters {
    padding: var(--space-xl);
    background: rgba(15, 19, 19, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-divider);
    position: sticky;
    top: 72px;
    z-index: 50;
}

.filters-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-subtle);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md) var(--space-sm) calc(var(--space-md) + 28px);
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: 8px;
    color: var(--text-high);
    font-size: 0.9375rem;
    font-family: var(--font-family);
    transition: border-color var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--border-primary);
}

.search-input::placeholder {
    color: var(--text-subtle);
}

.filter-buttons {
    display: flex;
    gap: var(--space-sm);
}

.use-case-filters {
    border-left: 1px solid var(--border-divider);
    padding-left: var(--space-lg);
    margin-left: var(--space-md);
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-input);
    border-radius: 8px;
    color: var(--text-medium);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    background: rgba(57, 151, 151, 0.1);
    border-color: var(--border-primary);
    color: var(--text-high);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-700) 100%);
    border-color: var(--teal-500);
    color: var(--text-high);
    box-shadow: 0 2px 10px rgba(57, 151, 151, 0.2);
}

/* Model Grid */
.model-grid-section {
    padding: var(--space-2xl) var(--space-xl);
    background: var(--bg-app);
    position: relative;
}

.model-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--neutral-900) 0%, transparent 100%);
    pointer-events: none;
}

.model-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

/* Staggered card animations */
.model-grid .model-card {
    animation: cardFadeIn 0.5s ease forwards;
    opacity: 0;
}

.model-grid .model-card:nth-child(1) { animation-delay: 0.05s; }
.model-grid .model-card:nth-child(2) { animation-delay: 0.1s; }
.model-grid .model-card:nth-child(3) { animation-delay: 0.15s; }
.model-grid .model-card:nth-child(4) { animation-delay: 0.2s; }
.model-grid .model-card:nth-child(5) { animation-delay: 0.25s; }
.model-grid .model-card:nth-child(6) { animation-delay: 0.3s; }
.model-grid .model-card:nth-child(7) { animation-delay: 0.35s; }
.model-grid .model-card:nth-child(8) { animation-delay: 0.4s; }
.model-grid .model-card:nth-child(9) { animation-delay: 0.45s; }
.model-grid .model-card:nth-child(n+10) { animation-delay: 0.5s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Model Card */
.model-card {
    background: rgba(20, 25, 25, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(57, 151, 151, 0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.model-card:hover {
    border-color: var(--border-primary);
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(57, 151, 151, 0.1);
}

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

.model-card.team-card {
    border-left: 3px solid #3b82f6;
    background: rgba(59, 130, 246, 0.04);
}

.model-card.team-card::before {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.model-card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.model-icon {
    color: var(--icon-primary);
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(57, 151, 151, 0.1);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.model-card:hover .model-icon {
    background: rgba(57, 151, 151, 0.15);
    box-shadow: 0 0 20px rgba(57, 151, 151, 0.2);
}

.model-info {
    flex: 1;
    min-width: 0;
}

.model-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-high);
    margin-bottom: 2px;
}

.model-usecase {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-subtle);
    margin-bottom: var(--space-sm);
}

.model-badges {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.model-id {
    display: inline-block;
    font-size: 0.7rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    color: var(--text-subtle);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.model-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

.model-type-badge.detector {
    background: rgba(57, 151, 151, 0.15);
    border-color: rgba(57, 151, 151, 0.25);
    color: var(--teal-300);
}

.model-type-badge.classifier {
    background: rgba(234, 179, 8, 0.12);
    border-color: rgba(234, 179, 8, 0.25);
    color: #fbbf24;
}

.model-description {
    color: var(--text-subtle);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: var(--space-lg);
}

.model-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.expand-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-input);
    border-radius: 8px;
    color: var(--text-medium);
    font-size: 0.875rem;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.expand-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--text-subtle);
    color: var(--text-high);
}

.model-card.expanded .expand-btn {
    background: rgba(57, 151, 151, 0.1);
    border-color: rgba(57, 151, 151, 0.3);
    color: var(--teal-300);
}

.expand-icon {
    transition: transform var(--transition-fast);
}

.model-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.test-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-700) 100%);
    border: none;
    border-radius: 8px;
    color: var(--text-high);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.test-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.test-btn:hover {
    background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-600) 100%);
    box-shadow: 0 4px 15px rgba(57, 151, 151, 0.3);
    transform: translateY(-1px);
}

.test-btn:hover::before {
    left: 100%;
}

/* Model Details (expanded state) */
.model-details {
    display: none;
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-divider);
    animation: detailsSlideIn 0.3s ease;
}

@keyframes detailsSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.model-card.expanded .model-details {
    display: block;
}

.detail-section {
    margin-bottom: var(--space-lg);
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-section ul {
    list-style: none;
}

.detail-section li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-xs);
    color: var(--text-subtle);
    font-size: 0.875rem;
}

.detail-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 4px;
    height: 4px;
    background: var(--teal-500);
    border-radius: 50%;
}

.detail-section p {
    color: var(--text-subtle);
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.detail-section strong {
    color: var(--text-medium);
}

/* Label Chips */
.label-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.label-chip {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(57, 151, 151, 0.12);
    border: 1px solid rgba(57, 151, 151, 0.25);
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    color: var(--teal-300);
    white-space: nowrap;
    position: relative;
    cursor: default;
    transition: all var(--transition-fast);
}

.label-chip:hover {
    background: rgba(57, 151, 151, 0.2);
    border-color: rgba(57, 151, 151, 0.4);
}

.label-chip.has-tooltip {
    cursor: help;
}

.label-chip.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: var(--font-family);
    color: var(--text-medium);
    white-space: nowrap;
    max-width: 250px;
    white-space: normal;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.label-chip.has-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--border-card);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    z-index: 101;
}

.label-chip.has-tooltip:hover::after,
.label-chip.has-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Model Tester Page Styles
   ======================================== */
.page-model-tester .main-content {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.tester-main {
    padding: var(--space-lg) var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Legacy tester-header - kept for backwards compat but hidden by new toolbar */
.tester-header {
    display: none;
}

.tester-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
    color: var(--text-high);
}

.tester-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
}

/* Controls Section */
.tester-controls {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.control-group {
    flex: 1;
    min-width: 0;
}

.control-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: var(--space-sm);
}

.model-select {
    width: 100%;
    max-width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: 8px;
    color: var(--text-high);
    font-size: 0.9375rem;
    font-family: var(--font-family);
    cursor: pointer;
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}

.model-select:focus {
    outline: none;
    border-color: var(--border-primary);
}

.model-select option {
    background: var(--bg-card);
    color: var(--text-high);
}

.model-select optgroup {
    color: var(--text-primary);
    font-weight: 600;
}

.options-group {
    min-width: 0;
}

.options-row {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.option-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.option-label {
    font-size: 0.875rem;
    color: var(--text-subtle);
    white-space: nowrap;
}

.option-select {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: 6px;
    color: var(--text-high);
    font-size: 0.875rem;
    font-family: var(--font-family);
    cursor: pointer;
}

.option-select:focus {
    outline: none;
    border-color: var(--border-primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-subtle);
}

.checkbox-label input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-input);
    border-radius: 4px;
    transition: all var(--transition-fast);
    position: relative;
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--bg-primary);
    border-color: var(--border-primary);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid var(--text-high);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Workspace - 2 column layout */
.tester-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
    flex: 1;
    min-height: 0;
}

.tester-workspace .upload-panel {
    height: 467px;
    flex-shrink: 0;
}

.workspace-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.panel-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

/* Removed workspace-divider - run button now in upload panel */

.run-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    margin-bottom: var(--space-md);
    background: var(--bg-primary);
    border: none;
    border-radius: 8px;
    color: var(--text-high);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.run-btn:hover:not(:disabled) {
    background: var(--teal-600);
    transform: scale(1.02);
}

.run-btn:disabled {
    background: var(--neutral-700);
    color: var(--text-disabled);
    cursor: not-allowed;
}

.run-icon {
    transition: transform var(--transition-fast);
}

.run-btn:hover:not(:disabled) .run-icon {
    transform: scale(1.1);
}

/* Upload Zone */
.upload-zone {
    flex: 0 0 auto;
    height: 320px;
    border: 2px dashed var(--border-input);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.upload-zone:hover {
    border-color: var(--border-primary);
}

.upload-zone.drag-over {
    border-color: var(--border-primary);
    background: var(--hover-primary);
}

.file-input {
    display: none;
}

.upload-placeholder {
    text-align: center;
    padding: var(--space-xl);
}

.upload-icon {
    color: var(--text-subtle);
    margin-bottom: var(--space-md);
}

.upload-text {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: var(--space-xs);
}

.upload-subtext {
    font-size: 0.875rem;
    color: var(--text-subtle);
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.clear-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: 1px solid var(--border-input);
    border-radius: 6px;
    color: var(--text-medium);
    font-size: 0.875rem;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.clear-btn:hover {
    border-color: #c53030;
    color: #fc8181;
}

/* Result Zone */
.result-zone {
    flex: 0 0 auto;
    height: 320px;
    border: 2px dashed var(--border-input);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.result-placeholder {
    text-align: center;
    padding: var(--space-xl);
}

.result-icon {
    color: var(--text-subtle);
    margin-bottom: var(--space-md);
}

.result-text {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: var(--space-xs);
}

.result-subtext {
    font-size: 0.875rem;
    color: var(--text-subtle);
}

.result-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 14, 14, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-input);
    border-top-color: var(--teal-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-medium);
    font-size: 0.9375rem;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-primary);
    border: none;
    border-radius: 6px;
    color: var(--text-high);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.download-btn:hover {
    background: var(--teal-600);
}

/* Error Toast */
.error-toast {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: #742a2a;
    border: 1px solid #c53030;
    border-radius: 8px;
    color: #fc8181;
    font-size: 0.9375rem;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast-close {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #fff;
}

/* Result Image Container with Canvas Overlay */
.result-image-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    cursor: zoom-in;
}

.result-image-container .result-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.bbox-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Classification Result */
.classification-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    text-align: center;
}

.classification-label {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-high);
    margin-bottom: var(--space-sm);
}

.classification-confidence {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Results Data Panel */
.results-data {
    margin-top: var(--space-md);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    overflow: hidden;
}

.results-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-input);
    border: none;
    color: var(--text-medium);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.results-toggle:hover {
    background: var(--hover-default);
    color: var(--text-high);
}

.results-toggle .toggle-icon {
    transition: transform var(--transition-fast);
}

.results-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

.results-json {
    max-height: 200px;
    overflow-y: auto;
    background: var(--bg-pane);
    transition: max-height var(--transition-base);
}

.results-json.collapsed {
    max-height: 0;
    overflow: hidden;
}

.results-json pre {
    margin: 0;
    padding: var(--space-md);
    font-size: 0.75rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    color: var(--text-subtle);
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

/* Clickable images */
.clickable-image {
    cursor: zoom-in;
    transition: opacity var(--transition-fast);
}

.clickable-image:hover {
    opacity: 0.9;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    color: var(--text-high);
    padding: var(--space-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 2001;
}

.lightbox-close:hover {
    background: var(--bg-input);
    border-color: var(--border-primary);
}

/* ========================================
   Model Zoo & Tester Responsive
   ======================================== */
@media (max-width: 1024px) {
    .model-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

    .tester-workspace {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .tester-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .tester-toolbar-left {
        flex-wrap: wrap;
        width: 100%;
    }

    .toolbar-select {
        min-width: 200px;
        flex: 1;
    }

    .tester-toolbar-right {
        width: 100%;
        justify-content: flex-start;
    }

    .upload-actions .run-btn {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .zoo-filters {
        top: 60px;
    }

    .filters-content {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .filter-buttons {
        justify-content: center;
    }

    .use-case-filters {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        border-top: 1px solid var(--border-divider);
        padding-top: var(--space-sm);
        margin-top: var(--space-sm);
    }

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

        .model-grid-section {
            padding: var(--space-lg) var(--space-md);
        }
    
        .model-card-actions {
            flex-direction: column;
            align-items: stretch;
        }
    
        .model-card-actions .expand-btn,
        .model-card-actions .test-btn {
            width: 100%;
            justify-content: center;
        }
    /* Legacy tester-controls removed - now using toolbar */

    .options-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-nav {
        gap: var(--space-md);
    }

    .nav-link {
        font-size: 0.875rem;
    }
}

/* Sub-page header nav at 480px */
@media (max-width: 480px) {

    .page-adaptive .header-nav,
    .page-model-zoo .header-nav,
    .page-model-tester .header-nav,
    .page-pipeline-builder .header-nav {
        gap: var(--space-sm);
    }

    .page-adaptive .nav-link,
    .page-model-zoo .nav-link,
    .page-model-tester .nav-link,
    .page-pipeline-builder .nav-link {
        font-size: 0.75rem;
        padding: 4px 6px;
    }
}
/* ========================================
   DESIGN ENHANCEMENTS - Advanced Effects
   ======================================== */

/* ----------------------------------------
   1. Hero Particle System
   ---------------------------------------- */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--teal-500);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 14s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; animation-duration: 16s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; animation-duration: 13s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; animation-duration: 15s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 17s; }
.particle:nth-child(7) { left: 70%; animation-delay: 6s; animation-duration: 14s; }
.particle:nth-child(8) { left: 80%; animation-delay: 7s; animation-duration: 16s; }
.particle:nth-child(9) { left: 90%; animation-delay: 8s; animation-duration: 12s; }
.particle:nth-child(10) { left: 15%; animation-delay: 9s; animation-duration: 18s; }
.particle:nth-child(11) { left: 45%; animation-delay: 10s; animation-duration: 13s; }
.particle:nth-child(12) { left: 75%; animation-delay: 11s; animation-duration: 15s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* ----------------------------------------
   2. Mouse Tracking Glow
   ---------------------------------------- */
.hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    --mouse-x: 50%;
    --mouse-y: 50%;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        rgba(57, 151, 151, 0.15),
        transparent 40%
    );
}

/* ----------------------------------------
   3. Animated Gradient Background
   ---------------------------------------- */
.animated-gradient {
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(57, 151, 151, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 20% 80%, rgba(79, 184, 184, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 80% 20%, rgba(45, 122, 122, 0.08) 0%, transparent 50%);
    animation: gradientShift 12s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 0.8;
        filter: hue-rotate(0deg);
    }
    33% {
        opacity: 1;
        filter: hue-rotate(10deg);
    }
    66% {
        opacity: 0.9;
        filter: hue-rotate(-10deg);
    }
}

/* ----------------------------------------
   4. Text Reveal Animations
   ---------------------------------------- */
.text-reveal .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: wordReveal 0.6s ease forwards;
}

.text-reveal .word:nth-child(1) { animation-delay: 0.1s; }
.text-reveal .word:nth-child(2) { animation-delay: 0.2s; }
.text-reveal .hero-headline-accent .word:nth-child(1) { animation-delay: 0.4s; }
.text-reveal .hero-headline-accent .word:nth-child(2) { animation-delay: 0.5s; }

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-reveal-delayed {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeReveal 0.8s ease forwards 0.6s;
}

.text-reveal-delayed-2 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeReveal 0.8s ease forwards 0.9s;
}

@keyframes fadeReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------
   5. Glassmorphism Effects
   ---------------------------------------- */
.glass-panel {
    background: rgba(20, 25, 25, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(57, 151, 151, 0.1);
}

.glass-card {
    background: rgba(20, 25, 25, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(57, 151, 151, 0.15);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(57, 151, 151, 0.1) 0%,
        transparent 50%,
        rgba(57, 151, 151, 0.05) 100%
    );
    pointer-events: none;
}

/* ----------------------------------------
   6. Card Hover Effects (Simplified)
   ---------------------------------------- */
.feature-card.glass-card {
    background: rgba(20, 25, 25, 0.85);
    transition: all var(--transition-base);
}

.feature-card.glass-card:hover {
    border-color: rgba(57, 151, 151, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ----------------------------------------
   7. Icon Animations
   ---------------------------------------- */
.icon-animated {
    transition: transform 0.3s ease, color 0.3s ease;
}

.feature-card:hover .icon-animated {
    transform: scale(1.1) rotate(5deg);
    color: var(--teal-400);
}

.icon-animated svg {
    filter: drop-shadow(0 0 8px rgba(57, 151, 151, 0));
    transition: filter 0.3s ease;
}

.feature-card:hover .icon-animated svg {
    filter: drop-shadow(0 0 8px rgba(57, 151, 151, 0.5));
}

/* ----------------------------------------
   9. Button Ripple Effect
   ---------------------------------------- */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Button glow effect */
.btn-primary {
    position: relative;
    box-shadow:
        0 4px 15px rgba(57, 151, 151, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--teal-400), var(--teal-700));
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    box-shadow:
        0 8px 30px rgba(57, 151, 151, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ----------------------------------------
   10. Link Underline Animation
   ---------------------------------------- */
.learn-more {
    position: relative;
}

.learn-more::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal-500), var(--teal-300));
    transition: width 0.3s ease;
}

.learn-more:hover::after {
    width: calc(100% - 24px);
}

/* ----------------------------------------
   11. Floating Shapes Background
   ---------------------------------------- */
.mesh-gradient {
    position: relative;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(57, 151, 151, 0.3);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(79, 184, 184, 0.25);
    top: 50%;
    right: 15%;
    animation-delay: -7s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: rgba(45, 122, 122, 0.3);
    bottom: 10%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(20px, 10px) scale(1.02);
    }
}

/* ----------------------------------------
   12. Section Gradient Divider
   ---------------------------------------- */
.section-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--teal-800) 20%,
        var(--teal-500) 50%,
        var(--teal-800) 80%,
        transparent 100%
    );
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--teal-500);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--teal-500), 0 0 40px var(--teal-500);
}

/* ----------------------------------------
   13. Enhanced Orbital Visualization
   ---------------------------------------- */
.orbit-trail {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px dashed rgba(57, 151, 151, 0.2);
}

.orbit-trail-1 {
    width: 130px;
    height: 130px;
    animation: orbitTrailPulse 3s ease-in-out infinite;
}

.orbit-trail-2 {
    width: 210px;
    height: 210px;
    animation: orbitTrailPulse 3s ease-in-out infinite 0.5s;
}

.orbit-trail-3 {
    width: 290px;
    height: 290px;
    animation: orbitTrailPulse 3s ease-in-out infinite 1s;
}

@keyframes orbitTrailPulse {
    0%, 100% {
        opacity: 0.3;
        border-color: rgba(57, 151, 151, 0.15);
    }
    50% {
        opacity: 0.6;
        border-color: rgba(57, 151, 151, 0.3);
    }
}

/* Core enhancement */
.core {
    position: relative;
}

.core-pulse {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: rgba(57, 151, 151, 0.3);
    animation: corePulseEffect 2s ease-in-out infinite;
}

@keyframes corePulseEffect {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Node trails */
.node {
    position: relative;
}

.node-trail {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, var(--teal-500) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.4;
    animation: nodeTrailPulse 1.5s ease-in-out infinite;
}

@keyframes nodeTrailPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Additional nodes */
.node-7 {
    top: 50%;
    left: calc(50% + 80px);
    transform: translate(-50%, -50%);
    animation: orbit1-5 10s linear infinite;
    width: 8px;
    height: 8px;
    background: var(--teal-400);
}

.node-8 {
    top: 50%;
    left: calc(50% - 120px);
    transform: translate(-50%, -50%);
    animation: orbit2-5 14s linear infinite 3s;
    width: 8px;
    height: 8px;
    background: var(--teal-400);
}

@keyframes orbit1-5 {
    from { transform: rotate(0deg) translateX(80px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
}

@keyframes orbit2-5 {
    from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

/* ----------------------------------------
   14. Headline Glow Effect
   ---------------------------------------- */
.hero-headline {
    text-shadow: 0 0 60px rgba(57, 151, 151, 0.3);
}

.hero-headline-accent {
    text-shadow: 0 0 40px rgba(57, 151, 151, 0.5);
}

.section-title {
    text-shadow: 0 0 40px rgba(57, 151, 151, 0.2);
}

/* ----------------------------------------
   15. Staggered Children Animation
   ---------------------------------------- */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-children.visible > *:nth-child(1) { animation: staggerIn 0.5s ease forwards 0.1s; }
.stagger-children.visible > *:nth-child(2) { animation: staggerIn 0.5s ease forwards 0.2s; }
.stagger-children.visible > *:nth-child(3) { animation: staggerIn 0.5s ease forwards 0.3s; }
.stagger-children.visible > *:nth-child(4) { animation: staggerIn 0.5s ease forwards 0.4s; }
.stagger-children.visible > *:nth-child(5) { animation: staggerIn 0.5s ease forwards 0.5s; }
.stagger-children.visible > *:nth-child(6) { animation: staggerIn 0.5s ease forwards 0.6s; }

@keyframes staggerIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------
   16. Enhanced Hover States
   ---------------------------------------- */
.panel-icon {
    transition: transform 0.3s ease;
}

.panel-content:hover .panel-icon {
    transform: scale(1.1);
}

.panel-icon svg {
    filter: drop-shadow(0 0 12px rgba(57, 151, 151, 0.4));
}

/* Feature list item hover */
.feature-list li {
    transition: transform 0.2s ease, color 0.2s ease;
}

.feature-list li:hover {
    transform: translateX(8px);
    color: var(--text-medium);
}

.feature-list li::before {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-list li:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--teal-500);
}

/* Foundation features hover */
.foundation-features li {
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.foundation-features li:hover {
    background: rgba(57, 151, 151, 0.05);
    padding-left: var(--space-md);
}

/* ----------------------------------------
   17. Responsive Enhancements
   ---------------------------------------- */
@media (max-width: 1024px) {
    .floating-shape {
        filter: blur(60px);
    }

    .shape-1 { width: 300px; height: 300px; }
    .shape-2 { width: 200px; height: 200px; }
    .shape-3 { width: 250px; height: 250px; }
}

@media (max-width: 640px) {
    .particles {
        display: none;
    }

    .hero-glow {
        display: none;
    }

    .floating-shape {
        filter: blur(40px);
        opacity: 0.3;
    }

    .shape-1 { width: 200px; height: 200px; }
    .shape-2 { width: 150px; height: 150px; }
    .shape-3 { width: 180px; height: 180px; }

    .orbit-trail {
        display: none;
    }

    .node-7, .node-8 {
        display: none;
    }

    .core-pulse {
        display: none;
    }

    .node-trail {
        display: none;
    }
}

/* ----------------------------------------
   18. Reduced Motion Preferences
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .particle {
        animation: none;
        display: none;
    }

    .hero-glow {
        display: none;
    }

    .animated-gradient {
        animation: none;
    }

    .text-reveal .word {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .text-reveal-delayed,
    .text-reveal-delayed-2 {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .icon-animated {
        transition: none;
    }

    .btn-ripple .ripple {
        display: none;
    }

    .floating-shape {
        animation: none;
    }

    .orbit-trail {
        animation: none;
    }

    .core-pulse {
        animation: none;
        display: none;
    }

    .node-trail {
        animation: none;
        display: none;
    }

    .stagger-children > * {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* === Adaptive Models Section === */
.adaptive-models-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.adaptive-models-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.adaptive-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.create-adaptive-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.create-adaptive-link:hover {
    text-decoration: underline;
}

.adaptive-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.adaptive-model-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.adaptive-model-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.adaptive-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.adaptive-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.adaptive-icon svg {
    color: white;
}

.adaptive-info {
    flex: 1;
}

.adaptive-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.adaptive-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white;
}

.adaptive-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.adaptive-classes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.class-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
}

.adaptive-meta {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.adaptive-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.adaptive-actions .test-btn {
    flex: 1;
    justify-content: center;
}

.adaptive-actions .delete-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.adaptive-actions .delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 1280px;
    margin: 0 auto 1.5rem;
    padding: 0 2rem;
}

/* === Delete Modal === */
.delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.delete-modal-overlay.active {
    display: flex;
}

.delete-modal {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
}

.delete-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.delete-modal-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.delete-confirm-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.delete-confirm-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.delete-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.cancel-btn {
    padding: 0.625rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.confirm-delete-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 8px;
    background: #ef4444;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.confirm-delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.confirm-delete-btn:not(:disabled):hover {
    background: #dc2626;
}

/* === Adaptive Model Info in Tester === */
/* === Selected Model Card (Model Tester) === */
.selected-model-card {
    margin-top: 1rem;
    padding: 1.25rem;
    background: rgba(20, 25, 25, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    animation: cardSlideIn 0.25s ease;
}

@keyframes cardSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.selected-model-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.selected-model-header:hover {
    opacity: 0.85;
}

.selected-model-toggle {
    background: none;
    border: none;
    color: var(--text-subtle);
    padding: 0.25rem;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.selected-model-card.collapsed .selected-model-toggle {
    transform: rotate(-90deg);
}

.selected-model-content {
    margin-top: 0.75rem;
    overflow: hidden;
    transition: all 0.25s ease;
}

.selected-model-card.collapsed .selected-model-content {
    display: none;
}

.selected-model-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(57, 151, 151, 0.1);
    border-radius: 10px;
    color: var(--teal-400);
    flex-shrink: 0;
}

.selected-model-icon.adaptive {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
}

.selected-model-info {
    flex: 1;
    min-width: 0;
}

.selected-model-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-high);
    margin: 0 0 2px 0;
}

.selected-model-usecase {
    display: block;
    font-size: 0.8rem;
    color: var(--text-subtle);
    margin-bottom: 0.5rem;
}

.selected-model-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.selected-model-description {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
}

.selected-model-io {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-subtle);
    margin-bottom: 1rem;
}

.selected-model-io strong {
    color: var(--text-medium);
}

.selected-model-labels {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-divider);
}

.selected-model-labels-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.selected-model-card .label-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.selected-model-card .label-chip {
    font-size: 0.7rem;
    padding: 2px 8px;
}

.class-chip {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
}

/* === Score Bars for Classification === */
.score-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.score-row.top-score {
    font-weight: 600;
}

.score-label {
    width: 100px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.score-row.top-score .score-label {
    color: var(--text-primary);
}

.score-bar-container {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.score-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.score-row.top-score .score-bar {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.score-value {
    width: 50px;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-align: right;
    flex-shrink: 0;
}

.score-row.top-score .score-value {
    color: var(--text-primary);
}

/* === Adaptive Empty State === */
.adaptive-empty-state {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-xl);
    text-align: center;
}

.adaptive-empty-state.hidden {
    display: none;
}

.empty-state-content {
    max-width: 400px;
    margin: 0 auto;
}

.empty-state-icon {
    color: var(--text-subtle);
    margin-bottom: var(--space-xl);
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-high);
    margin-bottom: var(--space-md);
}

.empty-state-text {
    color: var(--text-subtle);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.empty-state-btn {
    display: inline-flex;
    font-size: 1rem;
}

/* === Adaptive Badge in Model Cards === */
.model-type-badge.adaptive {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.model-type-badge.fast {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.model-type-badge.accurate {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.model-card.adaptive-card {
    position: relative;
    border-color: rgba(139, 92, 246, 0.2);
}

.model-card.adaptive-card::before {
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

.model-card.adaptive-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(139, 92, 246, 0.15);
}

/* Adaptive card icon with purple theme */
.model-card.adaptive-card .model-icon {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.1);
}

.model-card.adaptive-card:hover .model-icon {
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

/* Delete button positioned top-right for adaptive cards */
.model-card.adaptive-card > .delete-btn {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0;
    z-index: 1;
}

.model-card.adaptive-card:hover > .delete-btn {
    opacity: 1;
}

.model-card.adaptive-card > .delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}


/* Match production card height - ensure description has consistent height */
.model-card.adaptive-card .model-description {
    min-height: 3em;
}


/* Disabled state for interactive elements */
.upload-zone.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.palette-item.disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* ========================================
   Tools Dropdown Navigation
   ======================================== */
.nav-tools-toggle {
    padding: 0.5rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-tools-toggle::after {
    display: none; /* Hide default Bootstrap caret */
}

.nav-tools-toggle svg {
    color: var(--text-medium);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav-tools-toggle:hover svg,
.nav-tools-toggle.show svg {
    color: var(--text-high);
}


/* Dark dropdown menu styling */
.dropdown-menu-dark {
    background: rgba(20, 25, 25, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 0.5rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    min-width: 160px;
}

.dropdown-menu-dark .dropdown-item {
    color: var(--text-medium);
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.dropdown-menu-dark .dropdown-item:hover,
.dropdown-menu-dark .dropdown-item:focus {
    background: rgba(57, 151, 151, 0.15);
    color: var(--text-high);
}

.dropdown-menu-dark .dropdown-item:active {
    background: rgba(57, 151, 151, 0.25);
}

/* ========================================
   Adaptive AI - Dual Links Layout
   ======================================== */
.adaptive-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .adaptive-links {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }
}

/* ========================================
   Adaptive About Page
   ======================================== */
.page-adaptive-about {
    padding-top: 80px;
}

.adaptive-about-page .container {
    max-width: 720px;
    padding: var(--space-3xl) var(--space-md) var(--space-4xl);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-subtle);
    font-size: 0.875rem;
    margin-bottom: var(--space-2xl);
    transition: color var(--transition-fast);
}

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

.about-header {
    margin-bottom: var(--space-3xl);
}

.about-header .lead {
    margin-bottom: var(--space-lg);
}

.about-intro {
    font-size: 1.0625rem;
    line-height: 1.7;
}

.about-sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.about-section {
    padding: var(--space-xl);
    border-radius: 12px;
}

.about-section h2 {
    margin-bottom: var(--space-sm);
}

.about-section p {
    margin: 0;
    line-height: 1.7;
}

.about-cta {
    text-align: center;
}

/* ========================================
   Benchmark Section
   ======================================== */
.section-benchmark {
    position: relative;
    background: var(--bg-app);
    padding: var(--space-4xl) 0;
}

.benchmark-narrative {
    max-width: 680px;
    margin: 0 auto var(--space-3xl);
    color: var(--text-medium);
    font-size: 1.125rem;
    line-height: 1.7;
}

.benchmark-image-frame {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--space-lg);
    background: rgba(20, 25, 25, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(57, 151, 151, 0.15);
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(57, 151, 151, 0.06);
}

.benchmark-image-frame img {
    width: 100%;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .section-benchmark {
        padding: var(--space-3xl) 0;
    }

    .benchmark-narrative {
        font-size: 1rem;
    }

    .benchmark-image-frame {
        padding: var(--space-md);
        border-radius: 12px;
    }
}

/* About page mobile */
@media (max-width: 767px) {
    .page-adaptive-about { padding-top: 60px; }
    .about-header h1 { font-size: 1.75rem; }
    .about-intro { font-size: 0.9375rem; }
    .about-section { padding: 1.25rem; }
    .about-video video { border-radius: 8px; }
}
@media (max-width: 480px) {
    .about-header h1 { font-size: 1.5rem; }
    .adaptive-about-page .container { padding-left: var(--space-sm); padding-right: var(--space-sm); }
}

/* ========================================
   Garden Mode Toggle (Browse / Test)
   ======================================== */

.garden-mode-bar {
    padding: 10px 0;
    background: rgba(15, 19, 19, 0.92);
    border-bottom: 1px solid var(--border-divider);
}

.mode-toggle {
    display: inline-flex;
    background: var(--neutral-800);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.mode-btn {
    padding: 6px 18px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-subtle);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.mode-btn:hover {
    color: var(--text-high);
}

.mode-btn.active {
    background: var(--teal-700);
    color: #fff;
    box-shadow: 0 0 12px rgba(57, 151, 151, 0.3);
}

.active-model-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-medium);
    background: rgba(57, 151, 151, 0.1);
    border: 1px solid rgba(57, 151, 151, 0.2);
    border-radius: 8px;
    padding: 5px 12px;
}

.active-model-indicator strong {
    color: var(--teal-300);
    font-weight: 600;
}

.indicator-close {
    background: none;
    border: none;
    color: var(--text-subtle);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 2px;
    margin-left: 4px;
    transition: color 0.15s ease;
}

.indicator-close:hover {
    color: var(--text-high);
}

/* Test section layout */
#testSection .tester-main {
    padding-top: var(--space-lg);
}

/* Tester toolbar styled as filter bar (matching .zoo-filters) */
#testSection .tester-filter-bar {
    background: rgba(15, 19, 19, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-divider);
    padding: 1rem 0;
}
#testSection .tester-filter-bar .tester-toolbar {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .garden-mode-bar .container {
        flex-wrap: wrap;
    }

    .mode-btn {
        padding: 5px 14px;
        font-size: 12px;
    }

    .active-model-indicator {
        font-size: 12px;
        padding: 4px 10px;
    }

    #testSection .tester-main {
        padding-top: var(--space-md);
    }
}

@media (max-width: 480px) {
    #testSection .tester-main {
        padding-top: var(--space-sm);
    }

    .mode-toggle {
        gap: 1px;
    }
    .mode-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    .active-model-indicator {
        font-size: 11px;
        padding: 3px 8px;
        gap: 4px;
    }
    .garden-mode-bar .inline-quota {
        font-size: 10px;
    }
}

/* ========================================
   Benchmark Panels (inside Adaptive AI)
   ======================================== */

.benchmark-heading {
    margin-bottom: var(--space-lg);
}

.benchmark-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    max-width: 100%;
    margin: 0 auto var(--space-lg);
}

.benchmark-panel {
    padding: var(--space-2xl) var(--space-xl) var(--space-xl);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

/* Ambient glow behind each panel */
.benchmark-panel::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(57, 151, 151, 0.15) 0%, transparent 50%, rgba(57, 151, 151, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.benchmark-panel:hover {
    border-color: rgba(57, 151, 151, 0.4);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.3),
        0 0 80px rgba(57, 151, 151, 0.08),
        inset 0 1px 0 rgba(57, 151, 151, 0.1);
    transform: translateY(-2px);
}

.benchmark-panel:hover::after {
    opacity: 1;
}

.benchmark-panel > * {
    position: relative;
    z-index: 1;
}

.benchmark-panel-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: var(--space-xl);
}

.benchmark-icon {
    color: var(--teal-300);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(57, 151, 151, 0.15) 0%, rgba(57, 151, 151, 0.05) 100%);
    border: 1px solid rgba(57, 151, 151, 0.2);
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(57, 151, 151, 0.1);
}

.benchmark-panel-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-high);
    margin: 0;
    letter-spacing: -0.01em;
}

.benchmark-bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.benchmark-bar-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benchmark-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.benchmark-bar-name {
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.benchmark-bar-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Montserrat', var(--font-family-sans-serif);
    letter-spacing: -0.03em;
    min-width: 90px;
    text-align: right;
    background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Adaptive AI values get teal gradient */
.benchmark-bar-group:first-child .benchmark-bar-value {
    background: linear-gradient(135deg, var(--teal-200) 0%, var(--teal-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benchmark-zero {
    background: linear-gradient(135deg, var(--teal-200) 0%, var(--teal-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(57, 151, 151, 0.5));
}

.benchmark-bar-track {
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.benchmark-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 14px;
    transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.benchmark-bar-fill.bar-adaptive {
    background: linear-gradient(90deg, var(--teal-700) 0%, var(--teal-500) 40%, var(--teal-300) 100%);
    box-shadow:
        0 0 20px rgba(57, 151, 151, 0.35),
        0 0 40px rgba(57, 151, 151, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Shimmer sweep on adaptive bars */
.benchmark-bar-fill.bar-adaptive::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: barShimmer 3s ease-in-out 2.2s infinite;
}

@keyframes barShimmer {
    0%   { left: -60%; }
    40%  { left: 120%; }
    100% { left: 120%; }
}

.benchmark-bar-fill.bar-competitor {
    background: linear-gradient(90deg, var(--neutral-750) 0%, var(--neutral-600) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.benchmark-bar-fill.bar-zero {
    width: 0 !important;
    background: none;
    box-shadow: none;
}

.benchmark-bar-fill.bar-zero::after {
    content: '';
    position: absolute;
    left: 0;
    top: -4px;
    bottom: -4px;
    width: 4px;
    border-radius: 4px;
    background: var(--teal-300);
    box-shadow: 0 0 16px rgba(57, 151, 151, 0.7), 0 0 32px rgba(57, 151, 151, 0.3);
    animation: zeroPulse 2s ease-in-out infinite;
}

@keyframes zeroPulse {
    0%, 100% { box-shadow: 0 0 16px rgba(57, 151, 151, 0.7), 0 0 32px rgba(57, 151, 151, 0.3); }
    50%      { box-shadow: 0 0 24px rgba(57, 151, 151, 0.9), 0 0 48px rgba(57, 151, 151, 0.5); }
}

.benchmark-footnote {
    margin-top: var(--space-xl);
    margin-bottom: 0;
    font-size: 0.75rem;
    color: var(--text-subtle);
    line-height: 1.5;
}

.benchmark-summary {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: var(--space-sm);
}

/* Benchmark responsive */
@media (max-width: 768px) {
    .benchmark-panels {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .benchmark-bar-value {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .benchmark-panel {
        padding: var(--space-lg) var(--space-md) var(--space-md);
    }

    .benchmark-bar-value {
        font-size: 1.4rem;
    }

    .benchmark-panel-title {
        font-size: 0.95rem;
    }

    .benchmark-bar-track {
        height: 12px;
    }
}
