/* ===================================
   NoBreaksAllowed Landing Page Styles
   Design: Corporate B2B Light Mode (High-end SaaS)
   =================================== */

:root {
    --bg-primary: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #eff6ff;
    
    --border-light: #e2e8f0;
    --border-hover: #cbd5e1;
    
    --container-max: 1200px;
    --radius-lg: 16px;
    --radius-md: 8px;
    
    --font-heading: 'Outfit', sans-serif; /* For impactful headers */
    --font-body: 'Inter', sans-serif;     /* For maximum readability */
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}


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

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

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--text-primary); }
p { color: var(--text-secondary); }

.label-sm {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; height: 72px; }

.nav-brand {
    font-family: var(--font-heading); font-size: 20px; font-weight: 800;
    display: flex; align-items: center; gap: 12px; color: var(--text-primary); text-decoration: none;
}
.brand-icon { width: 24px; height: 24px; border-radius: 6px; background: var(--text-primary); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a.nav-item { 
    color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; 
    position: relative;
}
.nav-links a.nav-item:hover { color: var(--text-primary); }
.nav-links a.nav-item.active {
    color: var(--accent);
}
.nav-links a.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.nav-links button { background: none; border: none; color: var(--text-secondary); font-size: 13px; font-weight: 600; cursor: pointer; transition: color 0.2s; font-family: var(--font-body); }
.nav-links button:hover { color: var(--text-primary); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border-radius: var(--radius-md);
    font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.2s ease;
}
.btn-primary { background: var(--text-primary); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: #000; box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-surface-alt); }

/* Hero Section */
.hero { padding: 180px 0 100px; text-align: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 100px;
    background: var(--accent-light); border: 1px solid #bfdbfe;
    color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 32px;
}
.hero-title { font-size: 72px; max-width: 900px; margin: 0 auto 24px; }
.hero-subtitle { font-size: 20px; max-width: 700px; margin: 0 auto 48px; }
.hero-cta { display: flex; justify-content: center; gap: 16px; margin-bottom: 32px; }

.hero-platforms {
    display: flex; justify-content: center; gap: 24px; margin-bottom: 60px;
}
.platform-badge {
    color: var(--text-muted); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px;
}
.platform-badge i { font-size: 16px; }
.platform-badge.native { color: var(--text-primary); font-weight: 600; }
.platform-badge.native i { color: #9146FF; } /* Twitch Purple */

/* 16:9 Video Placeholder */
.media-placeholder-lg {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 500;
}
.media-placeholder-lg i { font-size: 48px; margin-bottom: 20px; color: var(--border-hover); }

/* Ticker (Partners) */
.ticker-section { padding: 80px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); background: var(--bg-surface); overflow: hidden; }
.ticker-title { text-align: center; color: var(--text-muted); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 40px; }
.ticker-wrap { display: flex; width: max-content; animation: ticker 40s linear infinite; gap: 80px; align-items: center; padding-right: 80px; }
.ticker-wrap:hover { animation-play-state: paused; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.ticker-item { flex-shrink: 0; }
.partner-logo {
    height: 36px;
    width: auto;
    filter: grayscale(100%) opacity(0.5); /* Corporate Light Theme Styling */
    transition: all 0.3s ease;
}
.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
}

/* Z-Pattern Features */
.features { padding: 160px 0; background: var(--bg-primary); }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 120px; }
.feature-row:last-child { margin-bottom: 0; }

.feature-copy h3 { font-size: 40px; margin-bottom: 24px; }
.feature-copy p { font-size: 18px; margin-bottom: 32px; }

.feature-metrics { display: flex; gap: 40px; margin-top: 32px; border-top: 1px solid var(--border-light); padding-top: 32px; }
.metric-item .val { font-size: 32px; font-weight: 800; font-family: var(--font-heading); color: var(--text-primary); line-height: 1; margin-bottom: 8px; }
.metric-item .lbl { font-size: 13px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

.media-placeholder-md {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
}

/* CTA Block */
.cta-section { padding: 120px 0; background: var(--bg-surface); border-top: 1px solid var(--border-light); }
.cta-box {
    max-width: 800px; margin: 0 auto; text-align: center;
    padding: 80px; background: var(--bg-surface-alt);
    border-radius: var(--radius-lg); border: 1px solid var(--border-light);
}

/* Footer */
.footer { padding: 80px 0 40px; background: var(--bg-surface); border-top: 1px solid var(--border-light); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand p { color: var(--text-secondary); font-size: 15px; margin-top: 20px; max-width: 320px; }
.footer-col h4 { font-size: 13px; margin-bottom: 24px; letter-spacing: 0.1em; color: var(--text-primary); font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 16px; }
.footer-col a { color: var(--text-secondary); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--border-light); color: var(--text-muted); font-size: 13px; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 56px; }
    .feature-row { gap: 40px; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 42px; }
    .hero-cta { flex-direction: column; }
    .nav-links { display: none; }
    .feature-row { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .feature-row:nth-child(even) .feature-media { grid-row: 1; } /* Stack media first on mobile */
    .feature-metrics { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 40px 20px; }
}

/* Dashboard Preview Component */
.dashboard-preview {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
}

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

.dashboard-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ef4444;
    letter-spacing: 0.1em;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: blink 2s infinite ease-in-out;
}

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

.live-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.live-stat-box {
    background: var(--bg-surface-alt);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease;
}

.live-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.preview-chart-container {
    height: 250px;
    width: 100%;
}

@media (max-width: 640px) {
    .live-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .live-stat-box:first-child {
        grid-column: 1 / -1;
    }
}

/* Quiz Simulation Component */
.quiz-simulation-container {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    height: 380px;
    width: 100%;
}

.simulator-header {
    background: var(--bg-surface-alt);
    padding: 8px 16px;
    font-size: 0.70rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}

.quiz-preview-pane {
    flex: 2;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-light);
    background: #000;
}

