/* ==========================================================================
   SELLER EXPERTISE DESIGN SYSTEM & LAYOUT CSS
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    --bg-primary: #0a0b10;
    --bg-secondary: #10121a;
    --bg-tertiary: #161925;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Brand Accents */
    --purple-primary: #8b5cf6;
    --purple-glow: rgba(139, 92, 246, 0.15);
    --indigo-primary: #6366f1;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(139, 92, 246, 0.3);
    
    /* Channel Specific Color Tokens */
    --amazon-color: #ff9900;
    --facebook-color: #1877f2;
    --tiktok-color: #00f2fe; /* Custom glowing cyan */
    --instagram-color: #ee2a7b;
    --shopify-color: #10b981;
    --pinterest-color: #bd081c;
    
    /* Fonts */
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::selection {
    background-color: var(--purple-primary);
    color: #ffffff;
}

/* --- Layout Containers --- */
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-header);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

/* --- Typography Utilities --- */
.gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #6366f1 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Background Grids & Orbs --- */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
    pointer-events: none;
}

.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    transition: width 0.3s, height 0.3s;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--purple-primary);
}

/* --- Premium Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 99px;
    font-family: var(--font-header);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--indigo-primary) 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--purple-primary);
    transform: translateY(-2px);
}

/* --- Fixed Header Navigation --- */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 11, 16, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.glass-header.scrolled {
    padding: 10px 0;
    background: rgba(10, 11, 16, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.brand-logo {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 22px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.brand-logo span {
    color: var(--purple-primary);
}

.logo-icon {
    font-size: 24px;
    color: var(--purple-primary);
    background: linear-gradient(135deg, #a78bfa, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-header);
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding: 6px 0;
    transition: var(--transition-smooth);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* --- Hero Section Styling --- */
.hero-section {
    position: relative;
    padding-top: 150px;
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 99px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 600;
    color: #c084fc;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c084fc;
    box-shadow: 0 0 10px #c084fc;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 54px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 580px;
}

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

/* --- Dynamic Dashboard Monitor --- */
.hero-dashboard-panel {
    display: flex;
    justify-content: center;
}

.dashboard-window {
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    background: rgba(22, 25, 37, 0.7);
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.window-topbar {
    background: rgba(10, 11, 16, 0.5);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.window-dots {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

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

.window-url {
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 16px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.window-body {
    padding: 24px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

/* Dashboard Default State */
.dashboard-default-state, .dashboard-channel-state {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;
    flex: 1;
}

.dashboard-default-state.active, .dashboard-channel-state.active {
    display: flex;
    opacity: 1;
}

.dashboard-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dashboard-header-row h3 {
    font-size: 18px;
    font-weight: 600;
}

.pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 1.5s infinite;
}

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

.kpi-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.kpi-value {
    font-size: 26px;
    font-weight: 800;
    font-family: var(--font-header);
    margin-bottom: 2px;
}

.kpi-value.text-purple { color: #c084fc; }
.kpi-value.text-indigo { color: #818cf8; }

.kpi-sub {
    font-size: 11px;
    color: var(--text-secondary);
}

.chart-box {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purple-primary);
}

.sparkline-chart {
    width: 100%;
    height: 100px;
}

.highlights-box {
    margin-top: auto;
    background: rgba(139, 92, 246, 0.05);
    border: 1px dashed rgba(139, 92, 246, 0.2);
    padding: 16px;
    border-radius: 12px;
}

.highlight-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #c084fc;
    margin-bottom: 4px;
}

.highlights-box p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Channel State Specifics */
.channel-actions-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.channel-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 260px;
}

.feat-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* --- Brand Marquee Loop --- */
.brand-marquee-section {
    padding: 40px 0;
    background: rgba(10, 11, 16, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.marquee-title {
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 24px;
}

.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    width: 100%;
}

.marquee-track {
    display: inline-flex;
    gap: 60px;
    animation: marquee 35s linear infinite;
}

.marquee-track span {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 20px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    user-select: none;
}

.marquee-track span:hover {
    color: var(--text-primary);
}

.marquee-dot {
    color: var(--purple-primary) !important;
}

/* --- Portal Grids Section --- */
.portal-grids-section {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-tag {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--purple-primary);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

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

/* 3D Glassmorphic Cards */
.hub-card {
    position: relative;
    border-radius: 24px;
    padding: 32px;
    background: rgba(22, 25, 37, 0.4);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hub-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--glow-color), transparent 50%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
    z-index: 0;
}

.hub-card:hover .card-glow {
    opacity: 0.12;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.channel-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #ffffff;
    transition: var(--transition-smooth);
}

/* Icon Shadows & Backgrounds */
.shadow-amazon {
    background: linear-gradient(135deg, #232f3e, #111);
    box-shadow: 0 10px 20px rgba(255, 153, 0, 0.2);
    border: 1px solid rgba(255, 153, 0, 0.3);
}
.shadow-facebook {
    background: linear-gradient(135deg, #1877f2, #0056b3);
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.2);
    border: 1px solid rgba(24, 119, 242, 0.3);
}
.shadow-tiktok {
    background: linear-gradient(135deg, #010101, #EE1D52);
    box-shadow: 0 10px 20px rgba(238, 29, 82, 0.2);
    border: 1px solid rgba(238, 29, 82, 0.3);
}
.shadow-instagram {
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
    box-shadow: 0 10px 20px rgba(238, 42, 123, 0.2);
    border: 1px solid rgba(238, 42, 123, 0.3);
}
.shadow-shopify {
    background: linear-gradient(135deg, #96bf48, #2a430e);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.shadow-pinterest {
    background: linear-gradient(135deg, #bd081c, #800000);
    box-shadow: 0 10px 20px rgba(189, 8, 28, 0.2);
    border: 1px solid rgba(189, 8, 28, 0.3);
}

.card-metric {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.hub-card:hover .channel-icon {
    transform: scale(1.08) rotate(3deg);
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.card-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.card-features-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    position: relative;
    z-index: 1;
}

.card-features-list span {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-features-list i {
    color: var(--purple-primary);
    font-size: 12px;
}

.hub-card[data-channel="amazon"] i { color: var(--amazon-color); }
.hub-card[data-channel="facebook"] i { color: var(--facebook-color); }
.hub-card[data-channel="tiktok"] i { color: var(--tiktok-color); }
.hub-card[data-channel="instagram"] i { color: var(--instagram-color); }
.hub-card[data-channel="shopify"] i { color: var(--shopify-color); }
.hub-card[data-channel="pinterest"] i { color: var(--pinterest-color); }

.card-footer-row {
    position: relative;
    z-index: 1;
}

.read-more {
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--purple-primary);
    transition: var(--transition-smooth);
}

.hub-card[data-channel="amazon"] .read-more { color: var(--amazon-color); }
.hub-card[data-channel="facebook"] .read-more { color: var(--facebook-color); }
.hub-card[data-channel="tiktok"] .read-more { color: var(--tiktok-color); }
.hub-card[data-channel="instagram"] .read-more { color: var(--instagram-color); }
.hub-card[data-channel="shopify"] .read-more { color: var(--shopify-color); }
.hub-card[data-channel="pinterest"] .read-more { color: var(--pinterest-color); }

.hub-card:hover .read-more i {
    transform: translateX(4px);
}

/* --- Performance Strip --- */
.performance-strip-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.performance-title {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

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

.stat-num {
    font-family: var(--font-header);
    font-weight: 900;
    font-size: 48px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

/* --- Value Proposition / About --- */
.value-prop-section {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.value-content .section-tag {
    text-align: left;
}

.value-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.section-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
}

.feature-bullets {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.bullet-item {
    display: flex;
    gap: 20px;
}

.bullet-icon {
    font-size: 22px;
    color: var(--purple-primary);
    margin-top: 4px;
}

.bullet-item h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.bullet-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Flowchart Visual panel */
.value-visual {
    display: flex;
    justify-content: center;
}

.visual-panel {
    width: 100%;
    max-width: 520px;
    padding: 32px;
    border-radius: 24px;
    background: rgba(22, 25, 37, 0.4);
    border: 1px solid var(--border-color);
}

.visual-panel h3 {
    font-size: 18px;
    margin-bottom: 28px;
    text-align: center;
}

.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.flow-node {
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 13px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.flow-node.parent {
    border-color: var(--purple-primary);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.flow-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 40px;
    position: relative;
}

.flow-lines::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--purple-primary);
}

.child-nodes-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.flow-node.child {
    font-size: 11px;
    padding: 6px 12px;
}

.flow-node.child.amazon { border-color: rgba(255, 153, 0, 0.4); }
.flow-node.child.facebook { border-color: rgba(24, 119, 242, 0.4); }
.flow-node.child.tiktok { border-color: rgba(238, 29, 82, 0.4); }
.flow-node.child.instagram { border-color: rgba(238, 42, 123, 0.4); }
.flow-node.child.shopify { border-color: rgba(16, 185, 129, 0.4); }
.flow-node.child.pinterest { border-color: rgba(189, 8, 28, 0.4); }

.flow-caption {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

/* --- Contact Drawer Slideout --- */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: rgba(16, 18, 26, 0.95);
    border-left: 1px solid var(--border-color);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.6);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.contact-drawer.active {
    right: 0;
}

.drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-header h3 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-header i {
    color: var(--purple-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.drawer-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.drawer-body p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--purple-primary);
    outline: none;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.checkbox-grid label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-grid input {
    width: 16px;
    height: 16px;
    accent-color: var(--purple-primary);
}

.btn-submit {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
    padding: 14px;
}

/* Success form state inside drawer */
.success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0;
}

.success-message.active {
    display: flex;
}

.success-icon {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 20px;
}

.success-message h4 {
    font-size: 22px;
    margin-bottom: 12px;
}

.success-message p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

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

/* --- Portals Transition Loader Overlay --- */
.portal-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-transition.active {
    opacity: 1;
    visibility: visible;
}

.portal-loader-content {
    text-align: center;
}

.portal-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--purple-primary);
    border-radius: 50%;
    margin: 0 auto 24px auto;
    animation: rotate 1s linear infinite;
}

.portal-transition-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.portal-transition-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-primary);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px 40px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
}

.footer-brand h3 {
    font-size: 20px;
    margin-bottom: 16px;
    font-family: var(--font-header);
    letter-spacing: -0.5px;
}

.footer-brand h3 span { color: var(--purple-primary); }

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 380px;
}

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

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    border-color: var(--purple-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-links-col h4 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.footer-links-col a:hover {
    color: var(--purple-primary);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- Keyframe Animations --- */
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.4); }
    70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 10px rgba(192, 132, 252, 0); }
    100% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(192, 132, 252, 0); }
}

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

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

/* ==========================================================================
   RESPONSIVE DESIGN — Phones & Tablets
   ========================================================================== */

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

    /* Hero */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-info-panel {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 44px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    /* Hub grid  → 2 columns */
    .hubs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Stats → 2 columns */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Value-prop two-col → single col */
    .grid-two-col {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* Hide cursor glow on coarse-pointer / tablets */
    .cursor-glow {
        display: none !important;
    }
}

/* ── Tablet portrait (≤ 768px) ─────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Nav: hide desktop links, show hamburger */
    .nav-links,
    .nav-actions {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    /* Nav container padding tighter */
    .nav-container {
        padding: 16px 20px;
    }

    /* Brand logo smaller */
    .brand-logo {
        font-size: 18px;
    }

    /* Section containers less side padding */
    .section-container {
        padding: 70px 20px;
    }

    /* Hero */
    .hero-section {
        padding-top: 110px;
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero-container {
        padding: 0 20px;
        gap: 40px;
    }

    .hero-title {
        font-size: 34px;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

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

    /* Dashboard panel — smaller on tablet */
    .dashboard-window {
        max-width: 100%;
    }

    .window-body {
        min-height: 300px;
    }

    /* Hub cards → single column */
    .hubs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Hub card padding */
    .hub-card {
        padding: 24px;
    }

    /* Section header */
    .section-title {
        font-size: 30px;
    }

    /* Stats → 2 columns stays */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-num {
        font-size: 36px;
    }

    /* Footer → single column */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 60px 20px 32px;
    }

    /* Contact drawer → full width */
    .contact-drawer {
        width: 100%;
        right: -100%;
    }

    /* Buttons default sizing */
    .btn {
        padding: 11px 22px;
        font-size: 14px;
    }

    /* Value prop visual panel */
    .visual-panel {
        padding: 24px;
    }

    /* Performance strip */
    .performance-strip-section {
        padding: 56px 0;
    }

    /* Child nodes in flowchart — wrap gracefully */
    .child-nodes-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Portal transition text */
    .portal-transition-title {
        font-size: 20px;
    }
}

/* ── Mobile phones (≤ 480px) ───────────────────────────────────────────── */
@media (max-width: 480px) {

    /* Section vertical padding tighter */
    .section-container {
        padding: 56px 16px;
    }

    /* Hero */
    .hero-section {
        padding-top: 96px;
    }

    .hero-container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .badge-tag {
        font-size: 12px;
        padding: 5px 12px;
    }

    /* Section title */
    .section-title {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    /* Stats → single column on phones */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-num {
        font-size: 32px;
    }

    .stat-desc {
        font-size: 13px;
    }

    /* Hub cards */
    .hub-card {
        padding: 20px;
        border-radius: 18px;
    }

    .card-title {
        font-size: 19px;
    }

    /* KPI grid: 1-col */
    .kpi-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Channel actions */
    .channel-actions-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 14px !important;
    }

    .channel-features {
        max-width: none !important;
        justify-content: center !important;
    }

    /* Nav container */
    .nav-container {
        padding: 14px 16px;
    }

    /* Brand logo */
    .brand-logo {
        font-size: 16px;
        gap: 7px;
    }

    .logo-icon {
        font-size: 20px;
    }

    /* Mobile nav link size */
    .mobile-nav-link {
        font-size: 22px;
    }

    /* Footer tighter */
    .footer-container {
        padding: 48px 16px 28px;
    }

    .footer-brand p {
        font-size: 13px;
    }

    /* Feature bullets compact */
    .bullet-item {
        gap: 14px;
    }

    .bullet-item h4 {
        font-size: 16px;
    }

    /* Contact drawer body */
    .drawer-body {
        padding: 20px 16px;
    }

    .drawer-header {
        padding: 20px 16px;
    }

    /* Marquee font smaller */
    .marquee-track span {
        font-size: 16px;
    }

    .marquee-track {
        gap: 40px;
    }

    /* Visual flowchart panel */
    .visual-panel {
        padding: 20px 16px;
    }

    .child-nodes-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
}

/* ── Hamburger menu (reset/definition) ─────────────────────────────────── */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
}

.hamburger-menu span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 1px;
    transition: var(--transition-smooth);
}

/* ── Full-screen Mobile Nav Drawer ──────────────────────────────────────── */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    overflow-y: auto;
    padding: 24px;
}

.mobile-nav-drawer.active {
    left: 0;
}

.drawer-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 36px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.mobile-nav-link {
    font-family: var(--font-header);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 4px 0;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: var(--purple-primary);
}

/* ── Touch / coarse pointer — disable mouse-only effects ────────────────── */
@media (pointer: coarse) {
    .cursor-glow {
        display: none !important;
    }

    /* Make hub cards tappable without hover jank */
    .hub-card:hover {
        transform: none;
    }

    .hub-card:active {
        transform: scale(0.98);
    }

    /* Increase tap target for nav btn */
    .btn {
        min-height: 44px;
    }

    .footer-socials a {
        width: 44px;
        height: 44px;
    }
}


