:root {
    color-scheme: dark;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --bg-deep: #080c14;
    --bg-mid: #101828;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --border: rgba(255, 255, 255, 0.10);
    --border-hover: rgba(255, 255, 255, 0.22);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --accent: #60a5fa;
    --success: #22c55e;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(37, 99, 235, 0.18) 0,
            transparent 34%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(14, 165, 233, 0.10) 0,
            transparent 28%
        ),
        linear-gradient(
            145deg,
            var(--bg-mid) 0%,
            var(--bg-deep) 72%
        );
    color: var(--text);
}

a {
    color: inherit;
}

.page {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0 36px;
}

.hero,
.catalog {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.hero {
    padding: 52px;
}

.brand {
    display: inline-block;
    margin-bottom: 36px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 800px;
    margin: 0;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.description {
    max-width: 660px;
    margin: 24px 0 32px;
    color: var(--muted-strong);
    font-size: 18px;
    line-height: 1.7;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dbeafe;
    font-size: 14px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
    box-shadow:
        0 0 0 5px rgba(34, 197, 94, 0.10),
        0 0 24px rgba(34, 197, 94, 0.32);
}

.catalog {
    margin-top: 24px;
    padding: 36px;
}

.catalog-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.catalog-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    letter-spacing: -0.035em;
}

.catalog-count {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.catalog-state {
    padding: 22px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    color: var(--muted);
    line-height: 1.5;
}

.catalog-state[hidden] {
    display: none;
}

.service-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 16px;
}

.service-card {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel-strong);
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.service-slug {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-name {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.025em;
}

.service-description {
    flex: 1;
    margin: 14px 0 24px;
    color: var(--muted-strong);
    font-size: 15px;
    line-height: 1.6;
}

.service-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #dbeafe;
    font-size: 14px;
    font-weight: 650;
}

.service-link:hover,
.service-link:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.service-link::after {
    content: "↗";
    font-size: 15px;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 6px 0;
    color: #64748b;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .page {
        width: min(100% - 28px, 1120px);
        padding-top: 28px;
    }

    .hero {
        padding: 34px 26px;
    }

    .catalog {
        padding: 26px;
    }

    .catalog-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer {
        flex-direction: column;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card {
        transition: none;
    }
}
