* {
  box-sizing: border-box;
}

:root {
  --cream: #f7f0df;
  --paper: rgba(255, 250, 238, 0.96);
  --ink: #1c201b;
  --green: #0b3b2e;
  --green-2: #145944;
  --red: #8f1f25;
  --border: rgba(28, 32, 27, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(143, 31, 37, 0.13), transparent 32%),
    radial-gradient(circle at bottom right, rgba(11, 59, 46, 0.18), transparent 34%),
    var(--cream);
  color: var(--ink);
}

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

.page-shell {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
}

.hero-card {
  width: min(1160px, 100%);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(27, 32, 26, 0.18);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.image-wrap {
  min-height: 720px;
  position: relative;
  overflow: hidden;
  background: #d6c9af;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.image-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 70%, rgba(255,250,238,0.16));
  pointer-events: none;
}

.content {
  padding: 56px 48px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 800;
  color: var(--green-2);
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 6vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.055em;
  color: var(--green);
}

.tagline {
  margin: 24px 0 26px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
  font-family: Georgia, "Times New Roman", serif;
  color: #473f34;
}

.status-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(11, 59, 46, 0.18);
  background: rgba(11, 59, 46, 0.07);
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(143, 31, 37, 0.1);
}

.warning {
  margin: 24px 0 26px;
  font-size: 15px;
  line-height: 1.6;
  color: #5c554a;
  max-width: 46ch;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.button {
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  grid-column: 1 / -1;
  background: var(--red);
  color: white;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(143, 31, 37, 0.18);
}

.secondary {
  background: white;
}

.disabled {
  opacity: 0.88;
  cursor: default;
  pointer-events: none;
}

.contract-card {
  margin-top: 24px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
}

.contract-label {
  font-size: 11px;
  letter-spacing: .11em;
  font-weight: 850;
  color: var(--green);
  margin-bottom: 10px;
}

.contract-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.contract-row code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 12px;
  border-radius: 10px;
  background: #f4f0e6;
  font-size: 12px;
}

.contract-row button {
  border: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--green);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.buy-button {
  margin-top: 12px;
}

.hidden {
  display: none;
}

footer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: #7a7164;
  font-size: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .page-shell {
    padding: 14px;
  }

  .hero-card {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .image-wrap {
    min-height: 56vh;
    max-height: 620px;
  }

  .image-fade {
    background: linear-gradient(180deg, transparent 72%, rgba(255,250,238,0.2));
  }

  .content {
    padding: 34px 24px 28px;
  }

  h1 {
    font-size: clamp(54px, 17vw, 82px);
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .primary {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .page-shell {
    padding: 0;
  }

  .hero-card {
    border-radius: 0;
    min-height: 100vh;
  }

  .image-wrap {
    min-height: 48vh;
  }

  .content {
    padding: 30px 20px 24px;
  }

  .tagline {
    margin-top: 18px;
  }
}
