:root {
  --soil-deep: #1a1208;
  --soil-mid: #2e1f0e;
  --soil-warm: #3d2b14;
  --soil-light: #5c3d1e;
  --humus: #7a5230;
  --clay: #a06b3c;
  --sand: #c8965a;
  --straw: #e8c07a;
  --cream: #f5e8cc;
  --leaf-dark: #2d4a1e;
  --leaf: #4a7a30;
  --leaf-bright: #72b84a;
  --sprout: #a8d878;
  --worm-pink: #c87060;
  --worm-light: #e8a090;
  --gold: #d4a240;
  --gold-bright: #f0c060;
}

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

body {
  background-color: var(--soil-deep);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(74, 122, 48, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(200, 112, 96, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(90, 61, 30, 0.4) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* ── Navigation ── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 18, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--soil-warm);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand span {
  color: var(--sprout);
  font-size: 22px;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--sand);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--cream);
  background: rgba(255,255,255,0.06);
}

.nav-links a.active {
  color: var(--sprout);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 700px) {
  .mobile-menu-btn { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(26, 18, 8, 0.97);
    flex-direction: column;
    padding: 12px 24px;
    border-bottom: 1px solid var(--soil-warm);
  }
  .nav-links.open { display: flex; }
}

/* ── Wrapper ── */
.wrapper {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Headers ── */
header {
  padding: 56px 0 40px;
  text-align: center;
}

.brand-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--leaf-bright);
  margin-bottom: 16px;
  display: block;
}

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 6.5vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 16px;
}

h1 em { font-style: italic; color: var(--sprout); }

.tagline {
  font-size: 16px;
  color: var(--sand);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Worm divider ── */
.worm-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0;
  justify-content: center;
}

.worm-divider::before, .worm-divider::after {
  content: '';
  height: 1px;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--humus));
}

.worm-divider::after {
  background: linear-gradient(to left, transparent, var(--humus));
}

.worm-icon {
  font-size: 18px;
  transform: rotate(-10deg);
  display: inline-block;
  animation: wiggle 4s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg) scaleX(-1); }
}

/* ── Buttons ── */
.btn-grow {
  background: linear-gradient(135deg, var(--leaf) 0%, var(--leaf-bright) 100%);
  color: var(--soil-deep);
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-grow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(114, 184, 74, 0.3);
}

.btn-grow:active { transform: translateY(0); }
.btn-grow:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--soil-deep);
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 162, 64, 0.3);
}

/* ── Cards ── */
.card {
  background: linear-gradient(160deg, var(--soil-warm) 0%, var(--soil-mid) 100%);
  border: 1px solid var(--humus);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--leaf-bright), var(--gold));
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  border-color: var(--leaf);
}

/* ── Input panel ── */
.input-panel {
  background: linear-gradient(135deg, var(--soil-warm) 0%, var(--soil-mid) 100%);
  border: 1px solid var(--humus);
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.input-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--leaf), var(--gold), var(--leaf-bright));
}

label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 10px;
}

input[type="text"], input[type="email"], input[type="number"], input[type="tel"], select, textarea {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--humus);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input::placeholder, textarea::placeholder { color: var(--humus); }

input:focus, select:focus, textarea:focus {
  border-color: var(--leaf-bright);
  box-shadow: 0 0 0 3px rgba(114, 184, 74, 0.15);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c8965a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select option { background: var(--soil-mid); color: var(--cream); }

textarea { resize: vertical; min-height: 100px; }

/* ── Section headings ── */
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--soil-warm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading .icon { font-size: 22px; }

/* ── Footer ── */
footer {
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--humus);
  letter-spacing: 0.1em;
  padding-top: 40px;
  border-top: 1px solid var(--soil-warm);
  margin-top: 40px;
}

footer a { color: var(--clay); text-decoration: none; }
footer a:hover { color: var(--sand); }

/* ── Utility ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.mb-40 { margin-bottom: 40px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.5s ease both; }

/* ── Loading ── */
.loading-box {
  text-align: center;
  padding: 60px 20px;
}

.loading-worm {
  font-size: 40px;
  display: inline-block;
  animation: crawl 1.2s ease-in-out infinite;
}

@keyframes crawl {
  0% { transform: translateX(-20px) scaleX(1); }
  49% { transform: translateX(20px) scaleX(1); }
  50% { transform: translateX(20px) scaleX(-1); }
  99% { transform: translateX(-20px) scaleX(-1); }
  100% { transform: translateX(-20px) scaleX(1); }
}

.loading-text {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--sand);
  margin-top: 16px;
  letter-spacing: 0.1em;
}

/* ── Error box ── */
.error-box {
  display: none;
  background: rgba(200, 112, 96, 0.12);
  border: 1px solid var(--worm-pink);
  border-radius: 12px;
  padding: 20px 24px;
  color: var(--worm-light);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ── Success box ── */
.success-box {
  background: rgba(74, 122, 48, 0.15);
  border: 1px solid var(--leaf);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: var(--sprout);
  font-size: 16px;
}

@media (max-width: 560px) {
  .input-panel { padding: 24px 20px; }
  .wrapper { padding: 0 16px 60px; }
}
