:root {
  --bg: #f5efe5;
  --bg-strong: #efe0c7;
  --surface: rgba(255, 252, 245, 0.8);
  --surface-strong: #fffaf1;
  --ink: #1a1712;
  --muted: #675d4e;
  --line: rgba(26, 23, 18, 0.1);
  --accent: #bb4d00;
  --accent-strong: #8d3700;
  --accent-soft: rgba(187, 77, 0, 0.12);
  --success: #166534;
  --warning: #b45309;
  --danger: #b42318;
  --shadow: 0 20px 60px rgba(71, 49, 23, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 35%),
    linear-gradient(180deg, #f8f2e8 0%, #ead8bc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

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

.topbar,
.hero,
.panel,
.metric-card {
  backdrop-filter: blur(14px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 16px 20px;
  position: sticky;
  top: 16px;
  z-index: 10;
  box-shadow: var(--shadow);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-badge {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, #21160c, #bb4d00);
  color: #fff;
}

.brand-lockup h1,
.hero-copy h2,
.section-heading h2,
.panel-heading h3,
.feedback-result h3,
.hero-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 6px;
}

.topnav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.topnav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.hero {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 24px;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(255, 248, 237, 0.92), rgba(244, 226, 196, 0.86)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
}

.hero-copy h2 {
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 0.97;
  max-width: 12ch;
}

.hero-text,
.section-note,
.metric-footnote,
.feedback-result p,
.hero-card li,
label {
  color: var(--muted);
}

.hero-text {
  max-width: 60ch;
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 18px 0 24px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

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

.primary-button,
.ghost-button {
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 12px 30px rgba(187, 77, 0, 0.25);
}

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

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.hero-stats,
.metrics-grid,
.dashboard-grid,
.feedback-grid {
  display: grid;
  gap: 18px;
}

.hero-stats {
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-stats article,
.metric-card {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
  padding: 18px;
}

.stat-value,
.metric-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  display: block;
}

.stat-label,
.metric-label {
  color: var(--muted);
}

.hero-card {
  border-radius: var(--radius);
  background: #20150c;
  color: #fff9f2;
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -40px auto;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 191, 128, 0.36), transparent 70%);
}

.hero-card-label {
  color: rgba(255, 249, 242, 0.72);
  margin: 0 0 10px;
}

.hero-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

.dashboard-section,
.feedback-section,
.auth-shell {
  margin-top: 44px;
}

.proof-strip,
.benefit-grid,
.workflow-grid,
.pricing-grid,
.trust-grid {
  display: grid;
  gap: 18px;
}

.proof-strip {
  margin-top: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-strip article {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 250, 241, 0.62);
  box-shadow: var(--shadow);
}

.proof-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

.proof-strip strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  line-height: 1.35;
}

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

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.benefit-grid,
.workflow-grid,
.trust-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.feedback-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.panel {
  background: rgba(255, 250, 241, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

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

.benefit-card h3,
.workflow-step h3,
.pricing-card h3,
.trust-card h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
}

.benefit-card {
  min-height: 220px;
}

.workflow-step {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.94), rgba(246, 232, 208, 0.84));
  box-shadow: var(--shadow);
}

.workflow-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.pricing-card {
  display: grid;
  gap: 16px;
  min-height: 100%;
}

.pricing-card-featured {
  background:
    linear-gradient(180deg, rgba(255, 245, 231, 0.98), rgba(248, 225, 193, 0.88));
  border-color: rgba(187, 77, 0, 0.26);
  transform: translateY(-6px);
}

.price-line {
  display: flex;
  align-items: end;
  gap: 10px;
}

.price-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  line-height: 1;
}

.price-period {
  color: var(--muted);
  font-weight: 500;
}

.pricing-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.trust-card {
  min-height: 180px;
}

.stack-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(26, 23, 18, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--surface-strong);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(187, 77, 0, 0.22);
  border-color: rgba(187, 77, 0, 0.4);
}

.request-preview,
.feedback-result {
  margin-top: 18px;
  border-radius: 20px;
  padding: 18px;
  background: var(--accent-soft);
  border: 1px solid rgba(187, 77, 0, 0.16);
}

.table-card {
  display: grid;
  gap: 12px;
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.table-row-health {
  grid-template-columns: 1fr auto;
}

.table-row:last-child {
  border-bottom: none;
}

.table-row strong,
.result-pill,
.rating-chip,
.status-chip {
  font-family: "Space Grotesk", sans-serif;
}

.subtle {
  color: var(--muted);
  font-size: 0.92rem;
}

.rating-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rating-chip,
.status-chip,
.result-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.rating-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.rating-chip.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  border-color: transparent;
}

.status-chip.sent {
  background: rgba(22, 101, 52, 0.12);
  color: var(--success);
}

.status-chip.pending {
  background: rgba(180, 83, 9, 0.12);
  color: var(--warning);
}

.result-pill.public {
  background: rgba(22, 101, 52, 0.12);
  color: var(--success);
}

.result-pill.private {
  background: rgba(180, 35, 24, 0.12);
  color: var(--danger);
}

.empty-state {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .dashboard-grid,
  .feedback-grid,
  .metrics-grid,
  .auth-grid,
  .proof-strip,
  .benefit-grid,
  .workflow-grid,
  .pricing-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 20px, 1240px);
    padding-top: 14px;
  }

  .topbar {
    border-radius: 28px;
    align-items: start;
  }

  .topbar,
  .section-heading {
    flex-direction: column;
  }

  .hero {
    padding: 22px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.small-button {
  padding: 10px 14px;
}

.table-row-wide {
  grid-template-columns: 1.1fr 0.8fr 1fr 1fr;
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: start;
}

.token-wrap {
  word-break: break-all;
}

.setup-list {
  display: grid;
  gap: 10px;
}

.json-preview {
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(26, 23, 18, 0.06);
  color: var(--ink);
  overflow: auto;
  font-size: 0.85rem;
}

.feedback-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.feedback-shell {
  width: min(760px, 100%);
  display: grid;
  gap: 20px;
}

.feedback-hero-card {
  background: #20150c;
  color: #fff9f2;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.feedback-hero-card h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.feedback-lead {
  color: rgba(255, 249, 242, 0.8);
}

.feedback-standalone-panel {
  padding: 28px;
}

.site-footer {
  padding: 8px 0 4px;
  text-align: center;
  color: var(--muted-copy);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.feedback-footer {
  padding-bottom: 0;
}

@media (max-width: 720px) {
  .table-row-wide {
    grid-template-columns: 1fr;
  }
}
