/* Decidey Landing Page - Design System */

/* ============================================
   CSS Variables - Design Tokens
   ============================================ */
:root {
  /* Background Colors - Extra Dark */
  --bg-primary: #0A0A0C;
  --bg-secondary: #08080A;
  --bg-tertiary: #0D0D10;
  --bg-card: rgba(20, 20, 24, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.02);

  /* Accent Colors */
  --accent-primary: #E040FB;
  --accent-gradient: linear-gradient(135deg, #D932E0 0%, #9C27B0 100%);

  /* Feature Card Colors */
  --color-wheel: #9C27B0;
  --color-dice: #7C4DFF;
  --color-coin: #FF9800;
  --color-number: #4CAF50;
  --color-yesno: #E91E63;
  --color-team: #00BFD8;
  --color-straw: #FFC107;
  --color-ranker: #6633CC;
  --color-rps: #FF5722;

  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.35);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-glow: 0 0 40px rgba(224, 64, 251, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Base Styles
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
}

p {
  color: var(--text-secondary);
}

.gradient-text {
  background: linear-gradient(135deg, #E040FB 0%, #7C4DFF 50%, #00BFD8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 1;
}

section {
  padding: var(--space-3xl) 0;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) 0;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: opacity var(--transition-fast);
}

.logo:hover {
  opacity: 0.8;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.logo span {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

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

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

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: flex;
    align-items: center;
  }

  .header-cta img {
    height: 40px;
    transition: opacity var(--transition-fast);
  }

  .header-cta:hover img {
    opacity: 0.85;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 0%, rgba(156, 39, 176, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 100%, rgba(124, 77, 255, 0.06) 0%, transparent 50%),
    var(--bg-primary);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
  }
}

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

@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
  }
}

.hero-title {
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  margin-bottom: var(--space-lg);
  max-width: 460px;
  line-height: 1.7;
}

@media (max-width: 1023px) {
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-cta {
    align-items: flex-start;
  }
}

.app-store-badge {
  height: 52px;
  transition: opacity var(--transition-fast);
}

.app-store-badge:hover {
  opacity: 0.85;
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-stats {
    justify-content: flex-start;
  }
}

.stat {
  text-align: center;
}

@media (min-width: 1024px) {
  .stat {
    text-align: left;
  }
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #E040FB, #7C4DFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Visual - Animated Wheel */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.wheel-container {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.decision-wheel-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
}

.wheel-spin-group {
  transform-origin: 200px 200px;
  animation: wheelSpin 20s ease-in-out infinite;
}

@keyframes wheelSpin {
  0% {
    transform: rotate(0deg);
  }

  10% {
    transform: rotate(360deg);
  }

  15% {
    transform: rotate(380deg);
  }

  20% {
    transform: rotate(375deg);
  }

  100% {
    transform: rotate(375deg);
  }
}

.glow-ring {
  animation: ringPulse 4s ease-in-out infinite;
}

@keyframes ringPulse {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.02);
  }
}

.wheel-pointer {
  animation: pointerBounce 0.3s ease-in-out;
  animation-delay: 2s;
}

/* Floating particles */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0.4;
}

.particle-1 {
  top: 10%;
  left: 20%;
  background: #E040FB;
  animation: particleFloat 6s ease-in-out infinite;
}

.particle-2 {
  top: 20%;
  right: 15%;
  background: #7C4DFF;
  animation: particleFloat 8s ease-in-out infinite 1s;
}

.particle-3 {
  bottom: 25%;
  left: 10%;
  background: #00BFD8;
  animation: particleFloat 7s ease-in-out infinite 0.5s;
}

.particle-4 {
  bottom: 15%;
  right: 25%;
  background: #FF9800;
  animation: particleFloat 9s ease-in-out infinite 1.5s;
}

.particle-5 {
  top: 50%;
  right: 5%;
  background: #4CAF50;
  animation: particleFloat 7s ease-in-out infinite 2s;
}

@keyframes particleFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.4;
  }

  50% {
    transform: translateY(-20px) scale(1.2);
    opacity: 0.6;
  }
}

/* ============================================
   Features Section
   ============================================ */
.features {
  position: relative;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header p {
  margin-top: var(--space-sm);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all var(--transition-base);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(25, 25, 30, 0.9);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--card-color, var(--accent-primary)), rgba(0, 0, 0, 0.3));
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  color: white;
}

.feature-card h3 {
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Feature card color variants */
.feature-card[data-color="wheel"] {
  --card-color: var(--color-wheel);
}

.feature-card[data-color="dice"] {
  --card-color: var(--color-dice);
}

.feature-card[data-color="coin"] {
  --card-color: var(--color-coin);
}

.feature-card[data-color="number"] {
  --card-color: var(--color-number);
}

.feature-card[data-color="yesno"] {
  --card-color: var(--color-yesno);
}

.feature-card[data-color="team"] {
  --card-color: var(--color-team);
}

.feature-card[data-color="straw"] {
  --card-color: var(--color-straw);
}

.feature-card[data-color="ranker"] {
  --card-color: var(--color-ranker);
}

.feature-card[data-color="rps"] {
  --card-color: var(--color-rps);
}

/* ============================================
   Screenshots Section
   ============================================ */
.screenshots {
  background: var(--bg-primary);
}

.screenshots-grid {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: nowrap;
  padding: var(--space-lg) 0;
  overflow-x: auto;
}

.screenshot-item {
  flex: 0 0 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (min-width: 1100px) {
  .screenshot-item {
    flex: 0 0 200px;
  }
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
  text-align: center;
  background: var(--bg-secondary);
}

.cta h2 {
  margin-bottom: var(--space-sm);
}

.cta p {
  max-width: 440px;
  margin: 0 auto var(--space-lg);
}

.cta .app-store-badge {
  height: 56px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-primary);
  padding: var(--space-2xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .footer .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer-logo span {
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-contact {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-contact a {
  color: var(--accent-primary);
}

/* ============================================
   Legal Pages (Privacy & Terms)
   ============================================ */
.legal-page {
  padding-top: 120px;
  min-height: 100vh;
  background: var(--bg-primary);
}

.legal-content {
  max-width: 700px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: var(--space-lg);
  font-size: 2.25rem;
}

.legal-content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-size: 1.35rem;
  color: var(--text-primary);
}

.legal-content p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.legal-content li {
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
}

/* ============================================
   Utilities
   ============================================ */
.text-center {
  text-align: center;
}