/* ═══════════════════════════════════════════════════════════════════════════
   TASTE STANDARD — METALLIC EDITION
   Config: Creativity 8 | Density 4 | Variance 8 | Motion 6
   Vibe: Soft Structuralism + Metallic Chrome
   Layout: Asymmetric Bento
   Features: Magnetic Scroll + Behind-Reveal Parallax
   Colors: Chrome/Silver metallic palette
═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════════════════════════════════
   METALLIC COLOR SYSTEM
   Chrome/Silver palette with warm contrast
═══════════════════════════════════════════════════════════════════════════ */
:root {
    /* Canvas — Metallic Silver base */
    --canvas: #F0F2F5;
    --canvas-warm: #F5F3F0;
    
    /* Surface — Pure chrome white */
    --surface: #FFFFFF;
    --surface-metallic: #E8EAED;
    
    /* Ink — Zinc-950 depth */
    --ink-primary: #18181B;
    --ink-secondary: #71717A;
    --ink-tertiary: #94A3B8;
    
    /* METALLIC ACCENTS — Chrome/Silver spectrum */
    --chrome-light: #E2E4E9;
    --chrome-mid: #C8CBD2;
    --chrome-dark: #9EA3AE;
    --chrome-border: rgba(180, 184, 195, 0.4);
    
    /* Silver gradient stops */
    --metallic-start: #E8EAED;
    --metallic-mid: #D4D7DE;
    --metallic-end: #B8BDC8;
    
    /* Warm contrast accent — Amber/Gold */
    --accent: #B45309;
    --accent-light: #D97706;
    --accent-glow: rgba(180, 83, 9, 0.12);
    --accent-subtle: rgba(180, 83, 9, 0.05);
    
    /* Borders — Metallic Whisper */
    --border: rgba(180, 184, 195, 0.45);
    --border-strong: rgba(150, 155, 168, 0.6);
    
    /* Shadows — Diffused Metallic */
    --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 30px 60px -20px rgba(0, 0, 0, 0.1);
    --shadow-metallic: 
        inset 0 1px 0 rgba(255,255,255,0.8),
        inset 0 -1px 0 rgba(0,0,0,0.05),
        0 20px 40px -15px rgba(0, 0, 0, 0.06);
    
    /* Typography */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spring Physics */
    --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode — Brushed Steel */
[data-theme="dark"] {
    --canvas: #0C0D0F;
    --canvas-warm: #111215;
    --surface: #18181C;
    --surface-metallic: #222228;
    --ink-primary: #F4F4F5;
    --ink-secondary: #A1A1AA;
    --ink-tertiary: #71717A;
    --chrome-light: #2A2A32;
    --chrome-mid: #3A3A44;
    --chrome-dark: #4A4A56;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.1);
    --accent: #F59E0B;
    --accent-light: #FBBF24;
    --accent-glow: rgba(245, 158, 11, 0.15);
    --accent-subtle: rgba(245, 158, 11, 0.06);
    --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
    --shadow-metallic:
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 -1px 0 rgba(0,0,0,0.2),
        0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-primary);
    background: var(--canvas);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   METALLIC TEXTURE — Chrome/Brushed Metal surfaces
═══════════════════════════════════════════════════════════════════════════ */
.metallic-surface {
    background: linear-gradient(
        145deg,
        var(--surface) 0%,
        var(--chrome-light) 50%,
        var(--surface) 100%
    );
    box-shadow: var(--shadow-metallic);
}

.metallic-card {
    background: linear-gradient(
        160deg,
        rgba(255,255,255,0.9) 0%,
        rgba(232,234,237,0.6) 40%,
        rgba(255,255,255,0.8) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-metallic);
    position: relative;
}

.metallic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    border-radius: inherit;
}

[data-theme="dark"] .metallic-card {
    background: linear-gradient(
        160deg,
        rgba(40,40,46,0.9) 0%,
        rgba(30,30,36,0.7) 40%,
        rgba(38,38,44,0.85) 100%
    );
}

[data-theme="dark"] .metallic-card::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
}

/* Chrome border accent */
.chrome-border {
    border: 1px solid var(--border);
    position: relative;
}

.chrome-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255,255,255,0.4), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY — Outfit, clamp scaling, track-tight
═══════════════════════════════════════════════════════════════════════════ */
.display {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.display-xl {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.04em;
}

.heading-lg {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.heading-md {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 600;
    line-height: 1.25;
}

.body-lg {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--ink-secondary);
}

.body-md {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-secondary);
}

