:root {
    --bg-base: #030712;
    --bg-surface: #111827;
    --bg-card: #1f2937;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #8b5cf6;
    
    --border: rgba(255,255,255,0.1);
    --border-hover: rgba(255,255,255,0.2);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; font-weight: 600; }

.btn-primary {
    background: var(--text-main);
    color: var(--bg-base);
}

.btn-primary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--border-hover);
}

.btn-glow {
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 16px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

@media (max-width: 768px) {
    .nav-links { display: none; }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero-blob {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
}

.blob-1 {
    top: -100px;
    left: 20%;
    width: 400px;
    height: 400px;
    background: #3b82f6;
}

.blob-2 {
    top: 100px;
    right: 20%;
    width: 300px;
    height: 300px;
    background: #8b5cf6;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Browser Mockup */
.hero-dashboard-preview {
    max-width: 900px;
    margin: 80px auto 0;
    perspective: 1000px;
}

.browser-mockup {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transform: rotateX(5deg) scale(0.95);
    transform-origin: top;
    transition: transform 0.5s ease;
}

.browser-mockup:hover {
    transform: rotateX(0deg) scale(1);
}

.browser-header {
    background: rgba(255,255,255,0.02);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.browser-body {
    padding: 24px;
    background: #0f131a;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    text-align: left;
}

.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
}

.dash-card.wide {
    grid-column: 1 / -1;
}

.card-title {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 600;
}

.chart-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 8px solid #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #60a5fa;
}

.score-grid {
    display: flex;
    gap: 16px;
}

.score {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.score.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.mt { margin-top: 16px; }

.toggle {
    width: 36px;
    height: 20px;
    background: var(--bg-base);
    border-radius: 100px;
    position: relative;
}

.toggle.active {
    background: #3b82f6;
}

.toggle.active::after {
    content: '';
    position: absolute;
    right: 2px;
    top: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
}

/* Features */
.features {
    padding: 100px 0;
    background: #0f1420;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
}

.f-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.clr-blue { background: rgba(59, 130, 246, 0.1); color: #60a5fa; }
.clr-purple { background: rgba(139, 92, 246, 0.1); color: #a78bfa; }
.clr-orange { background: rgba(249, 115, 22, 0.1); color: #fb923c; }
.clr-green { background: rgba(16, 185, 129, 0.1); color: #34d399; }
.clr-red { background: rgba(239, 68, 68, 0.1); color: #f87171; }
.clr-cyan { background: rgba(6, 182, 212, 0.1); color: #22d3ee; }

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Screenshots */
.screenshots {
    padding: 100px 0;
    background: var(--bg-surface);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.ui-screenshot {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: transform 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.ui-screenshot:hover {
    transform: scale(1.02);
    border-color: var(--border-hover);
    z-index: 10;
}

/* Comparison */
.comparison {
    padding: 100px 0;
}

.table-container {
    overflow-x: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.matrix {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.matrix th, .matrix td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.matrix th {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.matrix th:not(:first-child), .matrix td:not(:first-child) {
    text-align: center;
}

.matrix td {
    font-weight: 500;
}

.section-row td {
    background: rgba(59, 130, 246, 0.05);
    color: #3b82f6;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
    border-top: 2px solid var(--border);
}

.matrix tr:last-child td {
    border-bottom: none;
}

.matrix tr:hover td {
    background: rgba(255,255,255,0.02);
}

.yes { color: #10b981; }
.no { opacity: 0.3; filter: grayscale(1); }

.price.free { color: #10b981; font-weight: 700; font-size: 1.1rem; }
.price.paid { color: #ef4444; }

/* CTA */
.cta {
    padding: 60px 0 100px;
}

.cta-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.f-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
}

.f-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 24px;
    font-size: 14px;
}

.f-links a:hover {
    color: var(--text-main);
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}
