/* ══════════════════════════════════════════════
   TIXITY — Main Styles
   ══════════════════════════════════════════════ */

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

/* Variables imported via css/variables.css */

html, body {
    overscroll-behavior: none;
    font-family: 'Urbanist', sans-serif;
    background: var(--dark);
    color: var(--white);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

::-webkit-scrollbar {
    display: none;
}

/* ── Preloader ── */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
}

/* ── Scroll indicator ── */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
}

.scroll-indicator span {
    font-size: 11px;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gray);
}

.scroll-indicator .arrow {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--gray);
    border-bottom: 1.5px solid var(--gray);
    transform: rotate(-45deg);
    margin-top: 4px;
    animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: rotate(-45deg) translateX(0); }
    50% { transform: rotate(-45deg) translateX(4px); }
}

/* ── Progress bar ── */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    z-index: 1000;
    width: 0%;
    transform-origin: left;
}

/* ── Navigation ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: difference;
}

.nav-logo {
    height: 36px;
    width: auto;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 501;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}
nav.nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 400;
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
}

.nav-cta {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 28px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--white);
}

.nav-cta:hover {
    background: var(--white);
    color: var(--dark);
}

/* ── Horizontal wrapper ── */
.horizontal-wrapper {
    overflow: hidden;
}

.horizontal-track {
    display: flex;
    width: fit-content;
    will-change: transform;
}

/* ── Panels ── */
.panel {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.panel-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 8vw;
    position: relative;
}

/* ── Panel backgrounds ── */
.panel--dark {
    background: var(--dark);
}

.panel--navy {
    background: var(--navy);
}

.panel--gradient-1 {
    background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 100%);
}

.panel--gradient-coral {
    background: linear-gradient(135deg, #1a0a08 0%, #2d1410 50%, var(--dark) 100%);
}

.panel--gradient-green {
    background: linear-gradient(135deg, #081a0a 0%, #102d14 50%, var(--dark) 100%);
}

.panel--gradient-blue {
    background: linear-gradient(135deg, #080a1a 0%, #10142d 50%, var(--dark) 100%);
}

/* ── Decorative elements ── */
.panel-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ── Typography ── */
.headline-xl {
    font-family: 'Comfortaa', cursive;
    font-size: clamp(48px, 7vw, 96px);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -2px;
}

.headline-lg {
    font-family: 'Comfortaa', cursive;
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
}

.headline-md {
    font-family: 'Comfortaa', cursive;
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
}

.body-lg {
    font-size: clamp(16px, 1.4vw, 22px);
    line-height: 1.6;
    font-weight: 300;
    color: var(--gray);
    max-width: 520px;
}

.label {
    font-family: 'Space Mono', monospace;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--coral);
    margin-bottom: 24px;
    display: inline-block;
    padding: 8px 16px;
    background: rgba(240,139,110,0.1);
    border-radius: 6px;
}

.label--green { color: var(--green); background: rgba(107,191,122,0.1); }
.label--pink { color: var(--pink); background: rgba(232,164,184,0.1); }
.label--blue { color: var(--blue-light); background: rgba(181,212,232,0.1); }

/* ── Split layouts ── */
.split {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 8vw;
}

.split-text {
    flex: 1;
    max-width: 560px;
}

.split-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.split-visual img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.3));
}

/* ── Music Scene SVG ── */
#clapping-scene {
    width: 100%;
    max-width: 70vh;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.3));
}

#music-scene {
    width: 100%;
    max-width: 70vh;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.3));
}

/* ── Hero specific ── */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    width: 100%;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-tagline .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-headline {
    font-family: 'Comfortaa', cursive;
    font-size: clamp(56px, 9vw, 140px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -3px;
    position: relative;
    min-height: calc(clamp(56px, 9vw, 140px) * 0.95 * 2);
}

.hero-headline-sizer {
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.hero-headline-content {
    position: relative;
}

.hero-headline .accent {
    background: linear-gradient(135deg, var(--coral), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tw-cursor {
    font-weight: 300;
    color: #fff;
    animation: tw-blink 0.6s step-end infinite;
    display: inline-block;
    width: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    vertical-align: baseline;
}

.tw-cursor--accent {
    color: var(--coral);
}

@keyframes tw-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-sub {
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 300;
    color: var(--gray);
    max-width: 600px;
    line-height: 1.6;
}

.hero-image-float {
    position: absolute;
    max-width: 500px;
    right: 2vw;
    bottom: 10vh;
    pointer-events: none;
}

/* ── Feature cards ── */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    padding: 28px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
}

.feature-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
}

.feature-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
}

.icon--coral { background: rgba(240,139,110,0.15); }
.icon--green { background: rgba(107,191,122,0.15); }
.icon--pink { background: rgba(232,164,184,0.15); }
.icon--blue { background: rgba(181,212,232,0.15); }

#sports-svg-wrap {
    overflow: visible;
}
#panel-sports .split-visual {
    overflow: visible;
}

