/* ============================================================
   home.css — global stylesheet for Home page sections
   Loaded as a non-scoped asset so it applies across all child
   section components (Hero, Features, Steps, ...).
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 90px);
    padding: 3rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

@supports not (height: 100dvh) {
    .hero {
        min-height: calc(100vh - 90px);
    }
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 38%, rgba(27, 159, 255, 0.28), transparent 50%),
        radial-gradient(circle at 80% 90%, rgba(255, 157, 61, 0.10), transparent 60%);
    pointer-events: none;
}

/* Crosshair / reticle motif behind the hero text.
   Pure SVG data-URI — no extra DOM, no JS. Two concentric rings + 4 ticks +
   center dot, sized & positioned to sit centered on the hero. */
.hero::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 42%;
    width: min(820px, 92vw);
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%231b9fff' stroke-linecap='round'><circle cx='200' cy='200' r='190' stroke-opacity='0.18' stroke-width='1.2'/><circle cx='200' cy='200' r='150' stroke-opacity='0.28' stroke-width='1.4'/><circle cx='200' cy='200' r='96' stroke-opacity='0.42' stroke-width='1.6'/><circle cx='200' cy='200' r='52' stroke-opacity='0.55' stroke-width='1.8'/><line x1='200' y1='14' x2='200' y2='62' stroke-opacity='0.55' stroke-width='2.2'/><line x1='200' y1='338' x2='200' y2='386' stroke-opacity='0.55' stroke-width='2.2'/><line x1='14' y1='200' x2='62' y2='200' stroke-opacity='0.55' stroke-width='2.2'/><line x1='338' y1='200' x2='386' y2='200' stroke-opacity='0.55' stroke-width='2.2'/><line x1='200' y1='110' x2='200' y2='138' stroke-opacity='0.40' stroke-width='1.6'/><line x1='200' y1='262' x2='200' y2='290' stroke-opacity='0.40' stroke-width='1.6'/><line x1='110' y1='200' x2='138' y2='200' stroke-opacity='0.40' stroke-width='1.6'/><line x1='262' y1='200' x2='290' y2='200' stroke-opacity='0.40' stroke-width='1.6'/><circle cx='200' cy='200' r='3.5' fill='%231b9fff' fill-opacity='0.85' stroke='none'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* Soft halo around the reticle to lift it off the page. */
    filter: drop-shadow(0 0 28px rgba(27, 159, 255, 0.20));
    /* Fade the edges so it blends into the page background. */
    -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 78%);
            mask-image: radial-gradient(circle, #000 55%, transparent 78%);
    opacity: 0.95;
}

@media (prefers-reduced-motion: no-preference) {
    .hero::after {
        animation: hero-reticle-breathe 9s ease-in-out infinite;
    }
}

@keyframes hero-reticle-breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.95; }
    50%      { transform: translate(-50%, -50%) scale(1.025); opacity: 1; }
}

.hero-content {
    max-width: 720px;
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    color: #ffffff;
    text-shadow: 0 0 40px rgba(27, 159, 255, 0.25);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #c8cad1;
    line-height: 1.7;
    margin: 0 0 2.5rem;
}

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

/* ---------- Buttons (only used inside the home hero / features) ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:focus-visible {
    outline: 2px solid var(--ce-cyan);
    outline-offset: 3px;
}

.btn-primary {
    background: linear-gradient(135deg, #1b9fff 0%, #0d7ed6 100%);
    color: #fff;
    border-color: rgba(27, 159, 255, 0.6);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 6px 22px rgba(27, 159, 255, 0.35), 0 0 40px rgba(27, 159, 255, 0.18);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2bacff 0%, #1493f0 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 8px 30px rgba(27, 159, 255, 0.5), 0 0 60px rgba(27, 159, 255, 0.25);
}

.btn-secondary {
    background: rgba(14, 20, 36, 0.55);
    color: #e4e4e7;
    border: 1px solid rgba(27, 159, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(27, 159, 255, 0.10);
    border-color: rgba(27, 159, 255, 0.45);
    box-shadow: 0 0 24px rgba(27, 159, 255, 0.15);
}

/* ---------- Generic section helpers ---------- */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 3rem;
    color: #ffffff;
}

.section-intro {
    text-align: center;
    font-size: 1.05rem;
    color: #a1a1aa;
    max-width: 720px;
    margin: -1.5rem auto 3rem;
    line-height: 1.6;
}

.section-note {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.95rem;
    color: #a1a1aa;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
}

.inline-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--ce-cyan);
    text-decoration: none;
    font-weight: 600;
}

.inline-link:hover,
.inline-link:focus-visible {
    text-decoration: underline;
}

