:root {
  --bg: #f7f8f2;
  --surface: #ffffff;
  --text: #172016;
  --muted: #66705f;
  --line: #e2e8dc;
  --primary: #3f7d20;
  --primary-dark: #2f6418;
  --primary-soft: #e9f5df;
  --accent: #d98b18;
  --danger: #b91c1c;
  --shadow: 0 18px 50px rgba(20, 32, 29, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 248, 247, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223, 231, 227, 0.8);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--primary), #1d4f1a);
  box-shadow: 0 10px 24px rgba(63, 125, 32, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--text);
}

.button {
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(63, 125, 32, 0.24);
}

.button:hover {
  background: var(--primary-dark);
}

.button.secondary {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.button.ghost {
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: none;
}

.hero {
  padding: 58px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  gap: 28px;
  align-items: stretch;
}

.hero-card,
.panel,
.opportunity-card,
.form-card,
.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: clamp(26px, 5vw, 52px);
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -120px;
  top: -120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(63, 125, 32, 0.18), transparent 68%);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto 42px 34px auto;
  width: 120px;
  height: 120px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(217, 139, 24, 0.24), rgba(63, 125, 32, 0.05));
  transform: rotate(12deg);
}

.eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

h1 {
  max-width: 820px;
  margin-top: 14px;
  font-size: clamp(36px, 6vw, 68px);
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  font-size: 21px;
}

.lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions,
.section-head,
.filters,
.card-actions,
.form-actions,
.success-actions,
.meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 28px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.trust-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 13px;
}

.trust-item strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.panel {
  padding: 18px;
}

.video-teaser {
  width: min(100%, 310px);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 34px;
  background: linear-gradient(135deg, #11180f, #3f7d20);
  display: grid;
  place-items: center;
  color: white;
  overflow: hidden;
  position: relative;
  border: 10px solid #101816;
  box-shadow: 0 24px 70px rgba(10, 18, 16, 0.28);
}

.video-teaser img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
}

.video-teaser::after,
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 18, 16, 0.58), transparent 46%),
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.18), transparent 22%);
  pointer-events: none;
}

.play {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-weight: 900;
  z-index: 2;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.stat {
  padding: 14px;
  border-radius: 16px;
  background: #f7faf9;
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: 22px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 34px 0;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head p {
  max-width: 620px;
  color: var(--muted);
  margin: 10px 0 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.opportunity-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.opportunity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(20, 32, 29, 0.13);
}

.thumb {
  display: block;
  aspect-ratio: 9 / 16;
  background: #10201c;
  position: relative;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 180ms ease;
}

.opportunity-card:hover .thumb img {
  transform: scale(1.035);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(63, 125, 32, 0.12);
  z-index: 2;
}

.badge.sold {
  color: var(--danger);
  background: rgba(185, 28, 28, 0.1);
}

.badge.pending {
  color: #92400e;
  background: rgba(217, 139, 24, 0.15);
}

.thumb .badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.thumb .play {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.card-body {
  padding: 16px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.card-title {
  margin-top: 10px;
  font-size: 18px;
}

.card-text {
  color: var(--muted);
  margin: 10px 0 16px;
  font-size: 14px;
}

.price {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.meta-row {
  color: var(--muted);
  font-size: 13px;
}

.card-actions {
  margin-top: auto;
}

.filters {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.filters select {
  min-width: 170px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  padding: 11px 14px;
}

.detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.52fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.video-frame {
  width: min(100%, 430px);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 36px;
  background: #101f1c;
  border: 10px solid #101816;
  box-shadow: 0 26px 80px rgba(10, 18, 16, 0.26);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.content-card,
.form-card {
  padding: 22px;
}

.detail-copy {
  display: grid;
  gap: 18px;
}

.listing-text {
  white-space: pre-line;
  color: #26332f;
}

.sticky-card {
  position: sticky;
  top: 88px;
}

.opportunity-note {
  border-color: rgba(217, 139, 24, 0.34);
  background:
    linear-gradient(135deg, rgba(217, 139, 24, 0.15), rgba(255, 255, 255, 0.94) 42%),
    #fff;
}

.opportunity-note .eyebrow {
  color: #a16207;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 12px 13px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.checks {
  display: grid;
  gap: 10px;
  margin: 4px 0;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
}

.check input {
  margin-top: 3px;
}

.success-box {
  display: none;
  padding: 18px;
  border-radius: 18px;
  background: rgba(63, 125, 32, 0.1);
  border: 1px solid rgba(63, 125, 32, 0.22);
}

.success-box.is-visible {
  display: block;
}

.error-box {
  display: none;
  padding: 12px;
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 14px;
}

.error-box.is-visible {
  display: block;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 16, 0.48);
}

.modal-panel {
  position: absolute;
  width: min(560px, calc(100% - 24px));
  max-height: min(90vh, 820px);
  overflow: auto;
  right: 12px;
  bottom: 12px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(10, 18, 16, 0.32);
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 0;
}

.icon-button {
  border: 0;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  background: #eef4f2;
  cursor: pointer;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: var(--primary);
}

.prose {
  color: #26332f;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose a {
  color: var(--primary);
  font-weight: 800;
}

.footer {
  margin-top: auto;
  padding: 34px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}

.empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
}

.small {
  color: var(--muted);
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  .hero-grid,
  .detail {
    grid-template-columns: 1fr;
  }

  .grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .sticky-card {
    position: static;
  }
}

@media (max-width: 1120px) and (min-width: 921px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 22px, 1120px);
  }

  .nav {
    align-items: start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 30px;
  }

  .hero-card,
  .content-card,
  .form-card {
    padding: 18px;
  }

  .trust-strip,
  .grid,
  .steps,
  .quick-stats {
    grid-template-columns: 1fr;
  }

  .opportunity-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .thumb {
    height: 100%;
    min-height: 228px;
  }

  .card-body {
    min-width: 0;
  }

  .card-actions .button {
    width: auto;
  }

  .button {
    width: 100%;
  }

  .filters select {
    width: 100%;
  }

  .modal-panel {
    width: 100%;
    right: 0;
    bottom: 0;
    border-radius: 24px 24px 0 0;
  }
}
