:root {
  --bg: #e8edf2;
  --panel: #dfe5eb;
  --ink: #17253a;
  --muted: #5d6e7f;
  --mint: #57c8b9;
  --mint-2: #6fd9c9;
  --line: rgba(255, 255, 255, 0.82);
  --glass: linear-gradient(148deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.26));
  --shadow: 0 20px 60px rgba(43, 64, 84, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: radial-gradient(1400px 720px at 52% -120px, rgba(255, 255, 255, 0.88), rgba(233, 239, 245, 0.8) 54%, rgba(228, 234, 241, 1)), var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

.global-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 6%, rgba(120, 214, 197, 0.25), transparent 26%),
    radial-gradient(circle at 92% 28%, rgba(173, 208, 241, 0.18), transparent 24%);
}

.page {
  width: min(1480px, calc(100% - 22px));
  margin-inline: auto;
  padding: 12px 0 22px;
}

.glass {
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.app-glass-soft {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(156deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.56));
}

.hero-shell,
.feature-shell,
.content-shell,
.site-footer {
  border-radius: 34px;
}

.hero-shell {
  padding: 24px 42px 24px;
  background: linear-gradient(180deg, rgba(223, 229, 235, 0.86), rgba(223, 229, 235, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.site-header {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  gap: 14px;
}

.brand img {
  display: block;
  width: 218px;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2vw, 54px);
}

.main-nav a {
  text-decoration: none;
  color: #3d4f61;
  font-size: clamp(14px, 0.92vw, 17px);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  border-radius: 999px;
  padding: 4px;
  display: inline-flex;
  gap: 6px;
}

.lang-switch__btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  min-width: 43px;
  padding: 8px 11px;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 800;
  color: #607488;
  cursor: pointer;
}

.lang-switch__btn.is-active {
  background: rgba(255, 255, 255, 0.88);
  color: #1e2f42;
  box-shadow: 0 5px 14px rgba(53, 72, 93, 0.2);
}

.header-cta {
  text-decoration: none;
  color: #4a8e95;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  min-height: 56px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: clamp(14px, 0.95vw, 18px);
  display: inline-flex;
  align-items: center;
}

.hero-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 0.96fr;
  gap: 20px;
  align-items: start;
}

.hero-copy {
  padding-top: 14px;
}

.hero-badge {
  width: fit-content;
  border-radius: 14px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #47a595;
  font-size: clamp(12px, 0.95vw, 16px);
  margin-bottom: 20px;
}

