@import 'variables.css';
@import 'layout.css';
@import 'components.css';
@import 'hero-animation.css';
@import 'chatbot.css';

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-base);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ═══════════════════════════════════════
   UTILITY
═══════════════════════════════════════ */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-lg);
}

.section-py { padding: var(--sp-3xl) 0; }
.section-py--lg { padding: 120px 0; }

.text-center { text-align: center; }
.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--purple-100);
    color: var(--purple-600);
    border: 1px solid var(--border-purple);
    margin-bottom: var(--sp-md);
}

.tag--white {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

/* ═══════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--purple-50); }
::-webkit-scrollbar-thumb { background: var(--purple-300); border-radius: 3px; }

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(250, 250, 254, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
    background: rgba(250, 250, 254, 0.95);
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
}

.logo__icon {
    width: 36px;
    height: 36px;
    background: var(--grad-hero);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

.logo__text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
}

.nav__link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 2px;
    transition: color var(--transition);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-text);
    border-radius: 1px;
    transition: width var(--transition);
}

.nav__link:hover { color: var(--color-primary); }
.nav__link:hover::after { width: 100%; }

.nav__cta {
    padding: 10px 22px;
    background: var(--grad-hero);
    color: #fff;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

.nav__cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--purple-500);
    border-radius: 2px;
    transition: var(--transition);
}

/* ═══════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════ */
.hero {
    min-height: 100vh;
    padding-top: var(--header-h);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--bg-page);
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Blurred gradient orbs */
.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero__orb--1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #AA7EFF 0%, transparent 70%);
    top: -150px; right: -100px;
    animation-delay: 0s;
}

.hero__orb--2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #E040FB 0%, transparent 70%);
    bottom: 0; left: -100px;
    animation-delay: -3s;
}

.hero__orb--3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #7B35EF 0%, transparent 70%);
    top: 40%; left: 35%;
    opacity: 0.2;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -20px) scale(1.05); }
    66%       { transform: translate(-20px, 15px) scale(0.97); }
}

/* Grid dots background */
.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(108, 53, 222, 0.12) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: var(--sp-2xl) 0;
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: var(--purple-100);
    border: 1px solid var(--border-purple);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--purple-600);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: var(--sp-lg);
    animation: fadeSlideUp 0.6s ease both;
}

.hero__badge .dot {
    width: 7px; height: 7px;
    background: var(--accent-pink);
    border-radius: 50%;
    animation: blink 2s step-end infinite;
}

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

.hero__title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--sp-lg);
    animation: fadeSlideUp 0.7s ease 0.1s both;
}

.hero__title em {
    font-style: normal;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--sp-xl);
    animation: fadeSlideUp 0.7s ease 0.2s both;
}

.hero__actions {
    display: flex;
    gap: var(--sp-md);
    flex-wrap: wrap;
    animation: fadeSlideUp 0.7s ease 0.3s both;
}

.hero__stat-row {
    display: flex;
    gap: var(--sp-xl);
    margin-top: var(--sp-xl);
    padding-top: var(--sp-xl);
    border-top: 1px solid var(--border-light);
    animation: fadeSlideUp 0.7s ease 0.4s both;
}

.hero__stat-item .num {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__stat-item .label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

/* Hero right – phone mockup */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeSlideUp 0.9s ease 0.2s both;
}

.phone-frame {
    position: relative;
    width: 280px;
    z-index: 2;
}

.phone-frame__outer {
    background: linear-gradient(145deg, #9B59FF, #6520D4);
    border-radius: 44px;
    padding: 12px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.15),
        var(--shadow-lg),
        0 0 80px rgba(123, 53, 239, 0.4);
    animation: phoneLevitate 5s ease-in-out infinite;
}

@keyframes phoneLevitate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.phone-frame__inner {
    background: #fff;
    border-radius: 34px;
    overflow: hidden;
    height: 520px;
    position: relative;
}

.phone-frame__slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.phone-frame__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.phone-frame__slide.active { opacity: 1; }

.phone-frame__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.phone-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--purple-200);
    transition: var(--transition);
    cursor: pointer;
}

.phone-dot.active {
    width: 22px;
    border-radius: 4px;
    background: var(--color-primary);
}

/* Floating badges around the phone */
.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    z-index: 3;
    animation: badgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.float-badge .icon { font-size: 1.1rem; }
