/* ===== TOKENS / VARIABLES ===== */
:root {
    --bg-primary: #06110f;
    --bg-secondary: #001f19;
    --bg-card: #002e26;
    --bg-card-hover: #014337;
    --surface: #014337;
    --border: rgba(8,174,139,.15);
    --border-subtle: rgba(255,255,255,.06);

    --text-primary: #ffffff;
    --text-secondary: #d4d4d4;
    --text-muted: #a1a1a1;

    --accent: #FFD679;
    --accent-hover: #fdebc9;
    --accent-dark: #dba849;
    --gold-gradient: linear-gradient(135deg, #FFD679 0%, #dba849 100%);

    --teal: #08ae8b;
    --teal-light: #4cbfa7;
    --teal-bright: #89cdbf;
    --teal-subtle: #bdd9d4;
    --teal-dark: #017d63;
    --teal-gradient: linear-gradient(135deg, #08ae8b 0%, #005947 100%);

    --green: #44c04c;
    --green-dark: #015811;
    --green-gradient: linear-gradient(180deg, #44c04c 0%, #015811 100%);

    --red: #79172c;

    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    --font: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --container: 1260px;
    --gutter: 16px;

    --transition: .2s cubic-bezier(.4,0,.2,1);
}

/* ===== RESET ===== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input { font-family: inherit; }

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

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: .875rem;
    padding: 12px 28px;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--bg-primary);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-accent {
    background: var(--green-gradient);
    color: #fff;
    font-weight: 700;
    border: none;
    box-shadow: inset 0 -1px 1px rgba(43,255,68,.5), inset 0 1px 1px rgba(43,255,68,.5);
}
.btn-accent:hover { filter: brightness(1.15); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(68,192,76,.2), inset 0 -1px 1px rgba(43,255,68,.5), inset 0 1px 1px rgba(43,255,68,.5); }

.btn-gold {
    background: var(--gold-gradient);
    color: var(--bg-primary);
    font-weight: 700;
}
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,214,121,.2); }

.btn-outline {
    background: transparent;
    border-color: var(--teal);
    color: var(--teal-light);
}
.btn-outline:hover { background: rgba(8,174,139,.1); transform: translateY(-1px); }

.btn-sm { padding: 8px 20px; font-size: .8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(6,17,15,.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition);
}

.header-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo img { width: 40px; height: auto; }
.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.main-nav { display: none; }
.nav-list {
    display: flex;
    gap: 28px;
}
.nav-link {
    font-size: .875rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--teal);
    transition: width var(--transition);
    border-radius: 1px;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Burger */
.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.burger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
.main-nav.open {
    display: flex;
    position: fixed;
    top: 56px; left: 0; right: 0; bottom: 0;
    background: rgba(6,17,15,.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 0 32px 0 var(--bg-secondary) inset;
    z-index: 999;
    padding: 24px var(--gutter);
}
.main-nav.open .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
}
.main-nav.open .nav-link {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-subtle);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding: 80px 0 60px;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(6,17,15,.4) 0%,
        rgba(6,17,15,.7) 50%,
        rgba(6,17,15,.98) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}
.hero h1 {
    font-size: clamp(1.4rem, 5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}
.hero-offer {
    background: rgba(1,67,55,.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    margin-bottom: 32px;
}
.hero-badge {
    display: inline-block;
    background: var(--teal-gradient);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 12px;
}
.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent);
}
.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}
.hero-subtitle strong {
    color: var(--accent);
    font-weight: 700;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}
.hero-note {
    color: var(--text-muted);
    font-size: .8rem;
}

/* ===== ADVANTAGES ===== */
.advantages {
    padding: 48px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.adv-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    transition: transform var(--transition), border-color var(--transition);
}
.adv-card:hover { transform: translateY(-3px); border-color: var(--border); }
.adv-icon {
    width: 44px; height: 44px;
    margin: 0 auto 10px;
    background: var(--teal-gradient);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
}
.adv-icon svg { width: 20px; height: 20px; color: #fff; }
.adv-card h3 { font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.adv-card p { font-size: .8rem; color: var(--text-muted); }

/* ===== SECTION COMMON ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}
.section-header h2 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
}
.see-all {
    color: var(--teal-light);
    font-weight: 700;
    font-size: .875rem;
    transition: color var(--transition);
}
.see-all:hover { color: var(--teal-bright); }
.section-desc {
    color: var(--text-muted);
    font-size: .875rem;
    margin-bottom: 24px;
    max-width: 680px;
}

/* ===== GAMES ===== */
.games {
    padding: 48px 0;
}
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}
.game-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    aspect-ratio: 280/190;
    background: var(--bg-card);
}
.game-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6,17,15,.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity var(--transition);
    font-weight: 700;
    font-size: .875rem;
}
.play-btn-icon {
    width: 48px; height: 48px;
    background: var(--green-gradient);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: inset 0 -1px 1px rgba(43,255,68,.5), inset 0 1px 1px rgba(43,255,68,.5);
}
.game-card:hover img { transform: scale(1.06); }
.game-card:hover .game-overlay { opacity: 1; }

.games-more { text-align: center; }

