/* TapaNova Marketing Site Styles */

/* Design Tokens */
:root {
  /* Brand Colors - matching game palette */
  --tn-bg-start: #0F2027;
  --tn-bg-end: #2C5364;
  --tn-red: #E53E3E;
  --tn-blue: #3182CE;
  --tn-green: #38A169;
  --tn-orange: #DD6B20;
  --tn-purple: #805AD5;
  --tn-teal: #319795;
  
  /* Surface colors */
  --tn-surface: rgba(255,255,255,0.06);
  --tn-surface-hover: rgba(255,255,255,0.1);
  --tn-border: rgba(255,255,255,0.12);
  --tn-border-hover: rgba(255,255,255,0.2);
  
  /* Text colors */
  --tn-text: #E6F1F5;
  --tn-text-muted: #99AAB5;
  --tn-text-accent: #FFFFFF;
  
  /* Spacing */
  --tn-spacing-1: 4px;
  --tn-spacing-2: 8px;
  --tn-spacing-3: 12px;
  --tn-spacing-4: 16px;
  --tn-spacing-6: 24px;
  --tn-spacing-8: 32px;
  --tn-spacing-12: 48px;
  --tn-spacing-16: 64px;
  --tn-spacing-20: 80px;
  --tn-spacing-24: 96px;
  
  /* Border radius */
  --tn-radius-sm: 8px;
  --tn-radius-md: 12px;
  --tn-radius-lg: 16px;
  --tn-radius-xl: 24px;
  --tn-radius-full: 9999px;
  
  /* Shadows */
  --tn-shadow: 0 10px 30px rgba(0,0,0,0.4);
  --tn-shadow-lg: 0 20px 40px rgba(0,0,0,0.6);
  
  /* Typography */
  --tn-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Noto Sans', sans-serif;
  --tn-font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  
  /* Breakpoints (for reference) */
  --tn-bp-sm: 640px;
  --tn-bp-md: 768px;
  --tn-bp-lg: 1024px;
  --tn-bp-xl: 1280px;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--tn-bg-start), var(--tn-bg-end));
  background-attachment: fixed;
  color: var(--tn-text);
  font-family: var(--tn-font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal overflow */
}


/* Container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--tn-spacing-4);
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--tn-spacing-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--tn-spacing-8);
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--tn-spacing-4) 0;
  font-weight: 700;
  line-height: 1.2;
  color: var(--tn-text-accent);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* 40-56px */
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem); /* 28-36px */
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem; /* 24px */
}

h4 {
  font-size: 1.25rem; /* 20px */
}

p {
  margin: 0 0 var(--tn-spacing-4) 0;
  font-size: 1.125rem; /* 18px */
  color: var(--tn-text);
}

.text-muted {
  color: var(--tn-text-muted);
}

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

.text-xl {
  font-size: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-sm {
  font-size: 0.875rem;
}

/* Cards and Surfaces - Modern Glassmorphism */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--tn-radius-lg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 
    0 16px 32px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  padding: var(--tn-spacing-8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(255, 255, 255, 0.06) 100%);
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(128, 90, 213, 0.3);
}

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

.card-feature {
  text-align: center;
  padding: var(--tn-spacing-6);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: var(--tn-radius-xl);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: var(--tn-spacing-2);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

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

.btn:focus {
  outline: 2px solid var(--tn-teal);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--tn-purple), var(--tn-teal));
  color: white;
  box-shadow: 0 4px 20px rgba(128, 90, 213, 0.3);
  border-color: transparent;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(128, 90, 213, 0.4);
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--tn-purple) 90%, white),
    color-mix(in srgb, var(--tn-teal) 90%, white)
  );
}

/* Platform-specific download buttons */
.btn-ios {
  background: linear-gradient(135deg, #007AFF, #5856D6);
  color: white;
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
  border-color: transparent;
  position: relative;
  overflow: hidden;
}

.btn-ios::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  border-radius: inherit;
}

.btn-ios:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 122, 255, 0.4);
  background: linear-gradient(135deg, #0056D6, #4A47CC);
}

.btn-android {
  background: linear-gradient(135deg, #34A853, #0F9D58);
  color: white;
  box-shadow: 0 4px 20px rgba(52, 168, 83, 0.3);
  border-color: transparent;
  position: relative;
  overflow: hidden;
}

.btn-android::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  border-radius: inherit;
}

.btn-android:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(52, 168, 83, 0.4);
  background: linear-gradient(135deg, #2E8B57, #0D7A47);
}

/* Subtle pulsing animation for download buttons */
.hero-buttons .btn-ios,
.hero-buttons .btn-android {
  animation: subtlePulse 3s ease-in-out infinite;
}

