:root {
  --green: #1b8f6a;
  --dark: #163b34;
  --ink: #18231f;
  --muted: #63746f;
  --line: #e4eee9;
  --paper: #f7fafc;
  --card: #ffffff;
  --card-shadow: 0 10px 26px rgba(22, 59, 52, 0.05);
  --blue: #2563eb;
  --orange: #e07900;
  --purple: #7c3aed;
  --nutri-a: #00843d;
  --nutri-b: #85bb2f;
  --nutri-c: #ffc20a;
  --nutri-d: #f58220;
  --nutri-e: #e63e24;
  --nova-1: #1b8f6a;
  --nova-2: #f2c94c;
  --nova-3: #f2994a;
  --nova-4: #e53935;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(22, 59, 52, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 26px;
  font-weight: 900;
}

.brand-icon {
  width: 54px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand strong {
  color: #6ee7a8;
}

nav {
  display: flex;
  gap: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

nav a:hover,
nav a:focus-visible {
  color: white;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 78vh;
  padding: 72px clamp(20px, 6vw, 88px);
  color: white;
  background-color: var(--dark);
  background-image: url("app_icon.png?v=3");
  background-repeat: no-repeat;
  background-position: right 8vw center;
  background-size: min(52vw, 680px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(12, 43, 36, 0.96) 0%,
    rgba(12, 43, 36, 0.86) 54%,
    rgba(12, 43, 36, 0.54) 100%
  );
}

.hero-copy {
  position: relative;
  max-width: 720px;
}

.hero-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 30px;
  color: white;
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 1000;
  line-height: 0.95;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.34));
}

.hero-wordmark span {
  color: #6ee7a8;
}

.hero-wordmark strong {
  color: white;
}

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

.hero .eyebrow {
  color: #91f3c1;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  background: white;
  color: var(--dark);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: white;
}

section:not(.hero) {
  padding: 58px clamp(18px, 5vw, 72px);
}

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

.screen-grid,
.steps,
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.phone-shot,
.steps article,
.features article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}

.phone-shot {
  min-height: 430px;
  padding: 16px;
}

.phone-bar {
  width: 64px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #d9e5e1;
}

.app-header {
  margin: 0 -16px 16px;
  padding: 16px;
  background: var(--dark);
  color: white;
  text-align: center;
  font-weight: 900;
}

.scan-box,
.notice,
.compare-row {
  border: 1px solid rgba(27, 143, 106, 0.22);
  border-radius: 16px;
  padding: 18px;
  background: rgba(27, 143, 106, 0.08);
}

.scan-icon {
  display: block;
  color: var(--green);
  font-size: 44px;
  line-height: 1;
}

.scan-box strong,
.scan-box small {
  display: block;
}

.scan-box small {
  margin-top: 8px;
  color: var(--muted);
}

.input-line,
.content-line,
.metric-line {
  height: 18px;
  margin-top: 18px;
  border-radius: 999px;
  background: #dfe9e6;
}

.input-line {
  height: 92px;
  border-radius: 16px;
}

.wide-button {
  margin-top: 18px;
  padding: 13px;
  border-radius: 16px;
  background: var(--green);
  color: white;
  text-align: center;
  font-weight: 900;
}

.score-row,
.compare-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.score-card {
  --score-color: var(--green);
  min-height: 112px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(27, 143, 106, 0.05);
  border: 1px solid rgba(27, 143, 106, 0.15);
  color: var(--ink);
}

.score-card strong,
.compare-row strong,
.compare-row span {
  display: block;
}

.score-card strong {
  color: var(--score-color);
  font-size: 34px;
  line-height: 1;
}

.metric-label,
.compare-row span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

.metric-label {
  margin: 0 0 8px;
  color: var(--score-color);
  font-weight: 900;
}

.gidatara-good {
  --score-color: var(--green);
  background: rgba(27, 143, 106, 0.05);
  border-color: rgba(27, 143, 106, 0.15);
}

.nutri-c {
  --score-color: var(--nutri-c);
  background: rgba(255, 194, 10, 0.09);
  border-color: rgba(255, 194, 10, 0.26);
}