/* ── Stat rows ── */
.stats-row {
    display: flex;
    gap: 48px;
    margin-top: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--coral);
}

.stat-label {
    font-size: 13px;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray);
    margin-top: 4px;
}

/* ── Audience panels ── */
.audience-panel .split-visual {
    position: relative;
    overflow: visible;
    padding-right: 2vw;
}

.audience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.audience-tag {
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    font-weight: 500;
}

/* ── CTA buttons ── */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 48px;
    background: linear-gradient(135deg, var(--coral), #e06848);
    border-radius: 100px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(240,139,110,0.3);
}

.cta-button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.cta-button-secondary:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.05);
}

/* ── Floating orbs ── */
.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

/* ── Problem panel ── */
.problem-list {
    list-style: none;
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.problem-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 18px;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
}

.problem-list li .x-mark {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(240,139,110,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
    font-weight: 700;
    font-size: 14px;
}

/* ── Divider lines ── */
.v-divider {
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.06), transparent);
}

/* ── Logo marquee ── */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marqueeReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.logo-track {
    animation: marquee 40s linear infinite;
    will-change: transform;
}

.logo-track--reverse {
    animation: marqueeReverse 45s linear infinite;
    will-change: transform;
}

.logo-marquee {
    position: relative;
}

/* ── Reveal animations ── */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal-left { opacity: 0; transform: translateX(-60px); }
.reveal-right { opacity: 0; transform: translateX(60px); }
.reveal-scale { opacity: 0; transform: scale(0.9); }

/* ── Section counter ── */
.section-counter {
    position: fixed;
    bottom: 32px;
    right: 48px;
    z-index: 100;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--gray);
    letter-spacing: 2px;
    mix-blend-mode: difference;
}

.section-counter .current {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}


/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {
    nav { padding: 20px 24px; }
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(6,13,31,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        z-index: 499;
    }
    nav.nav-open { mix-blend-mode: normal; }
    nav.nav-open .nav-links { display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .nav-link { font-size: 20px; }
    .nav-cta { font-size: 15px; }
    .section-counter { display: none; }
    .label { font-size: 13px; letter-spacing: 3px; padding: 6px 12px; }
    .split { flex-direction: column; gap: 16px; }
    .split-text { max-width: 100%; }
    .split-visual { max-height: 35vh; overflow: hidden; }
    .split-visual img { max-width: 100% !important; max-height: 35vh; }
    .split-visual svg { max-width: 100% !important; max-height: 35vh; }
    .hero-image-float { max-width: 200px; right: -5vw; bottom: 15vh; opacity: 0.08; }
    .hero-headline { font-size: clamp(36px, 9vw, 64px); letter-spacing: -2px; }
    .hero-sub { font-size: 14px; }
    .hero-tagline { font-size: 10px; padding: 6px 14px; }
    .panel-inner { padding: 60px 5vw 0; align-items: flex-start; padding-top: 80px; }
    .headline-lg { font-size: clamp(22px, 6vw, 36px); }
    .headline-xl { font-size: clamp(28px, 8vw, 48px); }
    .body-lg { font-size: 13px; }
    .label { font-size: 11px; letter-spacing: 2px; padding: 5px 10px; }
    .stats-row { gap: 16px; }
    .stat-number { font-size: 28px; }
    .stat-label { font-size: 10px; }
    .audience-tags { gap: 6px; }
    .audience-tag { font-size: 11px; padding: 6px 12px; }
    .feature-grid { gap: 8px; }
    .feature-card { padding: 10px !important; }
    .feature-card h4 { font-size: 12px; }
    .feature-card p { font-size: 11px; }
    .scroll-indicator { bottom: 24px; }
    .scroll-indicator span { font-size: 10px; }
}