.overline {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION — Floating pill, detached from top
═══════════════════════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.625rem 0.5rem 1.25rem;
    background: rgba(240, 242, 245, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 100px;
    box-shadow: var(--shadow-card);
}

[data-theme="dark"] .nav {
    background: rgba(24, 24, 28, 0.88);
}

.nav-brand {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    padding-right: 1rem;
    margin-right: 0.5rem;
    border-right: 1px solid var(--border);
}

.nav-brand span { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-secondary);
    padding: 0.5rem 0.875rem;
    border-radius: 100px;
    transition: color 0.35s var(--ease-spring), background-color 0.35s var(--ease-spring), transform 0.35s var(--ease-spring);
}

.nav-link:hover {
    color: var(--ink-primary);
    background: var(--accent-subtle);
}

.nav-link.active {
    color: var(--accent);
    background: var(--accent-glow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.75rem;
    margin-left: 0.5rem;
    border-left: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS — Flat, scale(0.98) active, Button-in-Button
═══════════════════════════════════════════════════════════════════════════ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--ink-primary);
    color: var(--surface);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem 0.75rem 1.5rem;
    border-radius: 100px;
    transition: background-color 0.4s var(--ease-spring), transform 0.4s var(--ease-spring);
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: scale(0.98) translateY(0);
}

.btn-text { margin-right: 0.75rem; }

/* Button-in-Button — nested icon in circle */
.btn-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s var(--ease-spring), background-color 0.4s var(--ease-spring);
}

.btn-primary:hover .btn-icon {
    transform: translate(2px, -2px);
    background: rgba(255, 255, 255, 0.25);
}

.btn-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Ghost button */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: transparent;
    color: var(--ink-primary);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: border-color 0.35s var(--ease-spring), background-color 0.35s var(--ease-spring), transform 0.35s var(--ease-spring);
}

.btn-ghost:hover {
    border-color: var(--ink-primary);
    background: var(--surface);
    transform: translateY(-2px);
}

.btn-ghost:active { transform: scale(0.98) translateY(0); }

/* Theme Toggle */
.theme-toggle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: border-color 0.3s var(--ease-spring), transform 0.3s var(--ease-spring);
}

.theme-toggle:hover {
    border-color: var(--border-strong);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    stroke: var(--ink-secondary);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .moon { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO — Asymmetric, NO centered, NO overlapping
═══════════════════════════════════════════════════════════════════════════ */
.hero {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
}

/* Metallic mesh background */
.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(180,183,195,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(180,83,9,0.04) 0%, transparent 50%),
        var(--canvas);
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(7rem, 12vw, 11rem) clamp(2rem, 5vw, 5rem) 4rem clamp(2rem, 5vw, 5rem);
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    border-radius: 100px;
    width: fit-content;
    margin-bottom: 1.5rem;
}

.hero-title {
    margin-bottom: 1.75rem;
}

.hero-title .line { display: block; }
.hero-title .accent { color: var(--accent); }
.hero-title .chrome { 
    color: var(--chrome-dark);
    background: linear-gradient(135deg, var(--chrome-mid) 0%, var(--chrome-dark) 50%, var(--chrome-mid) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    color: var(--ink-secondary);
    max-width: 48ch;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.hero-actions { display: flex; align-items: center; gap: 1.25rem; }

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS — 2.5rem radius, Diffused shadow, metallic finish
═══════════════════════════════════════════════════════════════════════════ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring), border-color 0.5s var(--ease-spring);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-strong);
}

/* Double-Bezel */
.card-bezel {
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(232,234,237,0.7));
    border: 1px solid var(--border);
    border-radius: 2.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-metallic);
}

[data-theme="dark"] .card-bezel {
    background: linear-gradient(145deg, rgba(40,40,46,0.95), rgba(30,30,36,0.8));
}

.card-inner {
    background: var(--canvas);
    border-radius: calc(2.5rem - 0.75rem);
    padding: 2rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.card-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-glow);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: background-color 0.4s var(--ease-spring);
}

.card:hover .card-icon { background: var(--accent); }

.card:hover .card-icon svg { stroke: white; }

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.4s var(--ease-spring);
}

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--ink-secondary); font-size: 0.9375rem; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag { 
    font-size: 0.75rem; 
    font-weight: 500; 
    background: var(--canvas); 
    color: var(--ink-secondary); 
    padding: 0.375rem 0.75rem; 
    border-radius: 6px;
    border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BENTO GRID — Asymmetric, NO equal 3-col, Grid-First
═══════════════════════════════════════════════════════════════════════════ */
.section {
    padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 4vw, 5rem);
    max-width: 1400px;
    margin: 0 auto;
}

