/**
 * IFL PvP – Landing Page
 * ======================
 * Theme aligned with BootScene: navy/slate base, blue + amber accents.
 * Fonts: Bebas Neue (logo), Rajdhani (body), Orbitron (tech).
 */

:root {
    --bg-dark: #06080c;
    --bg-mid: #080a0e;
    --bg-elevated: #0a0e14;
    --bg-card: #0c1018;
    --border: rgba(30, 40, 56, 0.9);
    --border-soft: rgba(68, 136, 255, 0.12);
    --blue-glow: rgba(68, 136, 255, 0.25);
    --blue-bright: #4488ff;
    --blue-soft: #6688aa;
    --amber-glow: rgba(204, 153, 68, 0.3);
    --amber-bright: #ffdd88;
    --amber-cta: #cc9944;
    --text: #e8e8e8;
    --text-muted: #6a7585;
    --text-dim: #445566;
    --font-logo: 'Bebas Neue', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    /* Pixel-perfect spacing (8px grid) */
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.25rem;  /* 20px */
    --space-6: 1.5rem;   /* 24px */
    --space-8: 2rem;     /* 32px */
    --space-10: 2.5rem;  /* 40px */
    --space-12: 3rem;    /* 48px */
    --space-15: 3.75rem; /* 60px */
    --space-20: 5rem;    /* 80px */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .media-inner, .how-inner, .features-inner, .faq-inner, .play-inner, .alpha-inner { transition: none; }
}

body {
    font-family: var(--font-body);
    font-weight: 500;
    line-height: 1.5;
    background: var(--bg-mid);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Ambient glow – same as BootScene (blue/amber) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse 100% 80% at 50% 20%, rgba(12, 16, 24, 0.98) 0%, transparent 55%),
        radial-gradient(circle at 25% 30%, rgba(68, 136, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 75% 70%, rgba(204, 153, 68, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 200;
    padding: var(--space-3) var(--space-4);
    background: var(--blue-bright);
    color: var(--bg-dark);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transform: translateY(-100%);
    transition: transform 0.2s var(--ease-out);
}
.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid var(--amber-bright);
    outline-offset: 2px;
}

.skip-link:focus:not(:focus-visible) {
    outline: none;
}

.skip-link:focus-visible {
    outline: 2px solid var(--amber-bright);
    outline-offset: 2px;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ----- Header ----- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-4) var(--space-6);
    padding-top: max(var(--space-4), env(safe-area-inset-top));
    padding-left: max(var(--space-6), env(safe-area-inset-left));
    padding-right: max(var(--space-6), env(safe-area-inset-right));
    background: linear-gradient(180deg, rgba(6, 8, 12, 0.92) 0%, transparent 100%);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.header.scrolled {
    background: rgba(6, 8, 12, 0.88);
    border-color: var(--border-soft);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    letter-spacing: 0.05em;
    transition: opacity 0.2s var(--ease-out);
    border-radius: var(--radius-sm);
}

.nav-logo:hover {
    opacity: 0.92;
}

.nav-logo:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 3px;
}

.nav-logo .logo-ifl {
    font-family: var(--font-logo);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    background: linear-gradient(180deg, #e8f0ff 0%, #aaccff 45%, #6688dd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.nav-logo .logo-pvp {
    font-family: var(--font-logo);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    margin-left: -0.02em;
    background: linear-gradient(180deg, #fff8e8 0%, #ffdd88 40%, #cc9944 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s var(--ease-out), text-shadow 0.2s var(--ease-out);
}

.nav-links a:hover {
    color: var(--amber-bright);
    text-shadow: 0 0 16px var(--amber-glow);
}

.nav-links a:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 3px;
    color: var(--text);
    border-radius: var(--radius-sm);
}

.nav-link.active {
    color: var(--amber-bright);
    text-shadow: 0 0 12px var(--amber-glow);
}

/* Scroll reveal – sections fade in when in view */
.media-inner,
.how-inner,
.features-inner,
.faq-inner,
.play-inner,
.alpha-inner {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.media-inner.revealed,
.how-inner.revealed,
.features-inner.revealed,
.faq-inner.revealed,
.play-inner.revealed,
.alpha-inner.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Hero ----- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-15) var(--space-6) var(--space-10);
    padding-top: max(var(--space-15), env(safe-area-inset-top));
    padding-left: max(var(--space-6), env(safe-area-inset-left));
    padding-right: max(var(--space-6), env(safe-area-inset-right));
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 50% 40%, var(--bg-elevated) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-mid) 50%, var(--bg-dark) 100%);
    z-index: 0;
}

