:root {
  --green-950: #0f2f18;
  --green-900: #163d1f;
  --green-800: #1f5230;
  --green-700: #2a6b3c;
  --green-100: #e8f3ea;
  --amber-500: #f0b429;
  --amber-400: #f6c84c;
  --amber-100: #fff4d6;
  --red-600: #c62828;
  --ink: #152018;
  --ink-muted: #5a675e;
  --line: rgba(21, 32, 24, 0.08);
  --surface: #ffffff;
  --page: #f3f5f2;
  --shadow-sm: 0 1px 2px rgba(15, 47, 24, 0.05);
  --shadow: 0 12px 40px rgba(15, 47, 24, 0.1);
  --shadow-lg: 0 28px 60px rgba(15, 47, 24, 0.16);
  --radius: 20px;
  --radius-sm: 14px;
  --font: "Prompt", system-ui, sans-serif;
  --max: 1140px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  background: rgba(15, 47, 24, 0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--amber-400), #e39b12);
  color: var(--green-950);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-text small {
  font-size: 0.72rem;
  opacity: 0.72;
  font-weight: 400;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-cart {
  margin-left: 0.4rem;
  background: var(--amber-400) !important;
  color: var(--green-950) !important;
  font-weight: 650 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
}

.nav-cart:hover {
  background: var(--amber-500) !important;
}

.cart-badge {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--green-950);
  color: #fff;
  font-size: 0.7rem;
  display: inline-grid;
  place-items: center;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

main {
  position: relative;
}

/* ---------- Buttons ---------- */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--green-900);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 47, 24, 0.25);
}

.btn-primary:hover {
  background: var(--green-800);
}

.btn-secondary {
  background: #fff;
  color: var(--green-900);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.btn-accent {
  background: var(--amber-400);
  color: var(--green-950);
  box-shadow: 0 10px 24px rgba(240, 180, 41, 0.35);
}

.btn-accent:hover {
  background: var(--amber-500);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-danger {
  background: var(--red-600);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero-stage {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 28, 16, 0.35) 0%, rgba(10, 28, 16, 0.55) 45%, rgba(10, 28, 16, 0.88) 100%),
    url("https://images.unsplash.com/photo-1556910103-1c02745aae4d?w=1800&q=85") center / cover no-repeat;
  transform: scale(1.02);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, var(--page));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4.5rem;
  max-width: 720px;
  animation: fadeUp 0.8s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1.1rem;
  backdrop-filter: blur(8px);
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-brand span {
  color: var(--amber-400);
}

.hero-lead {
  margin: 0 0 1.6rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 34ch;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.95);
}

/* ---------- Concept band ---------- */
.concept-band {
  position: relative;
  margin-top: -2.5rem;
  z-index: 2;
  padding-bottom: 1rem;
}

.concept-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  background: var(--surface);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  animation: fadeUp 0.9s 0.1s ease both;
}

.concept-copy {
  padding: 2.4rem 2.2rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(246, 200, 76, 0.35), transparent 55%),
    linear-gradient(145deg, #ffe082 0%, #f6c84c 48%, #e8a317 100%);
  color: var(--ink);
}

.concept-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.concept-copy > p {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(21, 32, 24, 0.88);
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 1.2rem 0;
}

.flow span {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(21, 32, 24, 0.06);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.flow i {
  font-style: normal;
  opacity: 0.45;
  font-weight: 700;
}

.concept-visual {
  position: relative;
  min-height: 280px;
  background:
    url("https://images.unsplash.com/photo-1498837167922-ddd27525d352?w=900&q=80") center / cover no-repeat;
}

.concept-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(246, 200, 76, 0.35), transparent 40%);
}

.concept-badge {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  background: rgba(15, 47, 24, 0.88);
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  max-width: 180px;
  box-shadow: var(--shadow);
}

.concept-badge strong {
  display: block;
  color: var(--amber-400);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.concept-badge p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
}

