/* ============================================
   SPOLINK - Modern Landing Page
   ============================================ */

:root {
  --bg: #0a0a0f;
  --bg-subtle: #12121a;
  --surface: #1a1a2e;
  --surface-light: #222240;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --text: #e8e8f0;
  --text-muted: #8888a0;
  --text-dim: #5a5a72;
  --accent-1: #6C5CE7;
  --accent-2: #0984e3;
  --accent-3: #00b894;
  --gradient-main: linear-gradient(135deg, #6C5CE7 0%, #0984e3 50%, #00b894 100%);
  --gradient-text: linear-gradient(135deg, #a29bfe, #74b9ff, #55efc4);
  --glow-purple: rgba(108, 92, 231, 0.3);
  --glow-blue: rgba(9, 132, 227, 0.25);
  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--maxw), calc(100% - 2rem));
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-fade {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-d1 { animation-delay: 0.15s; }
.anim-d2 { animation-delay: 0.3s; }
.anim-d3 { animation-delay: 0.45s; }
.anim-d4 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(0.95); }
  66% { transform: translate(20px, -30px) scale(1.05); }
}

/* ============================================
   HEADER
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10, 10, 15, 0.8);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-icon-sm {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

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

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.header-cta {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #fff;
  color: #0a0a0f;
  transition: background 0.2s, transform 0.2s;
}

.header-cta:hover {
  background: #e8e8f0;
  transform: translateY(-1px);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.orb-1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: 10%;
  background: var(--glow-purple);
  animation: orbFloat1 12s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  bottom: 0;
  left: -5%;
  background: var(--glow-blue);
  animation: orbFloat2 15s ease-in-out infinite;
}

.orb-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  right: 30%;
  background: rgba(0, 184, 148, 0.15);
  animation: orbFloat1 18s ease-in-out infinite reverse;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: rgba(108, 92, 231, 0.1);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  animation: pulse 2s ease-in-out infinite;
}

.hero-desc {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #fff;
  color: #0a0a0f;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #e8e8f0;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Hero Phones */
.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}

.phone-group {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.phone {
  border-radius: 28px;
  border: 3px solid #2a2a3e;
  overflow: hidden;
  background: #1a1a2e;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
}

.phone-front {
  width: 240px;
  z-index: 3;
  border-color: #3a3a50;
}

.phone-back {
  width: 200px;
  position: absolute;
}

.phone-left-tilt {
  left: -80px;
  transform: perspective(800px) rotateY(15deg) scale(0.9);
  z-index: 2;
  opacity: 0.85;
}

.phone-right-tilt {
  right: -80px;
  transform: perspective(800px) rotateY(-15deg) scale(0.9);
  z-index: 1;
  opacity: 0.85;
}

.phone-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  border-radius: 0 0 14px 14px;
  background: #1a1a2e;
  z-index: 5;
}

.phone-screen img {
  width: 100%;
  display: block;
}

.phone-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-purple) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  filter: blur(40px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ============================================
   MARQUEE - SPORTS
   ============================================ */

.marquee-section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  overflow: clip visible;
}

.marquee-track {
  overflow: clip;
  overflow-clip-margin: 8px;
  padding-block: 8px;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.sport-chip {
  flex-shrink: 0;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--chip-color) 30%, transparent);
  background: color-mix(in srgb, var(--chip-color) 10%, transparent);
  color: var(--chip-color);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s;
}

.sport-chip:hover {
  background: color-mix(in srgb, var(--chip-color) 20%, transparent);
  transform: scale(1.05);
}

/* ============================================
   FEATURES
   ============================================ */

.features-section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: rgba(108, 92, 231, 0.08);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-desc {
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 50ch;
  margin-inline: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--icon-bg);
  margin-bottom: 1.2rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-section {
  padding: 6rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.step-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  transition: all 0.3s;
}

.step-card:hover {
  border-color: var(--accent-1);
  box-shadow: 0 0 40px rgba(108, 92, 231, 0.1);
}

.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 1rem;
}

.step-line {
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-main);
  margin: 0 auto 1.2rem;
}

.step-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.4rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ============================================
   SCREENS
   ============================================ */

.screens-section {
  padding: 6rem 0;
}

.screens-carousel {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.screen-item {
  text-align: center;
}

.screen-phone-wrap {
  padding: 4px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), rgba(9, 132, 227, 0.3));
  transition: all 0.4s;
}

.screen-item:hover .screen-phone-wrap {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.5), rgba(9, 132, 227, 0.5));
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(108, 92, 231, 0.2);
}

.screen-phone {
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
}

.screen-phone img {
  width: 100%;
}

.screen-item h3 {
  margin-top: 1rem;
  font-size: 1rem;
}

.screen-item p {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ============================================
   DOWNLOAD CTA
   ============================================ */

.download-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.download-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb-4 {
  width: 400px;
  height: 400px;
  top: -20%;
  left: 20%;
  background: var(--glow-purple);
  animation: orbFloat2 14s ease-in-out infinite;
}

.orb-5 {
  width: 350px;
  height: 350px;
  bottom: -15%;
  right: 15%;
  background: var(--glow-blue);
  animation: orbFloat1 16s ease-in-out infinite;
}

.download-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.download-desc {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--surface);
  color: var(--text);
  transition: all 0.3s;
}

.store-btn:hover {
  border-color: var(--accent-1);
  background: var(--surface-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.15);
}

.store-btn small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.store-btn strong {
  font-size: 1.05rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-phones {
    min-height: 440px;
  }

  .phone-front { width: 200px; }
  .phone-back { width: 170px; }
  .phone-left-tilt { left: -60px; }
  .phone-right-tilt { right: -60px; }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screens-carousel {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    font-size: 1.3rem;
  }

  .menu-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 7rem 0 3rem;
    min-height: auto;
  }

  .hero-phones {
    min-height: 380px;
  }

  .phone-front { width: 180px; }
  .phone-back { width: 150px; }
  .phone-left-tilt { left: -50px; }
  .phone-right-tilt { right: -50px; }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .stat-divider {
    display: none;
  }

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

  .screens-carousel {
    grid-template-columns: repeat(2, 1fr);
  }

  .screen-item:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 280px;
    margin-inline: auto;
  }

  .store-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-phones {
    min-height: 320px;
  }

  .phone-front { width: 160px; }
  .phone-back { width: 130px; }
  .phone-left-tilt { left: -40px; }
  .phone-right-tilt { right: -40px; }

  .screens-carousel {
    grid-template-columns: 1fr;
  }

  .screen-item:nth-child(5) {
    max-width: 100%;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .step-card {
    padding: 2rem 1.5rem;
  }

  .download-section {
    padding: 5rem 0;
  }
}