/* ===== GAMES STRIP ===== */
.games-strip {
    padding: 0 0 48px;
    overflow: hidden;
}
.strip-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.strip-scroll::-webkit-scrollbar { display: none; }
.strip-card {
    flex: 0 0 140px;
    scroll-snap-align: start;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition);
}
.strip-card:hover { transform: scale(1.05); }
.strip-card img { width: 100%; height: 100%; object-fit: cover; }

/* ===== TOURNAMENTS ===== */
.tournaments {
    padding: 48px 0;
    background: var(--bg-secondary);
}
.tournaments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.tournament-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
}
.tournament-card:hover { border-color: var(--border); transform: translateY(-3px); }
.tournament-header {
    background: var(--teal-gradient);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tournament-status {
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.tournament-status.live {
    background: var(--green);
    color: #fff;
    animation: pulse-live 2s ease-in-out infinite;
}
.tournament-status.upcoming {
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.7);
}
@keyframes pulse-live {
    0%, 100% { box-shadow: 0 0 0 0 rgba(68,192,76,.4); }
    50% { box-shadow: 0 0 0 6px rgba(68,192,76,0); }
}
.tournament-prize {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}
.tournament-body {
    padding: 20px;
}
.tournament-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.tournament-desc {
    color: var(--text-muted);
    font-size: .8rem;
    margin-bottom: 14px;
    line-height: 1.5;
}
.tournament-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 4px;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: .8rem;
}
.meta-item svg { color: var(--teal); flex-shrink: 0; }
.tournament-card .btn { margin: 0 20px 20px; width: calc(100% - 40px); }

/* ===== PROMOTIONS ===== */
.promotions {
    padding: 48px 0;
}
.promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.promo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    transition: border-color var(--transition), transform var(--transition);
}
.promo-card:hover { border-color: var(--border); transform: translateY(-2px); }
.promo-card--featured {
    background: linear-gradient(135deg, var(--bg-card-hover) 0%, var(--bg-card) 100%);
    border-color: var(--border);
}
.promo-badge {
    display: inline-block;
    background: rgba(8,174,139,.15);
    color: var(--teal-light);
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.promo-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.promo-card p {
    color: var(--text-muted);
    font-size: .875rem;
    margin-bottom: 20px;
    line-height: 1.5;
}
.promo-input-group {
    display: flex;
    gap: 8px;
}
.promo-input {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--teal-light);
    font-size: .875rem;
    outline: none;
    transition: border-color var(--transition);
}
.promo-input:focus { border-color: var(--teal); }
.promo-input::placeholder { color: var(--text-muted); }

/* ===== INFO SECTION ===== */
.info-section {
    padding: 48px 0;
    background: var(--bg-secondary);
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.info-block h2 {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 700;
    margin-bottom: 14px;
}
.info-block h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.info-block p {
    color: var(--text-muted);
    font-size: .875rem;
    margin-bottom: 14px;
    line-height: 1.6;
}
.steps-list {
    margin-bottom: 20px;
}
.steps-list li {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}
.step-num {
    flex-shrink: 0;
    width: 32px; height: 32px;
    background: var(--teal-gradient);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    color: #fff;
}
.steps-list li strong {
    display: block;
    margin-bottom: 2px;
    font-size: .9rem;
}
.steps-list li p { margin-bottom: 0; font-size: .8rem; }

/* ===== CTA BANNER ===== */
.cta-banner {
    padding: 64px 0;
    background: linear-gradient(135deg, #014337 0%, #06110f 50%, #002e26 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8,174,139,.1) 0%, transparent 70%);
    top: -200px; left: 50%;
    transform: translateX(-50%);
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 12px;
}
.cta-content p {
    color: var(--text-muted);
    font-size: .95rem;
    margin: 0 auto 24px;
    max-width: 480px;
}
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: 40px 0 0;
}
.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-subtle);
}
.footer-brand p {
    color: var(--text-muted);
    font-size: .8rem;
    margin-top: 10px;
    max-width: 300px;
    line-height: 1.5;
}
.footer-links h3 {
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.footer-links li { margin-bottom: 6px; }
.footer-links a {
    color: var(--text-muted);
    font-size: .8rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal-light); }
.footer-bottom {
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p {
    color: var(--text-muted);
    font-size: .7rem;
    line-height: 1.7;
}

/* ===== TABLET (>=600px) ===== */
@media (min-width: 600px) {
    :root { --gutter: 24px; }

    .advantages-grid { grid-template-columns: repeat(4, 1fr); }
    .games-grid { grid-template-columns: repeat(3, 1fr); }
    .tournaments-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-card--featured { grid-column: span 2; }
    .info-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .strip-card { flex: 0 0 180px; }
}

/* ===== DESKTOP (>=900px) ===== */
@media (min-width: 900px) {
    :root { --gutter: 32px; }

    .main-nav { display: flex; }
    .burger { display: none; }

    .hero { min-height: 90vh; padding: 100px 0 80px; }
    .tournaments-grid { grid-template-columns: repeat(3, 1fr); }
    .promo-grid { grid-template-columns: repeat(3, 1fr); }
    .promo-card--featured { grid-column: span 1; }
}

/* ===== LARGE DESKTOP (>=1200px) ===== */
@media (min-width: 1200px) {
    .games-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