.hero-buttons .btn-android {
  animation-delay: 1.5s;
}

@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
  }
  50% {
    box-shadow: 0 6px 25px rgba(0, 122, 255, 0.5);
  }
}

.hero-buttons .btn-android {
  animation-name: subtlePulseAndroid;
}

@keyframes subtlePulseAndroid {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(52, 168, 83, 0.3);
  }
  50% {
    box-shadow: 0 6px 25px rgba(52, 168, 83, 0.5);
  }
}

/* Enhanced button icons */
.btn-icon {
  font-size: 1.2em;
  margin-right: var(--tn-spacing-2);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* Button text styling */
.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn-text .btn-label {
  font-size: 0.8em;
  opacity: 0.9;
  font-weight: 400;
}

.btn-text .btn-title {
  font-size: 1em;
  font-weight: 600;
}

.btn-secondary {
  background: var(--tn-surface);
  color: var(--tn-text-accent);
  border-color: var(--tn-border);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  background: var(--tn-surface-hover);
  border-color: var(--tn-purple);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(128, 90, 213, 0.2);
}

.btn-lg {
  padding: 20px 40px;
  font-size: 1.125rem;
  border-radius: calc(var(--tn-radius-xl) + 2px);
  min-width: 200px;
  justify-content: flex-start;
}

@media (max-width: 640px) {
  .btn-lg {
    min-width: 260px;
    justify-content: center;
  }
}

/* Header */
.header {
  position: relative;
  z-index: 2;
  padding: var(--tn-spacing-6) 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--tn-spacing-3);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tn-text-accent);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--tn-radius-sm);
}

.nav-links {
  display: flex;
  gap: var(--tn-spacing-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

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

/* Flying Orbs Background */
.flying-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  filter: blur(1px);
  animation: flyAcross linear infinite;
}

.orb-red {
  background: radial-gradient(circle, var(--tn-red), rgba(255, 107, 107, 0.8));
  box-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
}

.orb-blue {
  background: radial-gradient(circle, var(--tn-blue), rgba(77, 171, 247, 0.8));
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
}

.orb-green {
  background: radial-gradient(circle, var(--tn-green), rgba(81, 207, 102, 0.8));
  box-shadow: 0 0 20px rgba(64, 184, 91, 0.4);
}

.orb-orange {
  background: radial-gradient(circle, var(--tn-orange), rgba(255, 169, 77, 0.8));
  box-shadow: 0 0 20px rgba(255, 146, 43, 0.4);
}

.orb-purple {
  background: radial-gradient(circle, var(--tn-purple), rgba(156, 136, 255, 0.8));
  box-shadow: 0 0 20px rgba(128, 90, 213, 0.4);
}

.orb-teal {
  background: radial-gradient(circle, var(--tn-teal), rgba(56, 217, 169, 0.8));
  box-shadow: 0 0 20px rgba(49, 151, 149, 0.4);
}

@keyframes flyAcross {
  0% {
    transform: translate3d(-15vw, var(--start-y, 50vh), 0) rotate(0deg) scale(var(--scale, 0.8));
    opacity: 0;
  }
  10% {
    opacity: var(--max-opacity, 0.6);
    transform: translate3d(-5vw, var(--start-y, 30vh), 0) rotate(36deg) scale(var(--scale, 0.8));
  }
  50% {
    opacity: var(--max-opacity, 0.8);
    transform: translate3d(50vw, var(--mid-y, 40vh), 0) rotate(180deg) scale(var(--scale, 1));
  }
  90% {
    opacity: var(--max-opacity, 0.6);
    transform: translate3d(105vw, var(--end-y, 50vh), 0) rotate(324deg) scale(var(--scale, 0.8));
  }
  100% {
    transform: translate3d(110vw, var(--end-y, 50vh), 0) rotate(360deg) scale(var(--scale, 0.5));
    opacity: 0;
  }
}

/* Different sizes and speeds for variety */
.orb-small {
  width: 12px;
  height: 12px;
  animation-duration: 15s;
}

.orb-medium {
  width: 18px;
  height: 18px;
  animation-duration: 20s;
}

.orb-large {
  width: 24px;
  height: 24px;
  animation-duration: 25s;
}

/* Hero Section with Premium Modern Background */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--tn-spacing-20) 0 var(--tn-spacing-24) 0;
  text-align: center;
  min-height: 85vh;
  display: flex;
  align-items: center;
  z-index: 1;
  /* Ensure backgrounds don't leak outside hero section */
  isolation: isolate;
}

