/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: auto;
    /* don’t lock viewport height */
    min-height: 100vh;
    /* still fill screen initially */
    overflow-y: auto;
    /* enable vertical scroll */
    overflow-x: hidden;
    /* avoid horizontal scrollbars */
}

/* Header */
header {
    background-color: #131A2A;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-size: 1.5rem;
    color: #66FF99;
}

/* 🎥 Fullscreen rotating background video */
.video-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    /* keep it behind all content */
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.video-background video.active {
    opacity: 1;
}

/* --- keep access container centered but scrollable --- */
.access-container {
    margin: 3rem auto;
    /* vertical breathing room */
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    background: rgba(19, 26, 42, 0.9);
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(102, 255, 153, 0.2);
    border: 1px solid rgba(102, 255, 153, 0.25);
    text-align: center;
    position: relative;
}

.search-container input {
    padding: 1rem 1.5rem;
    width: 900px;
    /* 3x longer (adjust as needed for responsiveness) */
    max-width: 90%;
    border-radius: 12px;
    border: none;
    outline: none;
    font-size: 1rem;
    background-color: #131A2A;
    color: #FFFFFF;
    box-shadow:
        0 0 8px rgba(102, 255, 153, 0.5),
        0 0 16px rgba(102, 255, 153, 0.3);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.search-container {
    position: relative;
    /* Makes the suggestion box anchor here */
    width: 100%;
    max-width: 400px;
    /* Adjust as needed */
    margin: 0 auto;
}

#suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #131A2A;
    /* Dark background */
    color: #FFFFFF;
    /* Light text */
    border: 1px solid #66FF99;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(102, 255, 153, 0.3);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    /* Hidden until results appear */
}

#suggestions li {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #1F2937;
    transition: background-color 0.3s ease;
}

#suggestions li:last-child {
    border-bottom: none;
}

#suggestions li:hover {
    background-color: #1F2937;
    /* On hover - slight highlight */
    color: #66FF99;
    /* Optional glow color for text */
}

#suggestions img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
}

#suggestions {
    display: none;
    /* Hidden until results appear */
}

/* Game Info Card */
.game-card {
    background-color: #131A2A;
    margin: 1rem auto;
    padding: 1.5rem 2rem;
    width: 80%;
    border-radius: 12px;
    box-shadow: 0 0 10px #66FF99;
}

.game-card h2 {
    color: #66FF99;
    margin-bottom: 0.5rem;
}

.game-card p {
    margin: 0.5rem 0;
    color: #A3AABF;
}

/* Player List */
.player-list {
    background-color: #131A2A;
    margin: 1rem auto;
    padding: 1.5rem 2rem;
    width: 80%;
    border-radius: 12px;
}

.player-list h3 {
    color: #A3AABF;
    margin-bottom: 1rem;
}

.player-item {
    padding: 0.8rem;
    margin: 0.5rem 0;
    border-bottom: 1px solid #1F2937;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.player-item:hover {
    background-color: #1F2937;
    transform: scale(1.02);
}

/* Button */
.btn-container {
    text-align: center;
    margin: 2rem 0;
}

.btn-primary {
    background-color: #66FF99;
    color: #0B0F1A;
    border: none;
    padding: 1rem 2.5rem;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background-color: #52cc7a;
    box-shadow: 0 0 15px #66FF99;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: url('../images/playMakerBackground.png') no-repeat center bottom;
    background-size: 100% auto;
    background-repeat: no-repeat;
    padding: 6rem 2rem;
    text-align: center;
    min-height: 500px;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 15, 26, 0.85);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h2 {
    font-size: 2rem;
    color: #66FF99;
    margin-bottom: 1rem;
    text-shadow: 0 0 12px rgba(102, 255, 153, 0.6);
    animation: flicker 2s infinite;
}

.hero-section p {
    color: #A3AABF;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-shadow:
        0 0 12px rgba(102, 255, 153, 0.4),
        0 0 12px rgba(102, 255, 153, 0.2);
}

/* Flicker Animation */
@keyframes flicker {

    0%,
    18%,
    22%,
    25%,
    53%,
    57%,
    100% {
        opacity: 1;
        text-shadow:
            0 0 4px #66FF99,
            0 0 8px #66FF99,
            0 0 12px #66FF99,
            0 0 16px #66FF99;
    }

    20%,
    24%,
    55% {
        opacity: 0.6;
        text-shadow:
            0 0 2px #66FF99,
            0 0 4px #66FF99;
    }
}

