/* ==========================================================================
   StackOrbitAI — Premium Enterprise Design System
   Theme: Ultra-Premium Sleek Corporate Dark
   ========================================================================== */

:root {
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Base Palette */
    --bg-base: #030712;
    --bg-elevated: #090e1a;
    --bg-card: rgba(17, 24, 39, 0.45);
    --bg-glass: rgba(10, 15, 30, 0.7);

    /* Text Colors */
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Accent & Brand Colors */
    --indigo: #6366f1;
    --indigo-light: #818cf8;
    --violet: #8b5cf6;
    --cyan: #06b6d4;
    --emerald: #10b981;
    --rose: #f43f5e;
    --amber: #f59e0b;

    /* Gradients */
    --grad-text: linear-gradient(135deg, #a78bfa 0%, #38bdf8 50%, #6ee7b7 100%);
    --grad-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --grad-button: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);

    /* Borders */
    --border: rgba(99, 102, 241, 0.12);
    --border-hover: rgba(99, 102, 241, 0.35);
    --border-white: rgba(255, 255, 255, 0.05);

    /* Radius & Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    font-size: 16px;
    overscroll-behavior-x: none;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

.page-wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

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

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ═══════════════════════════════════════════════════ TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════════ GLOW DECORATIONS */
.glow-bg {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.12;
}

.glow-bg-primary {
    background: radial-gradient(circle, var(--indigo) 0%, rgba(0,0,0,0) 70%);
    top: -5%;
    left: -10%;
}

.glow-bg-secondary {
    background: radial-gradient(circle, var(--cyan) 0%, rgba(0,0,0,0) 70%);
    bottom: 0;
    right: -10%;
}

/* ═══════════════════════════════════════════════════ UTILITIES & LAYOUT */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.section-eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.section-subheading {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    max-width: 600px;
    margin-bottom: 48px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--grad-button);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
}

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

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(99, 102, 241, 0.08);
}

/* ═══════════════════════════════════════════════════ HEADER & NAVIGATION */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-white);
    transition: var(--transition-fast);
}

.header.scrolled {
    background: #02050c;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    position: relative;
    width: 32px;
    height: 32px;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.45) 0%, rgba(99, 102, 241, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: logo-glow 3s infinite ease-in-out;
    pointer-events: none;
}

@keyframes logo-glow {
    0%, 100% { transform: scale(0.85); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0.95; }
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-accent {
    color: var(--indigo-light);
}

.logo-ai {
    background: linear-gradient(135deg, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 1px;
}

/* Links & Actions */
.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-github-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-white);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.btn-github-nav:hover {
    border-color: var(--border-hover);
    background: rgba(99, 102, 241, 0.05);
}

.btn-github-icon {
    width: 16px;
    height: 16px;
}

.btn-nav {
    padding: 8px 18px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.btn-nav:hover {
    border-color: var(--border-hover);
    background: rgba(99, 102, 241, 0.05);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 28px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Mobile Dropdown Menu */
.mobile-menu {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-white);
    display: none;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    z-index: 99;
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
}

.btn-mobile-cta {
    background: var(--grad-button);
    color: #fff;
    text-align: center;
    padding: 12px 0;
}

/* ═══════════════════════════════════════════════════ HERO SECTION & SAAS WIDGET */
.hero-section {
    padding: 160px 0 100px;
    position: relative;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-white);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--emerald);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 900;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.65;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

/* SaaS Control Center Dashboard widget */
.hero-visual {
    display: flex;
    justify-content: center;
}

.dashboard-widget {
    width: 100%;
    max-width: 480px;
    background: rgba(13, 17, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 30px rgba(99, 102, 241, 0.05);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.dashboard-header {
    display: flex;
    align-items: center;
    height: 44px;
    background: rgba(21, 26, 35, 0.9);
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: space-between;
}

.db-dot-group {
    display: flex;
    gap: 6px;
}

.db-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.db-dot.red { background: #ef4444; }
.db-dot.yellow { background: #f59e0b; }
.db-dot.green { background: #10b981; }

.db-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
}

.db-status {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--emerald);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
    animation: indicator-pulse 2s infinite ease;
}

@keyframes indicator-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
}

.db-body {
    padding: 24px;
}

.db-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.db-metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-white);
    border-radius: var(--radius-sm);
    padding: 10px 6px;
    text-align: center;
}

.metric-lbl {
    display: block;
    font-size: 8.5px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Connector Flows visual chart */
.db-flow-visual {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-white);
    border-radius: var(--radius-md);
    padding: 18px 12px;
    margin-bottom: 24px;
    justify-content: space-around;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.4;
    transition: var(--transition-fast);
}

.flow-step.active {
    opacity: 1;
}

.step-icon {
    font-size: 20px;
    display: block;
}

.step-lbl {
    font-size: 9.5px;
    font-weight: 500;
    color: var(--text-secondary);
}

.flow-connector {
    flex-grow: 1;
    height: 2px;
    margin: 0 10px;
    position: relative;
}

.connector-line {
    width: 100%;
    height: 100%;
    background: var(--border-white);
    position: relative;
}

.flow-step.active + .flow-connector .connector-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50%;
    background: var(--indigo-light);
    box-shadow: 0 0 6px var(--indigo-light);
    animation: flow-run 2s infinite linear;
}