h1,
h2,
h3,
strong {
  font-family: 'Sora', 'Manrope', sans-serif;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 4.6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

h1 span {
  background: linear-gradient(90deg, #47b9a8, #63d0bf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 18px 0 0;
  font-size: clamp(18px, 1.24vw, 30px);
  color: #5e6f7f;
  line-height: 1.5;
  max-width: 38ch;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  text-decoration: none;
  border-radius: 23px;
  min-height: 68px;
  padding: 19px 34px;
  font-size: clamp(17px, 1.08vw, 22px);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  color: #f3fffc;
  background: linear-gradient(135deg, var(--mint), var(--mint-2));
  box-shadow: 0 16px 36px rgba(83, 198, 183, 0.34);
}

.btn-ghost {
  color: #34485c;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.42);
}

.hero-mockups {
  position: relative;
  min-height: 582px;
}

.iphone {
  position: absolute;
  border-radius: 45px;
  background: #14181d;
  padding: 8px;
  box-shadow: 0 24px 46px rgba(22, 30, 40, 0.26);
}

.iphone-main {
  width: 312px;
  height: 632px;
  left: 90px;
  top: -8px;
  transform: rotate(-1deg);
}

.iphone-side {
  width: 256px;
  height: 532px;
  left: 365px;
  top: 84px;
  transform: rotate(8deg);
}

.iphone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 116px;
  height: 24px;
  border-radius: 999px;
  background: #090b0e;
  z-index: 5;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  background: linear-gradient(172deg, #eef2f6 0%, #e9edf2 44%, #e4e9ef 100%);
  padding: 52px 18px 12px;
  overflow: hidden;
}

.app-head strong {
  font-size: 30px;
  color: #1e3044;
}

.score-card,
.weight-card {
  margin-top: 16px;
  border-radius: 18px;
  padding: 12px;
  position: relative;
}

.score-card small,
.weight-card small {
  color: #688092;
  font-size: 11px;
}

.score-card strong {
  display: block;
  margin-top: 5px;
  font-size: 49px;
}

.score-card span {
  color: #5bbcae;
  font-size: 13px;
  font-weight: 700;
}

.score-curve {
  position: absolute;
  right: 14px;
  top: 24px;
  width: 108px;
  height: 60px;
  border-bottom: 3px solid rgba(86, 195, 180, 0.64);
  border-radius: 50% 0 50% 70%;
}

.macro-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.macro-grid div {
  background: rgba(255, 255, 255, 0.46);
  border-radius: 11px;
  padding: 8px 5px;
  text-align: center;
}

.macro-grid span {
  display: block;
  color: #667b8d;
  font-size: 10px;
}

.macro-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.meal-list {
  margin-top: 13px;
  display: grid;
  gap: 8px;
}

.meal-item {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
}

.meal-item b {
  font-size: 14px;
  color: #31495d;
}

.meal-item span {
  font-size: 12px;
  color: #6f8192;
}

.add-meal {
  margin-top: 10px;
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 11px;
  color: #48ae9f;
  font-size: 13px;
  font-weight: 700;
  background: rgba(224, 250, 244, 0.9);
}

.tab-strip {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.tab-strip span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  color: #6d7f91;
  background: rgba(255, 255, 255, 0.44);
}

.tab-strip .is-active {
  color: #44aa9d;
  background: rgba(225, 255, 250, 0.88);
}

.weight-card strong {
  display: block;
  margin: 5px 0 4px;
  font-size: 36px;
}

.weight-wave {
  height: 46px;
  border-bottom: 3px solid rgba(83, 191, 176, 0.68);
  border-radius: 48% 52% 36% 64% / 46% 54% 46% 54%;
}

.body-list {
  margin-top: 9px;
  display: grid;
  gap: 7px;
}

.body-list div {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
}

.body-list span,
.body-list b {
  font-size: 11px;
}

.body-list span {
  color: #6b7e8f;
}

.body-list b {
  color: #4b6072;
}

.insight-card {
  position: absolute;
  right: -6px;
  top: 166px;
  width: 148px;
  border-radius: 20px;
  padding: 16px;
}

.insight-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.insight-card li {
  font-size: 13px;
  color: #556b7d;
  line-height: 1.35;
  padding-left: 20px;
  position: relative;
}

.insight-card li::before {
  content: '◌';
  position: absolute;
  left: 0;
  top: -1px;
  color: #49baab;
}

.download-rail {
  margin-top: 10px;
  border-radius: 24px;
  padding: 19px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.download-copy h2 {
  margin: 0;
  font-size: clamp(30px, 2.06vw, 40px);
}

.download-copy p {
  margin: 6px 0 0;
  color: #6b7e91;
  font-size: 16px;
}

.download-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(730px, 100%);
}

.store-btn {
  text-decoration: none;
  color: #1d3042;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.64);
  padding: 11px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 80px;
}

.store-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.store-btn small {
  display: block;
  color: #6a7f91;
  font-size: 12px;
}

.store-btn strong {
  font-size: clamp(21px, 1.38vw, 30px);
}

.feature-shell {
  margin-top: 22px;
  padding: 34px 24px;
  background: linear-gradient(160deg, rgba(223, 229, 235, 0.76), rgba(223, 229, 235, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.72);
  display: grid;
  grid-template-columns: 1fr 302px 1fr;
  gap: 16px;
}

.section-tag {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #63b7aa;
  font-size: 13px;
  font-weight: 800;
}

.feature-left h2 {
  margin: 0;
  font-size: clamp(38px, 2.72vw, 56px);
  line-height: 1.1;
  max-width: 15ch;
}

.feature-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  background: var(--glass);
  text-align: left;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 8px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(49, 69, 90, 0.17);
}

.feature-card--primary {
  margin-top: 22px;
  padding: 20px;
}

.feature-card--mini {
  padding: 17px;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
}

.feature-card__title {
  font-family: 'Sora', 'Manrope', sans-serif;
  font-size: clamp(18px, 1.15vw, 25px);
  font-weight: 700;
  color: #24394d;
}

.feature-card__desc {
  color: #5e7487;
  font-size: 15px;
  line-height: 1.56;
}

.feature-card__more {
  margin-top: 6px;
  color: #4bb6a7;
  font-weight: 700;
  font-size: 14px;
}

.feature-center {
  display: flex;
  justify-content: center;
}

.iphone-food {
  position: relative;
  width: 286px;
  height: 576px;
}

.iphone-screen--food {
  background: linear-gradient(174deg, #1f2530 0%, #11151c 100%);
  padding-top: 54px;
}

.scan-title {
  text-align: center;
  color: #f0f7ff;
  font-size: 14px;
  font-weight: 600;
}

.scan-lens {
  margin-top: 16px;
  border-radius: 34px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.scan-food {
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 68% 77%, #ec5f53 0 8%, transparent 10%),
    radial-gradient(circle at 35% 29%, #bbde80 0 18%, transparent 21%),
    radial-gradient(circle at 66% 35%, #9ecb67 0 10%, transparent 13%),
    radial-gradient(circle at 28% 64%, #f4d39d 0 12%, transparent 15%),
    radial-gradient(circle at 50% 50%, #7f6040 0 48%, #4e3925 54%, #2f2318 100%);
  box-shadow: inset 0 0 0 8px rgba(241, 244, 247, 0.32), 0 14px 30px rgba(0, 0, 0, 0.44);
}

.iphone-screen--food p {
  margin: 15px 0 0;
  text-align: center;
  color: #deecf8;
  font-size: 13px;
}

.feature-right {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.content-shell {
  margin-top: 22px;
  padding: 30px 22px;
  background: linear-gradient(160deg, rgba(223, 229, 235, 0.64), rgba(223, 229, 235, 0.46));
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.content-shell h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 2.4vw, 50px);
}

.how-grid,
.tech-grid,
.review-grid {
  display: grid;
  gap: 12px;
}

.how-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tech-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.how-card,
.tech-grid article,
.review-grid blockquote {
  border-radius: 20px;
  padding: 20px;
}

.how-card span {
  color: #5cc1b3;
  font-size: 13px;
  font-weight: 800;
}

.how-card h3,
.tech-grid h3 {
  margin: 10px 0 8px;
  font-size: 23px;
}

.how-card p,
.tech-grid p,
.review-grid p {
  margin: 0;
  color: #5f7385;
  line-height: 1.56;
}

.review-grid p {
  font-size: 18px;
}

.review-grid cite {
  margin-top: 8px;
  display: block;
  color: #698093;
  font-style: normal;
}

.site-footer {
  margin-top: 22px;
  padding: 24px 20px;
  background: linear-gradient(160deg, rgba(223, 229, 235, 0.64), rgba(223, 229, 235, 0.46));
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 15px;
}

.footer-brand {
  display: flex;
  gap: 12px;
}

.footer-brand img {
  width: 50px;
  height: 50px;
}

.footer-brand strong {
  font-size: 23px;
}

.footer-brand p {
  margin: 4px 0 0;
  color: #5f7385;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #3d5266;
  text-decoration: none;
  font-weight: 600;
}

.legal-plate {
  border-radius: 16px;
  padding: 14px;
}

.legal-plate p {
  margin: 5px 0;
  color: #4f667a;
}

.feature-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.feature-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 31, 45, 0.42);
  backdrop-filter: blur(4px);
}

.feature-modal__dialog {
  position: relative;
  width: min(560px, calc(100% - 24px));
  margin: 8vh auto 0;
  border-radius: 24px;
  padding: 26px;
}

.feature-modal__close {
  position: absolute;
  right: 14px;
  top: 14px;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  color: #3b5266;
  background: rgba(255, 255, 255, 0.82);
}

.feature-modal__icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.feature-modal__dialog h3 {
  margin: 16px 0 8px;
  font-size: 30px;
}

.feature-modal__dialog p {
  margin: 0;
  color: #577083;
  font-size: 17px;
}

.feature-modal__dialog ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-modal__dialog li {
  position: relative;
  padding: 10px 12px 10px 36px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.58);
  color: #2f465a;
}

.feature-modal__dialog li::before {
  content: '✦';
  position: absolute;
  left: 12px;
  top: 10px;
  color: #4eb9ab;
}

body.modal-open {
  overflow: hidden;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1280px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-mockups {
    min-height: 590px;
  }

  .feature-shell {
    grid-template-columns: 1fr;
  }

  .feature-center {
    order: 3;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .page {
    width: calc(100% - 14px);
  }

  .hero-shell,
  .feature-shell,
  .content-shell,
  .site-footer {
    padding: 20px 12px;
    border-radius: 24px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-badge {
    width: 100%;
  }

  .hero-lead {
    max-width: none;
  }

  .hero-mockups {
    min-height: 560px;
  }

  .iphone-main {
    width: 238px;
    height: 492px;
    left: 0;
  }

  .iphone-side {
    width: 200px;
    height: 418px;
    left: 156px;
    top: 70px;
  }

  .insight-card {
    width: 134px;
    top: 300px;
    right: -8px;
    padding: 12px;
  }

  .download-rail {
    flex-direction: column;
    align-items: stretch;
  }

  .download-buttons,
  .feature-right,
  .how-grid,
  .tech-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }
}
