/* ── VARIABLES ── */
:root {
  --green: #00C896;
  --orange: #FF6B35;
  --purple: #9B8FFF;
  --cyan: #06B6D4;
  --pink: #EC4899;
  --bg: #0D0F14;
  --surface: #151923;
  --surface2: #1a2030;
  --border: rgba(255,255,255,0.07);
  --text: #F0F4FF;
  --muted: rgba(240,244,255,0.5);
  --font: 'Inter', sans-serif;
  --font2: 'Space Grotesk', sans-serif;
  --radius: 20px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px;
  font-weight: 600; font-size: 15px;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--green); color: #000;
  box-shadow: 0 0 30px rgba(0,200,150,0.3);
}
.btn-primary:hover { background: #00e0a8; box-shadow: 0 0 50px rgba(0,200,150,0.5); transform: translateY(-2px); }
.btn-ghost { color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--border); color: var(--text); width: 100%; justify-content: center; }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-nav { background: var(--green); color: #000; padding: 9px 18px; font-size: 14px; border-radius: 10px; }
.btn-nav:hover { background: #00e0a8; }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 14px; }

/* ── SECTION LABELS ── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green); margin-bottom: 16px;
}
.section-label::before { content: ''; width: 20px; height: 2px; background: var(--green); border-radius: 2px; }
.section-title { font-family: var(--font2); font-size: clamp(32px, 5vw, 52px); font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 18px; margin-bottom: 60px; }
.gradient-text { background: linear-gradient(135deg, var(--green), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(13,15,20,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 40px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font2); font-size: 18px; font-weight: 700;
  color: var(--text);
}
.nav-logo span { color: var(--green); }
.nav-logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(0,200,150,0.15); border: 1px solid rgba(0,200,150,0.3);
  display: flex; align-items: center; justify-content: center;
}
.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--muted); font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--text); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; margin-left: auto; }
.nav-hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  padding: 16px 24px; background: rgba(13,15,20,0.98);
  border-top: 1px solid var(--border);
}
.nav-mobile a { padding: 12px 0; font-size: 15px; color: var(--muted); border-bottom: 1px solid var(--border); }
.nav-mobile a:last-child { border-bottom: none; margin-top: 8px; }
.nav-mobile.open { display: flex; }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.15;
}
.hero-orb-1 { width: 600px; height: 600px; background: var(--green); top: -200px; left: -200px; animation: float 8s ease-in-out infinite; }
.hero-orb-2 { width: 400px; height: 400px; background: var(--purple); top: 200px; right: -100px; animation: float 10s ease-in-out infinite reverse; }
.hero-orb-3 { width: 300px; height: 300px; background: var(--cyan); bottom: -100px; left: 40%; animation: float 12s ease-in-out infinite; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}
@keyframes float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-30px) scale(1.05); } }

.hero .container { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,200,150,0.1); border: 1px solid rgba(0,200,150,0.25);
  padding: 6px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 500; color: var(--green);
  margin-bottom: 24px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title {
  font-family: var(--font2); font-size: clamp(42px, 7vw, 80px);
  font-weight: 800; line-height: 1.05; margin-bottom: 24px; letter-spacing: -2px;
}
.hero-sub { font-size: 18px; color: var(--muted); margin-bottom: 40px; line-height: 1.7; }
.br-desktop { display: none; }
@media(min-width:768px) { .br-desktop { display: block; } }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats {
  display: flex; align-items: center; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 28px; width: fit-content;
}
.stat { text-align: center; padding: 0 24px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat-num { display: block; font-family: var(--font2); font-size: 28px; font-weight: 800; color: var(--green); }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── PHONE MOCKUP ── */
.hero-phone {
  position: absolute; right: max(24px, calc(50% - 580px));
  top: 50%; transform: translateY(-50%);
  z-index: 1;
}
.phone-frame {
  width: 260px; height: 520px;
  background: var(--surface); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 40px; position: relative; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}
.phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px; background: var(--bg);
  border-radius: 0 0 20px 20px; z-index: 10;
}
.phone-screen { position: absolute; inset: 0; padding: 40px 16px 16px; overflow: hidden; }
.phone-ui { display: flex; flex-direction: column; gap: 12px; }
.phone-header { display: flex; flex-direction: column; gap: 2px; }
.phone-greeting { font-size: 11px; color: var(--muted); }
.phone-date { font-size: 13px; font-weight: 700; }
.phone-rings { display: flex; justify-content: center; }
.ring-wrap { position: relative; width: 100px; height: 100px; }
.ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-anim { transition: stroke-dasharray 1.5s ease; }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-val { font-size: 16px; font-weight: 800; color: var(--orange); }
.ring-unit { font-size: 9px; color: var(--muted); }
.phone-macros { display: flex; gap: 8px; }
.macro-pill { flex: 1; padding: 8px; border-radius: 10px; display: flex; flex-direction: column; gap: 2px; }
.macro-pill span { font-size: 9px; color: var(--muted); }
.macro-pill strong { font-size: 13px; font-weight: 700; }
.macro-protein { background: rgba(0,200,150,0.1); border: 1px solid rgba(0,200,150,0.2); }
.macro-protein strong { color: var(--green); }
.macro-carbs { background: rgba(155,143,255,0.1); border: 1px solid rgba(155,143,255,0.2); }
.macro-carbs strong { color: var(--purple); }
.phone-scan-btn {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  border-radius: 12px; padding: 10px; display: flex; align-items: center;
  justify-content: center; gap: 8px; cursor: pointer;
}
.scan-icon { font-size: 16px; }
.phone-scan-btn span { font-size: 12px; font-weight: 700; color: #000; }
.phone-log { display: flex; flex-direction: column; gap: 6px; }
.log-item {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.04); border-radius: 8px; padding: 7px 10px;
}
.log-name { font-size: 10px; color: var(--text); }
.log-cal { font-size: 10px; color: var(--orange); font-weight: 600; }
.phone-glow {
  position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%);
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--green); filter: blur(60px); opacity: 0.2;
  pointer-events: none;
}