/* Enhanced Feature Blocks */
.features-section {
    background-color: #131A2A;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-block {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(145deg, #0B0F1A, #131A2A);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(102, 255, 153, 0.15);
    border: 1px solid rgba(102, 255, 153, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-block:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(102, 255, 153, 0.3);
}

.feature-block h3 {
    color: #66FF99;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-block p {
    color: #A3AABF;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Accuracy Badge */
.accuracy-badge {
    position: absolute;
    top: 80px;
    right: 40px;
    z-index: 5;
    cursor: pointer;
    outline: none;
}

.accuracy-badge:focus .circle {
    box-shadow: 0 0 32px rgba(102, 255, 153, 0.9), 0 0 60px rgba(102, 255, 153, 0.55);
}

.accuracy-badge .circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #0B0F1A;
    border: 4px solid #66FF99;
    box-shadow: 0 0 20px rgba(102, 255, 153, .7), 0 0 40px rgba(102, 255, 153, .4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: pulseGlow 3s infinite;
}

.accuracy-badge .percent {
    font-size: 2.2rem;
    font-weight: 900;
    color: #66FF99;
    text-shadow: 0 0 10px rgba(102, 255, 153, .8);
}

.accuracy-badge .label {
    font-size: .9rem;
    color: #A3AABF;
    letter-spacing: 1px;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(102, 255, 153, .7), 0 0 40px rgba(102, 255, 153, .4);
    }

    50% {
        box-shadow: 0 0 30px rgba(102, 255, 153, 1), 0 0 60px rgba(102, 255, 153, .6);
    }
}

@media (max-width: 600px) {
    .accuracy-badge {
        top: 70px;
        right: 20px;
    }

    .accuracy-badge .circle {
        width: 100px;
        height: 100px;
    }

    .accuracy-badge .percent {
        font-size: 1.6rem;
    }
}

/* Proof section */
.proof-section {
    padding: 3rem 1rem;
    background: #0B0F1A;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.proof-header {
    max-width: 1100px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.proof-header h3 {
    color: #66FF99;
    font-size: 1.4rem;
}

.proof-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

#proof-summary {
    color: #E6F6EE;
    opacity: .9;
}

.proof-filters {
    display: flex;
    gap: .5rem;
}

.proof-filters .chip {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #E6F6EE;
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .9rem;
    cursor: pointer;
}

.proof-filters .chip.active,
.proof-filters .chip:hover {
    border-color: #66FF99;
    color: #66FF99;
}

.proof-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: .9rem;
}

.proof-card {
    background: #131A2A;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: .9rem;
    box-shadow: 0 0 14px rgba(102, 255, 153, .12);
    display: grid;
    gap: .4rem;
}

.proof-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.proof-top .match {
    color: #E6F6EE;
    font-weight: 700;
}

.badge {
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .8rem;
    border: 1px solid rgba(255, 255, 255, .12);
}

.badge--won {
    color: #0B0F1A;
    background: #66FF99;
    border-color: #66FF99;
}

.badge--lost {
    color: #FFECEF;
    background: rgba(255, 107, 129, .18);
    border-color: #FF6B81;
}

.badge--push {
    color: #0B0F1A;
    background: #FFD966;
    border-color: #FFD966;
}

.proof-mid {
    color: #A3AABF;
    font-size: .95rem;
}

.proof-foot {
    color: #A3AABF;
    font-size: .85rem;
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.proof-note {
    max-width: 1100px;
    margin: .8rem auto 0;
    color: #A3AABF;
    font-size: .85rem;
    opacity: .9;
}

.accuracy-badge {
    position: absolute;
    top: 80px;
    /* just below header */
    right: 40px;
    z-index: 5;
}

.accuracy-badge .circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #0B0F1A;
    border: 4px solid #66FF99;
    box-shadow: 0 0 20px rgba(102, 255, 153, 0.7), 0 0 40px rgba(102, 255, 153, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: pulseGlow 3s infinite;
}

.accuracy-badge .percent {
    font-size: 2.2rem;
    font-weight: bold;
    color: #66FF99;
    text-shadow: 0 0 10px rgba(102, 255, 153, 0.8);
}

.accuracy-badge .label {
    font-size: 0.9rem;
    color: #A3AABF;
    letter-spacing: 1px;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(102, 255, 153, 0.7), 0 0 40px rgba(102, 255, 153, 0.4);
    }

    50% {
        box-shadow: 0 0 30px rgba(102, 255, 153, 1), 0 0 60px rgba(102, 255, 153, 0.6);
    }
}