/* ---------- Features ---------- */
.features {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    position: relative;
    background: linear-gradient(180deg, rgba(20, 28, 48, 0.55) 0%, rgba(10, 14, 26, 0.55) 100%);
    border: 1px solid rgba(27, 159, 255, 0.15);
    border-radius: 14px;
    padding: 2rem;
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(27, 159, 255, 0.55), transparent);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.feature-card:hover {
    border-color: rgba(27, 159, 255, 0.45);
    background: linear-gradient(180deg, rgba(24, 34, 58, 0.65) 0%, rgba(12, 18, 32, 0.65) 100%);
    transform: translateY(-3px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 12px 36px rgba(27, 159, 255, 0.18);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card-wide {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(27, 159, 255, 0.10) 0%, rgba(255, 157, 61, 0.04) 100%);
    border-color: rgba(27, 159, 255, 0.28);
}

.feature-icon {
    margin-bottom: 1.25rem;
    line-height: 1;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 30%, rgba(27, 159, 255, 0.30), rgba(27, 159, 255, 0.08) 70%);
    color: #1b9fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(27, 159, 255, 0.30);
    box-shadow: 0 0 18px rgba(27, 159, 255, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #ffffff;
}

.feature-card p {
    font-size: 0.95rem;
    color: #a1a1aa;
    line-height: 1.6;
    margin: 0;
}

/* ---------- Customization / Counter ---------- */
.customization-section {
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.counter-section {
    padding: 5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.detail-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 1.75rem;
}

.detail-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #ffffff;
}

.detail-card p {
    font-size: 0.92rem;
    color: #a1a1aa;
    line-height: 1.6;
    margin: 0;
}

.key {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    background: rgba(27, 159, 255, 0.15);
    border: 1px solid rgba(27, 159, 255, 0.3);
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85em;
    font-weight: 600;
    color: #1b9fff;
}

/* ---------- Steam ---------- */
.steam-section {
    padding: 5rem 2rem;
    border-top: 1px solid rgba(27, 159, 255, 0.10);
    background: linear-gradient(180deg, rgba(27, 159, 255, 0.04) 0%, transparent 100%);
}

.steam-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.steam-feature h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #ffffff;
}

.steam-feature p {
    font-size: 1rem;
    color: #a1a1aa;
    line-height: 1.65;
    margin: 0 0 1.25rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: #a1a1aa;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1b9fff;
    font-weight: 700;
}

/* ---------- Organizer ---------- */
.organizer-section {
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.organizer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.organizer-feature h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #ffffff;
}

.organizer-feature p {
    font-size: 0.9rem;
    color: #a1a1aa;
    line-height: 1.6;
    margin: 0;
}

/* ---------- Tech ---------- */
.tech-section {
    padding: 5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.tech-card {
    background: linear-gradient(180deg, rgba(20, 28, 48, 0.55) 0%, rgba(10, 14, 26, 0.55) 100%);
    border: 1px solid rgba(27, 159, 255, 0.20);
    border-radius: 12px;
    padding: 1.75rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.tech-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #ffffff;
}

.tech-card p {
    font-size: 0.92rem;
    color: #a1a1aa;
    line-height: 1.6;
    margin: 0;
}

/* ---------- How it works ---------- */
.how-it-works-section {
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1b9fff 0%, #0d7ed6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    border: 1px solid rgba(27, 159, 255, 0.55);
    box-shadow: 0 0 22px rgba(27, 159, 255, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #ffffff;
}

.step-content p {
    font-size: 0.95rem;
    color: #a1a1aa;
    line-height: 1.6;
    margin: 0;
}

/* ---------- Quick reference ---------- */
.quick-ref-section {
    padding: 5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hotkeys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.hotkey-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(20, 28, 48, 0.55) 0%, rgba(10, 14, 26, 0.55) 100%);
    border: 1px solid rgba(27, 159, 255, 0.18);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hotkey-item .key {
    font-size: 0.95rem;
    align-self: flex-start;
}

.hotkey-desc {
    font-size: 0.9rem;
    color: #a1a1aa;
}

.hotkey-note {
    text-align: center;
    font-size: 0.9rem;
    color: #71717a;
    margin: 0;
}

/* ---------- Requirements ---------- */
.requirements-section {
    padding: 5rem 2rem 6rem;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.req-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.req-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #a1a1aa;
    font-size: 1rem;
}

.req-list li:last-child {
    border-bottom: none;
}

/* ---------- Trailer ---------- */
.trailer-section {
    padding: 5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .features,
    .customization-section,
    .steam-section,
    .organizer-section,
    .tech-section,
    .how-it-works-section,
    .quick-ref-section,
    .requirements-section {
        padding: 3.5rem 1.5rem;
    }

    .features-grid,
    .detail-grid,
    .tech-grid,
    .organizer-grid,
    .steam-features,
    .hotkeys-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .btn,
    .feature-card,
    .feature-card::before {
        transition: none !important;
    }

    .btn:hover,
    .feature-card:hover {
        transform: none;
    }
}

/* ---------- Status pages (404 / Error) ---------- */
.status-page {
    text-align: center;
}

.status-title {
    margin-bottom: 1rem;
}

.status-intro {
    margin: 0 auto 2rem;
}

.status-request-id {
    color: #71717a;
    font-size: 0.9rem;
}

.status-actions {
    justify-content: center;
}