/* ── FEATURES ── */
.features { padding: 120px 0; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card-large { grid-column: span 2; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top left, rgba(0,200,150,0.05), transparent 60%);
  opacity: 0; transition: var(--transition);
}
.feature-card:hover { border-color: rgba(0,200,150,0.2); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon-wrap {
  width: 48px; height: 48px; border-radius: 14px;
  background: color-mix(in srgb, var(--c) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.feature-card h3 { font-family: var(--font2); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.feature-tag {
  display: inline-block; margin-top: 16px;
  background: rgba(0,200,150,0.1); border: 1px solid rgba(0,200,150,0.2);
  color: var(--green); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 6px; letter-spacing: 0.5px;
}

/* ── HOW IT WORKS ── */
.how { padding: 120px 0; background: radial-gradient(ellipse at center, rgba(0,200,150,0.04) 0%, transparent 70%); }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; margin-top: 60px; position: relative; }
.step { position: relative; }
.step-num {
  font-family: var(--font2); font-size: 64px; font-weight: 900;
  color: rgba(0,200,150,0.08); line-height: 1; margin-bottom: -20px;
}
.step-content {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; position: relative;
}
.step-icon { font-size: 32px; margin-bottom: 16px; }
.step-content h3 { font-family: var(--font2); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step-content p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.step-line {
  position: absolute; top: 80px; right: -20px;
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  z-index: 1;
}

/* ── AI ENGINE ── */
.ai-engine { padding: 80px 0; }
.ai-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 28px; padding: 60px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative; overflow: hidden;
}
.ai-card::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: var(--green); filter: blur(100px); opacity: 0.05;
}
.ai-left h2 { font-family: var(--font2); font-size: clamp(28px,4vw,42px); font-weight: 700; margin: 12px 0 20px; line-height: 1.2; }
.ai-left p { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 28px; }
.ai-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.ai-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 600;
}
.ai-badge-paid { background: rgba(255,107,53,0.1); border: 1px solid rgba(255,107,53,0.25); }
.ai-badge-free { background: rgba(0,200,150,0.1); border: 1px solid rgba(0,200,150,0.25); }
.ai-badge-label {
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  padding: 2px 6px; border-radius: 4px;
}
.ai-badge-paid .ai-badge-label { background: var(--orange); color: #000; }
.ai-badge-free .ai-badge-label { background: var(--green); color: #000; }
.ai-badge-count { color: var(--muted); font-size: 12px; }
.ai-flow {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 4px;
}
.ai-flow-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 10px; font-size: 14px;
  transition: var(--transition);
}
.ai-flow-item.active { background: rgba(0,200,150,0.08); border: 1px solid rgba(0,200,150,0.2); }
.ai-flow-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex-shrink: 0;
}
.ai-flow-item.active .ai-flow-dot { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
.ai-flow-status { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--green); }
.ai-flow-status.standby { color: var(--muted); }
.ai-flow-arrow { text-align: center; font-size: 12px; color: var(--muted); padding: 8px 0 0; }

/* ── PRICING ── */
.pricing { padding: 120px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 24px; }
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: var(--transition); position: relative;
}
.pricing-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.15); }
.pricing-card-popular {
  border-color: rgba(255,107,53,0.4);
  background: linear-gradient(135deg, rgba(255,107,53,0.06), var(--surface));
  transform: scale(1.03);
}
.pricing-card-popular:hover { transform: scale(1.03) translateY(-4px); }
.pricing-popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #000; font-size: 11px; font-weight: 800;
  padding: 4px 12px; border-radius: 100px; white-space: nowrap;
}
.pricing-name { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.pricing-tokens { font-family: var(--font2); font-size: 32px; font-weight: 800; }
.pricing-tokens span { font-size: 16px; color: var(--muted); font-weight: 500; }
.pricing-price { font-size: 28px; font-weight: 800; color: var(--green); }
.pricing-features { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pricing-features li { font-size: 13px; color: var(--muted); }
.pricing-note { text-align: center; font-size: 13px; color: var(--muted); }

/* ── FAQ ── */
.faq { padding: 120px 0; }
.faq-list { max-width: 760px; margin: 60px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; font-size: 16px; font-weight: 600; color: var(--text);
  text-align: left; transition: var(--transition);
}
.faq-q:hover { color: var(--green); }
.faq-icon { font-size: 20px; color: var(--green); transition: var(--transition); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; padding: 0 24px;
  color: var(--muted); font-size: 15px; line-height: 1.7;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 24px 20px; }

/* ── CTA BANNER ── */
.cta-banner {
  padding: 120px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.12; pointer-events: none;
}
.cta-orb-1 { width: 500px; height: 500px; background: var(--green); top: -100px; left: -100px; }
.cta-orb-2 { width: 400px; height: 400px; background: var(--purple); bottom: -100px; right: -100px; }
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 { font-family: var(--font2); font-size: clamp(32px,5vw,56px); font-weight: 800; margin-bottom: 16px; line-height: 1.15; }
.cta-inner p { color: var(--muted); font-size: 18px; margin-bottom: 40px; }
.cta-sub { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ── FOOTER ── */
.footer { padding: 60px 0 32px; border-top: 1px solid var(--border); }
.footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; margin-bottom: 48px; }
.footer-brand p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 16px; }
.footer-powered { margin-top: 12px !important; }
.footer-powered a { color: var(--green); }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--muted); transition: var(--transition); }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .hero-phone { display: none; }
  .hero .container { max-width: 100%; }
}
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card-large { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .step-line { display: none; }
  .ai-card { grid-template-columns: 1fr; padding: 40px; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .pricing-card-popular { transform: none; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .nav-hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card-large { grid-column: span 1; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
