/* ===== Sports Nutrition Planner — Promo Website ===== */
/* Theme extracted from app: dark navy + orange accents */

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

:root {
  --color-primary: #FF6600;
  --color-primary-hover: #E55C00;
  --color-secondary: #4CAF50;
  --color-accent: #FF9A5C;
  --color-info: #1A73E8;
  --color-bg: #0D1B4B;
  --color-bg-lighter: #122258;
  --color-bg-card: #0F1E52;
  --color-surface: #162660;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #8EA4D4;
  --color-text-muted: #5A7099;
  --color-error: #F44336;
  --color-border: rgba(142, 164, 212, 0.15);
  --border-radius: 10px;
  --border-radius-lg: 16px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

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

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

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 27, 75, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 700; color: var(--color-text-primary);
  white-space: nowrap;
}

.navbar-brand .brand-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

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

.navbar-links a {
  color: var(--color-text-secondary);
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}

.navbar-links a:hover, .navbar-links a.active {
  color: var(--color-primary);
}

.hamburger {
  display: none; background: none; border: none;
  color: var(--color-text-primary); font-size: 1.5rem; cursor: pointer;
  padding: 4px;
}

/* Mobile nav */
@media (max-width: 640px) {
  .navbar-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(13, 27, 75, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column; gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
  }
  .navbar-links.open { display: flex; }
  .navbar-links a { padding: 14px 24px; display: block; width: 100%; }
  .hamburger { display: block; }
}

/* ===== HERO ===== */
.hero {
  padding: 120px 24px 80px;
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 60px;
  min-height: 85vh;
}

.hero-content { flex: 1; min-width: 0; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 102, 0, 0.12);
  border: 1px solid rgba(255, 102, 0, 0.25);
  border-radius: 24px; padding: 6px 16px;
  font-size: 0.8rem; font-weight: 600; color: var(--color-primary);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.8rem; font-weight: 800; line-height: 1.15;
  margin-bottom: 20px;
}

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

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

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-device {
  flex-shrink: 0;
  width: 280px;
  position: relative;
}

.device-frame {
  background: linear-gradient(145deg, #1a2e6e, #0a1538);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(142, 164, 212, 0.1);
  position: relative;
  overflow: hidden;
}

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

.device-frame::before {
  content: '';
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 4px;
  background: rgba(142, 164, 212, 0.2);
  border-radius: 4px; z-index: 2;
}

@media (max-width: 850px) {
  .hero { flex-direction: column; text-align: center; gap: 40px; padding-top: 100px; min-height: auto; }
  .hero h1 { font-size: 2.1rem; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-device { width: 220px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-description { font-size: 1rem; }
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #E55C00);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 102, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 102, 0, 0.45);
  color: #fff;
}

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

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 24px;
  max-width: 1100px; margin: 0 auto;
}

.section-label {
  font-size: 0.78rem; font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2rem; font-weight: 800;
  margin-bottom: 16px; line-height: 1.2;
}

.section-subtitle {
  color: var(--color-text-secondary);
  font-size: 1.05rem; max-width: 600px;
  margin-bottom: 48px;
}

.section-center { text-align: center; }
.section-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ===== FEATURES — ALTERNATING ROWS ===== */
.feature-row {
  display: flex; align-items: center; gap: 48px;
  margin-bottom: 64px;
}

.feature-row.reverse { flex-direction: row-reverse; }

.feature-icon-box {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}

.feature-text { flex: 1; text-align: left; }

.feature-text h3 {
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 10px;
}

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

@media (max-width: 640px) {
  .feature-row, .feature-row.reverse {
    flex-direction: column; text-align: center; gap: 16px;
  }
  .feature-text { text-align: center; }
}

/* ===== SCREENSHOT CAROUSEL ===== */
.screenshots-section {
  padding: 60px 24px;
  max-width: 1100px; margin: 0 auto;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  max-width: 800px; margin: 0 auto;
  height: 380px;
  display: flex; align-items: center; justify-content: center;
}

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

.carousel-slide {
  flex: 0 0 200px;
  margin: 0 10px;
  opacity: 0.4;
  transform: scale(0.85);
  transition: all 0.4s ease;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide .device-frame {
  padding: 8px;
  border-radius: 24px;
}

.carousel-slide img {
  border-radius: 18px;
  width: 100%;
  display: block;
  cursor: pointer;
  filter: blur(0);
  transition: filter 0.3s ease;
}

.carousel-slide img.loading {
  filter: blur(5px);
}

.carousel-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 102, 0, 0.15);
  border: 1px solid rgba(255, 102, 0, 0.3);
  color: var(--color-primary);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 5;
}

.carousel-nav:hover {
  background: rgba(255, 102, 0, 0.3);
}

.carousel-nav.prev { left: 0; }
.carousel-nav.next { right: 0; }

.carousel-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 20px;
}

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

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