.float-badge .text-sm { color: var(--text-muted); font-size: 0.7rem; font-weight: 500; }

.float-badge--1 { top: 20%; left: -110px; animation-delay: 1s; }
.float-badge--2 { top: 50%; right: -120px; animation-delay: 1.3s; }
.float-badge--3 { bottom: 15%; left: -80px; animation-delay: 1.6s; }

@keyframes badgePop {
    from { opacity: 0; transform: scale(0.7); }
    to   { opacity: 1; transform: scale(1); }
}

/* ═══════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════ */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--sp-2xl);
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: var(--sp-md);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ═══════════════════════════════════════
   SPORT ICONS STRIP
═══════════════════════════════════════ */
.sports-strip {
    background: linear-gradient(90deg, var(--purple-50), var(--purple-100), var(--purple-50));
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: var(--sp-lg) 0;
    overflow: hidden;
}

.sports-strip__track {
    display: flex;
    gap: var(--sp-2xl);
    animation: stripScroll 25s linear infinite;
    width: max-content;
}

.sports-strip__track:hover { animation-play-state: paused; }

@keyframes stripScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.sport-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #fff;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--purple-600);
    border: 1px solid var(--border-purple);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.sport-chip span { font-size: 1.2rem; }

/* ═══════════════════════════════════════
   FEATURES GRID
═══════════════════════════════════════ */
.features-section {
    padding: var(--sp-3xl) 0;
    background: var(--bg-page);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
}

.feature-card {
    background: var(--grad-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--sp-xl);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--grad-text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-purple);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card__icon {
    width: 52px; height: 52px;
    background: var(--purple-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--sp-md);
    border: 1px solid var(--border-purple);
}

.feature-card__title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: var(--sp-sm);
    color: var(--text-primary);
}

.feature-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.feature-card--highlight {
    background: var(--grad-hero);
    border-color: transparent;
    color: #fff;
}

.feature-card--highlight .feature-card__icon {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

.feature-card--highlight .feature-card__title { color: #fff; }
.feature-card--highlight .feature-card__desc { color: rgba(255,255,255,0.8); }

.feature-card--highlight::before { background: rgba(255,255,255,0.5); }

/* ═══════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════ */
.how-section {
    padding: var(--sp-3xl) 0;
    background: linear-gradient(180deg, var(--purple-50) 0%, var(--bg-page) 100%);
    position: relative;
    overflow: hidden;
}

.how-section::before {
    content: 'SUPPORTS';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14vw;
    font-weight: 900;
    color: var(--purple-100);
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: -0.05em;
    opacity: 0.6;
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-lg);
    position: relative;
    z-index: 1;
}

.steps-row::after {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(12.5% + 14px);
    right: calc(12.5% + 14px);
    height: 2px;
    background: linear-gradient(90deg, var(--purple-300), var(--accent-pink), var(--purple-300));
    z-index: 0;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--grad-hero);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--sp-md);
    box-shadow: var(--shadow-glow);
    position: relative;
}

.step-num::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed var(--purple-300);
    animation: spinSlow 12s linear infinite;
}

@keyframes spinSlow { to { transform: rotate(360deg); } }

.step-item h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.step-item p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ═══════════════════════════════════════
   TOURNAMENT / ADMIN SECTION
═══════════════════════════════════════ */
.tournament-section {
    padding: var(--sp-3xl) 0;
    background: var(--bg-page);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-layout--reverse { direction: rtl; }
.split-layout--reverse > * { direction: ltr; }

.split-content .tag { display: inline-flex; }

.split-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: var(--sp-md);
}

.split-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--sp-xl);
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-md);
}

.check-item__icon {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--purple-100);
    border: 2px solid var(--purple-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--purple-600);
    flex-shrink: 0;
    margin-top: 2px;
}

.check-item p { font-size: 0.95rem; color: var(--text-secondary); margin: 0; }
.check-item strong { color: var(--text-primary); }

/* Tournament Visual */
.tournament-visual {
    position: relative;
}

.bracket-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--sp-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.bracket-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--grad-text);
}

.bracket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-lg);
}

.bracket-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-primary);
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #FEE2E2;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    color: #EF4444;
}

.live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #EF4444;
    animation: blink 1.2s step-end infinite;
}

.match-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--sp-sm);
    padding: 10px;
    background: var(--purple-50);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--border-light);
}

