/* Juice Cleanse Planner — Promo Website Styles */
/* Theme extracted from Flutter app: dark + yellow/green/orange */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Roboto:wght@400;500;700&display=swap');

:root {
  --color-primary: #FFD600;
  --color-primary-dim: #C8AA00;
  --color-secondary: #2E7D32;
  --color-secondary-light: #4CAF50;
  --color-accent: #FF6F00;
  --color-bg: #1A1A1A;
  --color-bg-light: #222222;
  --color-surface: #2C2C2C;
  --color-surface-elevated: #242424;
  --color-border: #3A3A3A;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #AAAAAA;
  --color-text-muted: #666666;
  --color-error: #F44336;
  --color-purple: #9C27B0;
  --color-beet: #C62828;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --border-radius-pill: 24px;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

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

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

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

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

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s ease;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand .brand-icon {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background: rgba(255, 214, 0, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(255, 214, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(46, 125, 50, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 214, 0, 0.1);
  border: 1px solid rgba(255, 214, 0, 0.2);
  padding: 6px 16px;
  border-radius: var(--border-radius-pill);
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 24px;
  font-family: var(--font-heading);
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-title .highlight {
  color: var(--color-primary);
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-device {
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-mockup {
  position: relative;
  max-width: 280px;
  width: 100%;
}

.device-frame {
  background: #111;
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.device-frame img {
  width: 100%;
  border-radius: 22px;
  display: block;
}

.device-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(255, 214, 0, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

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

  .device-mockup {
    max-width: 220px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 16px 60px;
    min-height: auto;
  }

  .device-mockup {
    max-width: 180px;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: #FFE033;
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 214, 0, 0.25);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface-elevated);
  border-color: var(--color-primary-dim);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: rgba(255, 214, 0, 0.1);
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 24px;
  position: relative;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-alt {
  background: var(--color-bg-light);
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 28px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--color-primary-dim);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 214, 0, 0.1);
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  text-align: left;
  line-height: 1.6;
}

/* ===== SCREENSHOTS CAROUSEL ===== */
.screenshots-section {
  padding: 60px 24px;
  overflow: hidden;
}

.screenshot-carousel {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.carousel-device {
  position: relative;
  max-width: 220px;
  width: 100%;
}

.carousel-device .device-frame {
  background: #111;
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.carousel-device .device-frame img {
  width: 100%;
  border-radius: 18px;
  display: block;
  transition: filter 0.3s ease;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.1rem;
}

.carousel-btn:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 4px;
}

/* ===== STATS ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

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

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--color-primary);
}

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

/* ===== CTA ===== */
.cta-section {
  padding: 80px 24px;
  text-align: center;
}

.cta-box {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 214, 0, 0.08), rgba(46, 125, 50, 0.08));
  border: 1px solid rgba(255, 214, 0, 0.15);
  border-radius: var(--border-radius-lg);
  padding: 48px 32px;
}

.cta-box h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--color-text-secondary);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

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

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

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

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

/* ===== CONTENT PAGES (Privacy, Terms, Contact) ===== */
.page-header {
  padding: 100px 24px 40px;
  text-align: center;
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

.content-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.content-wrap h2 {
  font-size: 1.4rem;
  margin: 36px 0 14px;
  color: var(--color-primary);
}

.content-wrap h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
}

.content-wrap p {
  text-align: left;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
  line-height: 1.7;
  font-size: 1rem;
}

@media (max-width: 480px) {
  .content-wrap p,
  .content-wrap ul,
  .content-wrap ol {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .content-wrap h2 {
    margin-top: 32px;
    margin-bottom: 12px;
  }

  .content-wrap h3 {
    margin-top: 20px;
    margin-bottom: 8px;
  }
}

.content-wrap ul, .content-wrap ol {
  text-align: left;
  color: var(--color-text-secondary);
  margin: 0 0 14px 20px;
  line-height: 1.8;
}

.content-wrap ul li, .content-wrap ol li {
  margin-bottom: 6px;
}

.content-wrap a {
  word-break: break-word;
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 48px;
  min-height: calc(100vh - 300px);
  align-content: start;
}

.contact-info h2 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
  text-align: left;
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  text-align: left;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input[type="file"] {
  padding: 10px;
  cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-heading);
  margin-right: 12px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
  background: rgba(46, 125, 50, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: var(--border-radius);
  color: var(--color-secondary-light);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===== PRIVACY ACCEPTANCE BUTTON ===== */
.privacy-accept-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px 24px;
  background: linear-gradient(to top, var(--color-bg) 60%, transparent);
}

.privacy-accept-btn.hidden {
  display: none;
}

.accept-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  padding: 16px 32px;
  background: var(--color-primary);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-align: center;
  line-height: 1;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(255, 214, 0, 0.3);
}

.accept-btn:hover {
  background: #FFE033;
  transform: translateY(-1px);
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 20px;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--border-radius);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== UTILITIES ===== */
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }

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

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