/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0d1117;
  color: #e6edf3;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* ── Header ── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,17,23,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 16px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__name { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.3px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav__link { font-size: 14px; color: #8d96a0; transition: color .2s; }
.nav__link:hover { color: #e6edf3; }
.nav__link--cta {
  background: linear-gradient(90deg, #00C853, #00897B);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

/* ── Badge ── */
.badge {
  display: inline-block;
  background: rgba(0,200,83,.15);
  color: #00C853;
  border: 1px solid rgba(0,200,83,.3);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(0,137,123,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #8d96a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: 17px;
  color: #8d96a0;
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}

/* ── Store Buttons ── */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  transition: all .2s;
  cursor: pointer;
}
.store-btn:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-1px);
}
.store-btn span { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn small { font-size: 11px; color: #8d96a0; }
.store-btn strong { font-size: 15px; font-weight: 700; color: #fff; }
.store-btn--apple svg, .store-btn--google svg, .store-btn--ru svg { color: #fff; flex-shrink: 0; }
.store-btn--ru { border-color: rgba(26,119,242,.4); }

.store-buttons--large .store-btn { padding: 14px 24px; }
.store-buttons--large .store-btn strong { font-size: 16px; }

/* ── Phone Frame ── */
.hero__phone { display: flex; justify-content: center; align-items: center; }
.phone-frame {
  width: 280px;
  background: #1a1f36;
  border-radius: 36px;
  padding: 20px 16px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
  position: relative;
}
.phone-frame::before {
  content: '';
  display: block;
  width: 80px; height: 8px;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  margin: 0 auto 16px;
}
.phone-screen { background: #0d1117; border-radius: 20px; padding: 16px; }
.phone-demo { display: flex; flex-direction: column; gap: 10px; }
.demo-badge {
  font-size: 13px; font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
}
.demo-badge--red { background: rgba(248,81,73,.15); color: #f85149; border: 1px solid rgba(248,81,73,.3); }
.demo-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; padding: 8px 10px;
  background: rgba(255,255,255,.04);
  border-radius: 8px;
}
.demo-item span:nth-child(2) { flex: 1; }
.demo-dot {
  width: 8px; height: 8px;
  border-radius: 50%; flex-shrink: 0;
}
.demo-dot--red { background: #f85149; }
.demo-dot--yellow { background: #e3b341; }
.demo-dot--orange { background: #f78166; }
.demo-dot--green { background: #00C853; }
.demo-tag {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 100px;
  white-space: nowrap; flex-shrink: 0;
}
.demo-tag--high { background: rgba(248,81,73,.2); color: #f85149; }
.demo-tag--mod { background: rgba(227,179,65,.2); color: #e3b341; }
.demo-tag--safe { background: rgba(0,200,83,.2); color: #00C853; }
.demo-tag--allergen { background: rgba(247,129,102,.2); color: #f78166; }
.demo-item--allergen { border: 1px solid rgba(247,129,102,.2); }

/* ── Stats ── */
.stats {
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 48px 0;
  background: rgba(255,255,255,.02);
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 40px; font-weight: 800;
  background: linear-gradient(90deg, #00C853, #00897B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.stat span { font-size: 14px; color: #8d96a0; line-height: 1.4; }

/* ── Section headers ── */
.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.section-sub {
  text-align: center;
  color: #8d96a0;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* ── Features ── */
.features { padding: 96px 0; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #161b22;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover {
  border-color: rgba(0,200,83,.3);
  transform: translateY(-2px);
}
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: #8d96a0; line-height: 1.7; }

/* ── How it works ── */
.how {
  padding: 96px 0;
  background: rgba(255,255,255,.02);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.how__steps {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 56px;
}
.step {
  flex: 1;
  background: #161b22;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}
.step__num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00C853, #00897B);
  color: #fff;
  font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 14px; color: #8d96a0; line-height: 1.7; }
.step__arrow {
  font-size: 24px; color: #8d96a0;
  align-self: center; flex-shrink: 0;
  padding-top: 8px;
}

/* ── Download CTA ── */
.download {
  padding: 96px 0;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
}
.download__inner { text-align: center; }
.download__text h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.download__text p { color: #8d96a0; font-size: 17px; margin-bottom: 36px; }
.download .store-buttons { justify-content: center; }

/* ── Footer ── */
.footer {
  background: #010409;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer__brand p { color: #8d96a0; font-size: 14px; margin-top: 12px; }
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  justify-content: center;
}
.footer__links a {
  font-size: 14px;
  color: #8d96a0;
  transition: color .2s;
}
.footer__links a:hover { color: #00C853; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #6e7681;
}
.footer__bottom a { color: #8d96a0; transition: color .2s; }
.footer__bottom a:hover { color: #00C853; }

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: #161b22;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 24px;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.cookie-banner--visible { transform: translateY(0); }
.cookie-banner__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  font-size: 14px;
  color: #8d96a0;
  min-width: 200px;
}
.cookie-banner__text a { color: #00C853; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-btn {
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
}
.cookie-btn--primary {
  background: linear-gradient(90deg, #00C853, #00897B);
  color: #fff;
}
.cookie-btn--primary:hover { opacity: .9; }
.cookie-btn--outline {
  background: transparent;
  color: #8d96a0;
  border: 1px solid rgba(255,255,255,.15);
}
.cookie-btn--outline:hover { border-color: rgba(255,255,255,.3); color: #e6edf3; }

/* ── Legal pages ── */
.legal-page { padding: 60px 0 96px; }
.legal-page h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.legal-page .meta { color: #8d96a0; font-size: 14px; margin-bottom: 48px; }
.legal-content h2 { font-size: 20px; font-weight: 700; margin: 40px 0 16px; color: #e6edf3; }
.legal-content h3 { font-size: 16px; font-weight: 700; margin: 24px 0 10px; color: #c9d1d9; }
.legal-content p { color: #8d96a0; font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.legal-content ul, .legal-content ol { color: #8d96a0; font-size: 15px; line-height: 1.8; margin: 0 0 14px 24px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: #00C853; }
.legal-content strong { color: #c9d1d9; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; color: #8d96a0; font-size: 14px; margin-bottom: 40px; transition: color .2s; }
.legal-back:hover { color: #00C853; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__phone { display: none; }
  .hero__sub { margin: 0 auto 36px; }
  .store-buttons { justify-content: center; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .how__steps { flex-direction: column; }
  .step__arrow { display: none; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { align-items: flex-start; }
}
@media (max-width: 600px) {
  .features__grid { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
  .nav__link:not(.nav__link--cta) { display: none; }
  .footer__bottom { flex-direction: column; }
}