@media (max-width: 600px) {
    .accuracy-badge {
        top: 70px;
        right: 20px;
    }

    .accuracy-badge .circle {
        width: 100px;
        height: 100px;
    }

    .accuracy-badge .percent {
        font-size: 1.6rem;
    }
}

/* Header */
.pm-header {
    background: #131A2A;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.pm-header h1 {
    color: #66FF99;
    font-size: 1.35rem;
    letter-spacing: .4px;
}

.pm-nav {
    display: flex;
    gap: 1rem;
}

.pm-link {
    color: #E6F6EE;
    text-decoration: none;
    opacity: .9;
}

.pm-link:hover {
    color: #66FF99;
}

/* Assurance banner (full dark, glowing edge) */
.assurance {
    background: linear-gradient(180deg,
            rgba(11, 15, 26, 1) 0%,
            rgba(11, 15, 26, 0.95) 80%);
    border-top: 1px solid rgba(102, 255, 153, 0.25);
    border-bottom: 1px solid rgba(102, 255, 153, 0.18);
    box-shadow: 0 0 20px rgba(102, 255, 153, 0.1) inset;
    padding: 0.75rem 0;
    position: relative;
    z-index: 2;
}

.assurance-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.6rem 1rem;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    background: transparent;
}

.assurance-badge {
    background: #0b0f1a;
    border: 1px solid #66ff99;
    color: #66ff99;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-shadow: 0 0 6px rgba(102, 255, 153, 0.6);
    box-shadow: 0 0 12px rgba(102, 255, 153, 0.25);
}

.assurance-text {
    color: #e6f6ee;
    font-weight: 500;
}

/* Hero amped */
.hero--amped {
    position: relative;
    background: url('../images/playMakerBackground.png') no-repeat center bottom / cover;
    padding: 7rem 1.25rem 4rem;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    inset: -10%;
    background: radial-gradient(60% 40% at 50% 30%, rgba(102, 255, 153, .25), rgba(11, 15, 26, .4) 40%, rgba(11, 15, 26, .9) 70%);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: #fff;
    line-height: 1.1;
    margin-bottom: .6rem;
    text-shadow: 0 0 12px rgba(102, 255, 153, .5);
}

.hero-title .accent {
    color: #66FF99;
}

.hero-sub {
    color: #A3AABF;
    max-width: 700px;
    margin: 0 auto 1.75rem;
    font-size: 1.05rem;
}

.search-wrap {
    max-width: 780px;
    margin: 0 auto;
}

.search--hero input {
    width: 100%;
    background: #131A2A;
    border: 1px solid rgba(102, 255, 153, .5);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 0 18px rgba(102, 255, 153, .18);
}

.cta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: .9rem;
}

.mini-note {
    color: #A3AABF;
    font-size: .9rem;
}

.btn-primary {
    background: #66FF99;
    color: #0B0F1A;
    border: none;
    padding: .9rem 1.6rem;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: .3px;
    box-shadow: 0 0 16px rgba(102, 255, 153, .55);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(102, 255, 153, .7);
}