.hero-content {
  position: relative;
  z-index: 10;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  padding: var(--tn-spacing-12) var(--tn-spacing-8);
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 16px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  max-width: 800px;
  margin: 0 auto;
  transition: all 0.4s ease;
}

.hero-content:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 50px 100px rgba(0, 0, 0, 0.6),
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

/* Multi-layer animated background */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: 
    /* Primary gradient orbs - more contained */
    radial-gradient(ellipse 600px 300px at 35% 40%, rgba(128, 90, 213, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 500px 600px at 65% 60%, rgba(49, 151, 149, 0.2) 0%, transparent 75%),
    radial-gradient(ellipse 350px 450px at 50% 20%, rgba(221, 107, 32, 0.12) 0%, transparent 80%),
    /* Secondary accent orbs - repositioned away from corners */
    radial-gradient(circle 250px at 70% 30%, rgba(227, 62, 62, 0.1) 0%, transparent 70%),
    radial-gradient(circle 300px at 30% 70%, rgba(56, 161, 105, 0.15) 0%, transparent 75%),
    /* Tertiary atmosphere - centered */
    radial-gradient(ellipse 800px 200px at 50% 50%, rgba(128, 90, 213, 0.06) 0%, transparent 85%);
  animation: cosmicDance 40s ease-in-out infinite;
  pointer-events: none;
  will-change: transform;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    /* Geometric pattern overlay */
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.01) 0px,
      rgba(255, 255, 255, 0.01) 1px,
      transparent 1px,
      transparent 20px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(128, 90, 213, 0.02) 0px,
      rgba(128, 90, 213, 0.02) 1px,
      transparent 1px,
      transparent 30px
    ),
    /* Subtle dot pattern */
    radial-gradient(circle 1px at center, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(circle 0.5px at center, rgba(128, 90, 213, 0.2), transparent);
  background-size: 40px 40px, 60px 60px, 50px 50px, 25px 25px;
  background-position: 0 0, 15px 15px, 25px 25px, 10px 10px;
  animation: patternShift 30s linear infinite;
  opacity: 0.4;
  pointer-events: none;
}

/* Premium Hero Background Animations */
@keyframes cosmicDance {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    filter: blur(0.5px) hue-rotate(0deg);
  }
  25% {
    transform: translate(-45%, -55%) rotate(90deg) scale(1.05);
    filter: blur(1px) hue-rotate(30deg);
  }
  50% {
    transform: translate(-55%, -45%) rotate(180deg) scale(0.95);
    filter: blur(0.8px) hue-rotate(60deg);
  }
  75% {
    transform: translate(-60%, -50%) rotate(270deg) scale(1.02);
    filter: blur(1.2px) hue-rotate(90deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(1);
    filter: blur(0.5px) hue-rotate(120deg);
  }
}

@keyframes patternShift {
  0% {
    background-position: 0 0, 15px 15px, 25px 25px, 10px 10px;
    opacity: 0.4;
  }
  25% {
    background-position: 10px 5px, 25px 20px, 35px 30px, 15px 15px;
    opacity: 0.5;
  }
  50% {
    background-position: 20px 10px, 35px 25px, 45px 35px, 20px 20px;
    opacity: 0.3;
  }
  75% {
    background-position: 15px 15px, 30px 30px, 40px 40px, 25px 25px;
    opacity: 0.6;
  }
  100% {
    background-position: 0 0, 15px 15px, 25px 25px, 10px 10px;
    opacity: 0.4;
  }
}

@keyframes particleFloat {
  0% {
    transform: translateY(0px) translateX(0px);
  }
  33% {
    transform: translateY(-10px) translateX(10px);
  }
  66% {
    transform: translateY(5px) translateX(-5px);
  }
  100% {
    transform: translateY(0px) translateX(0px);
  }
}

@keyframes heroBackground {
  0%, 100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.6;
  }
  33% {
    transform: rotate(120deg) scale(1.1);
    opacity: 0.8;
  }
  66% {
    transform: rotate(240deg) scale(0.9);
    opacity: 0.7;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-accent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120vw;
  height: 120vw;
  max-width: 1000px;
  max-height: 1000px;
  background: radial-gradient(circle, 
    rgba(128, 90, 213, 0.08) 0%,
    rgba(49, 151, 149, 0.05) 40%,
    transparent 70%);
  border-radius: 50%;
  animation: nebula 30s linear infinite;
  pointer-events: none;
  opacity: 0.4;
}

