:root {
    --bg: #f6f8fc;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --border: #dbe3f2;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #eef3ff 0%, #f8fbff 35%, #ffffff 100%);
    line-height: 1.6;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    background: rgba(248, 251, 255, 0.85);
    border-bottom: 1px solid rgba(219, 227, 242, 0.65);
    z-index: 30;
}

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

.brand {
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--text);
}

.brand span { color: var(--primary); }

.nav { display: flex; gap: 1.2rem; }
.nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: start;
}

.eyebrow {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    margin: 0;
}

.lead {
    margin-top: 1.2rem;
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 62ch;
}

.hero-cta {
    display: flex;
    gap: 0.85rem;
    margin-top: 1.6rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    border-radius: 0.7rem;
    font-weight: 700;
    padding: 0.85rem 1.15rem;
    text-decoration: none;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--text);
    background: #fff;
}

.hero-card {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 1.2rem 1.2rem;
}

.hero-card h2 { margin-top: 0.2rem; font-size: 1.1rem; }
.hero-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-card li {
    margin: 0.55rem 0;
    color: #1e293b;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.55rem;
    align-items: start;
}

.hero-card li::before {
    content: "✓";
    color: #1e40af;
    font-weight: 700;
    line-height: 1.4;
}

.section { padding: 3rem 0; }
.section h2 { font-size: clamp(1.45rem, 2.5vw, 2.1rem); margin-bottom: 1.25rem; }

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.15rem;
}

.card h3 { margin-top: 0; }
.card p { color: var(--muted); }

.section-alt {
    background: #0f172a;
    color: #f8fafc;
    margin: 1rem 0;
}

.timeline { margin: 0; padding-left: 1.15rem; }
.timeline li { margin: 0.8rem 0; color: #dbeafe; }

.projects {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.projects article {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: #fff;
}

.projects p { color: var(--muted); }

.contact-box {
    border: 1px solid var(--border);
    background: #eff6ff;
    border-radius: 1rem;
    padding: 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.site-footer {
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 1.25rem;
    color: var(--muted);
}

.footer-grid > div {
    min-width: 0;
    display: grid;
    gap: 0.45rem;
}

.footer-grid p {
    margin: 0;
    line-height: 1.45;
}

.footer-contact-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

@media (max-width: 900px) {
    .hero-grid,
    .cards,
    .projects,
    .contact-box,
    .footer-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .nav { display: none; }

    .contact-box .btn {
        justify-self: start;
    }
}