.nova-4 {
  --score-color: var(--nova-4);
  background: rgba(229, 57, 53, 0.06);
  border-color: rgba(229, 57, 53, 0.2);
}

.score-scale {
  display: grid;
  gap: 2px;
  height: 18px;
  margin-top: 12px;
  align-items: end;
}

.score-scale i {
  display: block;
  height: 12px;
  border-radius: 2px;
  opacity: 0.32;
}

.score-scale i.active {
  height: 18px;
  opacity: 1;
}

.gida-scale,
.nutri-scale {
  grid-template-columns: repeat(5, 1fr);
}

.nova-scale {
  grid-template-columns: repeat(4, 1fr);
}

.gida-scale i:nth-child(1) {
  background: #1b8f6a;
}

.gida-scale i:nth-child(2) {
  background: #7cb342;
}

.gida-scale i:nth-child(3) {
  background: #f9a825;
}

.gida-scale i:nth-child(4) {
  background: #f4511e;
}

.gida-scale i:nth-child(5) {
  background: #e63e24;
}

.nutri-scale i:nth-child(1) {
  background: var(--nutri-a);
}

.nutri-scale i:nth-child(2) {
  background: var(--nutri-b);
}

.nutri-scale i:nth-child(3) {
  background: var(--nutri-c);
}

.nutri-scale i:nth-child(4) {
  background: var(--nutri-d);
}

.nutri-scale i:nth-child(5) {
  background: var(--nutri-e);
}

.nova-scale i:nth-child(1) {
  background: var(--nova-1);
}

.nova-scale i:nth-child(2) {
  background: var(--nova-2);
}

.nova-scale i:nth-child(3) {
  background: var(--nova-3);
}

.nova-scale i:nth-child(4) {
  background: var(--nova-4);
}

.content-line.long {
  width: 88%;
}

.notice {
  margin-top: 18px;
  color: var(--dark);
  font-weight: 800;
}

.compare-row {
  grid-template-columns: 1fr 1fr;
  background: var(--card);
}

.metric-line.good {
  background: var(--blue);
}

.metric-line.warn {
  background: var(--orange);
}

.metric-line.neutral {
  background: #90a4ae;
}

.steps article,
.features article {
  padding: 22px;
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-weight: 900;
}

.steps p,
.features p,
.trust-layout p,
.trust-layout li {
  color: var(--muted);
  line-height: 1.55;
}

.features-band {
  background: var(--paper);
}

.features article {
  background: var(--card);
}

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.trust-layout ul {
  margin: 0;
  padding: 22px 22px 22px 38px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}

.trust-layout li + li {
  margin-top: 10px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 26px 18px;
  color: white;
  background: var(--dark);
  text-align: center;
}

footer a {
  color: white;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.footer-brand strong {
  color: #6ee7a8;
}

.footer-brand-icon {
  width: 48px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
}

.privacy-page {
  background: var(--paper);
}

.privacy-hero {
  padding: 64px clamp(18px, 5vw, 72px) 28px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.privacy-hero h1 {
  max-width: 760px;
  color: var(--dark);
  font-size: clamp(34px, 5vw, 58px);
}

.privacy-hero .lead {
  color: var(--muted);
}

.privacy-content {
  display: grid;
  gap: 14px;
  max-width: 980px;
  padding-top: 32px;
}

.privacy-content article {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}

.privacy-content h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.privacy-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.privacy-content a {
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-card {
  border-color: rgba(27, 143, 106, 0.28);
}

@media (max-width: 880px) {
  nav {
    display: none;
  }

  .hero {
    min-height: 76vh;
    background-position: right -140px bottom 24px;
    background-size: 540px;
  }

  .screen-grid,
  .steps,
  .features,
  .trust-layout {
    grid-template-columns: 1fr;
  }

  .phone-shot {
    min-height: auto;
  }

  .brand-icon {
    width: 46px;
    height: 36px;
  }

  .footer-brand {
    width: 100%;
    justify-content: center;
  }
}
