@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Manrope:wght@400;500;700&display=swap");

:root {
  --bg: #f6f8ef;
  --bg-soft: #fffef8;
  --surface: #ffffff;
  --text: #1f2c20;
  --muted: #5a6d5e;
  --accent: #35b66b;
  --accent-dark: #208f50;
  --warning: #f2ab3c;
  --line: #d9e3d6;
  --shadow: 0 20px 60px rgba(25, 47, 28, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: "Manrope", sans-serif;
  background: linear-gradient(160deg, var(--bg) 0%, #eef8ec 50%, #fffdf5 100%);
  color: var(--text);
  min-height: 100vh;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(246, 248, 239, 0.78);
  border-bottom: 1px solid rgba(147, 170, 141, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  font-family: "Outfit", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  gap: 1.2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
}

.main-nav a:hover {
  color: var(--accent-dark);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.4rem;
  align-items: center;
  padding: 4.5rem 0 5.2rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  font-family: "Outfit", sans-serif;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.7rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.hero-text {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 60ch;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 1.9rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #61c886 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(53, 182, 107, 0.32);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  border: 1px solid var(--line);
}

.sub-note {
  margin: 1rem 0 0;
  color: #4d6153;
  font-size: 0.92rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.scanner-card {
  width: min(470px, 100%);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid #dce7d9;
  overflow: hidden;
  transform: translateY(0);
  animation: cardFloat 6s ease-in-out infinite;
}

.scanner-screen {
  position: relative;
  height: 220px;
  background:
    radial-gradient(circle at 15% 20%, rgba(53, 182, 107, 0.33), transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(242, 171, 60, 0.22), transparent 50%),
    linear-gradient(180deg, #f3fbf4 0%, #eaf6ea 100%);
  overflow: hidden;
}

.ingredient {
  position: absolute;
  border-radius: 999px;
}

.ingredient-1 {
  width: 128px;
  height: 128px;
  left: 16%;
  top: 25%;
  background: radial-gradient(circle at 35% 35%, #9ce38a, #49b662 72%);
  animation: driftOne 8s ease-in-out infinite;
}

.ingredient-2 {
  width: 86px;
  height: 86px;
  right: 20%;
  top: 18%;
  background: radial-gradient(circle at 36% 36%, #ffcf79, #f2ab3c 72%);
  animation: driftTwo 7.2s ease-in-out infinite;
}

.ingredient-3 {
  width: 72px;
  height: 72px;
  right: 13%;
  bottom: 16%;
  background: radial-gradient(circle at 40% 35%, #ffa5a5, #f26d6d 74%);
  animation: driftThree 6.8s ease-in-out infinite;
}

.scan-beam {
  position: absolute;
  inset-inline: 0;
  height: 46px;
  top: -20%;
  background: linear-gradient(
    180deg,
    rgba(53, 182, 107, 0),
    rgba(53, 182, 107, 0.35),
    rgba(53, 182, 107, 0)
  );
  animation: scan 3.2s linear infinite;
}

.scan-result {
  padding: 1.2rem 1.4rem 1.4rem;
}

.meal-name {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
}

.score-row {
  margin-top: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #35553d;
}

.score-label {
  font-weight: 700;
}

.score-value {
  font-weight: 800;
}

.progress-track {
  margin-top: 0.62rem;
  height: 12px;
  border-radius: 999px;
  background: #e2ece0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #f2ab3c 0%, #35b66b 100%);
  border-radius: 999px;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.score-comment {
  margin: 0.82rem 0 0;
  color: #4f6254;
  font-size: 0.93rem;
  min-height: 2.8em;
}

.how-section {
  padding: 1.3rem 0 5rem;
}

.steps-grid {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(17, 37, 28, 0.06);
}

.step-card span {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #ebf7ee;
  color: var(--accent-dark);
  font-weight: 800;
  font-family: "Outfit", sans-serif;
}

.step-card h3 {
  margin-top: 0.82rem;
  font-size: 1.1rem;
}

.step-card p {
  margin: 0.55rem 0 0;
  color: #506055;
  line-height: 1.5;
  font-size: 0.96rem;
}

.site-footer {
  border-top: 1px solid rgba(147, 170, 141, 0.25);
  padding: 1.1rem 0;
  background: rgba(255, 255, 255, 0.55);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  color: #4b5d50;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #32503a;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent-dark);
}

.bg-glow {
  position: fixed;
  width: 44vw;
  height: 44vw;
  border-radius: 50%;
  z-index: -1;
  filter: blur(50px);
  opacity: 0.3;
  pointer-events: none;
}

.bg-glow-one {
  left: -10vw;
  top: -13vw;
  background: radial-gradient(circle, rgba(53, 182, 107, 0.58), transparent 68%);
  animation: glowMoveOne 14s ease-in-out infinite;
}

.bg-glow-two {
  right: -12vw;
  bottom: -14vw;
  background: radial-gradient(circle, rgba(242, 171, 60, 0.5), transparent 70%);
  animation: glowMoveTwo 16s ease-in-out infinite;
}

.legal-page main {
  padding: 2.4rem 0 3rem;
}

.legal-card {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  box-shadow: 0 16px 40px rgba(30, 54, 34, 0.08);
}

.legal-card h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.65rem);
}

.legal-date {
  margin-top: 0.5rem;
  color: #506055;
  font-size: 0.95rem;
}

.legal-card section {
  margin-top: 1.35rem;
}

.legal-card h2 {
  font-size: 1.2rem;
}

.legal-card p,
.legal-card li {
  color: #405646;
  line-height: 1.6;
}

.legal-card ul {
  padding-left: 1.1rem;
}

.legal-card a {
  color: #246d44;
}

.legal-top-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: #2e6440;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 0.6rem;
  }

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

@media (max-width: 620px) {
  .main-nav {
    gap: 0.75rem;
  }

  .main-nav a {
    font-size: 0.88rem;
  }

  .scanner-card {
    border-radius: 20px;
  }

  .scan-result {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes scan {
  0% {
    top: -24%;
  }
  100% {
    top: 108%;
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes driftOne {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(14px, 10px);
  }
}

@keyframes driftTwo {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-10px, 14px);
  }
}

@keyframes driftThree {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-8px, -11px);
  }
}

@keyframes glowMoveOne {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(5vw, 3vw);
  }
}

@keyframes glowMoveTwo {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-4vw, -3vw);
  }
}