/* Sprite chase – film and hearts visible; full opacity so characters read clearly */
.hero-chase {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20%;
    height: 140px;
    z-index: 1;
    pointer-events: none;
}

.hero-chase canvas {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

@media (max-width: 768px) {
    .hero-chase {
        bottom: 22%;
        height: 100px;
    }
}

.hero-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-soft) 20%, var(--border-soft) 80%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 640px;
    padding: 0 var(--space-4);
}

.hero-story {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto 1.25rem;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    background: rgba(10, 14, 20, 0.6);
    border: 1px solid var(--border-soft);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}
.hero-story em {
    color: var(--amber-bright);
    font-style: normal;
    font-weight: 600;
}

.hero-title {
    margin-bottom: 0.5rem;
}

.hero-title .logo-ifl,
.hero-title .logo-pvp {
    font-family: var(--font-logo);
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    font-weight: 400;
    letter-spacing: 0.28em;
    display: inline-block;
    animation: logoGlow 3s ease-in-out infinite;
}

.hero-title .logo-ifl {
    background: linear-gradient(180deg, #e8f0ff 0%, #aaccff 45%, #6688dd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.hero-title .logo-pvp {
    margin-left: -0.05em;
    letter-spacing: 0.35em;
    background: linear-gradient(180deg, #fff8e8 0%, #ffdd88 40%, #cc9944 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)); }
    50% { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 24px var(--amber-glow)); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-title .logo-ifl,
    .hero-title .logo-pvp {
        animation: none;
    }
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.38em;
    color: var(--blue-soft);
    margin-bottom: var(--space-3);
    line-height: 1.4;
    opacity: 0.95;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin-bottom: var(--space-10);
    line-height: 1.45;
}

.cta-primary {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bg-dark);
    background: linear-gradient(180deg, var(--amber-bright) 0%, var(--amber-cta) 100%);
    padding: var(--space-3) 2.125rem;
    min-height: 44px;
    min-width: 44px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid rgba(204, 153, 68, 0.4);
    box-shadow:
        0 0 20px var(--amber-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px var(--amber-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: var(--bg-dark);
}

.cta-primary:active {
    transform: translateY(0);
    box-shadow: 0 0 16px var(--amber-glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cta-primary:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 3px;
}

/* Alpha Testers – first section below hero, doesn’t block animation */
.alpha-section {
    padding: var(--space-12) var(--space-6);
    text-align: center;
    border-top: 1px solid var(--border-soft);
}

.alpha-inner {
    max-width: 420px;
    margin: 0 auto;
    padding: 1.5rem 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(68, 136, 255, 0.06);
}

.hero-alpha-title {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber-bright);
    margin-bottom: var(--space-2);
}

.hero-alpha-tagline {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: var(--space-5);
}

.alpha-inner .newsletter-form {
    margin: 0;
}

.alpha-inner .newsletter-email {
    min-width: 180px;
}

@media (max-width: 768px) {
    .alpha-section {
        padding: var(--space-10) var(--space-5);
    }
    .alpha-inner {
        padding: var(--space-5);
    }
    .hero-alpha-title {
        font-size: 1rem;
        letter-spacing: 0.15em;
    }
}

/* ----- Media (video + screenshots) ----- */
.media {
    padding: var(--space-20) var(--space-6);
    position: relative;
    text-align: center;
}

.media-inner {
    max-width: 960px;
    margin: 0 auto;
}

.media .section-title {
    margin-bottom: var(--space-3);
}

.media .section-lead,
.media-lead {
    margin-bottom: var(--space-8);
}

.media-video-wrap {
    margin-bottom: var(--space-8);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    background: var(--bg-card);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

.media-video-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-dark) 100%);
    color: var(--text-dim);
    border: 2px dashed rgba(68, 136, 255, 0.2);
}

.media-scroll-cta {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s var(--ease-out);
}

.media-scroll-cta:hover {
    border-color: rgba(68, 136, 255, 0.35);
}

.media-scroll-cta:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 2px;
}