@keyframes flow-run {
    0% { left: 0%; width: 10%; }
    100% { left: 100%; width: 10%; }
}

.db-console-container {
    text-align: left;
}

.console-lbl {
    display: block;
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.db-console {
    background: #090c10;
    border: 1px solid var(--border-white);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.7;
    height: 120px;
    overflow-y: auto;
    scrollbar-width: none;
}

.db-console::-webkit-scrollbar {
    display: none;
}

.console-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.console-line.t-info { color: var(--indigo-light); }
.console-line.t-success { color: var(--emerald); }

/* ═══════════════════════════════════════════════════ TRUST LOGO BANNER */
.trust-banner-section {
    padding: 48px 0;
    border-top: 1px solid var(--border-white);
    border-bottom: 1px solid var(--border-white);
    background: rgba(255, 255, 255, 0.01);
    position: relative;
    z-index: 1;
}

.trust-banner-label {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
    flex-wrap: wrap;
}

.client-logo {
    height: 28px;
    width: 84px;
    color: var(--text-muted);
    opacity: 0.65;
    transition: var(--transition-fast);
}

.client-logo svg {
    height: 100%;
    width: auto;
}

.client-logo:hover {
    color: var(--text-primary);
    opacity: 1;
}

/* ═══════════════════════════════════════════════════ SERVICES SECTION */
.services-section {
    padding: 100px 0 60px;
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background: rgba(13, 21, 37, 0.6);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.05);
}

.service-icon-container {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon {
    width: 28px;
    height: 28px;
}

.service-card-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-white);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════ ECOSYSTEM DIRECTORY SECTION */
.ecosystem-section {
    padding: 60px 0 100px;
    position: relative;
    z-index: 1;
}

.ecosystem-directory-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 48px;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

#ecosystem-search {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-white);
    border-radius: var(--radius-xl);
    padding: 16px 20px 16px 56px;
    color: var(--text-primary);
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

#ecosystem-search:focus {
    border-color: var(--border-hover);
    background: rgba(99, 102, 241, 0.04);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.12);
}

.filter-pills-wrapper {
    width: 100%;
    overflow: hidden;
}

.filter-pills {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-pill-btn {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-white);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.filter-pill-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.filter-pill-btn.active {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--indigo-light);
    color: var(--indigo-light);
    font-weight: 600;
}