.match-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    font-weight: 700;
}

.team-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

.team-avatar--a { background: var(--grad-text); color: #fff; }
.team-avatar--b { background: linear-gradient(135deg, #26C6DA, #0097A7); color: #fff; }

.match-score {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--purple-600);
    letter-spacing: 0.05em;
}

.match-score--live { color: #EF4444; }

.match-row.win { border-color: rgba(123, 53, 239, 0.2); }

/* ═══════════════════════════════════════
   SCOREBOARD SECTION
═══════════════════════════════════════ */
.scoreboard-section {
    padding: var(--sp-3xl) 0;
    background: linear-gradient(180deg, var(--purple-900) 0%, var(--purple-700) 100%);
    position: relative;
    overflow: hidden;
}

.scoreboard-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 70% 50%, rgba(228, 64, 251, 0.25) 0%, transparent 60%),
                      radial-gradient(circle at 20% 80%, rgba(170, 126, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.scoreboard-section .section-header h2 { color: #fff; }
.scoreboard-section .section-header p { color: rgba(255,255,255,0.7); }

.score-display {
    max-width: 520px;
    margin: 0 auto;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 60px rgba(228, 64, 251, 0.2);
}

.score-top {
    background: linear-gradient(135deg, rgba(123, 53, 239, 0.5), rgba(228, 64, 251, 0.3));
    padding: var(--sp-md) var(--sp-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.score-top__title { color: #fff; font-size: 0.85rem; font-weight: 700; }
.score-top__set { color: rgba(255,255,255,0.6); font-size: 0.75rem; }

.score-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    padding: var(--sp-xl);
    align-items: center;
}

.score-team {
    text-align: center;
}

.score-team__name {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: var(--sp-md);
}

.score-team__num {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 30px rgba(228, 64, 251, 0.5);
}

.score-team--leading .score-team__num {
    background: var(--grad-cta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(228, 64, 251, 0.6));
}

.score-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.4);
    font-weight: 700;
    font-size: 1.5rem;
}

.score-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.score-btn {
    padding: var(--sp-md);
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
    background: transparent;
}

.score-btn:hover { background: rgba(255,255,255,0.1); }
.score-btn:active { background: rgba(123, 53, 239, 0.4); }

.score-btn .big-icon { font-size: 1.4rem; display: block; margin-bottom: 4px; }

.score-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-md);
    margin-top: var(--sp-2xl);
}

.score-feat {
    text-align: center;
    padding: var(--sp-xl);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    transition: background var(--transition);
}

.score-feat:hover { background: rgba(255,255,255,0.1); }

.score-feat__icon { font-size: 2rem; margin-bottom: var(--sp-md); }
.score-feat__title { color: #fff; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.score-feat__desc { color: rgba(255,255,255,0.6); font-size: 0.82rem; line-height: 1.5; }

/* ═══════════════════════════════════════
   COMMUNITY / SOCIAL PROOF
═══════════════════════════════════════ */
.social-section {
    padding: var(--sp-3xl) 0;
    background: var(--bg-page);
}

.review-marquee {
    overflow: hidden;
    padding: var(--sp-md) 0;
    position: relative;
}

.review-marquee::before,
.review-marquee::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 1;
    pointer-events: none;
}

.review-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-page), transparent); }
.review-marquee::after  { right: 0; background: linear-gradient(-90deg, var(--bg-page), transparent); }

.review-track {
    display: flex;
    gap: var(--sp-md);
    animation: marquee 30s linear infinite;
    width: max-content;
}

.review-track--reverse { animation-direction: reverse; animation-duration: 35s; }

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.review-card {
    flex-shrink: 0;
    width: 280px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--sp-lg);
    box-shadow: var(--shadow-sm);
}

.review-card__stars { color: #FFD54F; font-size: 0.85rem; margin-bottom: 10px; }
.review-card__text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.review-card__author { display: flex; align-items: center; gap: 10px; }
.review-card__avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; color: #fff; }
.review-card__name { font-size: 0.8rem; font-weight: 700; }
.review-card__sport { font-size: 0.72rem; color: var(--text-muted); }

/* ═══════════════════════════════════════
   PATENT BADGE
═══════════════════════════════════════ */
.patent-bar {
    padding: var(--sp-xl) 0;
    background: var(--purple-50);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.patent-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2xl);
    flex-wrap: wrap;
}

