@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --color-text: #FFF3E3;
  --color-bg: #1C161B;
  --color-bg-element: #30102F;
  --color-bg-selected: #8A1538;
  --color-accent: #FFC44D;
  --color-accent-hover: #FFD980;
  --color-red: #C0392B;
  --color-red-light: #E74C3C;
  --color-purple: #4A0E4E;
  --color-purple-light: #6D1F72;
  --color-gold: #D4A017;
}

* {
  box-sizing: border-box;
}

/* Logo image sizing in nav */
nav img[alt="CupTrack"],
a img[alt="CupTrack"] {
  object-fit: contain;
  max-height: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Glassmorphism card ── */
.glass {
  background: rgba(48, 16, 47, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 196, 77, 0.12);
  border-radius: 1.25rem;
}

.glass-dark {
  background: rgba(28, 22, 27, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 243, 227, 0.07);
  border-radius: 1.25rem;
}

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, #FFC44D 0%, #FF6B35 50%, #FFF3E3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #FFD700 0%, #FFC44D 60%, #FFE4A0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Phone mockup ── */
.phone-mockup {
  position: relative;
  width: 220px;
  min-height: 440px;
  background: #0D0B0E;
  border-radius: 38px;
  border: 2px solid rgba(255, 196, 77, 0.25);
  box-shadow:
    0 0 0 6px #1C161B,
    0 0 0 8px rgba(255, 196, 77, 0.15),
    0 40px 80px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  padding: 0;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 6px;
  background: #1C161B;
  border-radius: 3px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1C161B 0%, #30102F 100%);
  padding: 28px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Mini match card ── */
.mini-card {
  background: rgba(138, 21, 56, 0.3);
  border: 1px solid rgba(255, 196, 77, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--color-text);
}

.mini-card-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.mini-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 13px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #E74C3C;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.4s ease-in-out infinite;
}

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

/* ── CTA Button ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #8A1538 0%, #C0392B 100%);
  color: #FFF3E3;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 24px rgba(138, 21, 56, 0.45);
  border: 1px solid rgba(255, 196, 77, 0.2);
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(138, 21, 56, 0.65);
  opacity: 0.95;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-accent);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 100px;
  border: 1.5px solid rgba(255, 196, 77, 0.35);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 196, 77, 0.08);
  border-color: rgba(255, 196, 77, 0.6);
  transform: translateY(-1px);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ── Nav ── */
.nav-link {
  color: rgba(255, 243, 227, 0.75);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Section labels ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(138, 21, 56, 0.25);
  border: 1px solid rgba(138, 21, 56, 0.5);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 100px;
}

/* ── Feature card ── */
.feature-card {
  background: rgba(48, 16, 47, 0.4);
  border: 1px solid rgba(255, 196, 77, 0.1);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 196, 77, 0.3);
  box-shadow: 0 16px 40px rgba(138, 21, 56, 0.25);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #8A1538, #4A0E4E);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 196, 77, 0.15);
}

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid rgba(255, 243, 227, 0.08);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  gap: 1rem;
}

.faq-trigger:hover {
  color: var(--color-accent);
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(138, 21, 56, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s, background 0.25s;
  font-size: 0.8rem;
  color: var(--color-accent);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: rgba(138, 21, 56, 0.7);
}

.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.25s ease;
}

.faq-body.open {
  max-height: 400px;
  padding-bottom: 1.25rem;
}

.faq-answer {
  color: rgba(255, 243, 227, 0.7);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ── Divider glow ── */
.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 196, 77, 0.35), transparent);
  margin: 0 auto;
}

/* ── Noise texture overlay ── */
.noise-overlay {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── Responsive menu ── */
#mobile-menu {
  display: none;
}

#mobile-menu.open {
  display: flex;
}

/* ── Scroll fade in ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Screenshot phone sizes ── */
.screenshot-phone {
  width: 200px;
  min-height: 400px;
  background: #0D0B0E;
  border-radius: 36px;
  border: 2px solid rgba(255, 196, 77, 0.2);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.screenshot-phone::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: #1C161B;
  border-radius: 3px;
  z-index: 10;
}

.screenshot-screen {
  width: 100%;
  height: 100%;
  min-height: 400px;
  padding: 28px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Legal pages ── */
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  color: rgba(255, 243, 227, 0.75);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.legal-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.legal-content ul li {
  color: rgba(255, 243, 227, 0.75);
  line-height: 1.8;
  font-size: 0.95rem;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.35rem;
}

.legal-content ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--color-accent-hover);
}

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

/* ── Standings mini table ── */
.standings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,243,227,0.06);
  font-size: 10px;
}

.standings-row:last-child {
  border-bottom: none;
}