@media (max-width: 640px) {
  .carousel-wrapper { height: 300px; }
  .carousel-slide { flex: 0 0 160px; }
}

/* ===== HIGHLIGHTS GRID ===== */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.highlight-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 28px 24px;
  text-align: left;
  transition: transform 0.2s, border-color 0.2s;
}

.highlight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 102, 0, 0.3);
}

.highlight-card .card-icon {
  font-size: 1.6rem; margin-bottom: 14px;
}

.highlight-card h4 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 8px;
}

.highlight-card p {
  color: var(--color-text-secondary);
  font-size: 0.88rem; line-height: 1.5;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-surface), var(--color-bg-lighter));
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 48px 40px;
  text-align: center;
  margin: 0 24px 80px;
  max-width: 1052px;
  margin-left: auto; margin-right: auto;
}

.cta-banner h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.cta-banner p { color: var(--color-text-secondary); margin-bottom: 28px; font-size: 1.05rem; }

/* ===== STICKY CTA ===== */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: linear-gradient(to top, var(--color-bg) 60%, transparent);
  padding: 20px 24px 24px;
  display: flex; justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.sticky-cta.visible { opacity: 1; }
.sticky-cta .btn { pointer-events: auto; }

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

.footer-links {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  margin-bottom: 14px;
}

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

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

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

/* ===== CONTENT PAGES (Privacy, Terms, Contact) ===== */
.page-header {
  padding: 100px 24px 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-lighter), var(--color-bg));
}

.page-header h1 {
  font-size: 2.2rem; font-weight: 800;
  margin-bottom: 10px;
}

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

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

.content-container h2 {
  font-size: 1.4rem; font-weight: 700;
  margin-top: 36px; margin-bottom: 14px;
  color: var(--color-text-primary);
}

.content-container h3 {
  font-size: 1.15rem; font-weight: 600;
  margin-top: 24px; margin-bottom: 10px;
  color: var(--color-text-primary);
}

.content-container p,
.content-container li {
  color: var(--color-text-secondary);
  font-size: 0.95rem; line-height: 1.7;
  text-align: left;
}

.content-container ul, .content-container ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-container li { margin-bottom: 8px; }

.content-container a { color: var(--color-primary); }
.content-container a:hover { text-decoration: underline; }

/* ===== CONTACT FORM ===== */
.contact-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 40px 36px;
  max-width: 560px;
  margin: 0 auto;
}

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

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

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

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

.form-group input[type="file"] {
  padding: 10px 12px;
  font-size: 0.85rem;
}

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

.form-success {
  display: none;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: var(--border-radius);
  padding: 16px;
  text-align: center;
  color: var(--color-secondary);
  font-weight: 600;
}

.form-success.show { display: block; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  display: none; align-items: center; justify-content: center;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90%; max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none;
  color: #fff; font-size: 2rem; cursor: pointer;
  opacity: 0.7; transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

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

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

.accept-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), #E55C00);
  color: #fff;
  border: none; border-radius: var(--border-radius);
  padding: 16px 48px;
  font-family: var(--font-family);
  font-size: 1rem; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 102, 0, 0.4);
  transition: all 0.25s;
  text-align: center;
}

.accept-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 102, 0, 0.55);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1; transform: translateY(0);
}

/* ===== UTILITIES ===== */
@media (max-width: 480px) {
  .section { padding: 50px 16px; }
  .section-title { font-size: 1.6rem; }
  .content-container { padding: 32px 16px 60px; }
  .contact-card { padding: 28px 20px; }
  .cta-banner { padding: 32px 20px; margin: 0 16px 60px; }
}