.patent-item {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
}

.patent-icon {
    width: 48px; height: 48px;
    background: var(--grad-hero);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.patent-text h4 { font-size: 0.9rem; font-weight: 800; color: var(--text-primary); }
.patent-text p { font-size: 0.78rem; color: var(--text-muted); }

.patent-divider { width: 1px; height: 40px; background: var(--border-purple); }

/* ═══════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════ */
.cta-section {
    padding: var(--sp-3xl) 0;
    background: var(--grad-cta);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    pointer-events: none;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: var(--sp-md);
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--sp-xl);
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--sp-md);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════
   BUTTONS (global)
═══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn--primary {
    background: var(--grad-hero);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn--primary:hover { box-shadow: var(--shadow-glow); }

.btn--ghost {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn--ghost:hover { background: rgba(255,255,255,0.25); }

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--border-purple);
}

.btn--outline:hover { background: var(--purple-50); }

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: transform var(--transition), background var(--transition);
}

.store-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.25); }

.store-btn--dark {
    background: #1A0533;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.store-btn--dark:hover { background: #2d0a55; }

.store-btn__icon { font-size: 1.4rem; }

.store-btn__text { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn__sub { font-size: 0.68rem; opacity: 0.75; font-weight: 400; }
.store-btn__name { font-size: 0.95rem; font-weight: 700; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
    background: var(--purple-900);
    padding: var(--sp-3xl) 0 var(--sp-xl);
    color: rgba(255,255,255,0.7);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-cta);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-2xl);
    padding-bottom: var(--sp-2xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand .logo { margin-bottom: var(--sp-md); }
.footer__brand .logo__text { -webkit-text-fill-color: #fff; background: none; }
.footer__brand p { font-size: 0.87rem; line-height: 1.65; color: rgba(255,255,255,0.55); }

.footer__col h4 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: var(--sp-md);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col li a { font-size: 0.87rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer__col li a:hover { color: #fff; }

.footer__bottom {
    padding-top: var(--sp-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-md);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}

.footer__links { display: flex; gap: var(--sp-lg); }
.footer__links a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer__links a:hover { color: #fff; }

/* ═══════════════════════════════════════
   KAKAO FAB
═══════════════════════════════════════ */
.kakao-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 900;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #FEE500;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.kakao-fab:hover {
    transform: translateY(-4px) scale(1.07);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.kakao-fab__tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #1A0533;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.kakao-fab__tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right: none;
    border-left-color: #1A0533;
}

.kakao-fab:hover .kakao-fab__tooltip { opacity: 1; }

/* ═══════════════════════════════════════
   SCROLL TO TOP
═══════════════════════════════════════ */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--grad-hero);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity var(--transition), transform var(--transition);
}

.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: rgba(250, 250, 254, 0.97);
        backdrop-filter: blur(20px);
        padding: var(--sp-lg);
        border-bottom: 1px solid var(--border-light);
        gap: var(--sp-md);
        z-index: 999;
        box-shadow: var(--shadow-md);
    }
    .nav.open .nav__link { font-size: 1.1rem; padding: var(--sp-sm) 0; }
    .nav.open .nav__cta { display: inline-flex; }
    .menu-toggle { display: flex; }

    .hero__inner { grid-template-columns: 1fr; gap: var(--sp-xl); text-align: center; }
    .hero__actions { justify-content: center; }
    .hero__stat-row { justify-content: center; }
    .hero__visual { order: -1; }
    .phone-frame { width: 220px; }
    .phone-frame__inner { height: 400px; }
    .float-badge--1 { display: none; }
    .float-badge--2 { display: none; }
    .float-badge--3 { display: none; }

    .split-layout { grid-template-columns: 1fr; gap: var(--sp-2xl); }
    .split-layout--reverse { direction: ltr; }

    .steps-row { grid-template-columns: 1fr 1fr; }
    .steps-row::after { display: none; }

    .features-grid { grid-template-columns: 1fr; }

    .score-features-grid { grid-template-columns: 1fr; }

    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; text-align: center; }

    .patent-inner { flex-direction: column; align-items: flex-start; }
    .patent-divider { display: none; }

    .section-py--lg { padding: var(--sp-3xl) 0; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 2rem; }
    .steps-row { grid-template-columns: 1fr; }
    .score-display { margin: 0 var(--sp-md); }
}