/* Variables */
:root {
  --brand-green: #34C759;
  --score-good: #22C55E;
  --score-fair: #EAB308;
  --score-bad: #EF4444;
  --score-warning: #F97316;
  --text-primary: #1D1D1F;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --bg-primary: #F5F5F7;
  --bg-card: #FFFFFF;
  --border: #E5E7EB;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Banner */
.banner {
  background: linear-gradient(90deg, var(--brand-green), #2DD4BF, var(--brand-green));
  background-size: 200% 100%;
  animation: gradientMove 3s ease infinite;
  padding: 12px 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.banner-track {
  display: flex;
  gap: 60px;
  animation: scroll 20s linear infinite;
  white-space: nowrap;
}

.banner-track span {
  color: white;
  font-weight: 600;
  font-size: 14px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Decorative Elements */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--brand-green);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: var(--score-fair);
  bottom: 20%;
  left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

.blob-3 {
  width: 250px;
  height: 250px;
  background: #A78BFA;
  bottom: -50px;
  right: 10%;
  animation: float 12s ease-in-out infinite;
}

.glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.glow-1 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(52,199,89,0.3) 0%, transparent 70%);
  top: 30%;
  left: 5%;
}

.glow-2 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(234,179,8,0.2) 0%, transparent 70%);
  top: 60%;
  right: 10%;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

/* Container */
.container {
  max-width: 540px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  min-height: 100vh;
  position: relative;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  padding-top: 20px;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(52,199,89,0.3);
}

.logo-text {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 40px;
}

h1 {
  font-size: clamp(32px, 8vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
}

.fit {
  position: relative;
  display: inline-block;
}

.fit::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--score-good);
  border-radius: 3px;
  z-index: -1;
}

.fake-fit {
  position: relative;
  display: inline-block;
}

.fake-fit::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--score-bad);
  border-radius: 3px;
  z-index: -1;
}

.tagline {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-green);
  margin-bottom: 12px;
}

.brand {
  background: linear-gradient(135deg, var(--brand-green), #2DD4BF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Form */
.waitlist-form {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 32px 24px;
  margin-bottom: 48px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}

.form-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

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

.form-group input {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--bg-primary);
  transition: all 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(52,199,89,0.15);
  background: white;
}

.form-group input::placeholder {
  color: var(--text-tertiary);
}

.submit-btn {
  width: 100%;
  padding: 18px;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  color: white;
  background: linear-gradient(135deg, var(--text-primary), #374151);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.submit-btn:active {
  transform: scale(0.98);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-arrow {
  font-size: 20px;
  transition: transform 0.2s;
}

.submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.error-message {
  color: var(--score-bad);
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
  min-height: 20px;
}

/* Features Section */
.features-section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

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

.feature-label {
  font-size: 16px;
  font-weight: 700;
}

/* Score Demo */
.score-demo {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.score-circle {
  width: 120px;
  height: 120px;
  position: relative;
}

.score-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}

.score-progress {
  fill: none;
  stroke: var(--score-good);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 62;
  animation: scoreLoad 1.5s ease-out forwards;
}

@keyframes scoreLoad {
  from { stroke-dashoffset: 283; }
  to { stroke-dashoffset: 62; }
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  text-align: center;
}

.score-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--score-good);
}

.score-max {
  font-size: 14px;
  color: var(--text-tertiary);
}

.score-label {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-secondary);
}

.score-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.good { background: var(--score-good); }
.dot.fair { background: var(--score-fair); }
.dot.bad { background: var(--score-bad); }

/* Ingredients Demo */
.ingredients-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ingredient-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-primary);
  border-radius: 12px;
  border: 1.5px solid transparent;
  transition: all 0.2s;
}

.ingredient-row.safe {
  border-color: rgba(34,197,94,0.4);
}

.ingredient-row.neutral {
  border-color: var(--border);
}

.ingredient-row.harmful {
  border-color: rgba(239,68,68,0.4);
}

.ingredient-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ingredient-row.safe .ingredient-dot { background: var(--score-good); }
.ingredient-row.neutral .ingredient-dot { background: var(--text-tertiary); }
.ingredient-row.harmful .ingredient-dot { background: var(--score-bad); }

.ingredient-info {
  display: flex;
  flex-direction: column;
}

.ingredient-name {
  font-weight: 600;
  font-size: 14px;
}

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

/* Health Bar Demo */
.health-bar-demo {
  padding: 8px 0;
}

.health-bar {
  height: 12px;
  border-radius: 6px;
  position: relative;
  overflow: visible;
}

.health-gradient {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg,
    var(--score-bad) 0%,
    var(--score-warning) 33%,
    var(--score-fair) 50%,
    var(--score-good) 100%
  );
}

.health-indicator {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

.health-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Scan Demo */
.feature-scan {
  background: linear-gradient(135deg, #1D1D1F, #374151);
  color: white;
}

.feature-scan .feature-label {
  color: white;
}

.scan-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.scan-frame {
  width: 160px;
  height: 160px;
  position: relative;
}

.scan-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 3px solid white;
}

.scan-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.scan-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
.scan-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
.scan-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 8px 0; }

.scan-line {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-green), transparent);
  animation: scanMove 2s ease-in-out infinite;
}

@keyframes scanMove {
  0%, 100% { top: 10%; }
  50% { top: 90%; }
}

.scan-hint {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* Categories Demo */
.categories-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-pill {
  padding: 10px 16px;
  background: var(--bg-primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.category-pill:hover {
  background: var(--brand-green);
  color: white;
  border-color: var(--brand-green);
}

/* Conditions Demo */
.conditions-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.condition-tag {
  padding: 8px 14px;
  background: rgba(52,199,89,0.1);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-green);
  border: 1px solid rgba(52,199,89,0.3);
}

/* Metrics Section */
.metrics-section {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}

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

.metric-icon {
  font-size: 20px;
}

.metric-info {
  display: flex;
  justify-content: space-between;
  flex: 1;
  align-items: center;
}

.metric-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.metric-value {
  font-weight: 700;
  font-size: 14px;
}

.metric-value.good { color: var(--score-good); }
.metric-value.bad { color: var(--score-bad); }
.metric-value.neutral { color: var(--text-secondary); }

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, rgba(52,199,89,0.1), rgba(45,212,191,0.1));
  border-radius: 24px;
  margin-bottom: 48px;
}

.cta-text {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--brand-green);
  color: white;
  font-weight: 700;
  font-size: 16px;
  border-radius: 28px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(52,199,89,0.4);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(52,199,89,0.5);
}

/* Success State */
.success-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
  min-height: 60vh;
}

.success-content.hidden {
  display: none;
}

.success-animation {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 32px;
}

.success-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand-green);
  animation: successPop 0.5s ease-out;
}

@keyframes successPop {
  0% { transform: scale(0); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.success-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  animation: checkPop 0.3s ease-out 0.3s both;
}

@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-content h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

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

.success-koala {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Footer */
footer {
  text-align: center;
  padding: 24px;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 600px) {
  /* Disable heavy effects on mobile */
  .blob {
    display: none;
  }

  .glow {
    display: none;
  }

  .banner-track {
    animation: scroll 15s linear infinite;
  }

  h1 {
    font-size: 28px;
  }

  .tagline {
    font-size: 22px;
  }

  .score-demo {
    flex-direction: column;
  }

  .score-legend {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .container {
    padding: 50px 16px 32px;
  }

  .feature-card {
    padding: 20px 16px;
  }
}
