:root {
    --bg: #f9fafb;
    --surface: #ffffff;
    --surface-alt: #f3f4f6;
    --text: #111827;
    --text-secondary: #6b7280;
    --primary: #1f2937;
    --primary-light: #374151;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #e5e7eb;
    --success: #059669;
    --error: #dc2626;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 15px;
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    gap: 2rem;
}

.brand {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--accent);
    background: var(--surface-alt);
}

.site-main {
    padding: 2rem 0 3rem;
}

.hero {
    padding: 4rem 0 3rem;
    margin-bottom: 1rem;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    margin: 0.5rem 0 1.2rem;
    color: var(--primary);
}

.eyebrow {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    background: #e0e7ff;
    border: 1px solid #c7d2fe;
    margin-bottom: 0.5rem;
}

h1, h2, h3 {
    line-height: 1.2;
    margin: 0 0 0.8rem;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.5rem;
    color: var(--primary);
}

h3 {
    font-size: 1.1rem;
}

.lead {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 60ch;
    line-height: 1.7;
}

.section {
    padding: 3rem 0;
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card h2 {
    margin-top: 0;
}

.highlight-card {
    background: linear-gradient(135deg, #eef2ff 0%, #f3f4f6 100%);
    border-color: var(--accent);
}

.feature-list {
    margin: 1rem 0 0;
    padding-left: 1.3rem;
    list-style: none;
}

.feature-list li {
    margin-bottom: 0.7rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border: none;
    background: var(--accent);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.narrow {
    width: min(680px, 100%);
}

.contact-form {
    display: grid;
    gap: 1.1rem;
    background: var(--surface-alt);
    padding: 2rem;
    border-radius: 12px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--primary);
    font-size: 0.95rem;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font: inherit;
    background: white;
    transition: all 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.alerts {
    margin-top: 1rem;
}

.alert {
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin: 0 0 0.8rem;
    border: 1px solid;
    background-color: rgba(0, 0, 0, 0.02);
}

.alert.success {
    background-color: #f0fdf4;
    border-color: #86efac;
    color: var(--success);
}

.alert.error {
    background-color: #fef2f2;
    border-color: #fca5a5;
    color: var(--error);
}

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--primary);
    color: #f3f4f6;
    margin-top: 3rem;
    padding: 2.5rem 0;
}

.site-footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-col p, .footer-col a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--accent);
    margin: 0 0 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 860px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero {
        padding: 2.5rem 0 2rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }
}
