:root {
  color-scheme: light;
  --ink: #132017;
  --muted: #5c675f;
  --paper: #fbfcf7;
  --surface: #ffffff;
  --line: #dde5da;
  --green: #168b4b;
  --green-dark: #0d5f35;
  --gold: #d99a28;
  --rose: #c85a58;
  --blue: #2f6f88;
  --shadow: 0 24px 80px rgba(19, 32, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(251, 252, 247, 0.92);
  border-bottom: 1px solid rgba(221, 229, 218, 0.78);
  backdrop-filter: blur(18px);
}

.site-header.compact {
  position: static;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 20px;
  color: var(--muted);
  font-weight: 700;
}

nav a:hover {
  color: var(--green-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.72fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(22, 139, 75, 0.16), transparent 38%),
    linear-gradient(315deg, rgba(216, 154, 40, 0.16), transparent 40%),
    var(--paper);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(2.9rem, 7vw, 5.8rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero p,
.intro p,
.notice p,
.legal p {
  color: var(--muted);
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.68);
}

.phone {
  width: min(100%, 390px);
  justify-self: center;
  padding: 12px;
  background: #18251d;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.phone-top {
  display: flex;
  justify-content: center;
  height: 28px;
}

.phone-top span {
  width: 86px;
  height: 8px;
  margin-top: 8px;
  background: #2f4135;
  border-radius: 20px;
}

.phone-screen {
  min-height: 560px;
  padding: 22px;
  background: #f7fbf3;
  border-radius: 24px;
}

.app-title {
  margin-bottom: 18px;
  color: var(--green-dark);
  direction: rtl;
  font-size: 1.55rem;
  font-weight: 900;
}

.calorie-ring {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  margin: 0 auto 22px;
  border: 16px solid #e9eee5;
  border-top-color: var(--green);
  border-right-color: var(--gold);
  border-radius: 999px;
  text-align: center;
}

.calorie-ring strong {
  display: block;
  font-size: 2.1rem;
}

.calorie-ring span,
.meal-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.meal-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.meal-card img {
  width: 82px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.meal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.meal-grid span {
  min-height: 42px;
  padding: 10px;
  background: #edf5eb;
  border-radius: 8px;
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.intro,
.notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 36px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}

.stats div {
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats dt {
  color: var(--green-dark);
  font-size: 2rem;
  font-weight: 900;
}

.stats dd {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.feature-grid article,
.dish-row article {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-grid p,
.dish-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  background: #e8f4eb;
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.gallery {
  background: #f2f6ed;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dish-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dish-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  object-fit: cover;
  border-radius: 8px;
}

.dish-row h3 {
  direction: rtl;
  font-size: 1.35rem;
}

.notice {
  background: #fffaf0;
}

.legal {
  max-width: 820px;
  min-height: 70vh;
  padding: clamp(48px, 8vw, 88px) clamp(20px, 5vw, 72px);
}

.legal h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.legal h2 {
  margin-top: 34px;
  font-size: 1.35rem;
}

.support-list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.support-list a {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  font-weight: 900;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: #132017;
  color: #ffffff;
}

footer span {
  font-weight: 900;
}

footer nav {
  color: rgba(255, 255, 255, 0.76);
}

footer nav a:hover {
  color: #ffffff;
}

@media (max-width: 900px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav,
  footer nav {
    justify-content: flex-start;
  }

  .hero,
  .intro,
  .notice,
  .feature-grid,
  .dish-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.6rem;
  }

  .phone-screen {
    min-height: 500px;
    padding: 16px;
  }

  .meal-card {
    grid-template-columns: 1fr;
  }

  .meal-card img {
    width: 100%;
    height: 150px;
  }
}
