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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

  --bg: #EAF3E0;
  --bg-card: #F8F6EC;
  --ink: #26301F;
  --ink-soft: #4B5A41;
  --green-deep: #3F6B45;
  --green-mid: #5C9A62;
  --green-bright: #8FE08F;
  --green-pop: #6FD07A;
  --pink-fill: #FFC9DD;
  --text-dark: #2C3E35;
  --text-light: #5A7565;
  --white: #FFFFFF;
  --shadow: 0 10px 25px rgba(63, 107, 69, 0.12);
  --shadow-hover: 0 14px 28px rgba(63, 107, 69, 0.18);
  --transition: all 0.25s ease;
}

h1,
h2,
h3 {
  font-family: 'Fredoka', sans-serif;
}

/* --- Navigation --- */
.return-flag {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  text-decoration: none;
  padding: 0 48px;
  background: rgba(63, 107, 69, 0.06);
  transition: color 0.2s, background 0.2s;
  z-index: 100;
}

.return-flag:hover {
  color: var(--green-deep);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(234, 243, 224, 0.95), rgba(234, 243, 224, 0.75));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(63, 107, 69, 0.15);
}

.nav-logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}

.nav-logo span {
  color: var(--green-pop);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  padding: 13px 26px;
  border-radius: 999px;
  transition: var(--transition);
}

.btn-primary {
  background: var(--green-pop);
  color: #1C2B18;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  filter: brightness(1.04);
}

.btn-primary:active {
  transform: translateY(0);
}

/* --- Hero --- */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 60px 20px;
  background: #cbecc3;
  text-align: center;
  border-bottom: 1px solid rgba(63, 107, 69, 0.15);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  z-index: 2;
}

.hero-icon-container {
  margin-bottom: 30px;
  animation: float 6s ease-in-out infinite;
}

.hero-icon {
  width: 140px;
  height: 140px;
  object-fit: cover;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--text-dark);
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--green-deep);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 600px;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

.blob-bg {
  position: absolute;
  z-index: 1;
  filter: blur(0px);
}

.blob-a {
  top: -80px;
  right: -160px;
  width: 520px;
  height: 520px;
  background: var(--green-bright);
  opacity: 0.55;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  animation: float1 9s ease-in-out infinite;
}

.blob-b {
  bottom: -70px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: var(--pink-fill);
  opacity: 0.5;
  border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%;
  animation: float2 11s ease-in-out infinite;
}

@keyframes float1 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(-18px, 20px) rotate(8deg);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(16px, -14px) rotate(-6deg);
  }
}

/* --- Features --- */
.recipe {
  padding: 80px 28px 110px;
}

.recipe-head {
  text-align: center;
  max-width: 1064px;
  margin: 0 auto 80px;
}

.recipe-head h2 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  color: var(--ink);
}

.step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 840px;
  margin: 0 auto 100px auto;
  gap: 60px;
}

.step:last-child {
  margin-bottom: 0;
}

.step:nth-child(even) {
  flex-direction: row-reverse;
}

.step-num {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.95rem;
  color: var(--green-mid);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.step-copy {
  width: 100%;
  max-width: 400px;
}

.step-copy h3 {
  font-size: 1.9rem;
  color: var(--ink);
  margin-bottom: 14px;
}

.step-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.step-visual {
  width: 100%;
  max-width: 340px;
  display: flex;
  justify-content: center;
}

.visual-card {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3/4;
  background: var(--bg-card);
  border-radius: 32px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.screenshot {
  width: 65%;
  height: auto;
  aspect-ratio: 1123 / 2295;
  object-fit: cover;
  padding: 10px;
}

/* --- CTA --- */
.cta-section {
  padding: 0 28px 110px;
  display: flex;
  justify-content: center;
}

.cta-band {
  width: 100%;
  max-width: 1064px;
  background: var(--green-deep);
  border-radius: 40px;
  padding: 70px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  color: var(--bg);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.cta-band p {
  color: #D6E8CE;
  font-size: 1.05rem;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.cta-band .btn-primary {
  background: var(--bg);
  color: var(--green-deep);
  position: relative;
  z-index: 2;
}

.cta-band .btn-primary:hover {
  background: #F4FAF0;
  color: var(--green-deep);
  filter: none;
}

.cta-blob {
  position: absolute;
  width: 260px;
  height: 260px;
  background: var(--green-mid);
  opacity: 0.5;
  border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%;
  bottom: -100px;
  right: -60px;
  z-index: 1;
}

/* --- Footer --- */
footer {
  padding: 36px 28px 44px;
  border-top: 1px solid rgba(63, 107, 69, 0.15);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--green-deep);
}

/* --- Secondary Pages (Privacy / Terms) --- */
.secondary-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.legal-page {
  flex-grow: 1;
  padding: 80px 28px 120px;
  display: flex;
  justify-content: center;
}

.privacy-page,
.terms-page {
  width: 100%;
  max-width: 860px;
  background: var(--bg-card);
  border-radius: 40px;
  padding: 60px 80px;
  box-shadow: 0 12px 30px rgba(63, 107, 69, 0.08);
}

.privacy-text h1,
.terms-text h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 3rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.privacy-date,
.terms-date {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 40px;
  font-weight: 500;
}

.privacy-header,
.terms-header {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 12px;
}

.privacy-section,
.terms-section {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 24px;
}

.privacy-section a,
.terms-section a {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--green-bright);
  text-underline-offset: 4px;
  transition: all 0.2s ease;
}

.privacy-section a:hover,
.terms-section a:hover {
  color: var(--green-mid);
  text-decoration-color: var(--green-mid);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav {
    padding: 16px 24px;
  }

  .return-flag {
    padding: 0 24px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .step,
  .step:nth-child(even) {
    flex-direction: column;
    gap: 40px;
  }

  .privacy-page,
  .terms-page,
  .cta-band {
    padding: 40px 24px;
    border-radius: 24px;
  }

  .privacy-text h1,
  .terms-text h1 {
    font-size: 2.2rem;
  }
}

/* --- Scroll Reveal --- */
html.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.34, 1.25, 0.64, 1);
  will-change: transform, opacity;
}

html.js .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}