:root {
    color-scheme: dark;
    --bg: #09111f;
    --bg-accent: #0f1d33;
    --surface: rgba(11, 22, 40, 0.78);
    --surface-strong: rgba(18, 33, 59, 0.94);
    --line: rgba(173, 209, 255, 0.14);
    --text: #eef5ff;
    --muted: #a8bbd8;
    --accent: #7fe3b8;
    --accent-strong: #a7f08a;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(127, 227, 184, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(86, 156, 255, 0.24), transparent 32%),
        linear-gradient(180deg, #0a1324 0%, #09111f 60%, #07101c 100%);
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
}

a {
    color: var(--accent);
}

.page-shell {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.page-shell-narrow {
    width: min(860px, calc(100% - 32px));
}

.hero,
.subpage-header {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 24px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 45%),
        var(--surface-strong);
    box-shadow: var(--shadow);
}

.hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    align-items: center;
}

.eyebrow,
.section-kicker,
.meta-label {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    color: var(--muted);
}

h1,
h2,
h3,
p,
ul {
    margin-top: 0;
}

h1,
h2 {
    font-family: "Instrument Serif", serif;
    line-height: 0.95;
}

h1 {
    margin-bottom: 16px;
    font-size: clamp(48px, 7vw, 84px);
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(30px, 4vw, 46px);
}

h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.lede,
.panel p,
.legal-copy p,
.clean-list {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    color: #0a1324;
}

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

.hero-card,
.panel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 22px;
}

.hero-app {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.app-icon,
.brand-mark {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.brand-mark {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(167, 240, 138, 0.9), rgba(127, 227, 184, 0.78));
    color: #0a1324;
    font-size: 24px;
    font-weight: 700;
}

.app-badge {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(127, 227, 184, 0.12);
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 700;
}

.hero-grid {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.meta-value {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.panel-wide {
    grid-column: 1 / -1;
}

.panel {
    padding: 24px;
}

.panel-highlight {
    background:
        linear-gradient(160deg, rgba(127, 227, 184, 0.08), transparent 52%),
        var(--surface);
}

.faq-list {
    display: grid;
    gap: 18px;
}

.clean-list {
    padding-left: 18px;
    margin-bottom: 0;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.95em;
}

.panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.code-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.code-card pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    line-height: 1.65;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding: 18px 4px 0;
    color: var(--muted);
    font-size: 14px;
}

.footer p {
    margin-bottom: 0;
}

.legal-copy {
    display: grid;
    gap: 22px;
    margin-top: 18px;
}

.legal-copy section {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
}

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

    .footer {
        flex-direction: column;
    }

    h1 {
        font-size: clamp(40px, 12vw, 62px);
    }
}