@keyframes nebula {
  0% { 
    filter: hue-rotate(0deg) blur(1px);
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% { 
    filter: hue-rotate(360deg) blur(1px);
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero h1 {
  margin-bottom: var(--tn-spacing-6);
  background: linear-gradient(135deg, 
    var(--tn-text-accent), 
    var(--tn-purple), 
    var(--tn-teal), 
    var(--tn-text-accent)
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(128, 90, 213, 0.3);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--tn-text-muted);
  margin-bottom: var(--tn-spacing-8);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--tn-spacing-6);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: var(--tn-spacing-6);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--tn-spacing-4);
}

.hero-buttons .btn:nth-child(1) {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons .btn:nth-child(2) {
  animation: fadeInUp 1s ease-out 0.8s both;
}

@media (max-width: 640px) {
  .hero {
    padding: var(--tn-spacing-16) 0 var(--tn-spacing-20) 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--tn-spacing-16) auto;
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--tn-purple), var(--tn-teal));
  border-radius: 2px;
}

.section-header h2 {
  margin-bottom: var(--tn-spacing-4);
  background: linear-gradient(135deg, var(--tn-text-accent), var(--tn-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--tn-text-muted);
  line-height: 1.6;
}

/* Features Section */
.features {
  padding: var(--tn-spacing-20) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tn-spacing-8);
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  position: relative;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }
.feature-card:nth-child(4) { animation-delay: 0.8s; }
.feature-card:nth-child(5) { animation-delay: 1.0s; }
.feature-card:nth-child(6) { animation-delay: 1.2s; }

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--tn-spacing-6);
  border-radius: var(--tn-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-icon-red { background: linear-gradient(135deg, var(--tn-red), #ff6b6b); }
.feature-icon-blue { background: linear-gradient(135deg, var(--tn-blue), #4dabf7); }
.feature-icon-green { background: linear-gradient(135deg, var(--tn-green), #51cf66); }
.feature-icon-orange { background: linear-gradient(135deg, var(--tn-orange), #ffa94d); }
.feature-icon-purple { background: linear-gradient(135deg, var(--tn-purple), #9c88ff); }
.feature-icon-teal { background: linear-gradient(135deg, var(--tn-teal), #38d9a9); }

/* Screenshots Section */
.screenshots {
  padding: var(--tn-spacing-20) 0;
}

.screenshot-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--tn-radius-xl);
  background: var(--tn-surface);
  backdrop-filter: blur(6px);
}

.screenshot-track {
  display: flex;
  transition: transform 0.5s ease;
}

.screenshot-item {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--tn-spacing-8);
}

.screenshot-item img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: var(--tn-radius-lg);
  box-shadow: var(--tn-shadow-lg);
}

.screenshot-controls {
  display: flex;
  justify-content: center;
  gap: var(--tn-spacing-2);
  margin-top: var(--tn-spacing-6);
}

.screenshot-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tn-border);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.screenshot-dot.active {
  background: var(--tn-teal);
}

/* Store Badges */
.store-badges {
  display: flex;
  gap: var(--tn-spacing-6);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--tn-spacing-8);
}

.store-badge {
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--tn-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: floatingBadge 6s ease-in-out infinite;
  position: relative;
}

.store-badge:nth-child(1) {
  animation-delay: 0s;
}

.store-badge:nth-child(2) {
  animation-delay: 3s;
}

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

.store-badge:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 30px rgba(128, 90, 213, 0.3);
  animation-play-state: paused;
}

.store-badge img {
  height: 60px;
  width: auto;
  display: block;
  border-radius: var(--tn-radius-lg);
  filter: brightness(1.0) contrast(1.0);
  transition: filter 0.3s ease;
}

.store-badge:hover img {
  filter: brightness(1.1) contrast(1.05);
}

/* Footer */
.footer {
  padding: var(--tn-spacing-20) 0 var(--tn-spacing-8) 0;
  border-top: 1px solid var(--tn-border);
  margin-top: var(--tn-spacing-20);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tn-spacing-8);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }
}

.footer-section h4 {
  font-size: 1rem;
  margin-bottom: var(--tn-spacing-4);
  color: var(--tn-text-accent);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--tn-spacing-2);
}

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

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

.footer-bottom {
  margin-top: var(--tn-spacing-8);
  padding-top: var(--tn-spacing-8);
  border-top: 1px solid var(--tn-border);
  text-align: center;
  color: var(--tn-text-muted);
  font-size: 0.875rem;
}

/* Animation Classes */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .hero-accent {
    animation: none;
  }
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--tn-spacing-12);
}

.section-header h2 {
  margin-bottom: var(--tn-spacing-4);
}

.section-header p {
  color: var(--tn-text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Print Styles */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  
  .hero-accent,
  .card {
    background: none !important;
    box-shadow: none !important;
  }
}
