/* RetroVem Vault - Main Stylesheet */
/* Vanilla CSS - No frameworks */
/* Palette keyed to brand chrome: steel blue / silver over copper */

@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

/* ===== Base Reset & Variables ===== */
:root {
    --bg-primary: #0a0a0c;
    --bg-secondary: #141416;
    --bg-elevated: #1a1a1e;
    --text-primary: #f4f4f5;
    --text-secondary: #a3a3a8;
    --chrome-steel: #c5d6e4;
    --chrome-steel-deep: #7a9bb0;
    --chrome-copper: #c4785a;
    --chrome-copper-deep: #8b4f3c;
    --accent-primary: #b8c9d6;
    --accent-hover: #e2ebf2;
    --border-color: #2c2c32;
    --border-chrome: rgba(197, 214, 228, 0.35);
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --error-color: #ff7675;
    --font-display: "Chakra Petch", "Segoe UI", sans-serif;
    --font-main: "IBM Plex Sans", "Segoe UI", sans-serif;
    --max-width: 1100px;
    --header-h: 4.25rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: clip;
}

img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, .section-title, .vault-path__label {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

a {
    color: var(--chrome-steel);
}

a:hover {
    color: var(--accent-hover);
}

/* ===== Header ===== */
.main-header {
    background:
        linear-gradient(180deg, #1c1c20 0%, #121214 100%);
    border-bottom: 1px solid var(--border-color);
    box-shadow:
        inset 0 1px 0 rgba(197, 214, 228, 0.12),
        0 1px 0 rgba(196, 120, 90, 0.15);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex: 1 1 auto;
    min-width: 0;
}

.main-header h1 {
    font-size: 1.25rem;
    margin: 0;
    min-width: 0;
}

.main-header h1 a {
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.main-header h1 a:hover {
    color: var(--chrome-steel);
}

.site-logo {
    height: 40px;
    width: auto;
    display: block;
}

.brand-mark {
    max-width: min(420px, 90vw);
    width: 100%;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
}

.profile-pic {
    width: 160px;
    height: auto;
    border: 1px solid var(--border-color);
    display: block;
    margin-bottom: 1.5rem;
}

.about-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 800px;
    margin-top: 2rem;
    text-align: left;
}

@media (max-width: 640px) {
    .about-layout {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .about-layout .profile-pic {
        margin-left: auto;
        margin-right: auto;
    }
}

.social-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem 1.5rem;
    margin: 1.5rem 0 0;
    padding: 0;
    text-align: left;
}

.social-list a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.social-list a:hover {
    color: var(--chrome-steel);
    border-bottom-color: var(--chrome-steel);
}

.social-list .social-icon {
    width: 1.15em;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.9;
}

.social-credit {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.social-credit a {
    color: var(--chrome-steel);
}

.contact-email a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
    text-decoration: none;
}

.contact-email a:hover {
    color: var(--chrome-steel);
}

.feature-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0 2rem;
}

.feature-links a {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 500;
}

.feature-links a:hover {
    border-color: var(--border-chrome);
    color: var(--chrome-steel);
}

.feature-links a.primary {
    background: linear-gradient(180deg, #d6e2ec 0%, #8aa3b5 45%, #5f7788 100%);
    border-color: #e8f0f5;
    color: #0a0a0c;
}

.feature-links a.primary:hover {
    background: linear-gradient(180deg, #eef4f8 0%, #a8bfd0 45%, #72899a 100%);
    color: #0a0a0c;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(197, 214, 228, 0.12);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    border-color: var(--border-chrome);
    color: var(--chrome-steel);
    outline: none;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 1.15rem;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle__bars::before {
    top: -6px;
}

.nav-toggle__bars::after {
    top: 6px;
}

.main-header.is-nav-open .nav-toggle__bars {
    background: transparent;
}

.main-header.is-nav-open .nav-toggle__bars::before {
    top: 0;
    transform: rotate(45deg);
}

.main-header.is-nav-open .nav-toggle__bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.main-nav {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    transition: color 0.2s, border-color 0.2s;
    border-bottom: 2px solid transparent;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    border-bottom-color: var(--chrome-copper);
}

/* ===== Main Content ===== */
.main-content {
    min-height: calc(100vh - 200px);
}

/* ===== Landing hero (home) ===== */
.landing-hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 55% at 50% 35%, rgba(122, 155, 176, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 50% 70%, rgba(139, 79, 60, 0.14) 0%, transparent 50%),
        linear-gradient(180deg, #0e1014 0%, #0a0a0c 55%, #080809 100%);
    border-bottom: 1px solid var(--border-color);
}

.landing-hero__glow {
    position: absolute;
    inset: 18% 10% auto;
    height: 40%;
    background: radial-gradient(ellipse at center, rgba(197, 214, 228, 0.12), transparent 70%);
    pointer-events: none;
    animation: hero-pulse 7s ease-in-out infinite;
}

.landing-hero__sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(232, 240, 245, 0.04) 48%,
        rgba(196, 120, 90, 0.05) 52%,
        transparent 65%
    );
    background-size: 200% 100%;
    animation: chrome-sheen 9s linear infinite;
    pointer-events: none;
}

.landing-hero__inner {
    position: relative;
    z-index: 1;
    padding: 3.5rem 1.25rem 4rem;
    animation: hero-rise 0.9s ease-out both;
}

.landing-brand {
    display: block;
    width: min(640px, 92vw);
    height: auto;
    margin: 0 auto 1.75rem;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}

.landing-tagline {
    max-width: 34rem;
    margin: 0 auto 2rem;
    color: var(--text-primary);
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.55;
    opacity: 0.92;
}

.landing-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 11rem;
    padding: 0.9rem 1.6rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta--chrome {
    color: #0a0a0c;
    background: linear-gradient(
        180deg,
        #eef4f8 0%,
        #c5d6e4 28%,
        #8aa3b5 55%,
        #5f7788 100%
    );
    border-color: #f2f7fa;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25),
        0 8px 20px rgba(0, 0, 0, 0.35);
}

.cta--chrome:hover {
    color: #0a0a0c;
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 12px 28px rgba(0, 0, 0, 0.4);
}

.cta--copper {
    color: #f8f4f1;
    background: linear-gradient(
        180deg,
        #e0a080 0%,
        #c4785a 32%,
        #8b4f3c 62%,
        #5c3428 100%
    );
    border-color: #f0c4b0;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 200, 0.45),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.35);
}

.cta--copper:hover {
    color: #fff;
    filter: brightness(1.1);
}

@keyframes chrome-sheen {
    from { background-position: 120% 0; }
    to { background-position: -20% 0; }
}

@keyframes hero-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Vault paths + shared sections ===== */
.section-title {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-lead {
    color: var(--text-secondary);
    max-width: 36rem;
    margin-bottom: 1.75rem;
}

.vault-section {
    padding: 4rem 0 3rem;
    background:
        linear-gradient(180deg, #0f1013 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.vault-paths {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--border-color);
}

.vault-path {
    display: grid;
    grid-template-columns: minmax(6rem, 9rem) 1fr;
    gap: 1.25rem;
    align-items: baseline;
    padding: 1.15rem 0.25rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.vault-path:hover {
    background: rgba(197, 214, 228, 0.04);
    padding-left: 0.5rem;
    color: inherit;
}

.vault-path__label {
    color: var(--chrome-steel);
    font-size: 1.15rem;
}

.vault-path__hint {
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.vault-path:hover .vault-path__label {
    color: var(--accent-hover);
}

.hero-section {
    padding: 4rem 0;
    text-align: center;
}

.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.page-section {
    padding: 4rem 0;
}

.featured-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top-color: var(--border-chrome);
    padding: 2rem;
    border-radius: 2px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.featured-card__media {
    display: block;
    margin: -2rem -2rem 1.25rem;
    background: #000;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.featured-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.featured-card__media--75 {
    width: 75%;
    margin: 0 auto 1.25rem;
    border: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.featured-card:hover {
    transform: translateY(-3px);
    border-color: var(--chrome-steel-deep);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.featured-card h3 a {
    color: var(--chrome-steel);
    text-decoration: none;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(180deg, #d6e2ec 0%, #8aa3b5 45%, #5f7788 100%);
    color: #0a0a0c;
    padding: 0.75rem 1.5rem;
    border-radius: 2px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    margin-top: 1rem;
    border: 1px solid #e8f0f5;
}

.btn-primary:hover {
    filter: brightness(1.08);
    color: #0a0a0c;
}

/* ===== Links Table ===== */
.external-links-section {
    padding: 3.5rem 0 4rem;
}

.links-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.links-table th,
.links-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.links-table th {
    background-color: var(--bg-secondary);
    font-weight: bold;
}

.social-links {
    margin-top: 2rem;
    color: var(--text-secondary);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 3rem 0;
    text-align: center;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* ===== Footer ===== */
.main-footer {
    background:
        linear-gradient(180deg, #121214 0%, #0e0e10 100%);
    border-top: 1px solid var(--border-color);
    box-shadow: inset 0 1px 0 rgba(197, 214, 228, 0.08);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-content a {
    color: var(--chrome-steel);
    text-decoration: none;
}

.footer-content a:hover {
    color: var(--accent-hover);
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 1rem;
}

.footer-nav a:hover,
.footer-nav a.active {
    color: var(--chrome-steel);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    :root {
        --header-h: 4rem;
    }

    .container {
        padding: 0 1rem;
    }

    .main-header {
        padding: 0.65rem 0;
    }

    .main-header .container {
        flex-direction: column;
        align-items: stretch;
    }

    .header-bar {
        width: 100%;
    }

    .main-header h1 {
        font-size: 1.05rem;
    }

    .main-header h1 a {
        gap: 0.55rem;
    }

    .site-logo {
        height: 34px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 0.35rem;
    }

    .main-header.is-nav-open .main-nav {
        display: flex;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 0.85rem 0.5rem;
        border-bottom: 1px solid var(--border-color);
        font-size: 1rem;
        text-align: left;
    }

    .nav-link:hover,
    .nav-link.active {
        border-bottom-color: var(--chrome-copper);
        background: rgba(197, 214, 228, 0.04);
    }

    .landing-hero {
        min-height: calc(100svh - var(--header-h));
        min-height: calc(100dvh - var(--header-h));
    }

    .landing-hero__inner {
        padding: 2rem 0 2.75rem;
    }

    .landing-brand {
        width: min(100%, 420px);
        margin-bottom: 1.25rem;
    }

    .landing-tagline {
        font-size: 1.02rem;
        margin-bottom: 1.5rem;
        padding: 0 0.25rem;
    }

    .landing-ctas {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: min(100%, 22rem);
        margin: 0 auto;
    }

    .cta {
        width: 100%;
        min-width: 0;
        padding: 0.95rem 1.1rem;
        font-size: 0.98rem;
    }

    .vault-section,
    .external-links-section,
    .page-section,
    .hero-section {
        padding: 2.5rem 0;
    }

    .vault-path {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        padding: 1rem 0;
    }

    .vault-path:hover {
        padding-left: 0.25rem;
    }

    .social-list {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .social-list a {
        padding: 0.75rem 0;
        min-height: 2.75rem;
    }

    .feature-links {
        justify-content: stretch;
        gap: 0.75rem;
    }

    .feature-links a {
        flex: 1 1 100%;
        text-align: center;
        padding: 0.85rem 1rem;
    }

    .featured-card {
        padding: 1.35rem;
    }

    .featured-card__media {
        margin: -1.35rem -1.35rem 1rem;
    }

    .featured-card__media--75 {
        margin: 0 auto 1rem;
    }

    .hero-section h2 {
        font-size: 1.75rem;
    }

    .btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        max-width: 100%;
        min-height: 2.75rem;
    }

    .download-page {
        margin: 1.5rem auto;
        padding: 1.25rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }

    .footer-nav a {
        margin: 0;
        padding: 0.35rem 0.25rem;
    }
}

@media (max-width: 400px) {
    .main-header h1 {
        font-size: 0.98rem;
    }

    .landing-brand {
        width: 100%;
    }

    .cta {
        letter-spacing: 0.03em;
        font-size: 0.92rem;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-reduced-data: reduce) {
    .featured-card {
        opacity: 0.7;
    }

    .preview-images,
    .high-res-images,
    .landing-hero__sheen,
    .landing-hero__glow {
        display: none;
    }
}

/* ===== Download Protection Page Styles ===== */
.download-page {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 2px;
}

.download-card {
    border-left: 4px solid var(--chrome-steel-deep);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(122, 155, 176, 0.06);
}

.download-card h3 {
    color: var(--chrome-steel);
    margin-bottom: 1rem;
}

.download-card ul {
    list-style: none;
}

.download-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.download-card li::before {
    content: "OK";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 0.7rem;
}

.warning-box {
    border-left: 4px solid var(--warning-color);
    padding: 1.5rem;
    background: rgba(253, 203, 110, 0.05);
    margin-top: 1.5rem;
}

.warning-box h3 {
    color: #e67e22;
    margin-bottom: 0.5rem;
}

.warning-box p {
    color: var(--text-secondary);
}

.download-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-box {
    text-align: center;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 2px;
    border: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--chrome-steel);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.play-canvas-area {
    background: #000;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.play-canvas-area canvas {
    display: block;
    max-width: 100%;
}
