/* ── SHOWCASE — 3D CAROUSEL ──────────────────────────────── */
#showcase { padding: clamp(5rem,10vw,9rem) 0; background: var(--bg-secondary); overflow: hidden; }
.showcase-header { padding: 0 clamp(1.5rem,7vw,7rem); max-width: 1100px; margin: 0 auto 3.5rem; }

.sc-carousel {
  position: relative; user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
}
.sc-carousel.grabbing { cursor: grabbing; }
.sc-carousel img { -webkit-user-drag: none; pointer-events: none; }

.sc-stage {
  position: relative;
  height: 540px;
  perspective: 1200px;
  overflow: visible;
}

.sc-slide {
  position: absolute;
  left: 50%; top: 50%;
  margin-left: -120px; margin-top: -260px;
  transition: transform .65s cubic-bezier(.32,.72,0,1),
              opacity .65s cubic-bezier(.32,.72,0,1),
              filter .65s cubic-bezier(.32,.72,0,1),
              box-shadow .65s cubic-bezier(.32,.72,0,1);
  will-change: transform, opacity;
  cursor: pointer;
}

/* ── POSITIONS ────────────────────────────────────────────── */
.sc-slide[data-pos="center"] {
  transform: translateX(0) translateZ(0) scale(1) rotateY(0);
  z-index: 10; opacity: 1; filter: none;
}
.sc-slide[data-pos="left"] {
  transform: translateX(calc(-100% - 2rem)) translateZ(-120px) scale(.82) rotateY(10deg);
  z-index: 5; opacity: .65; filter: blur(1px);
}
.sc-slide[data-pos="right"] {
  transform: translateX(calc(100% + 2rem)) translateZ(-120px) scale(.82) rotateY(-10deg);
  z-index: 5; opacity: .65; filter: blur(1px);
}

/* ── FRAME ────────────────────────────────────────────────── */
.sc-frame {
  width: 240px; height: 519px;
  border-radius: 40px; overflow: hidden;
  background: linear-gradient(145deg, #f8fafc, #eef1f5);
  border: 1.5px solid var(--border);
  position: relative;
  transition: box-shadow .65s cubic-bezier(.32,.72,0,1);
}
.sc-slide[data-pos="center"] .sc-frame {
  box-shadow:
    0 50px 100px -20px rgba(26,107,255,.22),
    0 30px 60px -15px rgba(10,15,30,.12),
    0 0 0 1px rgba(26,107,255,.08);
}
.sc-slide[data-pos="left"] .sc-frame,
.sc-slide[data-pos="right"] .sc-frame {
  box-shadow:
    0 25px 50px -15px rgba(10,15,30,.1),
    0 0 0 1px rgba(10,15,30,.04);
}
.sc-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 24px;
  background: linear-gradient(145deg, #f8fafc, #eef1f5); border-radius: 0 0 16px 16px; z-index: 2;
  border: 1.5px solid var(--border); border-top: none;
}
.sc-img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  background: linear-gradient(145deg, #f0f2f7, #e8ecf0);
}

/* ── INFO ─────────────────────────────────────────────────── */
.sc-info {
  text-align: center; padding: 2rem 2rem 0;
  max-width: 480px; margin: 0 auto;
}
.sc-info-title {
  font-size: 1.25rem; font-weight: 800; color: var(--text-primary);
  margin-bottom: .4rem;
  transition: opacity .3s, transform .3s;
}
.sc-info-desc {
  font-size: .95rem; color: var(--text-secondary); line-height: 1.6;
  transition: opacity .3s, transform .3s;
}
.sc-info.fading .sc-info-title,
.sc-info.fading .sc-info-desc {
  opacity: 0; transform: translateY(8px);
}

/* ── NAV ──────────────────────────────────────────────────── */
.sc-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; padding: 2rem 0 1rem;
}
.sc-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-primary); color: var(--text-secondary);
  display: grid; place-items: center;
  transition: all .2s var(--ease-out);
  cursor: pointer;
}
.sc-arrow:hover {
  border-color: var(--color-primary); color: var(--color-primary);
  background: rgba(26,107,255,.06);
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(26,107,255,.15);
}
.sc-dots { display: flex; gap: 8px; align-items: center; }
.sc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; padding: 0;
  background: var(--border-strong);
  cursor: pointer;
  transition: all .35s cubic-bezier(.32,.72,0,1);
}
.sc-dot.active {
  width: 28px; border-radius: 4px;
  background: var(--color-primary);
  box-shadow: 0 2px 8px rgba(26,107,255,.35);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .sc-stage { height: 480px; }
  .sc-frame { width: 200px; height: 433px; border-radius: 32px; }
  .sc-slide { margin-left: -100px; margin-top: -217px; }
  .sc-notch { width: 64px; height: 20px; border-radius: 0 0 12px 12px; }
  .sc-slide[data-pos="left"],
  .sc-slide[data-pos="right"] { opacity: .35; filter: blur(2px); }
  .sc-slide[data-pos="left"]  { transform: translateX(-70%) translateZ(-120px) scale(.75) rotateY(12deg); }
  .sc-slide[data-pos="right"] { transform: translateX(70%) translateZ(-120px) scale(.75) rotateY(-12deg); }
  .sc-info-title { font-size: 1.1rem; }
  .sc-info-desc { font-size: .85rem; }
}
@media (max-width: 480px) {
  .sc-stage { height: 420px; }
  .sc-frame { width: 180px; height: 390px; border-radius: 28px; }
  .sc-slide { margin-left: -90px; margin-top: -195px; }
  .sc-slide[data-pos="left"],
  .sc-slide[data-pos="right"] { opacity: 0; pointer-events: none; }
  .sc-arrow { width: 38px; height: 38px; }
}

