:root {
    color-scheme: dark;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #101311;
    color: #f7f9f7;
    --panel: #1b211d;
    --edge: #39413c;
    --muted: #b3bbb6;
    --green: #5fd58a;
    --blue: #75aef2;
    --amber: #f3bd58;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: #101311;
    line-height: 1.75;
}

header,
main,
footer {
    width: min(840px, calc(100% - 40px));
    margin-inline: auto;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    border-bottom: 1px solid var(--edge);
}

.brand {
    color: #f7f9f7;
    font-weight: 800;
    text-decoration: none;
}

.back {
    color: var(--green);
    text-decoration: none;
}

main { padding: 48px 0 72px; }

h1,
h2,
h3 {
    letter-spacing: 0;
    word-break: auto-phrase;
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.2;
}

h2 {
    margin: 44px 0 12px;
    padding-top: 18px;
    border-top: 1px solid var(--edge);
    font-size: 1.35rem;
}

h3 {
    margin: 30px 0 8px;
    font-size: 1.05rem;
}

p,
li,
dd,
figcaption { color: #d0d6d2; }

ul { padding-left: 1.3rem; }
a { color: var(--green); }

.product-home { padding-top: 36px; }

.product-hero {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 210px;
}

.app-icon {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgb(0 0 0 / 45%);
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--amber);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.lead {
    margin: 10px 0 0;
    color: #f7f9f7;
    font-size: 1.1rem;
    font-weight: 700;
}

.edition {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.product-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    align-items: center;
    gap: 52px;
    padding: 48px 0;
    border-top: 1px solid var(--edge);
    border-bottom: 1px solid var(--edge);
}

.product-intro h2 {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    font-size: clamp(1.6rem, 5vw, 2.25rem);
}

.feature-list {
    display: grid;
    gap: 16px;
    padding: 0;
    list-style: none;
}

.feature-list li {
    padding-left: 14px;
    border-left: 3px solid var(--green);
}

.feature-list strong,
.feature-list span {
    display: block;
}

.feature-list strong { color: #f7f9f7; }
.feature-list span { color: var(--muted); }

.screen-preview {
    margin: 0;
    text-align: center;
}

.screen-preview img {
    display: block;
    width: min(100%, 290px);
    margin-inline: auto;
    border: 1px solid var(--edge);
    border-radius: 8px;
    box-shadow: 0 22px 56px rgb(0 0 0 / 38%);
}

.screen-preview figcaption {
    margin-top: 10px;
    font-size: 0.8rem;
}

.origin-story {
    margin-top: 44px;
    padding: 8px 0 10px 22px;
    border-left: 3px solid var(--amber);
}

.origin-story h2 {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    font-size: clamp(1.55rem, 5vw, 2.1rem);
}

.origin-story p:last-child { margin-bottom: 0; }

.product-home > section:not(.product-hero):not(.product-intro):not(.origin-story) {
    margin-top: 44px;
    padding-top: 18px;
    border-top: 1px solid var(--edge);
}

.product-home > section:not(.product-hero):not(.product-intro):not(.origin-story) h2 {
    margin-top: 8px;
    padding-top: 0;
    border-top: 0;
}

.notice {
    padding: 14px 16px;
    border-left: 3px solid var(--blue);
    background: #18202a;
}

.facts,
.operator-info {
    margin: 24px 0 0;
}

.facts div,
.operator-info div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid var(--edge);
}

dt {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

dd { margin: 0; }

.page-links {
    margin-top: 52px;
    border-top: 1px solid var(--edge);
}

.page-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
    border-bottom: 1px solid var(--edge);
    color: #f7f9f7;
    text-decoration: none;
}

.page-links strong,
.page-links small {
    display: block;
}

.page-links small {
    margin-top: 2px;
    color: var(--muted);
}

.updated {
    margin-top: 0;
    color: #89928c;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--green);
    border-radius: 6px;
    color: #09120c;
    background: var(--green);
    font-weight: 800;
    text-decoration: none;
}

.faq h3 { color: #f7f9f7; }

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

footer {
    padding: 24px 0 40px;
    border-top: 1px solid var(--edge);
    color: #89928c;
    font-size: 0.85rem;
}

@media (max-width: 680px) {
    .product-intro {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .screen-preview img { width: min(74vw, 290px); }
}

@media (max-width: 520px) {
    .product-hero {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 16px;
        min-height: 160px;
    }

    .app-icon {
        width: 88px;
        height: 88px;
        border-radius: 18px;
    }

    h1 { font-size: 2rem; }

    .facts div,
    .operator-info div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

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