.media-placeholder-icon {
    font-size: 2.5rem;
    opacity: 0.6;
}

.media-video-placeholder .media-placeholder-label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--blue-soft);
}

.media-placeholder-hint {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

.media-screenshots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.media-screenshot-placeholder {
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    border: 2px dashed rgba(68, 136, 255, 0.2);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.media-screenshot-placeholder:hover {
    border-color: rgba(68, 136, 255, 0.35);
    box-shadow: 0 0 20px rgba(68, 136, 255, 0.06);
}

.media-screenshot-placeholder .media-placeholder-icon {
    font-size: 1.5rem;
}

.media-screenshot-placeholder .media-placeholder-label {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-muted);
}

/* ----- How it works ----- */
.how {
    padding: var(--space-20) var(--space-6);
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 8, 12, 0.35) 50%, transparent 100%);
}

.how-inner {
    max-width: 900px;
    margin: 0 auto;
}

.how .section-title {
    margin-bottom: var(--space-3);
}

.how .section-lead,
.how-lead {
    margin-bottom: var(--space-8);
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 0;
}

.how-step {
    text-align: center;
}

.how-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--blue-bright) 0%, rgba(68, 136, 255, 0.5) 100%);
    color: var(--bg-dark);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    box-shadow: 0 0 20px var(--blue-glow);
}

.how-step h3 {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text);
    margin-bottom: var(--space-2);
}

.how-step p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.48;
}

/* ----- Features ----- */
.features {
    padding: var(--space-20) var(--space-6);
    position: relative;
}

.features-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text);
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Feature hero strip – idle parade (subtle) */
.feature-hero-strip {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-8);
    opacity: 0.35;
}

.feature-hero-strip canvas {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.feature-card:hover {
    border-color: rgba(68, 136, 255, 0.2);
    box-shadow: 0 0 24px rgba(68, 136, 255, 0.08);
}

.feature-icon {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--blue-soft);
    margin-bottom: var(--space-4);
    opacity: 0.9;
}

.feature-card h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ----- Play CTA ----- */
.play {
    padding: var(--space-20) var(--space-6);
    text-align: center;
    position: relative;
}

.play-inner {
    max-width: 560px;
    margin: 0 auto;
}

.play .section-lead {
    margin-bottom: var(--space-4);
}

.play-feedback {
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto var(--space-8);
    line-height: 1.48;
}

.cta-secondary {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-bright);
    background: transparent;
    padding: var(--space-3) var(--space-8);
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid rgba(204, 153, 68, 0.4);
    transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), text-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.cta-secondary:hover {
    color: var(--amber-bright);
    border-color: rgba(204, 153, 68, 0.6);
    text-shadow: 0 0 20px var(--amber-glow);
    background: rgba(204, 153, 68, 0.08);
}

.cta-secondary:active {
    background: rgba(204, 153, 68, 0.12);
}

.cta-secondary:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 3px;
}

/* ----- FAQ ----- */
.faq {
    padding: var(--space-20) var(--space-6);
    text-align: center;
}

.faq-inner {
    max-width: 560px;
    margin: 0 auto;
}

.faq .section-title {
    margin-bottom: 1.5rem;
}

.faq-list {
    list-style: none;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid var(--border-soft);
}

.faq-q {
    margin: 0;
}

.faq-toggle {
    width: 100%;
    padding: var(--space-4) 0;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s var(--ease-out);
}

.faq-toggle:hover {
    color: var(--amber-bright);
}

.faq-toggle:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.faq-toggle::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--blue-soft);
    transition: transform 0.2s ease;
}

.faq-item .faq-toggle[aria-expanded="true"]::after {
    transform: rotate(45deg);
}

.faq-a {
    margin: 0;
    padding: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-height: 0;
    min-height: 0;
    overflow: hidden;
    transition: max-height 0.22s var(--ease-out);
}

