@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --accent: #6d5dfc;
    --accent-strong: #4f46e5;
    --accent-soft: #dbeafe;
    --background: #f6f7fb;
    --surface: #ffffff;
    --surface-muted: #eef2f7;
    --ink: #111827;
    --muted: #5b6472;
    --line: #d8dee8;
    --header-bg: rgba(246, 247, 251, 0.9);
    --pill-bg: rgba(15, 159, 110, 0.12);
    --pill-text: #047857;
    --success: #0f9f6e;
    --shadow: 0 18px 55px rgba(17, 24, 39, 0.11);
}

:root[data-theme="dark"] {
    --accent: #a5b4fc;
    --accent-strong: #818cf8;
    --accent-soft: #1e293b;
    --background: #0f172a;
    --surface: #111827;
    --surface-muted: #1f2937;
    --ink: #f8fafc;
    --muted: #cbd5e1;
    --line: #334155;
    --header-bg: rgba(15, 23, 42, 0.9);
    --pill-bg: rgba(52, 211, 153, 0.16);
    --pill-text: #6ee7b7;
    --success: #34d399;
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--ink);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--header-bg);
    border-bottom: 1px solid rgba(216, 222, 232, 0.9);
    backdrop-filter: blur(16px);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.logo {
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
}

.theme-toggle:hover {
    color: var(--ink);
}

.nav-links a {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--ink);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1.1rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--accent-strong);
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.22);
}

.button-secondary {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: 4rem;
    max-width: 1180px;
    min-height: calc(100vh - 73px);
    margin: 0 auto;
    padding: 4.5rem 1.5rem 3rem;
}

.eyebrow {
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.9rem;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.12;
}

h1 {
    max-width: 780px;
    font-size: clamp(2.6rem, 7vw, 5.7rem);
    letter-spacing: 0;
}

.hero-text {
    max-width: 660px;
    margin-top: 1.25rem;
    color: var(--muted);
    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 650px;
    margin-top: 2.5rem;
}

.quick-stats div {
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.quick-stats dt {
    font-size: 1.55rem;
    font-weight: 800;
}

.quick-stats dd {
    color: var(--muted);
    font-size: 0.88rem;
}

.project-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.project-card img {
    display: block;
    width: min(72%, 320px);
    margin: 2.5rem auto 1.5rem;
}

.project-card-body {
    padding: 1.5rem;
    border-top: 1px solid var(--line);
}

.status-pill {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--pill-bg);
    color: var(--pill-text);
    font-size: 0.8rem;
    font-weight: 800;
}

.project-card h2 {
    font-size: 1.45rem;
    margin-bottom: 0.6rem;
}

.project-card p,
.feature-card p,
.pipeline-step p,
.note-list p,
footer p {
    color: var(--muted);
}

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.section-muted {
    max-width: none;
    background: var(--surface-muted);
}

.section-muted > * {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 2rem;
}

.section-heading h2,
.split-section h2 {
    font-size: clamp(2rem, 4vw, 3.35rem);
}

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

.feature-card,
.pipeline-step,
.note-list article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.4rem;
}

.feature-index {
    color: var(--accent-strong);
    font-weight: 800;
}

.feature-card h3,
.pipeline-step h3,
.note-list h3 {
    margin: 0.9rem 0 0.55rem;
    font-size: 1.15rem;
}

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

.pipeline-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--accent-soft);
    color: var(--accent-strong);
    border-radius: 999px;
    font-weight: 800;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 3rem;
    align-items: start;
}

.note-list {
    display: grid;
    gap: 1rem;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--line);
}

footer span {
    font-weight: 800;
}

:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.35);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .hero,
    .split-section {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 2rem;
        min-height: auto;
    }

    .feature-grid,
    .pipeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.9rem;
    }

    .nav-links {
        width: 100%;
        flex-wrap: wrap;
    }

    .hero {
        padding-top: 3rem;
    }

    .hero-actions,
    .quick-stats,
    .feature-grid,
    .pipeline {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .quick-stats {
        display: grid;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
