:root {
  color-scheme: light;
  --background: #f7faf8;
  --surface: #ffffff;
  --ink: #13201b;
  --muted: #5a6962;
  --border: #dce7e1;
  --accent: #167f68;
  --accent-strong: #0f5f50;
  --soft: #e8f5ef;
  --shadow: 0 18px 50px rgba(19, 32, 27, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 7px 18px rgba(22, 127, 104, 0.14);
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent-strong);
}

main {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 80px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  gap: 48px;
  align-items: center;
}

.hero h1,
.document h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  max-width: 620px;
  margin: 24px 0 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--accent-strong);
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.document ul {
  margin: 0;
  padding-left: 1.1rem;
}

.document li + li {
  margin-top: 8px;
}

.phone-showcase {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.iphone-frame {
  position: relative;
  width: min(282px, 100%);
  aspect-ratio: 390 / 844;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(145deg, #26302d, #070a09 44%, #39433f);
  box-shadow:
    0 28px 80px rgba(19, 32, 27, 0.2),
    0 10px 24px rgba(19, 32, 27, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.iphone-screen {
  height: 100%;
  border-radius: 34px;
  background: linear-gradient(180deg, #f8fbf7 0%, #edf7f1 100%);
  color: var(--ink);
  overflow: hidden;
  padding: 44px 18px 18px;
}

.mock-dashboard {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.mock-topbar strong {
  display: block;
  font-size: 1.3rem;
  line-height: 1.1;
}

.mock-topbar img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(22, 127, 104, 0.16);
}

.mock-progress {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 138px;
  margin: 4px 0;
}

.mock-progress svg {
  width: 128px;
  height: 128px;
  transform: rotate(-90deg);
}

.mock-progress circle {
  fill: none;
  stroke-width: 12;
}

.mock-progress .track {
  stroke: #d9e8df;
}

.mock-progress .fill {
  stroke: #167f68;
  stroke-linecap: round;
  stroke-dasharray: 301.59;
  stroke-dashoffset: 97.65;
}

.mock-progress div {
  position: absolute;
  display: grid;
  place-items: center;
}

.mock-progress strong {
  font-size: 1.65rem;
  line-height: 1;
}

.mock-progress span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.mock-macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.mock-macros span,
.mock-meal {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(201, 232, 219, 0.8);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(19, 32, 27, 0.05);
}

.mock-macros span {
  padding: 9px 7px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
}

.mock-macros strong {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
}

.mock-section-title {
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 850;
}

.mock-meal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  font-size: 0.76rem;
  font-weight: 760;
}

.mock-meal strong {
  color: var(--accent-strong);
}

.mock-action {
  margin-top: auto;
  min-height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-strong);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
}

.iphone-speaker {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 1;
  width: 74px;
  height: 22px;
  border-radius: 999px;
  background: #050606;
  transform: translateX(-50%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 22px 0 72px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.document {
  max-width: 820px;
  padding: 62px 0 76px;
}

.document-header {
  margin-bottom: 34px;
}

.document-header p {
  color: var(--muted);
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.notice {
  background: var(--soft);
  border: 1px solid #c9e8db;
  border-radius: 8px;
  padding: 18px 20px;
  margin: 24px 0 34px;
  color: #174b3f;
}

.document section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.document h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.document p {
  margin: 0 0 14px;
}

.document p,
.document li {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 780px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .phone-showcase {
    justify-content: flex-start;
  }

  .iphone-frame {
    width: min(250px, 78vw);
  }

  .section-grid {
    grid-template-columns: 1fr;
    padding-bottom: 54px;
  }

  .document {
    padding-top: 46px;
  }
}

@media (max-width: 520px) {
  main,
  .nav,
  .footer-inner {
    width: min(calc(100% - 32px), 360px);
  }

  .hero h1,
  .document h1 {
    font-size: clamp(2.35rem, 12vw, 3rem);
  }
}
