@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #0c0c10;
    --fg: #f5f4f0;
    --muted: rgba(245, 244, 240, 0.6);
    --line: rgba(255, 255, 255, 0.09);
    --maxw: 1080px;
    --pad: clamp(1.25rem, 3vw, 2rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(8, 8, 12, 0.78), rgba(8, 8, 12, 0.92)),
        url('assets/SS_BG.jpg') center/cover no-repeat fixed;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

/* ---------- Buttons (shared system) ---------- */
.btn {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    padding: 8px 16px;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    outline: none;
    border: 1px solid rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
    position: relative;
    width: 100%;
    transition: background 120ms ease, box-shadow 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.btn:focus-visible {
    box-shadow: 0 0 0 2px rgba(196, 92, 50, 0.5);
}

.btn-primary {
    background: rgb(184, 80, 42);
    color: rgb(250, 249, 245);
    box-shadow:
        rgba(95, 40, 10, 0.45) 0 1px 3px,
        rgba(95, 40, 10, 0.3) 0 2px 6px,
        rgba(255, 255, 255, 0.15) 0 1px 0 inset;
}

.btn-primary:hover {
    background: rgb(170, 72, 36);
    box-shadow:
        rgba(95, 40, 10, 0.55) 0 1px 3px,
        rgba(95, 40, 10, 0.4) 0 4px 10px,
        rgba(255, 255, 255, 0.18) 0 1px 0 inset;
}

.btn-primary:active {
    transform: translateY(0.5px);
    box-shadow:
        rgba(95, 40, 10, 0.5) 0 1px 2px,
        rgba(255, 255, 255, 0.12) 0 1px 0 inset;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--fg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        rgba(0, 0, 0, 0.25) 0 1px 2px,
        rgba(255, 255, 255, 0.06) 0 1px 0 inset;
    justify-content: space-between;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-glyph {
    font-weight: 700;
    line-height: 1;
}

.btn-label {
    font-weight: 600;
}

.btn-aside {
    color: var(--muted);
    font-weight: 400;
    font-size: 12px;
}

.cta-wrap {
    width: 100%;
    max-width: 260px;
    margin: 0.25rem auto 0;
}

/* ---------- Hero ---------- */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(2.5rem, 6vh, 4.5rem) var(--pad) clamp(4rem, 8vh, 6rem);
    gap: 1rem;
    position: relative;
    animation: fade-in 700ms ease-out both;
}

.logo {
    width: clamp(220px, 28vw, 320px);
    height: auto;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55));
    margin-bottom: 0.5rem;
}

.eyebrow {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.hero-title {
    font-size: clamp(2.25rem, 5.2vw, 3.75rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.hero-subtitle {
    color: var(--muted);
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    max-width: 38ch;
}

.scroll-cue {
    position: absolute;
    bottom: clamp(1.5rem, 3.5vh, 2.25rem);
    left: 50%;
    transform: translateX(-50%);
    color: var(--muted);
    opacity: 0.7;
    animation: nudge 2.4s ease-in-out infinite;
    pointer-events: none;
}

/* ---------- Sections ---------- */
.block {
    padding: clamp(3rem, 8vh, 5.5rem) 0;
    border-top: 1px solid var(--line);
}

.lead {
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    color: var(--fg);
    max-width: 60ch;
    margin: 0 auto 2rem;
    text-align: center;
    line-height: 1.65;
    font-weight: 400;
}

.downloads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.625rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ---------- Video ---------- */
.block-video {
    padding-block: clamp(2.5rem, 6vh, 4rem);
}

.video-frame {
    width: min(100%, 880px);
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow:
        rgba(0, 0, 0, 0.6) 0 20px 50px,
        rgba(255, 255, 255, 0.05) 0 0 0 1px;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ---------- Gallery ---------- */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.section-header h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.015em;
}

.link {
    color: rgb(220, 130, 90);
    font-weight: 500;
    font-size: 13px;
    transition: color 120ms ease;
}

.link:hover {
    color: rgb(240, 155, 115);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

.screenshot-grid img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    background: #111;
    transition: transform 200ms ease, box-shadow 200ms ease;
    box-shadow: rgba(0, 0, 0, 0.4) 0 4px 12px;
}

.screenshot-grid img:hover {
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.55) 0 10px 24px;
}

/* ---------- Finale ---------- */
.block-finale {
    text-align: center;
}

.finale-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.finale-sub {
    color: var(--muted);
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    max-width: 42ch;
    margin: 0 auto 1.5rem;
}

/* ---------- Footer ---------- */
.footer {
    padding: 2.5rem var(--pad);
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid var(--line);
}

.footer p:last-child {
    margin-top: 0.25rem;
    color: var(--fg);
    font-weight: 500;
}

/* ---------- Animations ---------- */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes nudge {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
    50%      { transform: translate(-50%, 6px); opacity: 0.9; }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    body::before {
        background-attachment: scroll;
    }

    .screenshot-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 6px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}
