/* Global Design Tokens */
:root {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;

    --color-bg: #FFFFFF;
    --color-text: #0f172a;
    /* Slate 900 */
    --color-text-muted: #64748b;
    /* Slate 500 */

    --color-primary: #2563eb;
    /* Blue 600 */
    --color-primary-hover: #1d4ed8;
    --color-secondary: #f1f5f9;
    /* Slate 100 */
    --color-secondary-hover: #e2e8f0;

    --color-border: #e2e8f0;
    --color-card-bg: #ffffff;

    --radius: 0.5rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);

    --footer-bg: #020617;
    /* Dark slate */
    --footer-text: #cbd5e1;
    --footer-border: #1e293b;
    --footer-title: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #020817;
        /* Slate 950 */
        --color-text: #f8fafc;
        /* Slate 50 */
        --color-text-muted: #94a3b8;
        /* Slate 400 */

        --color-primary: #3b82f6;
        /* Blue 500 */
        --color-primary-hover: #60a5fa;
        --color-secondary: #1e293b;
        /* Slate 800 */
        --color-secondary-hover: #334155;

        --color-border: #1e293b;
        --color-card-bg: #0f172a;
        /* Slate 900 */
    }
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
}

.btn-outline {
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
}

.btn-outline:hover {
    background-color: var(--color-secondary);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-hover);
}

.section-padding {
    padding: 4rem 0;
}

/* Layout */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--color-border);
}

@media (prefers-color-scheme: dark) {
    header {
        background-color: rgba(2, 8, 23, 0.8);
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

.nav-links a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-text);
}

/* Footer Improved */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 5rem 0 2rem;
    font-size: 0.95rem;
    margin-top: auto;
    border-top: 1px solid var(--footer-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--footer-title);
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--footer-text);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-col a:hover {
    opacity: 1;
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Pricing Card */
.pricing-card {
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
    background-color: var(--color-card-bg);
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary), var(--shadow-md);
    position: relative;
    transform: scale(1.02);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}