/* ========================================
   TimingCoach Landing Page - Styles
   Cyberpunk Dark Theme
   ======================================== */

/* CSS Variables */
:root {
  /* Colors */
  --bg-deep: #0A0A0F;
  --bg-surface: #14141F;
  --bg-card: #1E1E2E;
  --bg-elevated: #252536;

  --primary: #00F5D4;
  --primary-dim: rgba(0, 245, 212, 0.1);
  --primary-glow: rgba(0, 245, 212, 0.3);

  --secondary: #7B61FF;
  --success: #4ADE80;
  --warning: #FFB347;
  --danger: #FF6B6B;

  --text-primary: #FFFFFF;
  --text-secondary: #A0A0B0;
  --text-muted: #6B6B7B;

  /* Week Colors — teal-based progression */
  --week-1: #00F5D4;
  --week-2: #00D4B8;
  --week-3: #00B8A0;
  --week-4: #2DFFB8;

  /* Spacing */
  --section-padding: 120px;
  --container-max: 1200px;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Effects */
  --transition: 0.3s ease;
  --border-radius: 16px;
  --border-radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

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

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--bg-deep);
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

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

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

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.lang-toggle {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.5px;
}

.lang-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: var(--bg-deep);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

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

.hero-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-dim);
  border: 1px solid rgba(0, 245, 212, 0.2);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.store-badge {
  display: inline-block;
  transition: transform var(--transition);
}

.store-badge img {
  height: 48px;
  width: auto;
}

.store-badge img[alt="Google Play"] {
  height: 72px;
  margin: -12px 0;
}

.store-badge:hover {
  transform: translateY(-3px);
}

.store-badge.large img {
  height: 56px;
}

.store-badge.large img[alt="Google Play"] {
  height: 84px;
  margin: -14px 0;
}

.hero-trust {
  display: flex;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.trust-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  position: relative;
}

.phone-frame {
  width: 280px;
  height: 580px;
  background: var(--bg-card);
  border-radius: 40px;
  padding: 12px;
  border: 2px solid var(--bg-elevated);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-deep);
  border-radius: 30px;
  overflow: hidden;
}