.section-full {
    padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 4vw, 5rem);
}

.section-header { margin-bottom: 3rem; }
.section-header .overline { margin-bottom: 0.75rem; }

.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(120px, auto);
    gap: 1.5rem;
}

/* Bento asymmetric sizes — varied col-spans */
.bento-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring), border-color 0.5s var(--ease-spring);
}

.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-strong);
}

.bento-item:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.bento-item:nth-child(2) { grid-column: span 4; }
.bento-item:nth-child(3) { grid-column: span 3; }
.bento-item:nth-child(4) { grid-column: span 7; grid-row: span 2; }
.bento-item:nth-child(5) { grid-column: span 5; }
.bento-item:nth-child(6) { grid-column: span 4; grid-row: span 2; }
.bento-item:nth-child(7) { grid-column: span 8; }

.bento-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-glow);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: background-color 0.4s var(--ease-spring);
}

.bento-item:hover .bento-icon { background: var(--accent); }
.bento-item:hover .bento-icon svg { stroke: white; }

.bento-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
    transition: stroke 0.4s var(--ease-spring);
}

.bento-item h3 { margin-bottom: 0.5rem; }
.bento-item p { color: var(--ink-secondary); font-size: 0.9375rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   PARALLAX REVEAL SECTIONS — Content reveals from behind foreground
═══════════════════════════════════════════════════════════════════════════ */
.reveal-section {
    position: relative;
    overflow: hidden;
}

/* Foreground text layer — stays fixed/relative */
.reveal-foreground {
    position: relative;
    z-index: 3;
    background: var(--canvas);
}

/* Background content — moves at different speed */
.reveal-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.reveal-bg-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 3rem;
    padding: 3rem;
    box-shadow: var(--shadow-hover);
    opacity: 0.3;
    transform: scale(0.85);
    transition: transform 0.1s linear, opacity 0.1s linear;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TICKER — Infinite scroll
═══════════════════════════════════════════════════════════════════════════ */
.ticker {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    overflow: hidden;
    background: var(--surface);
}

.ticker-track {
    display: flex;
    animation: ticker 40s linear infinite;
    width: max-content;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 2.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-secondary);
    white-space: nowrap;
}

.ticker-dot {
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ═══════════════════════════════════════════════════════════════════════════
   STATS — 4-column grid, metallic dividers
═══════════════════════════════════════════════════════════════════════════ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--border);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-box {
    background: var(--canvas);
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
    position: relative;
}

.stat-box:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--border);
}

.stat-num {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--ink-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
}

.stat-num .accent { color: var(--accent); }

.stat-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-tertiary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHOWCASE — 2-column Zig-Zag
═══════════════════════════════════════════════════════════════════════════ */
.showcase {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
    align-items: center;
}

.showcase-content .overline { margin-bottom: 1rem; }
.showcase-content .heading-lg { margin-bottom: 1.25rem; }
.showcase-content .body-lg { margin-bottom: 2.5rem; max-width: 45ch; }

.feature-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.9375rem;
}

.feature-check {
    width: 20px;
    height: 20px;
    background: var(--accent-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-check svg {
    width: 10px;
    height: 10px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2.5;
}

.showcase-visual { position: relative; }

.showcase-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.showcase-preview {
    aspect-ratio: 4/3;
    background: 
        radial-gradient(ellipse 60% 80% at 50% 50%, rgba(180,83,9,0.06) 0%, transparent 70%),
        linear-gradient(160deg, var(--surface) 0%, var(--canvas) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-mockup {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-tertiary);
    text-align: center;
    line-height: 1.6;
}

.showcase-info {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.showcase-label { font-size: 0.875rem; font-weight: 600; }

.showcase-status {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #10B981;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.showcase-status::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #10B981;
    border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AGENTS GRID
═══════════════════════════════════════════════════════════════════════════ */
.agents-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.agents-header { text-align: center; margin-bottom: 3rem; }
.agents-header .overline { margin-bottom: 0.75rem; }
.agents-header .heading-lg { max-width: 25ch; margin: 0 auto 1rem; }
.agents-header .body-lg { max-width: 50ch; margin: 0 auto; }

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.agent-card {
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: 2.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring), border-color 0.5s var(--ease-spring);
}

.agent-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.agent-avatar {
    width: 64px;
    height: 64px;
    background: var(--accent-glow);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: background-color 0.4s var(--ease-spring), transform 0.4s var(--ease-spring);
}

.agent-card:hover .agent-avatar {
    background: var(--accent);
    transform: scale(1.08);
}

.agent-card:hover .agent-avatar svg { stroke: white; }

.agent-avatar svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
    transition: stroke 0.4s var(--ease-spring);
}

.agent-card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.25rem; }
.agent-card .role { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.5rem; }
.agent-card .desc { font-size: 0.8125rem; color: var(--ink-secondary); line-height: 1.55; }

/* ═══════════════════════════════════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════════════════════════════════ */
.cta-section { position: relative; overflow: hidden; text-align: center; }

.cta-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 50%, var(--accent-glow) 0%, transparent 60%),
        var(--canvas);
    pointer-events: none;
}

