:root {
  --gx-ink: #1a1916;
  --gx-ink-soft: #3f3d37;
  --gx-muted: #57544c;
  --gx-faint: #8a857a;
  --gx-bg: #f7f6f2;
  --gx-bg-sunken: #f2f0e9;
  --gx-surface: #ffffff;
  --gx-surface-alt: #fbfaf6;
  --gx-primary: #1f5c4d;
  --gx-primary-hover: #163f35;
  --gx-primary-ink: #0f2620;
  --gx-primary-soft: #7fb8a9;
  --gx-primary-tint: #eef7f2;
  --gx-graphite: #14181a;
  --gx-line: #e2ded4;
  --gx-line-soft: #efece4;
  --gx-warning: #b8862b;
  --gx-warning-tint: #faf5e8;
  --gx-error: #c05a4d;
  --gx-error-tint: #faeceb;
  --gx-radius-sm: 8px;
  --gx-radius-md: 10px;
  --gx-radius-lg: 14px;
  --gx-radius-xl: 18px;
  --gx-shadow-sm: 0 1px 2px rgba(60, 55, 45, 0.06);
  --gx-shadow-md: 0 30px 60px -30px rgba(15, 38, 32, 0.28);
  --gx-shadow-lg: 0 40px 90px -40px rgba(60, 55, 45, 0.34);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(127, 184, 169, 0.14), transparent 20%),
    linear-gradient(180deg, #fbfaf6 0%, var(--gx-bg) 100%);
  color: var(--gx-ink);
  font-family: "Archivo", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
.page-title,
.metric-value,
.modal-title {
  font-family: "Spectral", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--gx-ink);
}

.eyebrow,
.hero-kicker-pill,
.status-pill,
.request-meta span,
.tag {
  font-family: "Space Mono", "Consolas", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--gx-primary);
  font-size: 11px;
  font-weight: 700;
}

.muted,
.section-copy,
.public-lead,
label,
.site-footer p,
.message,
.metric-card p {
  color: var(--gx-muted);
}

.button,
.button-secondary,
.button-danger,
.button-ghost,
.tab-button {
  border-radius: 999px;
  min-height: 48px;
  padding: 0 20px;
  font-weight: 700;
  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease;
}

.button,
.button-nav-cta {
  background: var(--gx-primary);
  color: #f6f3ec;
  box-shadow: 0 16px 30px -20px rgba(15, 38, 32, 0.72);
}

.button:hover,
.button-nav-cta:hover {
  background: var(--gx-primary-hover);
  transform: translateY(-1px);
}

.button-secondary {
  background: var(--gx-primary-ink);
  color: #f6f3ec;
}

.button-danger {
  background: var(--gx-error);
  color: #fff7f6;
}

.button-ghost,
.tab-button {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--gx-line);
  color: var(--gx-ink);
}

.button-ghost:hover,
.tab-button:hover {
  border-color: rgba(31, 92, 77, 0.3);
  color: var(--gx-primary);
}

.tab-button.active,
.public-nav-link.active {
  background: var(--gx-primary-tint);
  border-color: rgba(31, 92, 77, 0.2);
  color: var(--gx-primary);
}

.panel,
.story-card,
.metric-card,
.pricing-card,
.list-item,
.auth-card,
.sidebar-card,
.modal-card,
.empty-state {
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--gx-shadow-sm);
}

.panel,
.story-card,
.metric-card,
.pricing-card,
.list-item,
.auth-card {
  position: relative;
  overflow: hidden;
}

.panel::before,
.story-card::before,
.metric-card::before,
.pricing-card::before,
.list-item::before,
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gx-primary), transparent 75%);
  opacity: 0.65;
}

.message {
  border-radius: var(--gx-radius-lg);
  border: 1px solid var(--gx-line);
  background: rgba(255, 255, 255, 0.88);
}

.message.success {
  border-color: rgba(31, 92, 77, 0.18);
  background: var(--gx-primary-tint);
  color: var(--gx-primary);
}

.message.warning {
  border-color: rgba(184, 134, 43, 0.22);
  background: var(--gx-warning-tint);
  color: #7a5922;
}

.message.error {
  border-color: rgba(192, 90, 77, 0.2);
  background: var(--gx-error-tint);
  color: #9a463c;
}

.status-pill {
  border-radius: 999px;
  border: 1px solid var(--gx-line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--gx-faint);
  font-size: 10px;
}

.status-pill.success {
  background: var(--gx-primary-tint);
  color: var(--gx-primary);
  border-color: rgba(31, 92, 77, 0.18);
}

.status-pill.warning {
  background: var(--gx-warning-tint);
  color: #7a5922;
  border-color: rgba(184, 134, 43, 0.2);
}

label input,
label textarea,
label select,
input,
textarea,
select {
  border-radius: var(--gx-radius-md);
  border: 1px solid var(--gx-line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--gx-ink);
}

label input:focus,
label textarea:focus,
label select:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(31, 92, 77, 0.5);
  box-shadow: 0 0 0 4px rgba(31, 92, 77, 0.08);
}

.toast-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 90;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  position: relative;
  transform: translateY(-8px);
  opacity: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--gx-line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--gx-ink);
  box-shadow: var(--gx-shadow-md);
  transition: transform 160ms ease, opacity 160ms ease;
}

.toast::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 14px 0 0 14px;
  background: var(--gx-primary);
}

.toast.warning::before {
  background: var(--gx-warning);
}

.toast.error::before {
  background: var(--gx-error);
}

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

@media (max-width: 720px) {
  .toast-stack {
    top: auto;
    bottom: 20px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}