/* ── TOURNAMENT HIGHLIGHT ─────────────────────────────────── */
#tournaments { padding: clamp(5rem,10vw,9rem) clamp(1.5rem,7vw,7rem); background: var(--bg-primary); }
.tournament-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; max-width: 1100px; margin: 0 auto; }
.tournament-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s;
  will-change: transform;
}
.tournament-card:hover { border-color: transparent; }
.tournament-thumb {
  height: 120px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; overflow: hidden;
}
.tournament-thumb.blue { background: linear-gradient(135deg, #EEF4FF, #D6E8FF); }
.tournament-thumb.green { background: linear-gradient(135deg, #EDFBF4, #CCF5E1); }
.tournament-thumb.amber { background: linear-gradient(135deg, #FFF8EC, #FFE9B0); }
.tournament-body { padding: 1.25rem; }
.tournament-tag {
  display: inline-block; font-size: .65rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 100px; margin-bottom: 10px;
}
.tournament-tag.open { background: rgba(0,201,122,.12); color: var(--color-accent); }
.tournament-tag.soon { background: rgba(26,107,255,.1); color: var(--color-primary); }
.tournament-tag.full { background: rgba(239,68,68,.1); color: #EF4444; }
.tournament-name { font-size: 1rem; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.tournament-meta { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }
.tournament-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.tournament-prize { font-size: .85rem; font-weight: 800; color: var(--text-primary); }
.tournament-cta { font-size: .75rem; font-weight: 700; color: var(--color-primary); }

/* ── TESTIMONIALS — MARQUEE ───────────────────────────────── */
#testimonials {
  padding: clamp(5rem,10vw,9rem) 0;
  background: var(--bg-secondary);
  overflow: hidden;
}
#testimonials .section-header {
  padding: 0 clamp(1.5rem,7vw,7rem);
}

/* Marquee row */
.marquee-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-row + .marquee-row { margin-top: 1.25rem; }

.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
}

/* Row 1: right to left */
.marquee-left {
  animation: marquee-l 40s linear infinite;
}
/* Row 2: left to right, slower */
.marquee-right {
  animation: marquee-r 50s linear infinite;
}

@keyframes marquee-l {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-r {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Pause on hover */
.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

/* Card styles */
.testimonial-card {
  flex-shrink: 0;
  width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s, border-color .25s;
}
.testimonial-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.testimonial-quote-bg {
  position: absolute; top: -1rem; left: 1rem;
  font-size: 9rem; color: var(--color-primary); opacity: .06;
  font-family: Georgia, serif; line-height: 1; pointer-events: none;
}
.testimonial-stars { display: flex; gap: .25rem; margin-bottom: 1rem; }
.star { color: #F59E0B; font-size: .85rem; }
.testimonial-text {
  font-size: .9rem; line-height: 1.7; color: var(--text-secondary);
  margin-bottom: 1.25rem; position: relative; z-index: 1;
}
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .85rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.testimonial-name { font-size: .9rem; font-weight: 700; color: var(--text-primary); }
.testimonial-role { font-size: .75rem; color: var(--text-muted); margin-top: 1px; }

/* ── CTA FINAL ────────────────────────────────────────────── */
#cta-final {
  padding: clamp(6rem,12vw,11rem) clamp(1.5rem,7vw,7rem);
  text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1A6BFF 0%, #0E50CC 50%, #0A3FA0 100%);
}
#cta-final::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 20% 50%, rgba(255,255,255,.08) 0%, transparent 60%),
              radial-gradient(ellipse 50% 50% at 80% 30%, rgba(0,201,122,.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-final-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-final-title { font-size: clamp(2.5rem,6vw,5rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; color: #fff; margin-bottom: 1.1rem; }
.cta-final-sub { font-size: 1.1rem; color: rgba(255,255,255,.75); margin-bottom: 2.5rem; line-height: 1.6; }
.btn-final {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: 1rem 2.5rem; background: #fff; color: var(--color-primary);
  font-size: 1rem; font-weight: 800; border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,.2); position: relative; overflow: hidden;
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.btn-final::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(26,107,255,.06) 50%, transparent 60%); transform: translateX(-120%); transition: transform .5s; }
.btn-final:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 48px rgba(0,0,0,.25); }
.btn-final:hover::before { transform: translateX(120%); }
.btn-arrow { transition: transform .2s; }
.btn-final:hover .btn-arrow { transform: translateX(4px); }

/* ── FOOTER ───────────────────────────────────────────────── */
#footer { padding: 4rem clamp(1.5rem,7vw,7rem) 2rem; background: #0A0F1E; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 2rem; }
.footer-logo { margin-bottom: .6rem; }
.footer-logo-img { height: 40px; width: auto; display: block; filter: brightness(0) invert(1); }
.footer-tagline { font-size: .85rem; color: rgba(255,255,255,.45); line-height: 1.6; }
.footer-links-title { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1.1rem; }
.footer-links-list { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.footer-links-list a { font-size: .875rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-links-list a:hover { color: #fff; }
.footer-social { display: flex; gap: .75rem; margin-top: 1.5rem; }
.social-link { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; display: grid; place-items: center; transition: border-color .2s, background .2s, transform .2s; }
.social-link:hover { border-color: var(--color-primary); background: rgba(26,107,255,.15); transform: translateY(-2px); }
.social-link svg { width: 16px; height: 16px; fill: rgba(255,255,255,.5); transition: fill .2s; }
.social-link:hover svg { fill: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.3); }
.footer-copy span { color: var(--color-accent); }
@media (max-width: 900px) {
  .tournament-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .testimonial-card { width: 300px; padding: 1.25rem; }
  .testimonial-text { font-size: .85rem; }
}
@media (max-width: 600px) {
  .tournament-grid { grid-template-columns: 1fr; }
  .tournament-body { padding: 1rem; }
  .cta-final-title { font-size: clamp(2rem,7vw,3rem); }
  .cta-final-sub { font-size: .95rem; }
  .btn-final { padding: .85rem 2rem; font-size: .9rem; width: 100%; justify-content: center; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-logo-img { margin: 0 auto; }
}