/* Chips under hero */
.hero-stats {
    display: flex;
    gap: .6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.stat-chip {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: .45rem .8rem;
    color: #E6F6EE;
    font-size: .9rem;
}

.stat-chip span {
    color: #66FF99;
    font-weight: 800;
}

/* Marquee */
.marquee {
    position: absolute;
    left: 0;
    right: 0;
    bottom: .2rem;
    overflow: hidden;
    pointer-events: none;
}

.marquee-track {
    display: inline-block;
    white-space: nowrap;
    color: #66FF99;
    opacity: .9;
    text-shadow: 0 0 12px rgba(102, 255, 153, .55);
    animation: marquee 18s linear infinite;
}

.marquee-track span {
    padding-right: 2rem;
    letter-spacing: .12rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* How */
.how-section {
    padding: 3rem 1rem;
    background: #0B0F1A;
}

.how-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.how-card {
    background: linear-gradient(145deg, #0B0F1A, #131A2A);
    border: 1px solid rgba(102, 255, 153, .18);
    border-radius: 14px;
    padding: 1.2rem 1rem;
    color: #E6F6EE;
    box-shadow: 0 0 14px rgba(102, 255, 153, .12);
}

.how-card h3 {
    color: #66FF99;
    margin-bottom: .3rem;
}

/* Features */
.features--amped {
    padding-top: 3rem;
}

.feature-block {
    max-width: 1000px;
    margin: 0.8rem auto;
    background: linear-gradient(145deg, #0B0F1A, #131A2A);
    padding: 1.2rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(102, 255, 153, .2);
    box-shadow: 0 0 20px rgba(102, 255, 153, .12);
    text-align: center;
}

.feature-block h3 {
    color: #66FF99;
    margin-bottom: .4rem;
}

.feature-block p {
    color: #A3AABF;
}

/* Values */
.values-section {
    padding: 3rem 1rem 4rem;
    background: #0B0F1A;
}

.values-card {
    max-width: 900px;
    margin: 0 auto;
    background: #131A2A;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 1.2rem 1rem;
    box-shadow: 0 0 16px rgba(102, 255, 153, .12);
}

.values-card h3 {
    color: #66FF99;
    margin-bottom: .5rem;
}

.values-card li {
    color: #E6F6EE;
    margin: .4rem 0;
}

/* Suggestions (keep your existing, just ensuring fit in hero) */
.search-container {
    position: relative;
    width: 100%;
}

.suggestions-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #131A2A;
    border: 1px solid #66FF99;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(102, 255, 153, .25);
    max-height: 260px;
    overflow: auto;
    display: none;
    z-index: 10;
}

.suggestions-list li {
    padding: .6rem .8rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    cursor: pointer;
    color: #E6F6EE;
}

.suggestions-list li:hover {
    background: #1F2937;
    color: #66FF99;
}

.suggestions-list img {
    width: 22px;
    height: 22px;
}

/* FEATURES: stacked, centered, long cards */
.features-section {
    position: relative;
    background: url("../images/logic-backdrop.png") center/cover no-repeat;
    padding: 6rem 1rem;
    z-index: 1;

    /* stack + center */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.features-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 26, 0.82);
    /* darken so cards pop */
    z-index: -1;
}

/* the cards */
.features-section .feature-block {
    width: clamp(680px, 85vw, 1100px);
    /* long + responsive */
    margin: 0;
    /* no side offset */
    background: rgba(19, 26, 42, 0.88);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    text-align: center;
    /* feels nicer for long cards */
}

/* small screens: keep it readable */
@media (max-width: 640px) {
    .features-section {
        padding: 4rem 0.75rem;
    }

    .features-section .feature-block {
        width: 94vw;
        padding: 1.5rem;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    color: #E6F6EE;
    /* light text */
    background-color: #0B0F1A;
    /* dark footer background */
    border-top: 1px solid rgba(255, 255, 255, .06);
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .pm-nav {
        display: none;
    }

    .hero-sub {
        font-size: .98rem;
    }

    .cta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }

    .mini-note {
        opacity: .9;
    }
}

/* Default (desktop) */
.accuracy-badge {
    position: absolute;
    top: 80px;
    right: 40px;
    z-index: 5;
}

/* Mobile tweak for the No AI banner */
@media (max-width: 600px) {
    .assurance {
        padding: 0.3rem 0.5rem;
        /* thinner padding */
    }

    .assurance-inner {
        flex-direction: column;
        /* stack badge + text */
        gap: 0.3rem;
        text-align: center;
        /* center text */
    }

    .assurance-badge {
        font-size: 0.8rem;
        padding: 0.15rem 0.5rem;
        /* smaller pill */
    }

    .assurance-text {
        font-size: 0.85rem;
        line-height: 1.2;
    }
}

@media (max-width: 600px) {
    .accuracy-badge {
        position: absolute;
        /* detach it from the banner flow */
        top: 140px;
        /* push it further down from top of screen */
        left: 310px;
        /* still aligned right */
        margin: 0;
        /* remove extra spacing that stretched the bg */
    }
}

/* Intro.js dark mode styling */
.introjs-tooltip {
    background-color: #0B0F1A !important;
    /* dark background */
    color: #E6F6EE !important;
    /* light text */
    border: 1px solid #66FF99 !important;
    /* neon green outline */
    border-radius: 12px !important;
    box-shadow: 0 0 20px rgba(102, 255, 153, 0.4) !important;
    font-family: 'Poppins', Arial, sans-serif !important;
}

.introjs-tooltip-title {
    color: #66FF99 !important;
    /* neon green step title */
    font-weight: 600 !important;
}

.introjs-tooltiptext {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

.introjs-bullets li a.active {
    background: #66FF99 !important;
    /* active step dot */
}

.introjs-button {
    background: #66FF99 !important;
    color: #0B0F1A !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.introjs-button:hover {
    background: #52cc7a !important;
}