/* LoL Metrics — Landing page styles */

:root {
    --bg: #0c0c0f;
    --bg-elevated: #141419;
    --bg-card: #1a1a21;
    --text: #e8e8ed;
    --text-muted: #9090a0;
    --accent: #d4a84b;
    --accent-dim: #b8923f;
    --accent-glow: rgba(212, 168, 75, 0.15);
    --border: rgba(255, 255, 255, 0.06);
    --radius: 12px;
    --radius-lg: 16px;
    --font-sans: 'Outfit', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* iOS Safari: overflow-x on body doesn't work reliably; wrapper fixes horizontal scroll */
.site-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-x: clip;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem; /* leave room for sticky header so anchor targets aren’t hidden */
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-x: none;
}

/* Skip link: off-screen until focused (accessibility) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 1rem;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
    background-image: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 168, 75, 0.04) 0%, transparent 50%),
                      radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 40%),
                      radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.015) 0%, transparent 35%);
}
.noise::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.015' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 12, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1.2rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--text);
}

.nav a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius);
    color: var(--text);
}

.nav-cta {
    color: var(--accent) !important;
}

.nav-cta:hover {
    color: var(--accent-dim) !important;
}

/* Hero */
.hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: 4rem 1.5rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 540px;
    margin: 0 auto;
}

.hero-title {
    margin: 0 0 1.25rem;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-accent {
    color: var(--accent);
}

.hero-subtitle {
    margin: 0 auto 2rem;
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.hero-actions .btn,
.hero-actions .hero-mock-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    min-height: 2.75rem;
    box-sizing: border-box;
}

.hero-content .hero-actions + .btn-primary {
    display: inline-block;
    margin-top: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #0c0c0f;
}

.btn-primary:hover {
    background: var(--accent-dim);
    box-shadow: 0 0 24px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn:focus-visible,
.hero-mock-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.hero-mock-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(212, 168, 75, 0.4);
    border-radius: var(--radius);
    transition: all 0.2s;
    font-size: 1rem;
}

.hero-mock-link:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
}

/* Live demo styles moved to live-demo.css */

/* Sections – consistent vertical rhythm */
section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.section-title {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.section-subtitle {
    margin: 0 0 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Features */
.features {
    /* uses section padding */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    border-color: rgba(212, 168, 75, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.feature-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Requirements */
.requirements {
    /* uses section padding */
}

.requirements-content {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.req-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.req-block-supported {
    position: relative;
}

.req-block-note {
    margin: 0.5rem 0 0;
    padding-top: 0.35rem;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.85;
}

.req-block h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
}

.req-block ul {
    margin: 0;
    padding-left: 1.25rem;
}

.req-block li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* Support */
.support {
    text-align: center;
}

.support-text {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.support-btn {
    margin-top: 0.25rem;
}

/* CTA */
.cta {
    padding: 2rem 1.5rem;
}

.cta-content {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.cta-title {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    font-weight: 700;
}

.cta-subtitle {
    margin: 0 0 2rem;
    color: var(--text-muted);
}

.cta-note {
    margin: 1.5rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer p + p {
    margin-top: 0.5rem;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 404 page */
.page-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 180px);
    padding: 2rem 1.5rem;
}

.section-404 {
    text-align: center;
}

.title-404 {
    margin: 0 0 0.5rem;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    line-height: 1;
    color: var(--text-muted);
    letter-spacing: -0.03em;
}

.text-404 {
    margin: 0 0 2rem;
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Print */
@media print {
    .noise,
    .skip-link {
        display: none !important;
    }
    body { background: #fff; color: #111; }
    .header { background: #fff; border-color: #ddd; }
    .nav a, .footer a, .hero-accent { color: #333; }
    .btn-primary { background: #333; color: #fff; }
}

/* Mobile nav & hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text);
    border-radius: var(--radius);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    body {
        touch-action: pan-y;
    }
}

@media (max-width: 600px) {
    .nav-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 1rem 1.5rem;
        background: rgba(12, 12, 15, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.2s ease;
    }

    .header.nav-open .nav {
        max-height: 280px;
        opacity: 1;
    }

    .nav a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .header-inner {
        position: relative;
    }
}