/* Integrations Catalog Grid */
.ecosystem-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.integration-card {
    background: var(--bg-card);
    border: 1px solid var(--border-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: left;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.integration-card:hover {
    border-color: var(--border-hover);
    background: rgba(13, 21, 37, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.03);
}

.int-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.int-card-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.int-card-logo svg {
    width: 100%;
    height: 100%;
}

.int-card-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.int-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.int-card-cat-tag {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.int-card-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.empty-directory {
    grid-column: span 3;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 48px 0;
    text-align: center;
}

/* ═══════════════════════════════════════════════════ ABOUT SECTION */
.about-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 80px;
    align-items: center;
}

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

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.value-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.value-indicator {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--indigo-light);
    line-height: 1;
    margin-top: 4px;
}

.value-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.value-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Graphics Card side */
.about-graphics {
    display: flex;
    justify-content: center;
}

.graphics-card {
    background: linear-gradient(135deg, rgba(13, 21, 37, 0.8) 0%, rgba(9, 14, 26, 0.8) 100%);
    border: 1px solid var(--border-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.graphics-logo-ring {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-outer {
    width: 100%;
    height: 100%;
    border-top-color: var(--indigo);
    border-bottom-color: var(--cyan);
    animation: rotate-clockwise 10s linear infinite;
}

.ring-inner {
    width: 80%;
    height: 80%;
    border-left-color: var(--violet);
    border-right-color: var(--emerald);
    animation: rotate-counter 6s linear infinite;
}

.ring-core {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 950;
    letter-spacing: -0.05em;
    color: var(--text-primary);
}

@keyframes rotate-clockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotate-counter {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

.graphics-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
    margin-bottom: 32px;
    text-align: center;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-white);
    border-radius: var(--radius-md);
    padding: 16px;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.graphics-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    font-size: 11px;
    color: var(--text-secondary);
    justify-content: center;
}

.flow-step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-white);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.flow-step.active-step {
    border-color: var(--indigo);
    background: rgba(99, 102, 241, 0.1);
    color: var(--indigo-light);
    font-weight: 600;
}

.flow-arrow {
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════ CONTACT SECTION */
.contact-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.contact-card {
    background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.08) 0%, rgba(13, 21, 37, 0.3) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 60px 48px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    margin-top: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group .required {
    color: var(--rose);
}

.form-group input, .form-group select, .form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-white);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--border-hover);
    background: rgba(99, 102, 241, 0.04);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-action {
    display: flex;
    justify-content: flex-end;
}

.btn-submit {
    padding: 14px 40px;
    width: auto;
}

.form-status {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}

.form-status.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.form-status.error {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fb7185;
}

.direct-emails {
    margin-top: 48px;
    border-top: 1px solid var(--border-white);
    padding-top: 32px;
    text-align: center;
}

.direct-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.email-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.email-link {
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--indigo-light);
}

.email-link:hover {
    color: var(--cyan);
}

/* ═══════════════════════════════════════════════════ FOOTER */
.footer {
    background: #02050c;
    border-top: 1px solid var(--border-white);
    padding: 60px 0 40px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-brand {
    text-align: center;
}

.footer-motto {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a:hover {
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════ RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .logo-grid {
        gap: 40px 32px;
    }
    
    .ecosystem-directory-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .mobile-menu.active {
        display: flex;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-grid {
        gap: 24px 16px;
    }
    
    .client-logo {
        height: 20px;
        width: 60px;
    }
    
    .glow-bg {
        width: 100%;
        max-width: 100vw;
        left: 0 !important;
        right: 0 !important;
    }

    .ecosystem-directory-grid {
        grid-template-columns: 1fr;
    }
    
    .empty-directory {
        grid-column: span 1;
    }

    .filter-pills-wrapper {
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding-bottom: 8px;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
        max-width: 100%;
    }
    
    .filter-pills-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .filter-pills {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: max-content;
        padding: 0 24px;
    }
    
    .contact-card {
        padding: 40px 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-action {
        justify-content: center;
    }
    
    .btn-submit {
        width: 100%;
    }
    
    .email-grid {
        flex-direction: column;
        gap: 16px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    .hero-ctas .btn {
        width: 100%;
    }
    .graphics-card {
        padding: 32px 16px;
    }
    .graphics-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .graphics-flow {
        flex-wrap: wrap;
        row-gap: 12px;
    }
    .value-item {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .db-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Mobile Nav Menu Interaction state */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
.form-group select option {
    background: var(--bg-elevated) !important;
    color: var(--text-primary) !important;
}

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