/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #a855f7;
    --bg-dark: #0f0f23;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252542;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border: #334155;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --radius: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { color: var(--text-muted); }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: var(--text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 560px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Browser Mockup */
.hero-visual {
    position: relative;
}

.browser-mockup {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.15);
    border: 1px solid var(--border);
}

.browser-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.browser-dots span:first-child { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:last-child { background: #28ca41; }

.browser-url {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 16px;
    border-radius: 6px;
}

.browser-content {
    padding: 20px;
}

/* Mockup Navigation */
.mockup-nav {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.mockup-nav-logo {
    width: 24px;
    height: 24px;
    background: var(--gradient);
    border-radius: 6px;
}

.mockup-nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mockup-nav-links span {
    width: 32px;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.mockup-nav-cta {
    width: 48px !important;
    height: 20px !important;
    background: var(--gradient) !important;
    border-radius: 6px !important;
}

/* Mockup Hero */
.mockup-hero {
    height: 80px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.mockup-hero-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup-hero-title {
    width: 120px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.mockup-hero-subtitle {
    width: 80px;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Mockup Video Grid */
.mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mockup-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.mockup-card:hover {
    transform: scale(1.02);
}

/* Video Thumbnail */
.mockup-thumb {
    aspect-ratio: 16/9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-play-btn {
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    position: relative;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mockup-card:hover .mockup-play-btn {
    opacity: 1;
}

.mockup-play-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent white;
}

.mockup-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Video Card Info */
.mockup-card-info {
    padding: 8px;
}

.mockup-card-title {
    height: 8px;
    width: 85%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-bottom: 6px;
}

.mockup-card-meta {
    height: 6px;
    width: 60%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Features Section */
.features {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-header p {
    font-size: 1.1rem;
    margin-top: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.03), transparent);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.step-content h3 {
    margin-bottom: 8px;
    color: var(--text);
}

.step-content p {
    margin-bottom: 12px;
}

.code-block {
    display: block;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--primary);
    border: 1px solid var(--border);
    overflow-x: auto;
}

/* Admin Preview */
.admin-preview {
    padding: 120px 0;
}

.admin-preview .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.admin-content h2 {
    margin-bottom: 20px;
}

.admin-content > p {
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.admin-features {
    list-style: none;
}

.admin-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-features li:last-child {
    border-bottom: none;
}

.admin-features svg {
    width: 20px;
    height: 20px;
    color: #10b981;
    flex-shrink: 0;
}

/* Dashboard Mockup */
.dashboard-mockup {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    min-height: 400px;
}

.dash-sidebar {
    width: 60px;
    background: rgba(0, 0, 0, 0.2);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-logo {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 8px;
    margin-bottom: 16px;
}

.dash-nav-item {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.dash-nav-item.active {
    background: var(--primary);
}

.dash-main {
    flex: 1;
    padding: 20px;
}

.dash-header {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 20px;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.dash-stat-card {
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.dash-chart {
    height: 160px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.dash-chart::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 80px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(99, 102, 241, 0.3) 20%,
        rgba(139, 92, 246, 0.5) 40%,
        rgba(99, 102, 241, 0.3) 60%,
        rgba(139, 92, 246, 0.4) 80%,
        transparent 100%);
    clip-path: polygon(0% 80%, 10% 60%, 25% 70%, 40% 30%, 55% 50%, 70% 20%, 85% 40%, 100% 10%, 100% 100%, 0% 100%);
}

/* Technology Section */
.technology {
    padding: 120px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.tech-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.tech-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.tech-icon {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.tech-card h4 {
    color: var(--text);
    margin-bottom: 8px;
}

.tech-card p {
    font-size: 0.85rem;
}

.deploy-options {
    text-align: center;
}

.deploy-options h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text);
}

.deploy-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.deploy-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 500;
}

.deploy-option svg {
    width: 24px;
    height: 24px;
}

/* CTA Section */
.cta {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.05));
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15), transparent 70%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Footer */
.footer {
    padding: 80px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    margin-bottom: 48px;
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--text);
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 0;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
}

.footer-bottom .disclaimer {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-content {
        max-width: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-preview .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .mockup-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-stats {
        grid-template-columns: 1fr;
    }

    .deploy-grid {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }
}