/* ---------- Sections ---------- */
.section {
  padding: 3.5rem 0 1rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head p {
  margin: 0.4rem 0 0;
  color: var(--ink-muted);
  max-width: 40ch;
}

.panel {
  background: var(--surface);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.panel-head h1,
.panel-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}

.panel-head p {
  margin: 0.4rem 0 0;
  color: var(--ink-muted);
  max-width: 44ch;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step-card {
  position: relative;
  background: linear-gradient(180deg, #fff, #f7faf7);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem 1.3rem 1.5rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--green-900);
  color: var(--amber-400);
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

.step-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 240px;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 1.4rem;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(8, 20, 12, 0.85));
  transition: 0.3s;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature:hover::before {
  background: linear-gradient(180deg, transparent 10%, rgba(8, 20, 12, 0.9));
}

.feature > * {
  position: relative;
  z-index: 1;
}

.feature h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.feature p {
  margin: 0;
  opacity: 0.88;
  font-size: 0.92rem;
}

/* ---------- Upload / forms ---------- */
.upload-zone {
  border: 1.5px dashed rgba(21, 32, 24, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(232, 243, 234, 0.55), rgba(255, 255, 255, 0.9));
  padding: 2.2rem 1.5rem;
  text-align: center;
  transition: 0.2s;
}

.upload-zone.is-drag {
  border-color: var(--green-700);
  background: var(--green-100);
}

.upload-zone h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.upload-zone > p {
  margin: 0;
  color: var(--ink-muted);
}

.preview-wrap {
  margin-top: 1.1rem;
  display: none;
}

.preview-wrap.show {
  display: block;
}

.preview-wrap img {
  max-width: min(100%, 420px);
  margin-inline: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.2rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chip {
  background: var(--green-100);
  color: var(--green-900);
  border: 1px solid rgba(42, 107, 60, 0.15);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
}

.recipe-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.card {
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: #e8ece8;
}

.card-body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.card-body h3 {
  margin: 0;
  font-size: 1.05rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.meta b {
  color: var(--green-700);
}

.price {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-900);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: 0.15s;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(42, 107, 60, 0.15);
}

.plan-table {
  display: grid;
  gap: 0.75rem;
}

.day-row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr 1fr;
  gap: 0.55rem;
  background: #f7faf7;
  border-radius: 16px;
  padding: 0.7rem;
  border: 1px solid var(--line);
}

.day-label {
  display: grid;
  place-items: center;
  background: var(--green-900);
  color: var(--amber-400);
  border-radius: 12px;
  font-weight: 700;
}

.meal-cell {
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem;
  font-size: 0.9rem;
  border: 1px solid var(--line);
}

.meal-cell small {
  display: block;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: 0.15s;
}

.filter-btn.is-on {
  background: var(--green-900);
  color: #fff;
  border-color: var(--green-900);
}

.market-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.2rem;
  align-items: start;
}

.cart-box {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: #fff;
  border-radius: 18px;
  padding: 1.15rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.cart-box h3 {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin: 0.9rem 0;
  font-size: 1.05rem;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

th {
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 650;
}

.loading {
  display: none;
  text-align: center;
  padding: 1.8rem;
}

.loading.show {
  display: block;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(21, 32, 24, 0.1);
  border-top-color: var(--green-700);
  border-radius: 50%;
  margin: 0 auto 0.8rem;
  animation: spin 0.75s linear infinite;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: var(--green-950);
  color: #fff;
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  opacity: 0;
  transition: 0.3s;
  z-index: 120;
  font-weight: 600;
  font-size: 0.92rem;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--amber-400);
  margin-bottom: 0.5rem;
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  margin: 0.3rem 0;
  transition: color 0.15s;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h4 {
  margin: 0 0 0.6rem;
  color: #fff;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
  line-height: 1.55;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  opacity: 0.7;
}

.hidden {
  display: none !important;
}

.grass-band {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

@media (max-width: 960px) {
  .concept-shell,
  .steps,
  .feature-grid,
  .form-grid,
  .footer-grid,
  .market-layout {
    grid-template-columns: 1fr;
  }

  .day-row {
    grid-template-columns: 1fr;
  }

  .concept-visual {
    min-height: 200px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(15, 47, 24, 0.98);
    padding: 0.8rem 1rem 1.1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-cart {
    margin-left: 0;
    justify-content: center;
  }

  .hero-content {
    padding: 3.5rem 0 3rem;
  }
}
