/* ============================================
   CalSnap Website — Modern Dark Theme
   ============================================ */

:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #1a1a28;
  --text: #f0f0f5;
  --text-muted: #8888a0;
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.25);
  --accent: #10b981;
  --yellow: #f59e0b;
  --red: #ef4444;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
  font-size: 20px;
}

.logo-icon {
  font-size: 24px;
}

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

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

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

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: transform 0.2s, background 0.2s !important;
}

.nav-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* ============================================
   Hero Section
   ============================================ */

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

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

.hero-content {
  text-align: center;
  max-width: 700px;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 24px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--primary-glow);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 18px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Phone Mockup */
.hero-visual {
  display: none; /* Hidden on mobile, shown on desktop via media query */
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: var(--bg-card);
  border-radius: 36px;
  border: 2px solid var(--border);
  padding: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  padding: 16px 12px;
}

.screen-pill {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.screen-viewfinder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(16, 185, 129, 0.05));
}

.viewfinder-corners {
  width: 140px;
  height: 140px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
}

.scan-line {
  position: absolute;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { top: 30%; }
  50% { top: 60%; }
}

.screen-result {
  padding: 12px;
  background: var(--bg-elevated);
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 12px;
}

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

.result-verdict {
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  font-size: 11px;
  text-align: center;
  font-weight: 600;
}

.verdict-yellow {
  background: rgba(245, 158, 11, 0.15);
  color: var(--yellow);
}

/* ============================================
   Sections Common
   ============================================ */

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-header h2 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   Features
   ============================================ */

.features {
  padding: 120px 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================
   How It Works
   ============================================ */

.how-it-works {
  padding: 120px 0;
  background: var(--bg-elevated);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 280px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.step-arrow {
  color: var(--text-muted);
  font-size: 32px;
  margin-top: 16px;
  opacity: 0.3;
}

/* ============================================
   Diets
   ============================================ */

.diets {
  padding: 120px 0;
}

.diet-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.diet-tag {
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}

.diet-tag:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.tag-custom {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-light);
}

/* ============================================
   CTA / Pricing
   ============================================ */

.cta {
  padding: 120px 0;
  background: var(--bg-elevated);
}

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

.cta-content h2 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-content > p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 500px;
  margin: 0 auto 40px;
}

.cta-pricing {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 56px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 260px;
  text-align: left;
  position: relative;
}

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

.price {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 20px;
}

.price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.price-card ul {
  list-style: none;
}

.price-card li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.price-card li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

.price-card-premium {
  border-color: var(--primary);
  box-shadow: 0 0 40px var(--primary-glow);
}

.premium-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--primary);
  color: white;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
}

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

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

/* ============================================
   Legal Pages
   ============================================ */

.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal-page h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-date {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

.legal-page a {
  color: var(--primary-light);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }
  
  .hero {
    padding: 100px 24px 60px;
    flex-direction: column;
  }

  .hero h1 { font-size: 36px; }
  .hero-subtitle { font-size: 16px; }
  
  .steps {
    flex-direction: column;
    align-items: center;
  }
  
  .step-arrow {
    transform: rotate(90deg);
    margin: 0;
  }

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

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

@media (min-width: 1024px) {
  .hero {
    flex-direction: row;
    gap: 80px;
    text-align: left;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
  }

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

  .hero-subtitle {
    margin-left: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-visual {
    display: block;
  }
}
