* {
    box-sizing: border-box;
}

:root {
    --page-bg: #eff3f8;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --ink: #0f172a;
    --muted: #475569;
    --line: rgba(15, 23, 42, 0.12);
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    --accent: #2563eb;
    --accent-strong: #1d4ed8;
    --accent-soft: rgba(37, 99, 235, 0.12);
    --hero-start: #eff6ff;
    --hero-end: #ecfeff;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 38%),
        linear-gradient(180deg, #f8fafc 0%, var(--page-bg) 100%);
    font-family: "Manrope", "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

code,
pre,
.mono {
    font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
}

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

.site-header {
    padding: 1.15rem 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    text-decoration: none;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.topnav {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.topnav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.topnav a:hover,
.topnav a:focus-visible {
    color: var(--ink);
}

.page {
    padding-bottom: 4rem;
}

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

.hero-panel,
.home-panel {
    border: 1px solid var(--line);
    border-radius: 2rem;
    background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: clamp(1.75rem, 4vw, 3.5rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0 0 0.75rem;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.75rem);
    max-width: 14ch;
}

h2 {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
}

h3 {
    font-size: 1.22rem;
}

p {
    margin: 0 0 1rem;
}

.lead {
    max-width: 42rem;
    font-size: clamp(1.08rem, 1.2vw + 0.9rem, 1.38rem);
    font-weight: 600;
}

.body-copy,
.section-copy,
.card p,
.step p,
.faq p,
.mini-list,
.meta-list li,
.callout p,
.placeholder p,
.footnote,
.pill-note {
    color: var(--muted);
}

.actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin: 1.75rem 0 1rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.35rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.button.primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.74);
    color: var(--ink);
    border-color: var(--line);
}

.button.ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.hero-aside,
.callout,
.card,
.step,
.placeholder,
.shot,
.faq details,
.metric,
.home-card {
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: var(--surface);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.hero-aside {
    padding: 1.3rem;
}

.hero-aside h2 {
    font-size: 1.4rem;
    margin-bottom: 0.9rem;
}

.meta-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.meta-list li {
    display: grid;
    gap: 0.15rem;
}

.meta-label {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mini-list {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0 0;
    padding-left: 1rem;
}

.section {
    padding: 1.5rem 0 0.5rem;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.section-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.card-grid,
.gallery,
.metrics,
.home-grid {
    display: grid;
    gap: 1rem;
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.metrics {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.card,
.shot,
.placeholder,
.metric,
.home-card {
    padding: 1.25rem;
}

.metric strong,
.card strong,
.step strong,
.placeholder strong,
.home-card strong {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    letter-spacing: -0.04em;
}

.metric {
    background: var(--surface-strong);
}

.metric strong {
    display: block;
    font-size: 1.75rem;
    margin-bottom: 0.2rem;
}

.steps {
    display: grid;
    gap: 1rem;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.1rem 1.25rem;
}

.step-index {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 700;
}

.placeholder,
.shot {
    overflow: hidden;
}

.placeholder {
    min-height: 250px;
    justify-content: end;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.92)),
        linear-gradient(135deg, var(--hero-start), var(--hero-end));
}

.shot {
    background: rgba(255, 255, 255, 0.94);
}

.shot img {
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    margin-bottom: 1rem;
}

.callout {
    padding: 1.4rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.96));
    color: #f8fafc;
}

.callout .section-label,
.callout p {
    color: rgba(248, 250, 252, 0.82);
}

.code-block {
    margin: 0;
    overflow-x: auto;
    border-radius: 1.25rem;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.88);
    color: #dbeafe;
    border: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 0.92rem;
    line-height: 1.65;
}

.faq {
    display: grid;
    gap: 0.85rem;
}

.faq details {
    padding: 1rem 1.15rem;
    background: rgba(255, 255, 255, 0.92);
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq details[open] summary {
    margin-bottom: 0.75rem;
}

.cta-band {
    margin-top: 2rem;
    padding: 1.8rem;
    border-radius: 1.8rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.22);
}

.cta-band p {
    color: rgba(255, 255, 255, 0.84);
    max-width: 40rem;
}

.cta-band .button.secondary {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
}

.footer {
    border-top: 1px solid var(--line);
    padding: 1.5rem 0 3rem;
}

.footer-grid {
    display: grid;
    gap: 1rem;
}

.app-links {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
}

.pill-link:hover,
.pill-link:focus-visible {
    color: var(--ink);
}

.footnote {
    font-size: 0.95rem;
}

.home-panel {
    padding: clamp(2rem, 5vw, 3.5rem);
}

.home-panel h1 {
    max-width: 12ch;
}

.home-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 2rem;
}

.home-card {
    text-decoration: none;
    color: inherit;
}

.home-card p {
    margin-bottom: 0.75rem;
}

.home-card span {
    color: var(--accent-strong);
    font-size: 0.9rem;
    font-weight: 700;
}

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

@media (max-width: 640px) {
    .shell {
        width: min(100% - 1rem, 1120px);
    }

    .hero-panel,
    .home-panel {
        border-radius: 1.4rem;
        padding: 1.25rem;
    }

    .button {
        width: 100%;
    }

    .step {
        grid-template-columns: 1fr;
    }

    .site-header {
        padding: 0.9rem 0;
    }
}
