/* ============================================
   GrepVideos - Design System
   ============================================ */

:root {
    /* Colors - Light professional theme with GrepVideos blue (#3315E8) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fc;
    --bg-tertiary: #f0f2f8;
    --bg-card: #ffffff;
    --bg-dark: #0c0a1d;
    
    --text-primary: #1a1a2e;
    --text-secondary: #5a5a72;
    --text-muted: #8888a0;
    --text-on-dark: #ffffff;
    
    /* Primary brand color from logo */
    --accent-primary: #3315E8;
    --accent-secondary: #5433FF;
    --accent-tertiary: #20BDFF;
    --accent-light: rgba(51, 21, 232, 0.08);
    --accent-glow: rgba(51, 21, 232, 0.25);
    
    --gradient-primary: linear-gradient(135deg, #3315E8 0%, #5433FF 50%, #20BDFF 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(51, 21, 232, 0.06) 0%, rgba(84, 51, 255, 0.03) 100%);
    --gradient-hero: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --border-color: rgba(26, 26, 46, 0.08);
    --border-accent: rgba(51, 21, 232, 0.2);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-accent: 0 8px 32px rgba(51, 21, 232, 0.2);
    
    /* Typography - Using Poppins to match GrepVideos branding */
    --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --container-max: 1200px;
    --section-padding: 120px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   Reset & Base
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* Selection color */
::selection {
    background: var(--accent-primary);
    color: white;
}

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

ul, ol {
    list-style: none;
}

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

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

/* ============================================
   Layout
   ============================================ */

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

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--border-accent);
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo-fallback {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 8px;
    font-size: 14px;
}

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

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.nav-cta {
    padding: 10px 20px !important;
    background: var(--gradient-primary);
    color: white !important;
    border-radius: 8px;
}

.nav-cta:hover {
    opacity: 0.9;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

@media (max-width: 768px) {
    .nav-container {
        padding: 12px 16px;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        display: none;
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        font-size: 16px;
        padding: 8px 0;
    }
    
    .nav-cta {
        text-align: center;
        width: 100%;
        display: block;
        padding: 14px 20px !important;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .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);
    }
    
    .logo-img {
        height: 30px;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(51, 21, 232, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(51, 21, 232, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    right: -100px;
    opacity: 0.08;
}

.gradient-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-tertiary);
    bottom: 0;
    left: -100px;
    opacity: 0.06;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-primary);
    background: var(--accent-light);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-accent);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease backwards;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 40px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.hero-code {
    max-width: 520px;
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    animation: fadeInUp 0.6s ease 0.4s backwards;
    box-shadow: var(--shadow-lg);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.hero-code pre {
    padding: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hero-code code {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: #a0a0b8;
    display: block;
    white-space: pre;
}

@media (max-width: 480px) {
    .hero-code pre {
        padding: 16px;
    }
    
    .hero-code code {
        font-size: 11px;
        line-height: 1.6;
    }
}

.code-keyword { color: #c792ea; }
.code-method { color: #82aaff; }
.code-property { color: #f78c6c; }
.code-string { color: #c3e88d; }
.code-boolean { color: #ff9cac; }
.code-comment { color: #546e7a; }

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

/* ============================================
   Stats Section
   ============================================ */

.stats {
    padding: 80px 24px;
    background: var(--accent-primary);
    color: var(--text-on-dark);
}

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

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

.stat-number {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: #ffffff;
}

.stat-suffix {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-suffix {
        font-size: 20px;
    }
}

@media (max-width: 400px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ============================================
   Features Section
   ============================================ */

.features {
    padding: var(--section-padding) 24px;
}

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

.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: all var(--transition-slow);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

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

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

.feature-card-large {
    grid-column: span 2;
}

.feature-card-wide {
    grid-column: span 2;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: 12px;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Live Visual */
.feature-visual {
    margin-top: 24px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.viewer-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* API Demo */
.api-demo {
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.response-time {
    color: var(--success);
    font-weight: 500;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card-large,
    .feature-card-wide {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .feature-card {
        padding: 24px;
        border-radius: 16px;
    }
    
    .feature-card h3 {
        font-size: 18px;
    }
    
    .feature-card p {
        font-size: 14px;
    }
    
    .feature-visual {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* ============================================
   Dashboard Section
   ============================================ */

.dashboard-section {
    padding: var(--section-padding) 24px;
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
}

.dashboard-preview {
    perspective: 1500px;
}

.dashboard-frame {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotateX(2deg);
    transition: transform var(--transition-slow);
    color: var(--text-on-dark);
}

.dashboard-frame:hover {
    transform: rotateX(0);
}

.dashboard-header {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.dashboard-nav {
    display: flex;
    gap: 24px;
}

.dashboard-nav .nav-item {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.dashboard-nav .nav-item.active {
    color: #ffffff;
    border-color: var(--accent-primary);
}

.dashboard-content {
    display: flex;
    min-height: 400px;
}

.dashboard-sidebar {
    width: 200px;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sidebar-item.active {
    background: rgba(51, 21, 232, 0.3);
    color: #ffffff;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dashboard-main {
    flex: 1;
    padding: 24px;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.metric-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.metric-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
}

.metric-change {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 8px;
}

.metric-change.positive {
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.metric-change.neutral {
    color: var(--accent-tertiary);
    background: rgba(6, 182, 212, 0.1);
}

.chart-area {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.chart-header {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 150px;
}

.bar {
    flex: 1;
    height: var(--height);
    background: var(--gradient-primary);
    border-radius: 6px 6px 0 0;
    position: relative;
    transition: all var(--transition-base);
}

.bar:hover {
    opacity: 0.8;
}

.bar span {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .dashboard-content {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .metrics-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   New Dashboard Design (Light Theme)
   ============================================ */

.dashboard-frame-new {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: perspective(1500px) rotateX(2deg);
    transition: transform var(--transition-slow);
}

.dashboard-frame-new:hover {
    transform: perspective(1500px) rotateX(0deg);
}

.browser-chrome {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #f5f5f7;
    border-bottom: 1px solid #e5e5e7;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-chrome .dot {
    width: 10px;
    height: 10px;
}

.browser-address {
    flex: 1;
    background: #ffffff;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    color: #666;
    text-align: center;
    border: 1px solid #e5e5e7;
}

.dashboard-ui {
    background: #f8f9fc;
}

.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #ffffff;
    border-bottom: 1px solid #eee;
}

.dash-logo-img {
    height: 24px;
    width: auto;
}

.dash-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f7;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: #999;
    flex: 1;
    max-width: 300px;
    margin: 0 20px;
}

.dash-search svg {
    opacity: 0.5;
}

.dash-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.dash-body {
    display: flex;
    min-height: 350px;
}

.dash-sidebar {
    width: 180px;
    padding: 16px 12px;
    background: #ffffff;
    border-right: 1px solid #eee;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 4px;
}

.dash-nav-item:hover {
    background: #f5f5f7;
    color: #333;
}

.dash-nav-item.active {
    background: var(--accent-light);
    color: var(--accent-primary);
    font-weight: 500;
}

.dash-nav-item.active svg {
    stroke: var(--accent-primary);
}

.dash-main {
    flex: 1;
    padding: 20px;
}

/* Live Info Bar */
.live-info-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.live-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.live-info-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-info-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.live-info-value.quality {
    color: var(--accent-primary);
}

.live-info-value.health.good {
    color: #10b981;
}

.live-info-divider {
    width: 1px;
    height: 36px;
    background: #eee;
    margin: 0 20px;
}

@media (max-width: 600px) {
    .live-info-bar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .live-info-divider {
        display: none;
    }
    
    .live-info-item {
        min-width: 45%;
        flex: 1 1 45%;
    }
    
    .live-info-value {
        font-size: 15px;
    }
    
    .live-info-label {
        font-size: 10px;
    }
}

.dash-chart {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

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

.dash-chart-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.dash-chart-period {
    font-size: 12px;
    color: #888;
    background: #f5f5f7;
    padding: 4px 10px;
    border-radius: 4px;
}

.dash-chart-graph {
    position: relative;
}

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

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 11px;
    color: #888;
}

/* Live Stream Panel */
.dash-live-panel {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    overflow: hidden;
}

.dash-live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fc;
    border-bottom: 1px solid #eee;
}

.dash-live-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.live-dot-indicator {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.dash-live-status {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
}

.dash-live-status.active {
    color: #059669;
    background: #d1fae5;
}

.dash-live-content {
    padding: 20px;
}

.stream-field {
    margin-bottom: 16px;
}

.stream-field:last-of-type {
    margin-bottom: 20px;
}

.stream-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stream-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f7;
    border: 1px solid #e5e5e7;
    border-radius: 8px;
    padding: 10px 12px;
}

.stream-input code {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #1a1a2e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stream-input.secret code {
    color: #666;
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.stream-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.stream-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #555;
}

.stream-option svg {
    color: #888;
}

.stream-option span:nth-child(2) {
    flex: 1;
}

.option-toggle {
    width: 36px;
    height: 20px;
    background: #ccc;
    border-radius: 10px;
    position: relative;
    transition: background var(--transition-fast);
}

.option-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.option-toggle.on {
    background: #10b981;
}

.option-toggle.on::after {
    transform: translateX(16px);
}

@media (max-width: 900px) {
    .dash-stats {
        grid-template-columns: 1fr;
    }
    
    .dash-sidebar {
        display: none;
    }
    
    .dash-body {
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .browser-address {
        display: none;
    }
    
    .dash-search {
        display: none;
    }
    
    .dash-topbar {
        padding: 10px 16px;
    }
    
    .dash-main {
        padding: 16px;
    }
    
    .dash-live-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        padding: 12px 16px;
    }
    
    .dash-live-content {
        padding: 16px;
    }
    
    .stream-input code {
        font-size: 10px;
    }
    
    .stream-options {
        gap: 10px;
    }
    
    .stream-option {
        font-size: 12px;
    }
}

/* ============================================
   Customers Section
   ============================================ */

.customers {
    padding: var(--section-padding) 24px;
}

/* Customer Logo Grid */
.customers-logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.customer-logo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.customer-logo-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.customer-logo-img {
    max-width: 100px;
    max-height: 50px;
    object-fit: contain;
    transition: all var(--transition-base);
}

.customer-logo-card:hover .customer-logo-img {
    transform: scale(1.08);
}

.customer-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
}

@media (max-width: 1000px) {
    .customers-logo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .customers-logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 500px) {
    .customers-logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .customer-logo-card {
        padding: 16px 10px;
        min-height: 60px;
        border-radius: 10px;
    }
    
    .customer-logo-img {
        max-width: 80px;
        max-height: 40px;
    }
    
    .customer-brand {
        font-size: 13px;
    }
}

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

.testimonial blockquote {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 32px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.author-info {
    text-align: left;
}

.author-name {
    display: block;
    font-weight: 600;
}

.author-company {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .customers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ============================================
   Partners Section
   ============================================ */

.partners {
    padding: var(--section-padding) 24px;
    background: var(--bg-tertiary);
    overflow: hidden;
}

/* Partner Carousel */
.partner-carousel {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

.partner-carousel::before,
.partner-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.partner-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-tertiary), transparent);
}

.partner-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-tertiary), transparent);
}

.partner-track {
    display: flex;
    gap: 80px;
    animation: scroll 20s linear infinite;
    width: max-content;
}

.partner-slide {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 200px;
    padding: 32px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.partner-slide:hover {
    border-color: var(--border-accent);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.partner-icon {
    height: 32px;
    width: auto;
    max-width: 120px;
}

.partner-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.partner-carousel:hover .partner-track {
    animation-play-state: paused;
}

/* Static Partner Grid */
.partners-static-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.partner-card-new {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.partner-brand {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-svg {
    height: 45px;
    width: auto;
}

.partner-name-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: -8px;
}

/* Fastly styled text logo */
.fastly-logo {
    font-size: 36px;
    font-weight: 700;
    color: #FF282D;
    letter-spacing: -1px;
}

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

@media (max-width: 768px) {
    .partners-static-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* Legacy partner grid - hidden */
.partners-grid {
    display: none;
}

/* ============================================
   Pricing Section
   ============================================ */

.pricing {
    padding: var(--section-padding) 24px;
    background: var(--bg-primary);
}

.pricing-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.pricing-card .pricing-highlight {
    border-radius: 24px 24px 0 0;
}

.pricing-highlight {
    padding: 48px 30px;
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.price-tag {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
}

.price .currency {
    font-size: 28px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.price .amount {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price .unit {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 40px;
}

.price-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

.pricing-features {
    padding: 40px 40px 48px;
    text-align: left;
}

.pricing-features h4 {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.pricing-features ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.pricing-features li svg {
    color: var(--success);
    flex-shrink: 0;
}

.pricing-features .btn {
    margin-bottom: 16px;
}

.pricing-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 24px;
}

.pricing-note a {
    color: var(--accent-primary);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .pricing-features ul {
        grid-template-columns: 1fr;
    }
    
    .pricing-highlight {
        padding: 36px 24px;
    }
    
    .price .amount {
        font-size: 56px;
    }
    
    .price .currency {
        font-size: 22px;
    }
    
    .price .unit {
        font-size: 16px;
    }
    
    .pricing-features {
        padding: 28px 24px 36px;
    }
    
    .pricing-features li {
        font-size: 14px;
    }
}

/* ============================================
   Hire Developer Team Section
   ============================================ */

.hire-team {
    padding: var(--section-padding) 24px;
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.hire-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hire-text .section-tag {
    background: rgba(51, 21, 232, 0.2);
    color: var(--accent-tertiary);
}

.hire-text .section-title {
    color: var(--text-on-dark);
    text-align: left;
    font-size: 2.5rem;
}

.hire-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hire-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.hire-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.hire-features li svg {
    color: var(--accent-tertiary);
    flex-shrink: 0;
}

.hire-visual {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.team-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    transition: all var(--transition-base);
}

.team-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(51, 21, 232, 0.4);
    transform: translateY(-4px);
}

.team-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.team-icon svg {
    color: white;
}

.team-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-on-dark);
}

.team-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
    .hire-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hire-text .section-title {
        text-align: center;
        font-size: 2rem;
    }
    
    .hire-description {
        text-align: center;
    }
    
    .hire-features {
        align-items: center;
    }
    
    .hire-text .btn {
        display: flex;
        justify-content: center;
        margin: 0 auto;
    }
    
    .hire-visual {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .hire-visual {
        grid-template-columns: 1fr;
    }
    
    .hire-text .section-title {
        font-size: 1.75rem;
    }
    
    .hire-description {
        font-size: 1rem;
    }
    
    .hire-features li {
        font-size: 0.9rem;
    }
    
    .team-card {
        padding: 24px;
    }
    
    .team-icon {
        width: 60px;
        height: 60px;
    }
    
    .team-icon svg {
        width: 32px;
        height: 32px;
    }
}

/* ============================================
   CTA Section
   ============================================ */

.cta {
    padding: var(--section-padding) 24px;
    text-align: center;
    background: var(--bg-secondary);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-buttons {
    margin-bottom: 24px;
}

.contact-info {
    font-family: var(--font-mono);
    font-size: 14px;
}

.contact-info a {
    color: var(--accent-primary);
    transition: color var(--transition-fast);
}

.contact-info a:hover {
    color: var(--accent-secondary);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 80px 24px 40px;
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-img.footer-logo {
    filter: brightness(0) invert(1);
    height: 28px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 60px 20px 32px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
}

/* ============================================
   Animations
   ============================================ */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ============================================
   Responsive Utilities
   ============================================ */

@media (max-width: 480px) {
    :root {
        --section-padding: 80px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 100px 16px 60px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-badge {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .hero-cta {
        flex-direction: column;
        margin-bottom: 40px;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-title br {
        display: none;
    }
    
    .section-subtitle {
        font-size: 15px;
    }
    
    .section-tag {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .cta h2 {
        font-size: 28px;
    }
    
    .cta p {
        font-size: 15px;
    }
}

