:root {
    --bg: #ffffff;
    --bg-soft: #f7f8fb;
    --panel: rgba(255, 255, 255, 0.94);
    --panel-strong: rgba(255, 255, 255, 0.98);
    --line: rgba(11, 19, 33, 0.08);
    --text: #0b1321;
    --muted: #58667d;
    --accent: #b35a00;
    --accent-strong: #8f4700;
    --accent-soft: rgba(179, 90, 0, 0.12);
    --logo-accent: #ffc45c;
    --logo-accent-strong: #ff9d2f;
    --button-accent: #ffc45c;
    --button-accent-strong: #ff9d2f;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --max-width: 1180px;
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background: #ffffff;
    min-height: 100vh;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    margin-bottom: 28px;
    border: 1px solid rgba(11, 19, 33, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand strong,
.brand small,
.nav a,
.button,
.pill,
.eyebrow,
.text-link {
    letter-spacing: 0.02em;
}

.brand span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand strong,
h1,
h2,
h3 {
    font-family: "Space Grotesk", sans-serif;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(140deg, var(--logo-accent) 0%, var(--logo-accent-strong) 100%);
    color: #0b1321;
    font-weight: 800;
}

.brand small,
.lead,
.panel p,
.meta-list,
.footer,
.contact-mail {
    color: var(--muted);
}

.brand,
.brand strong,
.nav a,
.footer a,
.footer p {
    color: #0b1321;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav a {
    padding: 11px 16px;
    border-radius: 999px;
    color: #40516c;
    transition: 180ms ease;
}

.nav a:hover,
.nav a.is-active {
    background: var(--accent-soft);
    color: var(--text);
}

main {
    display: grid;
    gap: 28px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 28px;
    padding: 44px;
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -80px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 196, 92, 0.26), transparent 68%);
    pointer-events: none;
}

.hero-home {
    grid-template-columns: 1fr;
    min-height: 480px;
    align-items: end;
}

.hero-home h1,
.hero-home .lead {
    max-width: none;
}

.subpage-hero {
    grid-template-columns: 1fr;
}

.subpage-hero h1,
.subpage-hero .lead {
    max-width: none;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 0.82rem;
    text-transform: uppercase;
    color: var(--accent);
}

h1 {
    margin: 0;
    font-size: clamp(2.5rem, 7vw, 5.1rem);
    line-height: 0.95;
    max-width: 11ch;
}

h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
}

.lead {
    max-width: 62ch;
    margin: 22px 0 0;
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-actions,
.section-heading,
.section-heading.inline-heading,
.app-detail-header,
.contact-strip,
.footer {
    display: flex;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 700;
}

.button-primary {
    color: #0a1322;
    background: linear-gradient(135deg, var(--button-accent) 0%, var(--button-accent-strong) 100%);
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.hero-aside,
.section-block,
.app-stack,
.screenshot-strip {
    display: grid;
    gap: 18px;
}

.metric-card,
.feature-panel,
.timeline-card,
.prose-panel,
.statement-panel,
.app-preview-card,
.app-detail-card {
    padding: 24px;
}

.metric-card {
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.95), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(11, 19, 33, 0.08);
}

.metric-card strong {
    display: block;
    margin-bottom: 8px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.45rem;
}

.grid {
    display: grid;
    gap: 18px;
}

.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-panel,
.prose-panel,
.timeline-card,
.statement-panel,
.app-preview-card,
.app-detail-card {
    background: var(--panel-strong);
}

.accent-panel,
.statement-panel {
    background:
    linear-gradient(180deg, rgba(255, 196, 92, 0.16), rgba(255, 157, 47, 0.07)),
        var(--panel-strong);
}

.section-heading {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 4px;
}

.inline-heading {
    align-items: end;
    justify-content: space-between;
    flex-direction: row;
}

.text-link {
    color: var(--accent);
    font-weight: 700;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--accent-strong);
}

.app-preview-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: center;
    gap: 18px;
}

.app-icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    object-fit: contain;
    object-position: center;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}

.app-icon.large {
    width: 110px;
    height: 110px;
    border-radius: 28px;
}

.contact-strip {
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 30px;
}

.contact-mail {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.15rem, 2vw, 1.7rem);
}

.footer {
    justify-content: space-between;
    gap: 16px;
    padding: 28px 8px 0;
    font-size: 0.95rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
    background: rgba(255, 196, 92, 0.12);
    color: var(--accent);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.statement-panel {
    gap: 16px;
    padding: 30px;
}

.app-stack {
    gap: 24px;
}

.app-detail-card {
    display: grid;
    gap: 22px;
}

.app-detail-header {
    align-items: center;
    gap: 22px;
}

.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}

.meta-list li {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(247, 248, 251, 0.95);
    border: 1px solid rgba(11, 19, 33, 0.08);
}

.screenshot-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.screenshot-strip img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(11, 19, 33, 0.08);
    object-fit: cover;
    aspect-ratio: 16 / 9;
    background: #ffffff;
}

button {
    font: inherit;
}

.consent-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.consent-banner[hidden] {
    display: none;
}

.consent-copy {
    display: grid;
    gap: 10px;
}

.consent-copy p {
    margin: 0;
}

.consent-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.consent-meta {
    font-size: 0.92rem;
    color: var(--muted);
}

@media (max-width: 960px) {
    .hero,
    .two-columns,
    .three-columns,
    .app-preview-grid,
    .screenshot-strip {
        grid-template-columns: 1fr;
    }

    .topbar,
    .app-detail-header,
    .contact-strip,
    .footer,
    .inline-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding: 34px 24px;
    }

    .app-preview-card {
        grid-template-columns: 72px 1fr;
    }

    .app-icon {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    .app-icon.large {
        width: 88px;
        height: 88px;
        border-radius: 22px;
    }

    .consent-banner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(var(--max-width), calc(100% - 18px));
        padding-top: 10px;
    }

    .topbar,
    .panel,
    .contact-strip {
        border-radius: 20px;
    }

    h1 {
        max-width: none;
    }

    .metric-card,
    .feature-panel,
    .timeline-card,
    .prose-panel,
    .statement-panel,
    .app-preview-card,
    .app-detail-card {
        padding: 20px;
    }
}