/* ============================================
   PadelAI Design System
   Dark theme, glassmorphism, zero dependencies
   ============================================ */

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

:root {
  --bg: #000;
  --bg-alt: #0a0a0a;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --text: #fff;
  --text-muted: rgba(255,255,255,0.6);
  --text-dim: rgba(255,255,255,0.4);
  --cyan: #00e5ff;
  --cyan-glow: rgba(0,229,255,0.3);
  --pink: #ff2d78;
  --gold: #ffd700;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

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

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

.section-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.badge-cyan { background: rgba(0,229,255,0.12); color: var(--cyan); border: 1px solid rgba(0,229,255,0.2); }
.badge-pink { background: rgba(255,45,120,0.12); color: var(--pink); border: 1px solid rgba(255,45,120,0.2); }
.badge-gold { background: rgba(255,215,0,0.12); color: var(--gold); border: 1px solid rgba(255,215,0,0.2); }

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }
.text-center { text-align: center; }

/* --- Glass Card --- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.glass:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 4px 24px var(--cyan-glow);
}
.btn-primary:hover { box-shadow: 0 8px 32px var(--cyan-glow); opacity: 1; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--border-hover); background: var(--surface); opacity: 1; }

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}
.nav-brand img { width: 36px; height: 36px; border-radius: 8px; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); opacity: 1; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 50% 30%, rgba(0,229,255,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 30% 70%, rgba(255,45,120,0.04) 0%, transparent 50%);
  animation: gradient-shift 12s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(2%, -2%); }
  66% { transform: translate(-1%, 1%); }
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }

/* Logo with glow */
.logo-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 40px;
}

.logo-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
}

.logo-container img {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 32px;
  z-index: 1;
}

/* Orbiting ball */
.orbit-ball {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255,215,0,0.6);
  animation: orbit 4s linear infinite;
  z-index: 2;
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(90px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(90px) rotate(-360deg); }
}

.hero h1 { margin-bottom: 20px; }
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--cyan), #7c4dff, var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; }

.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #fff;
  color: #000;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.app-store-badge:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,0.1); opacity: 1; }
.app-store-badge svg { width: 24px; height: 24px; }

/* ============================================
   How It Works
   ============================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }

.step {
  text-align: center;
  padding: 40px 24px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
  background: rgba(0,229,255,0.1);
  color: var(--cyan);
  border: 1px solid rgba(0,229,255,0.2);
}

.step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--cyan);
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* Connector arrows */
.step-connector {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

/* ============================================
   Features Grid
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  padding: 32px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon.cyan { background: rgba(0,229,255,0.1); color: var(--cyan); }
.feature-icon.pink { background: rgba(255,45,120,0.1); color: var(--pink); }
.feature-icon.gold { background: rgba(255,215,0,0.1); color: var(--gold); }
.feature-icon.purple { background: rgba(124,77,255,0.1); color: #7c4dff; }

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================
   Technique Radar
   ============================================ */
.radar-section { overflow: hidden; }

.radar-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.radar-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-svg { width: 100%; max-width: 400px; }
.radar-svg .radar-grid { stroke: var(--border); stroke-width: 1; fill: none; }
.radar-svg .radar-axis { stroke: var(--border); stroke-width: 0.5; }
.radar-svg .radar-fill { fill: rgba(0,229,255,0.15); stroke: var(--cyan); stroke-width: 2; }
.radar-svg .radar-point { fill: var(--cyan); }
.radar-svg .radar-label { fill: var(--text-muted); font-size: 12px; font-family: var(--font); }

.radar-info h2 { margin-bottom: 16px; }
.radar-info > p { color: var(--text-muted); margin-bottom: 32px; }

.technique-list { display: flex; flex-direction: column; gap: 16px; }

.technique-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.technique-score {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan);
  min-width: 40px;
}

.technique-name { font-weight: 500; }
.technique-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.technique-bar-fill {
  height: 100%;
  background: var(--cyan);
  border-radius: 2px;
  transition: width 1s ease-out;
}

/* ============================================
   Stats / Social Proof
   ============================================ */
.stats-section { background: var(--bg-alt); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.stat-card {
  text-align: center;
  padding: 32px 16px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 4px;
}

.stat-label { color: var(--text-muted); font-size: 0.9rem; }

.stars { color: var(--gold); font-size: 1.2rem; margin-bottom: 8px; }

/* ============================================
   Pricing
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 48px auto 0;
}

.price-card {
  padding: 36px;
  position: relative;
}
.price-card.popular {
  border-color: rgba(0,229,255,0.3);
  box-shadow: 0 0 40px rgba(0,229,255,0.08);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--cyan);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-card h3 { margin-bottom: 8px; }
.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.price-period { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 24px; }

.price-features {
  list-style: none;
  margin-bottom: 28px;
}
.price-features li {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,229,255,0.1);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.price-card .btn { width: 100%; justify-content: center; }

/* ============================================
   Community
   ============================================ */
.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.community-card { padding: 32px; }
.community-card h3 { margin-bottom: 8px; }
.community-card p { color: var(--text-muted); font-size: 0.95rem; }

.community-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--cyan);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; max-width: 300px; }

.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Legal Pages (Privacy, Terms)
   ============================================ */
.legal-page {
  padding-top: 100px;
  min-height: 100vh;
}
.legal-page .container { max-width: 800px; }
.legal-page h1 { margin-bottom: 8px; }
.legal-page .last-updated { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.4rem; margin: 36px 0 12px; color: var(--text); }
.legal-page h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal-page p { color: var(--text-muted); margin-bottom: 16px; }
.legal-page ul { color: var(--text-muted); margin: 0 0 16px 24px; }
.legal-page li { margin-bottom: 8px; }

/* ============================================
   404 Page
   ============================================ */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-404 h1 { font-size: clamp(4rem, 12vw, 8rem); color: var(--cyan); margin-bottom: 8px; }
.page-404 p { color: var(--text-muted); margin-bottom: 32px; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  section { padding: 64px 0; }

  .nav-links, .nav-cta { display: none; }
  .mobile-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .steps { grid-template-columns: 1fr; gap: 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .radar-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .radar-visual { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero { padding: 100px 24px 60px; }
  .logo-container { width: 110px; height: 110px; margin-bottom: 32px; }
  .logo-container img { width: 110px; height: 110px; border-radius: 24px; }
  .orbit-ball { animation-name: orbit-mobile; }
  @keyframes orbit-mobile {
    from { transform: rotate(0deg) translateX(70px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(70px) rotate(-360deg); }
  }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-number { font-size: 2rem; }
}
