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

:root {
  --primary-light: #17b26a;
  --primary-dark: #028169;
  --bg-dark: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --gradient: linear-gradient(135deg, #17b26a 0%, #028169 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Animated Background */
.bg-animation {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.3;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(23, 178, 106, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(2, 129, 105, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(23, 178, 106, 0.1) 0%,
      transparent 50%
    );
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(-20px, -20px) rotate(1deg);
  }
  66% {
    transform: translate(20px, -10px) rotate(-1deg);
  }
}

/* Navigation */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 15px 0;
  background: rgba(10, 10, 10, 0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(23, 178, 106, 0.3);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

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

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.mobile-menu span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 50px;
  position: relative;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  animation: slideInLeft 1s ease;
}

/* App Store badge (official artwork) */
.app-store-badge {
  display: inline-block;
  line-height: 0; /* remove extra inline spacing */
}

.app-store-badge img {
  height: 48px; /* ≥ 40px for web per Apple */
  width: auto; /* preserve aspect ratio */
  display: block;
}

/* Keep some breathing room around the badge.
   Apple asks for clear space = 1/4 of badge height (≈12px if height=48px). */
.cta-buttons .app-store-badge {
  margin: 12px 0;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(23, 178, 106, 0.1);
  border: 1px solid rgba(23, 178, 106, 0.3);
  border-radius: 50px;
  color: var(--primary-light);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

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

h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 16px 32px;
  background: var(--gradient);
  color: white;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 600;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px rgba(23, 178, 106, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px rgba(23, 178, 106, 0.4);
}

.btn-secondary {
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 600;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* Device Mockups */
.hero-visual {
  position: relative;
  animation: slideInRight 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 3D Carousel Container */
.devices-carousel {
  position: relative;
  width: 100%;
  height: 500px;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.device-slide:nth-child(1) {
  transform: rotateY(0deg) translateZ(250px);
}

.device-slide:nth-child(2) {
  transform: rotateY(90deg) translateZ(250px);
}

.device-slide:nth-child(3) {
  transform: rotateY(180deg) translateZ(250px);
}

.device-slide:nth-child(4) {
  transform: rotateY(270deg) translateZ(250px);
}

.device-mockup {
  /* background: rgba(255, 255, 255, 0.05); */
  /* border: 2px solid rgba(255, 255, 255, 0.1); */
  /* border-radius: 30px; */
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.phone-portrait {
  /* original */
  /* width: 240px; */
  height: 420px;

  /* trial */
  /* width: clamp(180px, 22vw, 240px); */
  /* Keeps the element proportional (iPhone-ish ratio) */
  aspect-ratio: 9 / 19.5;
}

.phone-landscape {
  width: 420px;
  /* height: 240px; */
  aspect-ratio: 19.5 / 9;
}

.watch {
  /* width: 200px;
    height: 240px;
    border-radius: 40px; */
  width: 190px;
}

.device-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(23, 178, 106, 0.2),
    rgba(2, 129, 105, 0.2)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  text-align: center;
  padding: 20px;
  gap: 10px;
}

.device-screen .device-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

/* Carousel Controls */
.carousel-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Device Labels */
.device-label {
  position: absolute;
  /* bottom: -50px; */
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  background: rgba(23, 178, 106, 0.1);
  border: 1px solid rgba(23, 178, 106, 0.3);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-light);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.device-slide.active .device-label {
  opacity: 1;
}

/* Touch hint */
.swipe-hint {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}

/* Features Section */
.features {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Sports Section */
.sports {
  padding: 100px 20px;
  background: rgba(255, 255, 255, 0.02);
}

.sports-container {
  max-width: 1200px;
  margin: 0 auto;
}

.sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.sport-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.sport-item:hover {
  background: rgba(23, 178, 106, 0.1);
  border-color: rgba(23, 178, 106, 0.3);
  transform: translateY(-5px);
}

.sport-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.sport-icon-img {
  height: 40px;
  margin-bottom: 12px;
  margin-top: 12px;
}

.sport-name {
  font-weight: 600;
  color: var(--text-primary);
}

.sport-item.featured {
  background: rgba(23, 178, 106, 0.05);
  border-color: rgba(23, 178, 106, 0.2);
}

/* Pricing Section */
.pricing {
  padding: 100px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(23, 178, 106, 0.3);
  border-radius: 24px;
  padding: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(23, 178, 106, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

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

.price-tag {
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.price-period {
  color: var(--text-secondary);
  font-size: 20px;
  margin-bottom: 30px;
}

.trial-badge {
  display: inline-block;
  padding: 12px 24px;
  background: rgba(23, 178, 106, 0.1);
  border: 1px solid rgba(23, 178, 106, 0.3);
  border-radius: 50px;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 30px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 40px;
}

.pricing-features li {
  padding: 12px 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--primary-light);
  font-weight: bold;
}

.price-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  opacity: 0.85;
}

/* FAQ Section */
.faq {
  padding: 100px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-container {
  margin-top: 50px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(23, 178, 106, 0.2);
}

.faq-item.active {
  border-color: rgba(23, 178, 106, 0.3);
  background: rgba(23, 178, 106, 0.03);
}

.faq-question {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  padding-right: 20px;
}

.faq-icon {
  font-size: 24px;
  color: var(--primary-light);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
  padding: 0 30px 25px 30px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* Footer */
footer {
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-image {
  width: 40px;
  /* margin-bottom: 10px; */
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-text {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; /* drops below the fixed nav bar */
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 16px;
    padding: 12px 20px;
    background: rgba(10, 10, 10, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.open a {
    padding: 10px 0;
  }

  .mobile-menu {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    margin-top: 40px;
    min-height: 400px;
  }

  .devices-carousel {
    height: 400px;
  }

  .device-slide:nth-child(1),
  .device-slide:nth-child(2),
  .device-slide:nth-child(3),
  .device-slide:nth-child(4),
  .device-slide:nth-child(5),
  .device-slide:nth-child(6) {
    transform: none;
  }

  .carousel-track {
    position: relative;
  }

  .device-slide {
    position: relative;
    display: none;
  }

  .device-slide.active {
    display: flex;
  }

  .phone-portrait {
    /* width: 200px; */
    height: 400px;
  }

  .phone-landscape {
    width: 340px;
    /* height: 200px; */
  }

  .watch {
    width: 180px;
    /* height: 220px; */
  }

  .swipe-hint {
    bottom: 80px;
  }

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

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

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

  .pricing-card {
    padding: 30px 20px;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  animation: fadeIn 0.5s ease;
}

/* --- Privacy Policy (overrides) --- */
.legal {
  /* moved from inline */
  padding-top: 140px;
}

/* Left-align the header + card content on the privacy page */
/* .legal .section-header,
.legal .pricing-card, */
.legal .feature-title,
.legal .feature-description {
  text-align: left;
}

/* Make only the contact/support links green */
/* .legal-links a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
} */

/* color all links inside the policy card */
.legal .pricing-card a {
  color: var(--primary-light);
}

.legal-links a:hover {
  filter: brightness(1.1);
}

.legal-links a:focus-visible {
  outline: 2px dashed var(--primary-light);
  outline-offset: 2px;
}

/* Legal page: align bullets with left-justified body */
.legal .pricing-card ul {
  list-style: disc inside; /* keep the dot inside the card, not hanging off the page */
  padding-left: 0; /* rely on 'inside' spacing */
  margin: 0 0 1rem 0; /* tidy vertical spacing */
}
.legal .pricing-card li {
  margin: 0.4rem 0; /* consistent rhythm between items */
}

/* Legal page (hanging bullets): text aligns with paragraphs, dot hangs */
.legal.hanging .pricing-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem 0;
}
.legal.hanging .pricing-card li {
  position: relative;
  padding-left: 1.25rem; /* space for the dot */
  margin: 0.4rem 0;
}
.legal.hanging .pricing-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 1.1em;
  line-height: 1;
  color: var(--text-secondary);
}