.cta-content {
    position: relative;
    padding: clamp(5rem, 12vw, 9rem) 2rem;
}

.cta-content .overline { margin-bottom: 1rem; }
.cta-content .display { margin-bottom: 1.25rem; }
.cta-content .body-lg { max-width: 50ch; margin: 0 auto 2.5rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════════════ */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem clamp(1.5rem, 4vw, 5rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.footer-brand h3 span { color: var(--accent); }
.footer-brand p { font-size: 0.875rem; color: var(--ink-secondary); max-width: 280px; line-height: 1.65; }

.footer-col h4 { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-tertiary);.footer-col a { display: block; font-size: 0.875rem; color: var(--ink-secondary); margin-bottom: 0.75rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--ink-tertiary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL REVEAL — blur-md opacity-0 → blur-0 opacity-100
═══════════════════════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(4px);
    transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out), filter 0.85s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile-First Collapse
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-content { padding: 8rem 2rem 3rem; text-align: center; align-items: center; }
    .hero-eyebrow { margin: 0 auto 1.25rem; }
    .hero-description { max-width: 55ch; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }
    
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    
    .bento { grid-template-columns: repeat(6, 1fr); }
    .bento-item:nth-child(1) { grid-column: span 3; grid-row: span 1; }
    .bento-item:nth-child(2) { grid-column: span 3; }
    .bento-item:nth-child(3) { grid-column: span 3; }
    .bento-item:nth-child(4) { grid-column: span 3; grid-row: span 1; }
    .bento-item:nth-child(5) { grid-column: span 3; }
    .bento-item:nth-child(6) { grid-column: span 3; grid-row: span 1; }
    .bento-item:nth-child(7) { grid-column: span 6; }
    
    .showcase { grid-template-columns: 1fr; gap: 3rem; }
    .showcase-content { text-align: center; }
    .feature-list { align-items: center; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
    .nav {
        top: 0; left: 0; right: 0;
        transform: none;
        border-radius: 0;
        padding: 0.75rem 1rem;
        justify-content: space-between;
    }
    .nav-links { display: none; }
    .nav-actions { padding-left: 0.5rem; border-left: none; margin-left: 0; }
    
    .hero-content { padding: 5rem 1rem 2.5rem; }
    .section { padding: 3rem 1rem; }
    .section-full { padding: 3rem 1rem; }
    
    .stats-row { grid-template-columns: 1fr; }
    .stat-box:not(:last-child)::after { display: none; }
    
    .bento { grid-template-columns: 1fr; }
    .bento-item { grid-column: span 1 !important; grid-row: span 1 !important; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GALLERY STYLES — Project Grid
═══════════════════════════════════════════════════════════════════════════ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.project-preview {
    display: block;
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
}

.bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.15;
}

.bg-domes { background: radial-gradient(circle at 30% 40%, var(--accent-color, #fff) 0%, transparent 50%); }
.bg-waves { background: linear-gradient(135deg, transparent 40%, var(--accent-color, #fff) 100%); }
.bg-dots { background: radial-gradient(circle, var(--accent-color, #fff) 2px, transparent 2px); background-size: 20px 20px; }
.bg-grid { background: linear-gradient(var(--accent-color, #fff) 1px, transparent 1px), linear-gradient(90deg, var(--accent-color, #fff) 1px, transparent 1px); background-size: 30px 30px; }

.serial-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.price-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--accent);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.view-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .view-overlay {
    opacity: 1;
}

.view-btn {
    background: #fff;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.project-info {
    padding: 1rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-primary);
}

.project-version {
    font-size: 0.7rem;
    color: var(--ink-secondary);
}

.project-category {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-description {
    font-size: 0.85rem;
    color: var(--ink-secondary);
    margin-bottom: 1rem;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.project-colors {
    display: flex;
    gap: 4px;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
}

.visit-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}

.visit-link:hover {
    text-decoration: underline;
}

/* Gallery Stats */
.gallery-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.gallery-stat {
    text-align: center;
}

.gallery-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.gallery-stat-label {
    font-size: 0.75rem;
    color: var(--ink-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 0;
}

.category-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.category-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.category-divider-text {
    font-size: 0.75rem;
    color: var(--ink-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2rem;
    color: var(--ink-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    color: var(--ink-secondary);
    font-size: 0.85rem;
}
/* Gallery Override */
.section-full {
    padding: 2rem 1rem !important;
}

.projects-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
}

.project-card {
    display: flex !important;
    flex-direction: column !important;
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN - Mobile First
═══════════════════════════════════════════════════════════════════════════ */

/* Extra Small Devices (phones, 320px and up) */
@media (min-width: 320px) {
    :root {
        --font-size-xs: 0.75rem;
        --font-size-sm: 0.875rem;
        --font-size-base: 1rem;
        --font-size-lg: 1.125rem;
        --font-size-xl: 1.25rem;
        --font-size-2xl: 1.5rem;
        --font-size-3xl: 1.875rem;
        --font-size-4xl: 2.25rem;
        
        --spacing-xs: 0.5rem;
        --spacing-sm: 1rem;
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
        
        --radius-sm: 0.25rem;
        --radius-md: 0.5rem;
        --radius-lg: 1rem;
        --radius-xl: 1.5rem;
    }
}

/* Small Devices (phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
        margin: 0 auto;
        padding: 0 var(--spacing-md);
    }
    
    .hero-section {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) {
    :root {
        --nav-height: 72px;
        --sidebar-width: 280px;
    }
    
    .container {
        max-width: 720px;
    }
    
    .hero-section {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-xl);
    }
    
    .nav {
        padding: 0 var(--spacing-lg);
    }
    
    .nav-links {
        display: flex;
        gap: var(--spacing-md);
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sidebar {
        display: block;
    }
    
    .card-horizontal {
        flex-direction: row;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    :root {
        --container-max: 960px;
    }
    
    .container {
        max-width: var(--container-max);
    }
    
    .hero-section {
        padding: 6rem 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }
    
    .hero-title {
        font-size: clamp(3rem, 6vw, 5rem);
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .card {
        padding: var(--spacing-md);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    :root {
        --container-max: 1140px;
    }
    
    .container {
        max-width: var(--container-max);
    }
    
    .hero-title {
        font-size: clamp(3.5rem, 7vw, 5.5rem);
    }
    
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra Extra Large (large screens, 1400px and up) */
@media (min-width: 1400px) {
    :root {
        --container-max: 1320px;
    }
    
    .container {
        max-width: var(--container-max);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE SPECIFIC ADJUSTMENTS
═══════════════════════════════════════════════════════════════════════════ */

/* Hide on mobile */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
    
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--surface);
        flex-direction: column;
        padding: var(--spacing-lg);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-visual {
        display: none;
    }
    
    .sidebar {
        display: none;
    }
    
    .stats-row {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .card-horizontal {
        flex-direction: column;
    }
    
    .modal-content {
        margin: var(--spacing-md);
        max-height: calc(100vh - var(--spacing-lg));
        overflow-y: auto;
    }
}

/* Desktop only */
@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PORTRAIT / LANDSCAPE
═══════════════════════════════════════════════════════════════════════════ */

@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: var(--spacing-md) 0;
    }
    
    .hero-visual {
        max-height: 50vh;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HIGH DPI DISPLAYS
═══════════════════════════════════════════════════════════════════════════ */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-bg {
        background-size: cover;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRINT STYLES
═══════════════════════════════════════════════════════════════════════════ */

@media print {
    .nav,
    .footer,
    .mobile-menu-btn,
    .btn-group,
    .filter-section {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE MENU
═══════════════════════════════════════════════════════════════════════════ */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink-primary);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 767px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links a {
        font-size: 1.5rem;
        padding: 1rem;
    }
    
    .nav-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1rem;
        background: var(--surface);
        border-top: 1px solid var(--border);
        z-index: 998;
    }
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none !important;
    }
}