.quiz-visual {
    flex: 1;
    position: relative;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

.sq-question {
    color: white;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    text-align: left;
}

.sq-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sq-opt {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.sq-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--accent);
    opacity: 0.4;
    transition: width 0.3s ease;
    z-index: 0;
}

.sq-opt b, .sq-text {
    position: relative;
    z-index: 1;
}

.quiz-chat-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface-alt);
    min-width: 200px;
}

.sim-chat-window {
    flex: 1;
    padding: 12px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.80rem;
    text-align: left;
    position: relative;
}

.sim-chat-window::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(to bottom, var(--bg-surface-alt) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.s-chat-line {
    animation: slideInChat 0.2s ease-out forwards;
}

.s-chat-user {
    font-weight: 700;
}

.s-chat-msg {
    color: var(--text-primary);
}

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

@media (max-width: 768px) {
    .quiz-simulation-container {
        flex-direction: column;
        height: auto;
    }
    .quiz-chat-pane {
        height: 200px;
        border-top: 1px solid var(--border-light);
    }
}

/* Ad-Break Simulation Component */
.adbreak-simulation-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    height: 380px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.adbreak-header {
    background: var(--bg-surface-alt);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.adbreak-timer {
    font-size: 0.70rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.ab-split-view {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
}

.adbreak-state {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0; left: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease;
}

.state-badge {
    position: absolute;
    top: -1px; left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 10;
    opacity: 0.9;
}
.state-badge.bad { background: #fee2e2; color: #ef4444; border: 1px solid #f87171; border-top: none; }
.state-badge.good { background: var(--accent); color: white; }

.traditional-state { z-index: 1; }
.nba-state { z-index: 2; }

.ad-video-mock {
    flex: 1;
    background: #e2e8f0; /* Light gray for boring video */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #cbd5e1;
}

.ad-tag {
    margin-top: 16px;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.game-video-mock {
    flex: 1;
    background: radial-gradient(circle at center, #6366f1 0%, #312e81 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.product-placeholder i {
    font-size: 48px;
    position: relative;
    z-index: 2;
    transition: transform 0.2s;
}

.product-shadow {
    width: 60px;
    height: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    position: absolute;
    bottom: -15px;
    filter: blur(4px);
    transition: all 0.3s;
}

.product-placeholder.static {
    background: #cbd5e1;
    color: #94a3b8;
    filter: grayscale(100%);
    opacity: 0.6;
}

.product-placeholder.dynamic {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5), inset 0 2px 5px rgba(255,255,255,0.5);
    animation: floatProduct 3s ease-in-out infinite;
    cursor: pointer;
}

.product-placeholder.dynamic:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.7), inset 0 2px 5px rgba(255,255,255,0.7);
}

.product-placeholder.dynamic:active i {
    transform: scale(0.9);
}

.product-shadow.pulse {
    background: rgba(0,0,0,0.4);
    animation: shadowPulse 3s ease-in-out infinite;
}

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

@keyframes shadowPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(0.8); opacity: 0.1; }
}

.interactive-area {
    margin-bottom: 24px;
}

.floating-interactions {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.float-item {
    position: absolute;
    color: rgba(255,255,255,0.8);
    font-weight: 800;
    font-size: 0.8rem;
    opacity: 0;
    animation: floatUp 1.5s ease-out infinite;
}
.float-item:nth-child(1) { left: 20%; bottom: 20%; animation-delay: 0s; }
.float-item:nth-child(2) { right: 25%; bottom: 30%; animation-delay: 0.5s; font-size: 1rem; color: #fcd34d; }
.float-item:nth-child(3) { left: 40%; bottom: 10%; animation-delay: 1s; color: #6ee7b7; }

@keyframes floatUp {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(-40px) scale(1.2); opacity: 0; }
}

.game-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
    z-index: 2;
}

.game-btn.active {
    background: white;
    color: var(--accent);
    transform: scale(1.1);
}

.retention-meter {
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.meter-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.meter-info span {
    font-size: 0.70rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.meter-info strong {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.retention-meter.warning { background: #fee2e2; color: #ef4444; }
.retention-meter.success { background: #dcfce7; color: #10b981; }