.faq-a p {
    margin: 0 0 0.4em 0;
}

.faq-a p:last-child {
    margin-bottom: 0;
}

.faq-a-open {
    max-height: 320px;
    padding: 0 0 1rem 0;
}

.faq-link {
    color: var(--blue-bright);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.faq-link:hover {
    color: var(--amber-bright);
    border-bottom-color: rgba(204, 153, 68, 0.5);
}

.faq-link:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ----- Newsletter (Kit) ----- */
.newsletter {
    padding: 5rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-soft);
}

.newsletter-inner {
    max-width: 480px;
    margin: 0 auto;
}

.newsletter .section-title {
    margin-bottom: 0.5rem;
}

.newsletter .section-lead {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Our newsletter form – email + button, always visible */
.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    align-items: center;
}

.newsletter-email {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    padding: var(--space-3) var(--space-4);
    min-width: 220px;
    border-radius: var(--radius-sm);
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.newsletter-email::placeholder {
    color: var(--text-dim);
}

.newsletter-email:focus {
    outline: none;
    border-color: var(--blue-bright);
    box-shadow: 0 0 0 2px rgba(68, 136, 255, 0.2);
}

.newsletter-email:focus-visible {
    outline: none;
    border-color: var(--blue-bright);
    box-shadow: 0 0 0 2px rgba(68, 136, 255, 0.2);
}

.newsletter-submit {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bg-dark);
    background: var(--amber-cta);
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.newsletter-submit:hover {
    background: var(--amber-bright);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--amber-glow);
}

.newsletter-submit:active {
    transform: scale(0.98);
}

.newsletter-submit:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Kit-injected messages (if script used elsewhere) – dark, readable */
.formkit-alert,
.formkit-error,
[data-formkit-alert] {
    background: var(--bg-card) !important;
    color: var(--text) !important;
    border: 1px solid var(--border-soft) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 4px !important;
    font-family: var(--font-body) !important;
}

/* Kit badge – hidden on free plan */
.formkit-badge,
.formkit-powered-by-convertkit-container {
    display: none !important;
}

/* ----- Footer ----- */
.footer {
    margin-top: auto;
    padding: var(--space-6);
    border-top: 1px solid var(--border-soft);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.footer-cta {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: var(--space-5);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social-link {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.footer-social-link:hover {
    color: var(--amber-bright);
    border-color: var(--border-soft);
    background: rgba(204, 153, 68, 0.06);
}

.footer-social-link.footer-social-discord {
    color: var(--blue-soft);
}

.footer-social-link.footer-social-discord:hover {
    color: var(--amber-bright);
    box-shadow: 0 0 16px rgba(204, 153, 68, 0.15);
}

.footer-social-link:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 2px;
}

.footer-credit {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-dim);
    letter-spacing: 0.06em;
}

.footer-version {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    opacity: 0.85;
}

/* ----- Responsive / pixel-perfect mobile ----- */
@media (max-width: 768px) {
    .nav-links {
        gap: 1.25rem;
    }
    .nav-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .hero {
        padding: 5rem 1rem 3rem;
        padding-top: max(5rem, env(safe-area-inset-top));
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    .hero-story {
        font-size: 0.88rem;
        padding: 0.5rem 0.75rem;
        margin-bottom: 1rem;
    }
    .hero-title .logo-ifl,
    .hero-title .logo-pvp {
        letter-spacing: 0.15em;
    }
    .hero-title .logo-pvp {
        letter-spacing: 0.2em;
    }
    .hero-subtitle {
        letter-spacing: 0.25em;
    }
    .cta-primary {
        padding: var(--space-3) var(--space-8);
    }
    .media-screenshots {
        grid-template-columns: 1fr;
    }
    .how-steps {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    .features,
    .play,
    .media,
    .how,
    .faq {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    .footer {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
}

@media (max-width: 640px) {
    .how-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-links a {
        font-size: 0.85rem;
        letter-spacing: 0.1em;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .media-screenshots {
        grid-template-columns: 1fr;
    }
    .footer-social-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

::selection {
    background: rgba(68, 136, 255, 0.35);
    color: #fff;
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 2px;
}
