/* === Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === CSS Variables (Dark Theme) === */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --text-primary: #ffffff;
    --text-secondary: #a1a1a1;
    --text-muted: #6b6b6b;
    --accent: #22c55e;
    --accent-hover: #16a34a;
    --accent-glow: rgba(34, 197, 94, 0.15);
    --border: #262626;
    --gradient-start: #22c55e;
    --gradient-end: #14b8a6;
    --red: #ef4444;
    --amber: #eab308;
    --nav-bg: rgba(10, 10, 10, 0.8);
    --nav-cta-shadow: rgba(255, 255, 255, 0.2);
}

/* === Light Theme === */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f5;
    --bg-card: #ffffff;
    --text-primary: #111111;
    --text-secondary: #525252;
    --text-muted: #737373;
    --accent: #16a34a;
    --accent-hover: #15803d;
    --accent-glow: rgba(22, 163, 74, 0.1);
    --border: #e4e4e7;
    --gradient-start: #15803d;
    --gradient-end: #0f766e;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-cta-shadow: rgba(0, 0, 0, 0.1);
    --red: #dc2626;
    --amber: #ca8a04;
}

/* === Base === */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Navigation === */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--text-primary);
    color: var(--bg-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--nav-cta-shadow);
}

.chrome-icon {
    width: 20px;
    height: 20px;
}

/* === Primary Button === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

/* === Footer === */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* === Theme Toggle === */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--text-muted);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    width: 16px;
    height: 16px;
}

.theme-toggle .icon-sun { color: var(--text-muted); }
.theme-toggle .icon-moon { color: var(--text-muted); }
[data-theme="light"] .theme-toggle .icon-sun { color: var(--accent); }
:not([data-theme="light"]) .theme-toggle .icon-moon { color: var(--accent); }

/* === Light Mode Button Overrides === */
[data-theme="light"] .btn-primary {
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(21, 128, 61, 0.4);
}

[data-theme="light"] .btn-primary:hover {
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(21, 128, 61, 0.5);
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
    }
}
