/* ========== CSS RESET & DESIGN TOKENS ========== */
:root {
    /* Colors */
    --primary: #2d3748;
    --secondary: #4a5568;
    --accent: #5a67d8;
    --accent-light: #7f9cf5;
    --text: #1a202c;
    --text-light: #4a5568;
    --bg: #f7fafc;
    --surface: #ffffff;
    --surface-dark: #1a202c;

    /* Fonts */
    --font-heading: 'Fraunces', Georgia, serif;
    --font-body: 'Source Sans Pro', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --xs: .5rem;
    --sm: 1rem;
    --md: 2rem;
    --lg: 4rem;
    --xl: 8rem;

    /* Layout */
    --max-width: 1200px;
    --content-width: 800px;
    --radius: 8px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);

    /* Animation */
    --ease: 300ms ease;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin: 0 0 var(--md);
    color: var(--primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p { margin: 0 0 var(--md); }

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: var(--sm);
}

.nav-links a {
    padding: var(--xs) var(--sm);
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--ease);
}

.nav-links a:hover {
    background: var(--accent);
    color: white;
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--xl) var(--md);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.hero-content { max-width: var(--content-width); }

.hero h1 { color: white; }

.subheadline {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: var(--lg);
    opacity: .9;
}

.cta-buttons {
    display: flex;
    gap: var(--sm);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--ease);
}

.btn.primary {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn.secondary:hover {
    background: white;
    color: var(--primary);
}

/* ========== SECTIONS ========== */
section { padding: var(--lg) var(--md); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.feature-grid,
.steps-grid {
    display: grid;
    gap: var(--lg);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature,
.step-card {
    background: var(--surface);
    padding: var(--lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: var(--ease);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-grid {
    display: grid;
    gap: var(--md);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: var(--lg);
}

.testimonial-card {
    background: var(--surface);
    padding: var(--md);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.newsletter {
    background: var(--primary);
    color: white;
    text-align: center;
}

.newsletter h2 { color: white; }

.subscribe-form {
    max-width: 400px;
    margin: var(--md) auto 0;
    display: flex;
    gap: var(--xs);
}

.subscribe-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: var(--radius);
}

.subscribe-form button { flex-shrink: 0; }

.faq-grid {
    max-width: var(--content-width);
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    padding: var(--md);
    margin-bottom: var(--sm);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
}

/* ========== FOOTER ========== */
footer {
    background: var(--surface-dark);
    color: white;
    padding: var(--lg) var(--md);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    gap: var(--md);
    text-align: center;
}

.footer-links {
    display: flex;
    gap: var(--sm);
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: .8;
}

.footer-links a:hover { opacity: 1; }

.copyright { margin: 0; }

/* ========== UTILITIES ========== */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}