/* =========================================================
   CR7 · The GOAT Case — Stylesheet
   Dark + gold, RTL, animated, responsive
   ========================================================= */

:root {
    --bg:        #08080c; 
    --bg-2:      #0e0e15;
    --bg-3:      #14141d;
    --card:      rgba(255, 255, 255, 0.035);
    --card-brd:  rgba(212, 175, 55, 0.16);
    --gold:      #d4af37;
    --gold-hi:   #ffd700;
    --gold-soft: #f7d774;
    --text:      #f1f1f4;
    --muted:     #a2a2ad;
    --dim:       #6d6d78;
    --messi:     #6ea8ff;
    --red:       #ff5a5a;
    --radius:    18px;
    --maxw:      1180px;
    --shadow:    0 20px 60px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Heebo', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============ Preloader ============ */
.preloader {
    position: fixed; inset: 0; z-index: 2000;
    background: radial-gradient(circle at 50% 40%, #14141d, #06060a 70%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 22px; transition: opacity .6s ease, visibility .6s ease;
}
.preloader.hide { opacity: 0; visibility: hidden; }
.preloader-emblem { width: 120px; animation: spin 3s linear infinite, pulse 1.6s ease-in-out infinite; }
.preloader-text { font-family: 'Anton', sans-serif; letter-spacing: 6px; color: var(--gold-hi); font-size: 1.2rem; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.06); } }

/* ============ Progress bar ============ */
.progress-wrap {
    position: fixed; top: 0; inset-inline: 0; height: 4px;
    background: rgba(255,255,255,0.05); z-index: 1200;
}
.progress-bar {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-hi), #ff8c00);
    box-shadow: 0 0 12px rgba(255,215,0,0.6);
}

/* ============ Navbar ============ */
.nav {
    position: fixed; top: 0; inset-inline: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px clamp(16px, 5vw, 48px);
    transition: padding .3s, background .3s, box-shadow .3s;
}
.nav.scrolled {
    padding: 10px clamp(16px, 5vw, 48px);
    background: rgba(8,8,12,0.82);
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(212,175,55,0.12);
}
.nav-logo img { height: 30px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    padding: 8px 14px; border-radius: 999px; color: var(--muted);
    font-weight: 500; font-size: .95rem; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--gold-hi); }
.nav-cta {
    background: linear-gradient(90deg, var(--gold), var(--gold-hi));
    color: #1a1400 !important; font-weight: 800;
}
.nav-cta:hover { filter: brightness(1.08); background: linear-gradient(90deg, var(--gold), var(--gold-hi)) !important; }
.nav-toggle { display: none; background: none; border: 0; color: var(--gold-hi); font-size: 1.6rem; cursor: pointer; }