.app-preview {
  padding: 40px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-header {
  text-align: center;
  margin-bottom: 40px;
}

.preview-day {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.preview-week {
  font-size: 18px;
  font-weight: 600;
  color: var(--week-2);
}

.preview-timer {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}

.timer-ring {
  position: absolute;
  inset: 0;
  border: 4px solid var(--bg-elevated);
  border-radius: 50%;
}

.timer-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 4px solid transparent;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 3s linear infinite;
}

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

.timer-text {
  font-size: 42px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

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

.status-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.status-bar {
  width: 160px;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}

.status-fill {
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

.phone-glow {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

/* ========================================
   Section Styles
   ======================================== */
section {
  padding: var(--section-padding) 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
}

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

/* ========================================
   Problem & Solution
   ======================================== */
.problem {
  background: var(--bg-surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 40px 32px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform var(--transition), border-color var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
}

.stat-card.highlight {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--primary-dim) 0%, var(--bg-card) 100%);
}

.stat-number {
  font-size: 56px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

.stat-unit {
  font-size: 32px;
}

.stat-label {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.stat-source {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.solution-block {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.solution-icon {
  flex-shrink: 0;
}

.solution-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.solution-text p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ========================================
   4-Week Program
   ======================================== */
.program {
  background: var(--bg-deep);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.program-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  border: 2px solid transparent;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.program-card.week-1::before {
  background: var(--week-1);
}

.program-card.week-2::before {
  background: var(--week-2);
}

.program-card.week-3::before {
  background: var(--week-3);
}

.program-card.week-4::before {
  background: var(--week-4);
}

.program-card.week-1 {
  --card-color: var(--week-1);
}

.program-card.week-2 {
  --card-color: var(--week-2);
}

.program-card.week-3 {
  --card-color: var(--week-3);
}

.program-card.week-4 {
  --card-color: var(--week-4);
}

.program-card:hover {
  border-color: var(--card-color);
  transform: translateY(-4px);
}

.program-week {
  font-size: 12px;
  font-weight: 700;
  color: var(--card-color);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.program-icon {
  color: var(--card-color);
  margin-bottom: 16px;
}

.program-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.program-subtitle {
  font-size: 14px;
  color: var(--card-color);
  margin-bottom: 16px;
}

.program-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.program-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.program-features {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-text strong {
  font-size: 15px;
  font-weight: 600;
}

.feature-text span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ========================================
   Clinical Evidence
   ======================================== */
.science {
  background: var(--bg-surface);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.evidence-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.evidence-quote {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: italic;
}

.evidence-quote strong {
  color: var(--primary);
  font-style: normal;
}

.evidence-source {
  display: flex;
  align-items: center;
  gap: 12px;
}

.source-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.source-text {
  display: flex;
  flex-direction: column;
}

.source-journal {
  font-size: 14px;
  font-weight: 600;
}

.source-ref {
  font-size: 12px;
  color: var(--text-muted);
}

.science-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--primary-dim);
  border: 1px solid rgba(0, 245, 212, 0.2);
  border-radius: var(--border-radius-sm);
  padding: 24px;
}

.note-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.science-note p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   Privacy & Trust
   ======================================== */
.privacy {
  background: var(--bg-deep);
}

.privacy-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.privacy-text .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.privacy-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.privacy-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.privacy-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color var(--transition);
}

.privacy-card:hover {
  border-color: var(--primary);
}

.privacy-icon {
  margin-bottom: 16px;
}

.privacy-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.privacy-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   Pricing
   ======================================== */
.pricing {
  background: var(--bg-surface);
}

.pricing-card {
  max-width: 480px;
  margin: 0 auto 64px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 48px;
  text-align: center;
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, var(--primary-dim) 0%, transparent 100%);
  pointer-events: none;
}

.pricing-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--bg-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  position: relative;
}

.pricing-amount {
  margin-bottom: 32px;
  position: relative;
}

.pricing-amount .currency {
  font-size: 32px;
  font-weight: 600;
  vertical-align: top;
}

.pricing-amount .price {
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
}

.pricing-amount .period {
  font-size: 20px;
  color: var(--text-secondary);
  margin-left: 8px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 16px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
}

/* Compare Table */
.pricing-compare {
  max-width: 600px;
  margin: 0 auto;
}

.pricing-compare h4 {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.compare-table {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 15px;
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row.header {
  background: var(--bg-elevated);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.compare-row.highlight {
  background: var(--primary-dim);
}

.compare-price {
  color: var(--text-secondary);
}

.compare-price.best,
.compare-row .best {
  color: var(--primary);
  font-weight: 600;
}

/* ========================================
   Final CTA
   ======================================== */
.final-cta {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
  text-align: center;
  padding: 100px 0;
}

.cta-content h2 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--bg-deep);
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

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

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

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

  .hero-visual {
    order: 1;
  }

  .phone-frame {
    width: 220px;
    height: 460px;
  }

  .preview-timer {
    width: 140px;
    height: 140px;
  }

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

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

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

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

  .privacy-text .section-title {
    text-align: center;
  }

  .program-features {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 20, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 20px;
    font-weight: 600;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1000;
    padding: 4px;
  }

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

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .store-badge img {
    height: 44px;
  }

  .hero-trust {
    flex-direction: column;
    gap: 12px;
  }

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

  .solution-block {
    flex-direction: column;
    text-align: center;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .pricing-amount .price {
    font-size: 64px;
  }

  .compare-row {
    font-size: 13px;
    padding: 12px 16px;
  }

  .cta-content h2 {
    font-size: 32px;
  }

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

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-links a {
    padding: 10px 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .section-title {
    font-size: 28px;
  }

  .stat-number {
    font-size: 42px;
  }

  .stat-unit {
    font-size: 24px;
  }

  .phone-frame {
    width: 200px;
    height: 420px;
  }

  .preview-timer {
    width: 120px;
    height: 120px;
  }

  .timer-text {
    font-size: 32px;
  }
}