@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@300;400;500;600&family=Geist:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Serious Minimalist Dark Theme (Default) */
    --bg-page: #07080a;
    --bg-surface: #0f1115;
    --bg-surface-hover: #15181e;
    --bg-surface-active: #1d2129;
    
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-strong: rgba(255, 255, 255, 0.12);
    --border-focus: #0088ff;

    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Accents */
    --accent-blue: #0088ff;
    --accent-blue-glow: rgba(0, 136, 255, 0.2);
    --accent-green: #10b981;
    --accent-red: #ef4444;

    /* Typography */
    --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Geist Mono', monospace;

    /* Spacings */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    --header-height: 60px;
    --transition-fast: 120ms ease;
    --transition-normal: 200ms ease;
}

/* Light Theme Opt-In */
[data-theme="light"] {
    --bg-page: #fafafa;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f3f4f6;
    --bg-surface-active: #e5e7eb;
    
    --border-subtle: rgba(0, 0, 0, 0.05);
    --border-strong: rgba(0, 0, 0, 0.1);
    --border-focus: #0066cc;

    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    --accent-blue: #0066cc;
    --accent-blue-glow: rgba(0, 102, 204, 0.1);
}

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

html {
    font-family: var(--font-sans);
    font-size: 15px;
    background-color: var(--bg-page);
    color: var(--text-primary);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Minimal Background (High performance, no complex SVG/Canvas) */
.page-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(0, 136, 255, 0.02), transparent 40%),
                radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.01), transparent 30%);
}

/* Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Header */
.header {
    height: var(--header-height);
    border-bottom: 1px solid var(--border-subtle);
    background-color: rgba(7, 8, 10, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}

[data-theme="light"] .header {
    background-color: rgba(250, 250, 250, 0.8);
}

.header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    font-size: 1.15rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 20px;
    height: 20px;
    background-color: var(--text-primary);
    border-radius: var(--radius-sm);
}

.nav {
    display: flex;
    gap: var(--space-6);
    align-items: center;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Theme Toggle */
#theme-toggle {
    background: transparent;
    border: 1px solid var(--border-subtle);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
}

#theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

#theme-toggle svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

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

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    background-color: var(--bg-surface-hover);
}

.btn-accent {
    background-color: var(--accent-blue);
    color: #fff;
}

.btn-accent:hover {
    opacity: 0.95;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

/* Hero */
.hero {
    padding: var(--space-16) 0 var(--space-12) 0;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-4);
    letter-spacing: -0.04em;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-8) auto;
    line-height: 1.5;
}

/* Feature Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-16);
}

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

.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    transition: border-color var(--transition-fast);
}

.card:hover {
    border-color: var(--border-strong);
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Code block installation */
.install-section {
    max-width: 650px;
    margin: 0 auto var(--space-16) auto;
}

.terminal {
    background-color: #0b0c0f;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.terminal-header {
    background-color: #121318;
    padding: var(--space-2) var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.terminal-body {
    padding: var(--space-4);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.5;
    overflow-x: auto;
}

/* Pricing Section */
.pricing-section {
    margin-bottom: var(--space-16);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

@media (max-width: 992px) {
    .pricing-cards {
        grid-template-columns: 1fr;
    }
}

.price-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
}

.price-card.featured {
    border-color: var(--accent-blue);
}

.price-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.price-price {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: baseline;
}

.price-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.price-features {
    list-style: none;
    margin: var(--space-6) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex-grow: 1;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.price-features li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.price-features li::before {
    content: "•";
    color: var(--accent-blue);
    font-weight: bold;
}

/* FAQ */
.faq-list {
    max-width: 700px;
    margin: 0 auto var(--space-16) auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.faq-item {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background-color: var(--bg-surface);
    overflow: hidden;
}

.faq-question {
    padding: var(--space-4);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 var(--space-4);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: all var(--transition-normal);
}

.faq-item.active .faq-answer {
    padding-bottom: var(--space-4);
    max-height: 200px;
}

/* Dashboard Grid */
.dash-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-6);
    margin: var(--space-8) 0 var(--space-16) 0;
}

@media (max-width: 768px) {
    .dash-layout {
        grid-template-columns: 1fr;
    }
}

.dash-sidebar {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    height: fit-content;
}

.dash-menu-btn {
    text-align: left;
    background: transparent;
    border: none;
    padding: 0.6rem 0.8rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dash-menu-btn:hover, .dash-menu-btn.active {
    color: var(--text-primary);
    background-color: var(--bg-surface-hover);
}

.dash-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.dash-panel {
    display: none;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-6);
}

.dash-panel.active {
    display: block;
}

/* Serious Metric Stats */
.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

@media (max-width: 576px) {
    .metric-row {
        grid-template-columns: 1fr;
    }
}

.metric-card {
    background-color: var(--bg-surface-hover);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: var(--space-4);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Table Style */
.table-wrapper {
    overflow-x: auto;
    margin-top: var(--space-4);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
}

th {
    padding: 0.75rem var(--space-4);
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-strong);
}

td {
    padding: 0.75rem var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

tr:hover td {
    color: var(--text-primary);
    background-color: var(--bg-surface-hover);
}

/* Progress bar */
.progress-container {
    width: 100%;
    height: 6px;
    background-color: var(--bg-surface-active);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: var(--space-2);
}

.progress-bar {
    height: 100%;
    background-color: var(--accent-blue);
    width: 0%;
    transition: width var(--transition-normal);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-8) 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: auto;
}
