@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --bg: #f6f3ee;
  --bg-alt: #f3efe8;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #7fc7a1;
  --primary-dark: #39785b;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  background: rgba(246, 243, 238, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.brand-tag {
  font-size: 14px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.hero {
  padding: 70px 0 80px;
}

.hero h1 {
  margin-bottom: 8px;
}

.lead {
  margin-top: 10px;
}
.hero-animate {
  position: relative;
  overflow: hidden;
}

.hero-animate::before,
.hero-animate::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(127, 199, 161, 0.35), rgba(127, 199, 161, 0));
  filter: blur(10px);
  opacity: 0.8;
  animation: drift 12s ease-in-out infinite;
  z-index: 0;
}

.hero-animate::before {
  top: -120px;
  left: -80px;
}

.hero-animate::after {
  bottom: -140px;
  right: -60px;
  animation-delay: -4s;
}

.hero-animate > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 600;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  margin: 12px 0 0;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  background: linear-gradient(120deg, #0f172a, #0f172a, #2f5f49);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-shimmer 6s ease-in-out infinite;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
}

.lead-small {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 360px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

.button.primary {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.button.ghost {
  background: transparent;
}

.button.light {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
}

.note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

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

.media-shell {
  width: min(360px, 90vw);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 18px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}

.media-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 22px;
  background: #f8fafc;
}

.media-placeholder {
  margin-top: 16px;
  height: 480px;
  border-radius: 30px;
  border: 2px dashed var(--line);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  position: relative;
  overflow: hidden;
}

.media-placeholder::after {
  content: '';
  position: absolute;
  inset: -40% -40%;
  background: linear-gradient(120deg, transparent, rgba(127, 199, 161, 0.15), transparent);
  transform: rotate(10deg);
  animation: sweep 8s linear infinite;
}

/* Nutri Character Styles */
.nutri-character {
  position: relative;
  width: min(280px, 70vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.nutri-body {
  width: 100%;
  animation: nutri-float 3s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.15));
  transition: transform 0.2s ease;
}

.nutri-character:hover .nutri-body {
  transform: scale(1.05);
}

.nutri-character:active .nutri-body {
  transform: scale(0.95);
}

.nutri-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.nutri-shadow {
  width: 60%;
  height: 20px;
  background: radial-gradient(ellipse, rgba(15, 23, 42, 0.15), transparent);
  border-radius: 50%;
  margin-top: -10px;
  animation: shadow-pulse 3s ease-in-out infinite;
}

.nutri-hint {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.7;
  animation: hint-fade 2s ease-in-out infinite;
}

@keyframes nutri-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(-2deg);
  }
  50% {
    transform: translateY(-8px) rotate(0deg);
  }
  75% {
    transform: translateY(-12px) rotate(2deg);
  }
}

@keyframes shadow-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.8);
    opacity: 0.6;
  }
}

@keyframes hint-fade {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .nutri-character {
    width: min(220px, 60vw);
  }
  
  .nutri-hint {
    font-size: 11px;
    margin-top: 12px;
  }
}

.section {
  padding: 70px 0;
}

.section-glide {
  animation: glide 0.7s ease;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.feature-panel {
  margin-top: 28px;
  background: #f9f7f2;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.feature-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #0f172a;
}

.feature-groups {
  display: grid;
  gap: 16px;
}

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

.feature-group.active {
  display: grid;
}

.feature-group.fade-in {
  animation: fade-up 0.4s ease both;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.why-swipe {
  margin-top: 24px;
}

.why-slide {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  font-size: 1rem;
  line-height: 1.55;
}

.why-slide.hint {
  display: none;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--muted);
}

.swipe-arrow {
  display: inline-block;
  animation: swipe 1.6s ease-in-out infinite;
}

.steps-timeline {
  position: relative;
  margin-top: 30px;
  padding-left: 36px;
}

.steps-timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(15, 23, 42, 0.1);
}

.step-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  position: relative;
}

.step-token {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--primary-dark);
  background: #fff;
}

.step-content {
  max-width: 520px;
}

.step-card {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 22px;
  display: grid;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card span {
  letter-spacing: 0.3em;
  font-size: 12px;
  color: var(--primary-dark);
}

.reveal {
  animation: fade-up 0.7s ease both;
}

.feature-card:hover,
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.section-cta {
  background: var(--primary);
  color: #fff;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 20px;
  background: #f8faf6;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 13px;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}

.privacy-hero {
  padding: 64px 0 46px;
}

.privacy-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.privacy-meta span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--muted);
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.privacy-toc {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 10px;
}

.privacy-toc h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.privacy-toc a {
  font-size: 14px;
  color: #1f2937;
}

.privacy-toc a:hover {
  color: var(--primary-dark);
}

.privacy-content {
  display: grid;
  gap: 16px;
}

.privacy-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  padding: 22px;
}

.privacy-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2.3vw, 1.8rem);
}

.privacy-card p,
.privacy-card li {
  color: #1f2937;
  line-height: 1.65;
}

.privacy-card ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.privacy-highlight {
  background: #f7fcf9;
  border-color: #cde9d8;
}

/* Cookie Policy Tables */
.privacy-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.privacy-card th,
.privacy-card td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.privacy-card th {
  background: #f8fafc;
  font-weight: 600;
}

.privacy-card tbody tr:hover {
  background: #f8fafc;
}

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

@keyframes drift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, 12px) scale(1.05);
  }
}

@keyframes sweep {
  0% {
    transform: translateX(-30%) rotate(10deg);
  }
  100% {
    transform: translateX(30%) rotate(10deg);
  }
}

@keyframes title-shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes swipe {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.7;
  }
  50% {
    transform: translateX(10px);
    opacity: 1;
  }
}

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glide {
  0% {
    transform: translateY(10px);
    box-shadow: 0 0 0 rgba(15, 23, 42, 0);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(15, 23, 42, 0);
  }
}

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

  .hero {
    padding: 50px 0 60px;
  }

  .feature-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-media {
    order: 3;
  }

  .media-placeholder {
    height: 320px;
  }

  .feature-group {
    grid-template-columns: 1fr;
  }

  .steps-timeline {
    padding-left: 28px;
  }

  .steps-timeline::before {
    left: 10px;
  }

  .step-row {
    grid-template-columns: 48px 1fr;
  }

  .step-token {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .section-head {
    align-items: flex-start;
  }

  .hero-animate::before,
  .hero-animate::after {
    width: 200px;
    height: 200px;
  }

  .feature-card,
  .step-card {
    animation: float 7s ease-in-out infinite;
  }

  .button.primary {
    animation: pulse 3s ease-in-out infinite;
  }

  .why-swipe {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .why-swipe::-webkit-scrollbar {
    display: none;
  }

  .why-slide {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .why-slide.hint {
    display: flex;
  }

  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .privacy-toc {
    position: static;
  }
}

@media (max-width: 520px) {
  .feature-tabs {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}
