:root {
  --ink: #0f1d1a;
  --muted: #344744;
  --accent: #0b6f5c;
  --accent-2: #e07a5f;
  --surface: rgba(255, 255, 255, 0.85);
  --shadow: 0 24px 60px rgba(15, 29, 26, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: linear-gradient(140deg, #f7efe5 0%, #e5f4f7 55%, #f9f5e9 100%);
}

.page {
  min-height: 100vh;
  padding: 40px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
  overflow: hidden;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at top, rgba(11, 111, 92, 0.2), transparent 70%);
  pointer-events: none;
}

.page::before {
  top: -180px;
  right: -140px;
}

.page::after {
  bottom: -220px;
  left: -160px;
  background: radial-gradient(circle at top, rgba(224, 122, 95, 0.22), transparent 70%);
}

.page > * {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.nav a:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.hero {
  display: grid;
  gap: 28px;
}

.hero-card {
  background: var(--surface);
  padding: 36px 32px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  max-width: 620px;
  animation: riseIn 0.7s ease-out;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 111, 92, 0.12);
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-weight: 600;
}

.hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.05;
}

.hero p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(11, 111, 92, 0.28);
}

.btn.ghost {
  border: 1px solid rgba(11, 111, 92, 0.2);
  color: var(--accent);
  background: #fff;
}

.btn:hover {
  transform: translateY(-2px);
}

.stat-grid {
  display: grid;
  gap: 16px;
}

.stat {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 12px 30px rgba(15, 29, 26, 0.12);
  animation: riseIn 0.7s ease-out;
  animation-delay: 0.1s;
  animation-fill-mode: both;
}

.stat-number {
  display: block;
  font-weight: 600;
  font-size: 18px;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.center {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.cart-page .hero-card {
  max-width: none;
}

.cart-content {
  display: grid;
  gap: 24px;
}

.cart-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.cart-status {
  font-size: 13px;
  color: var(--muted);
}

.cart-env {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.cart-panel {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  animation: riseIn 0.7s ease-out;
  animation-delay: 0.1s;
  animation-fill-mode: both;
}

.json-output {
  margin: 0;
  font-family: "Space Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