/* ============ Hero ============ */
.hero {
    position: relative; min-height: 100svh;
    display: flex; align-items: center;
    padding: 120px clamp(16px, 5vw, 48px) 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(60% 60% at 78% 20%, rgba(212,175,55,0.18), transparent 60%),
        radial-gradient(50% 50% at 10% 90%, rgba(110,168,255,0.08), transparent 60%),
        linear-gradient(180deg, #0a0a12, #08080c);
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 26px 26px; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
}
.hero-inner {
    position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin: 0 auto;
    display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px;
}
.hero-kicker { color: var(--gold); letter-spacing: 4px; font-weight: 700; text-transform: uppercase; font-size: .85rem; }
.hero-title {
    font-family: 'Anton', 'Heebo', sans-serif; font-weight: 400;
    font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; margin: 14px 0 18px;
    letter-spacing: .5px;
}
.hero-title .grad {
    background: linear-gradient(90deg, var(--gold-soft), var(--gold-hi), #ff8c00, var(--gold-hi));
    background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 3.5s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 46ch; }
.hero-sub strong { color: var(--text); }

.hero-ticker {
    display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0;
}
.hero-ticker span {
    background: var(--card); border: 1px solid var(--card-brd); border-radius: 999px;
    padding: 7px 15px; font-size: .9rem; color: var(--muted);
}
.hero-ticker b { color: var(--gold-hi); font-weight: 800; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
    border: 1px solid transparent; transition: transform .2s, box-shadow .3s, filter .2s, background .2s;
}
.btn-primary { background: linear-gradient(90deg, var(--gold), var(--gold-hi)); color: #1a1400; box-shadow: 0 10px 30px rgba(212,175,55,0.28); }
.btn-primary:hover { transform: translateY(-3px); filter: brightness(1.06); }
.btn-ghost { border-color: rgba(255,255,255,0.18); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); transform: translateY(-3px); }
.btn.big { font-size: 1.1rem; padding: 16px 34px; margin-top: 10px; }

.hero-emblem { display: flex; justify-content: center; }
.emblem-spin { width: min(360px, 74vw); filter: drop-shadow(0 20px 50px rgba(212,175,55,0.25)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-16px); } }

.scroll-cue {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
    width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.25); border-radius: 14px;
    display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span { width: 4px; height: 8px; background: var(--gold-hi); border-radius: 2px; animation: cue 1.5s infinite; }
@keyframes cue { 0%{opacity:0;transform:translateY(-4px);} 50%{opacity:1;} 100%{opacity:0;transform:translateY(12px);} }

/* ============ Sections ============ */
.section { padding: clamp(64px, 9vw, 120px) clamp(16px, 5vw, 48px); position: relative; }
.section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 6vw, 64px); text-align: center; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 3px; font-size: .82rem; text-transform: uppercase; }
.section-head h2 {
    font-family: 'Anton','Heebo',sans-serif; font-weight: 400;
    font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.1; margin: 12px 0 14px;
}
.lead { color: var(--muted); font-size: 1.08rem; }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ Numbers grid ============ */
.stats-grid {
    max-width: var(--maxw); margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px;
}
.stat-card {
    background: var(--card); border: 1px solid var(--card-brd); border-radius: var(--radius);
    padding: 30px 24px; text-align: center; position: relative; overflow: hidden;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.stat-card::before {
    content: ""; position: absolute; inset: 0; opacity: 0;
    background: radial-gradient(120% 80% at 50% 0%, rgba(212,175,55,0.16), transparent 60%);
    transition: opacity .3s;
}
.stat-card:hover { transform: translateY(-7px); border-color: rgba(212,175,55,0.5); box-shadow: var(--shadow); }
.stat-card:hover::before { opacity: 1; }
.stat-card.fire { border-color: rgba(255,120,0,0.4); background: rgba(255,120,0,0.06); }
.stat-number {
    font-family: 'Anton', sans-serif; font-size: clamp(2.6rem, 5vw, 3.4rem);
    color: var(--gold-hi); line-height: 1; position: relative;
}
.stat-card h3 { font-size: 1.05rem; margin: 12px 0 8px; color: var(--text); }
.stat-card p { font-size: .88rem; color: var(--muted); }

/* ============ Versus ============ */
.versus { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.vs-row { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 18px; }
.vs-label { font-weight: 600; color: var(--text); font-size: .98rem; text-align: left; }
.vs-bars { display: flex; flex-direction: column; gap: 8px; }
.vs-bar { position: relative; background: rgba(255,255,255,0.05); border-radius: 999px; height: 30px; overflow: hidden; }
.vs-bar b { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); z-index: 2; font-size: .85rem; font-weight: 800; color: #10100a; }
.vs-fill { position: absolute; inset-inline-start: 0; top: 0; height: 100%; width: 0; border-radius: 999px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.vs-bar.cr7 .vs-fill { background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
.vs-bar.messi .vs-fill { background: linear-gradient(90deg, #3a6fc4, var(--messi)); }
.vs-bar.messi b { color: #071022; }
.vs-legend { display: flex; gap: 22px; justify-content: center; margin-top: 6px; color: var(--muted); font-size: .9rem; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-inline-end: 6px; vertical-align: middle; }
.dot.cr7 { background: var(--gold-hi); }
.dot.messi { background: var(--messi); }

.honest {
    max-width: 820px; margin: 40px auto 0; padding: 26px 28px;
    background: linear-gradient(135deg, rgba(255,90,90,0.06), rgba(212,175,55,0.06));
    border: 1px solid rgba(255,90,90,0.2); border-radius: var(--radius);
}
.honest h3 { color: var(--gold-hi); margin-bottom: 8px; }
.honest p { color: var(--muted); }
.honest strong { color: var(--text); }

/* ============ Feature cards ============ */
.cards-grid {
    max-width: var(--maxw); margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px;
}
.feature {
    background: var(--card); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius);
    padding: 28px 26px; transition: transform .3s, border-color .3s, background .3s;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(212,175,55,0.35); background: rgba(212,175,55,0.05); }
.feature-ico { font-size: 2.2rem; margin-bottom: 12px; }
.feature h3 { color: var(--gold-hi); margin-bottom: 8px; font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: .96rem; }
.feature em { color: var(--text); font-style: normal; font-weight: 700; }

/* ============ Split (alone vs team) ============ */
.split { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-col { border-radius: var(--radius); padding: 28px; border: 1px solid rgba(255,255,255,0.08); }
.split-col.cr7 { background: linear-gradient(180deg, rgba(212,175,55,0.10), transparent); border-color: rgba(212,175,55,0.35); }
.split-col.messi { background: linear-gradient(180deg, rgba(110,168,255,0.08), transparent); border-color: rgba(110,168,255,0.22); }
.split-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.split-head h3 { font-size: 1.4rem; }
.tag { font-size: .72rem; font-weight: 800; letter-spacing: 1px; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }
.split-col.cr7 .tag { background: var(--gold-hi); color: #1a1400; }
.split-col.messi .tag { background: var(--messi); color: #071022; }
.split-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.split-col li { position: relative; padding-inline-start: 26px; color: var(--muted); }
.split-col li::before { content: "◆"; position: absolute; inset-inline-start: 0; top: 2px; font-size: .7rem; }
.split-col.cr7 li::before { color: var(--gold-hi); }
.split-col.messi li::before { color: var(--messi); }
.split-col li strong { color: var(--text); }
.split-note { max-width: var(--maxw); margin: 18px auto 0; text-align: center; color: var(--dim); font-size: .9rem; }
.split-note strong { color: var(--muted); }

/* ============ Clubs / timeline ============ */
.clubs { max-width: var(--maxw); margin: 0 auto 48px; }
.club-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 22px; }
.club-tab {
    padding: 10px 20px; border-radius: 999px; cursor: pointer; font-weight: 600; font-family: inherit;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); color: var(--muted); transition: .2s;
}
.club-tab:hover { color: var(--text); }
.club-tab.active { background: linear-gradient(90deg, var(--gold), var(--gold-hi)); color: #1a1400; border-color: transparent; }
.club-panels { position: relative; }
.club-panel { display: none; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center;
    background: var(--card); border: 1px solid var(--card-brd); border-radius: var(--radius); padding: 34px; }
.club-panel.active { display: flex; animation: fadeUp .5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.club-stat { text-align: center; min-width: 150px; }
.club-stat b { font-family: 'Anton', sans-serif; font-size: 3.6rem; color: var(--gold-hi); line-height: 1; display: block; }
.club-stat span { color: var(--muted); letter-spacing: 2px; }
.club-info { flex: 1; min-width: 240px; }
.club-info h3 { color: var(--text); margin-bottom: 6px; }
.club-info p { color: var(--muted); }
.club-info em { color: var(--gold-hi); font-style: normal; }

.timeline { max-width: 780px; margin: 0 auto; list-style: none; position: relative; padding-inline-start: 8px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 8px; top: 6px; bottom: 6px; width: 2px;
    background: linear-gradient(var(--gold), transparent); }
.timeline li { position: relative; padding: 0 28px 26px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 1px; top: 6px; width: 14px; height: 14px;
    border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 4px rgba(212,175,55,0.18); }
.tl-year { font-family: 'Anton', sans-serif; color: var(--gold-hi); font-size: 1.15rem; margin-inline-end: 10px; }
.timeline p { display: inline; color: var(--muted); }

/* ============ Trophies ============ */
.trophy-grid { max-width: var(--maxw); margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.trophy { background: var(--card); border: 1px solid var(--card-brd); border-radius: var(--radius);
    padding: 26px 18px; text-align: center; transition: transform .3s, box-shadow .3s; }
.trophy:hover { transform: translateY(-6px) rotate(-1.5deg); box-shadow: var(--shadow); }
.trophy b { font-family: 'Anton', sans-serif; font-size: 2.4rem; color: var(--gold-hi); display: block; }
.trophy span { color: var(--muted); font-size: .92rem; }

/* ============ Quotes ============ */
.quotes { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 18px; }
.quotes blockquote { background: var(--card); border: 1px solid rgba(255,255,255,0.07);
    border-inline-start: 3px solid var(--gold); border-radius: var(--radius); padding: 26px; }
.quotes p { color: var(--text); font-size: 1.05rem; font-style: italic; margin-bottom: 12px; }
.quotes cite { color: var(--gold-hi); font-style: normal; font-weight: 700; }

/* ============ Neve message ============ */
.neve-sec { display: flex; justify-content: center; }
.neve-card {
    max-width: 720px; text-align: center; padding: clamp(30px, 6vw, 56px);
    background: radial-gradient(120% 120% at 50% 0%, rgba(212,175,55,0.12), transparent 60%), var(--bg-3);
    border: 1px solid var(--card-brd); border-radius: 26px; box-shadow: var(--shadow);
}
.neve-badge { font-size: 3rem; margin-bottom: 8px; }
.neve-card h2 { font-family: 'Anton','Heebo',sans-serif; font-weight: 400; font-size: clamp(1.8rem,4vw,2.6rem); margin-bottom: 16px; }
.neve-card p { color: var(--muted); margin-bottom: 12px; }
.neve-card strong { color: var(--gold-hi); }
.neve-final { color: var(--text) !important; font-weight: 700; font-size: 1.15rem; margin: 18px 0 6px !important; }
.convince-result { color: var(--gold-hi); font-weight: 800; margin-top: 18px !important; min-height: 1.4em; font-size: 1.1rem; }

/* ============ Footer ============ */
.footer { text-align: center; padding: 54px 20px 40px; border-top: 1px solid rgba(255,255,255,0.06); background: var(--bg-2); }
.footer-logo { height: 30px; margin: 0 auto 16px; opacity: .9; }
.footer p { color: var(--muted); }
.footer-small { color: var(--dim) !important; font-size: .82rem; margin-top: 6px; letter-spacing: 1px; }

/* ============ Back to top ============ */
.to-top {
    position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 900;
    width: 48px; height: 48px; border-radius: 50%; cursor: pointer; border: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-hi)); color: #1a1400; font-size: 1.3rem; font-weight: 800;
    box-shadow: 0 10px 26px rgba(212,175,55,0.35); opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { filter: brightness(1.08); }

/* ============ Confetti ============ */
.confetti { position: fixed; inset: 0; z-index: 1500; pointer-events: none; }

/* ============ Floating particles ============ */
.particle { position: fixed; z-index: 0; pointer-events: none; opacity: .07; user-select: none; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin-inline: auto; }
    .hero-ticker, .hero-actions { justify-content: center; }
    .hero-emblem { order: -1; }
    .emblem-spin { width: min(240px, 60vw); }
    .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .nav-links {
        position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
        flex-direction: column; align-items: flex-start; gap: 6px; padding: 90px 22px;
        background: rgba(10,10,16,0.97); backdrop-filter: blur(16px);
        transform: translateX(100%); transition: transform .35s ease;
        border-inline-start: 1px solid rgba(212,175,55,0.15);
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { width: 100%; font-size: 1.05rem; }
    .nav-toggle { display: block; }
    .vs-row { grid-template-columns: 1fr; gap: 8px; }
    .vs-label { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
