:root {
  color-scheme: light;
  --bg: #f4efe4;
  --surface: rgba(255, 251, 242, 0.88);
  --surface-strong: #fffaf0;
  --text: #171411;
  --muted: #62574b;
  --line: rgba(23, 20, 17, 0.12);
  --accent: #0f6b52;
  --accent-strong: #0a4a39;
  --accent-soft: #d4efe0;
  --warning: #8f4e17;
  --shadow: 0 24px 60px rgba(23, 20, 17, 0.1);
  --focus-ring: rgba(15, 107, 82, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 210, 123, 0.42), transparent 30%),
    radial-gradient(circle at top right, rgba(15, 107, 82, 0.18), transparent 32%),
    linear-gradient(180deg, #f8f4ea 0%, #efe6d4 100%);
}

a,
button,
textarea {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

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

.packages {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  scroll-margin-top: 20px;
}

.hero::after,
.wallet-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, rgba(15, 107, 82, 0.28), rgba(255, 210, 123, 0.2));
  border-radius: 50%;
  filter: blur(8px);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

h1,
h2,
h3,
.wallet-address,
.status-strip,
.number-list {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

p,
li {
  color: var(--muted);
  line-height: 1.6;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.hero-copy {
  max-width: 70ch;
  font-size: 1.06rem;
}

.hero-panel,
.process-card {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(23, 20, 17, 0.08);
  background: rgba(255, 255, 255, 0.64);
}

.panel-title,
.process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-step {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
}

.compact-list {
  padding-left: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #f8fff8;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 28px rgba(15, 107, 82, 0.24);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(23, 20, 17, 0.14);
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.status-strip span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(23, 20, 17, 0.08);
  color: var(--text);
  font-size: 0.92rem;
}

.detail-list,
.number-list {
  padding-left: 20px;
  margin-bottom: 0;
}

.detail-list li + li,
.number-list li + li {
  margin-top: 9px;
}

.section-heading {
  margin-bottom: 18px;
}

.package-card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(23, 20, 17, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.package-card.featured {
  background: linear-gradient(180deg, rgba(15, 107, 82, 0.08), rgba(255, 255, 255, 0.9));
  border-color: rgba(15, 107, 82, 0.22);
}

.package-tier {
  margin: 0 0 8px;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.package-title {
  margin-top: -4px;
  color: var(--text);
  font-weight: 700;
}

.wallet-note {
  margin-top: -4px;
  color: var(--warning);
}

.wallet-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  margin-top: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(23, 20, 17, 0.08);
}

.wallet-label {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.wallet-address {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: var(--text);
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.brief-copy {
  margin-top: -2px;
}

.brief-label {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 600;
}

.brief-template {
  width: 100%;
  min-height: 220px;
  padding: 16px;
  border: 1px solid rgba(23, 20, 17, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  font: 0.95rem/1.5 "IBM Plex Mono", monospace;
  resize: vertical;
}

.brief-template:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(15, 107, 82, 0.12);
}

.footer-card {
  margin-top: 20px;
  background: linear-gradient(135deg, rgba(15, 107, 82, 0.08), rgba(255, 255, 255, 0.82));
}

.footer-line {
  margin: 0;
  color: var(--text);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  max-width: calc(100vw - 40px);
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(23, 20, 17, 0.9);
  color: #fffdf8;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .two-up,
  .packages,
  .process-grid,
  .terms-grid,
  .hero-layout,
  .wallet-box {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100vw - 20px, 1120px);
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .card {
    padding: 22px;
    border-radius: 20px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .status-strip {
    gap: 8px;
  }

  .toast {
    right: 12px;
    left: 12px;
    bottom: 12px;
    max-width: none;
  }
}

@media (max-width: 560px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(255, 210, 123, 0.34), transparent 36%),
      radial-gradient(circle at top right, rgba(15, 107, 82, 0.16), transparent 40%),
      linear-gradient(180deg, #f8f4ea 0%, #efe6d4 100%);
  }

  .page-shell {
    width: min(100vw - 16px, 1120px);
    padding-bottom: 32px;
  }

  .card {
    padding: 18px;
    border-radius: 18px;
  }

  .brief-template {
    min-height: 240px;
  }
}
