:root {
    --bg: #f5f7fb;
    --bg-accent: #eef4ff;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --text: #111827;
    --muted: #5f6b7f;
    --line: rgba(17, 24, 39, 0.08);
    --line-strong: rgba(17, 24, 39, 0.14);
    --accent: #4da3ff;
    --accent-soft: rgba(77, 163, 255, 0.1);
    --accent-purple: rgba(106, 92, 255, 0.12);
    --shadow-lg: 0 18px 48px rgba(17, 24, 39, 0.08);
    --shadow-md: 0 10px 26px rgba(17, 24, 39, 0.06);
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-sm: 999px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(77, 163, 255, 0.1), transparent 28%),
        radial-gradient(circle at top right, rgba(106, 92, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #fbfcfe 0%, var(--bg) 48%, #eff3f9 100%);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.page-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.site-header {
    position: sticky;
    top: 18px;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 36px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(22px) saturate(140%);
    box-shadow: var(--shadow-md);
}

.brand {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(77, 163, 255, 0.14), rgba(106, 92, 255, 0.12));
    color: #193151;
    font-size: 0.98rem;
    font-weight: 700;
}

.brand strong,
.hero h1,
.section h1,
.section h2,
.app-card h2,
.app-card h3,
.content-page h1,
.content-page h2,
.content-page h3 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    letter-spacing: -0.04em;
}

.brand strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-nav a,
.button,
.link-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-nav a {
    color: var(--muted);
}

.site-nav a:hover,
.button:hover,
.link-row a:hover {
    transform: translateY(-1px);
}

.site-nav a:hover {
    background: rgba(17, 24, 39, 0.04);
    color: var(--text);
}

.site-main {
    display: grid;
    gap: 30px;
}

.hero,
.section,
.content-page {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface-strong), var(--surface));
    box-shadow: var(--shadow-lg);
}

.hero::before,
.section::before,
.content-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(77, 163, 255, 0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(106, 92, 255, 0.06), transparent 24%);
    pointer-events: none;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    gap: 30px;
    padding: 56px;
}

.hero-copy,
.hero-panel,
.section,
.content-page {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 14px;
    color: #4b74b8;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.section h1,
.section h2,
.content-page h1 {
    margin: 0;
    line-height: 0.96;
}

.hero h1 {
    max-width: 7ch;
    font-size: clamp(3.7rem, 8vw, 6rem);
    font-weight: 700;
    text-wrap: balance;
}

.lead {
    max-width: 32ch;
    margin-top: 18px;
    font-size: clamp(1.18rem, 2.2vw, 1.42rem);
    color: #263447;
    line-height: 1.45;
}

.intro {
    max-width: 60ch;
    color: var(--muted);
}

.hero-actions,
.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button-primary,
.link-row a:first-child {
    border-color: rgba(77, 163, 255, 0.22);
    background: linear-gradient(180deg, #54a9ff, #3b95f3);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(77, 163, 255, 0.2);
}

.button-secondary,
.link-row a:last-child {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.6);
    color: var(--text);
}

.button-secondary:hover,
.link-row a:last-child:hover {
    border-color: var(--line-strong);
    background: #fff;
}

.hero-panel {
    display: grid;
    gap: 14px;
    align-content: start;
}

.metric-card,
.app-card {
    padding: 24px;
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.metric-card strong,
.app-card h2,
.app-card h3 {
    color: var(--text);
}

.metric-card strong {
    display: block;
    font-size: 1.1rem;
}

.metric-card:hover,
.app-card:hover {
    transform: translateY(-2px);
    border-color: rgba(77, 163, 255, 0.14);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
}

.metric-label,
.app-status {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: #2f66ad;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section,
.content-page {
    padding: 40px;
}

.section-accent {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 249, 255, 0.92));
}

.section-heading {
    max-width: 62ch;
    margin-bottom: 28px;
}

.section-heading h2,
.section-heading h1,
.content-header h1 {
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    font-weight: 700;
    text-wrap: balance;
}

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

.app-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.app-card-top h2,
.app-card-top h3 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
}

.app-card p,
.metric-card {
    color: var(--muted);
}

.app-tagline {
    margin-top: 8px;
    color: #32455f;
    font-size: 1rem;
}

.app-card .link-row {
    margin-top: auto;
    padding-top: 8px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}

.tag-list li {
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    background: rgba(17, 24, 39, 0.04);
    color: #40526b;
    font-size: 0.84rem;
}

.content-header {
    margin-bottom: 24px;
}

.content-body {
    max-width: 76ch;
    color: #334155;
}

.content-body :first-child {
    margin-top: 0;
}

.content-body h2,
.content-body h3 {
    margin-top: 2.2rem;
    color: var(--text);
}

.content-body a {
    color: #2f74d0;
}

.content-body ul {
    padding-left: 1.25rem;
}

.content-body code {
    padding: 0.12rem 0.42rem;
    border-radius: 0.45rem;
    background: rgba(17, 24, 39, 0.05);
    color: #1f2937;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 18px;
    margin-top: 28px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-md);
    color: var(--muted);
}

.site-footer strong {
    color: var(--text);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.site-footer a {
    color: #284d8e;
}

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

    .site-header {
        position: static;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero h1 {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 24px, 1120px);
        padding-top: 20px;
    }

    .site-header,
    .hero,
    .section,
    .content-page,
    .site-footer {
        padding: 24px;
    }

    .hero h1 {
        font-size: clamp(2.9rem, 16vw, 4.3rem);
    }

    .site-nav {
        width: 100%;
    }

    .site-nav a {
        flex: 1 1 calc(50% - 8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .site-nav a,
    .button,
    .link-row a,
    .metric-card,
    .app-card {
        transition: none;
    }
}
