:root {
    --bg: #020817;
    --bg-raised: #0f172a;
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #38bdf8;
    --line: rgba(226, 232, 240, 0.14);
    --max: 1080px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    background:
        radial-gradient(ellipse at 50% -8%, rgba(56, 189, 248, 0.16), transparent 46%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-raised) 100%);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.site-header,
.hero,
.products,
.site-footer {
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

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

.site-header nav a:hover {
    color: var(--text);
}

.hero {
    padding: 28px 0 12px;
    text-align: center;
}

.wordmark {
    display: block;
    width: min(720px, 100%);
    height: auto;
    margin: 0 auto;
    border-radius: 28px;
}

.hero p {
    max-width: 34rem;
    margin: 28px auto 0;
    color: var(--muted);
    font-size: 1.15rem;
}

.products {
    padding: 56px 0 72px;
}

.section-head h2 {
    margin: 0 0 22px;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #bae6fd;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 22px 22px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
}

.product-kind {
    margin: 0;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product h3 {
    margin: 10px 0 8px;
    font-size: 1.7rem;
    letter-spacing: -0.03em;
}

.product p {
    margin: 0;
    color: var(--muted);
}

.product-status,
.product-link {
    margin-top: auto;
    padding-top: 22px;
    font-size: 0.95rem;
}

.product-status {
    color: #cbd5e1;
}

.product-link {
    color: var(--text);
    text-underline-offset: 3px;
}

.product-link:hover {
    color: var(--cyan);
}

.site-footer {
    margin-top: auto;
    padding: 8px 0 28px;
    color: #64748b;
    font-size: 0.85rem;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 800px) {
    .product-list {
        grid-template-columns: 1fr;
    }

    .product {
        min-height: 0;
    }
}

@media (max-width: 520px) {
    .site-header,
    .hero,
    .products,
    .site-footer {
        width: min(var(--max), calc(100% - 28px));
    }

    .wordmark {
        border-radius: 18px;
    }
}
