:root {
  --bg: #f5f0e8;
  --bg-deep: #e8e0d1;
  --panel: rgba(255, 252, 246, 0.68);
  --panel-soft: rgba(255, 252, 246, 0.54);
  --ink: #1c1814;
  --muted: #6e6457;
  --line: rgba(52, 42, 32, 0.09);
  --line-strong: rgba(52, 42, 32, 0.16);
  --accent: #1e4d3e;
  --accent-bright: #c89b3c;
  --accent-rose: #8f5f56;
  --success: #1f6b53;
  --warning: #9b5b12;
  --danger: #a63e35;
  --shadow-xl: 0 34px 90px rgba(56, 40, 24, 0.14);
  --shadow-lg: 0 22px 56px rgba(56, 40, 24, 0.1);
  --shadow-md: 0 14px 30px rgba(56, 40, 24, 0.08);
  --blur: blur(22px);
  --radius-xxl: 34px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(200, 155, 60, 0.18), transparent 24%),
    radial-gradient(circle at 85% 14%, rgba(30, 77, 62, 0.1), transparent 20%),
    linear-gradient(180deg, #fbf7f0 0%, var(--bg) 44%, var(--bg-deep) 100%);
  animation: pageGlow 18s ease-in-out infinite alternate;
}

.bg-orb {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.72;
  pointer-events: none;
  z-index: 0;
}

.orb-one {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(200, 155, 60, 0.22), rgba(200, 155, 60, 0));
}

.orb-two {
  width: 340px;
  height: 340px;
  top: 220px;
  right: -80px;
  background: radial-gradient(circle, rgba(30, 77, 62, 0.14), rgba(30, 77, 62, 0));
}

.orb-three {
  width: 360px;
  height: 360px;
  bottom: 40px;
  left: 12%;
  background: radial-gradient(circle, rgba(143, 95, 86, 0.12), rgba(143, 95, 86, 0));
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(28, 24, 20, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 24, 20, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 46%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 56px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border-radius: var(--radius-xxl);
  background:
    linear-gradient(135deg, rgba(18, 31, 27, 0.94), rgba(38, 28, 24, 0.88)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  color: #fbf6ef;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
  animation: riseIn 0.7s ease-out both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -12%;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(200, 155, 60, 0.22), transparent 68%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -32% auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(31, 107, 83, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-main,
.hero-status {
  position: relative;
  z-index: 1;
}

.hero-main {
  flex: 1;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(244, 227, 177, 0.88);
}

.hero h1,
.section-band h2,
.card h2,
.card h3 {
  font-family: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 0.98;
  max-width: 760px;
}

.hero-copy {
  max-width: 820px;
  margin: 18px 0 0;
  line-height: 1.8;
  color: rgba(251, 246, 239, 0.82);
  font-size: 15px;
}

.hero-nav,
.hero-actions,
.inline-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-nav {
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: #f8f1e5;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: transform 220ms ease, background 220ms ease;
}

.hero-nav-link:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.hero-actions {
  margin-top: 26px;
  flex-wrap: wrap;
}

.wrap {
  flex-wrap: wrap;
}

.hero-status {
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.status-label {
  color: rgba(251, 246, 239, 0.72);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.status-pill.ok { background: rgba(31, 107, 83, 0.18); }
.status-pill.degraded,
.status-pill.warning { background: rgba(200, 155, 60, 0.18); }
.status-pill.critical { background: rgba(166, 62, 53, 0.22); }

.status-box {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.status-box-title {
  font-size: 13px;
  color: rgba(251, 246, 239, 0.72);
}

.status-box-value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 800;
}

.status-box-note {
  margin-top: 10px;
  color: rgba(251, 246, 239, 0.74);
  line-height: 1.55;
}

.status-mini-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-mini-card,
.info-tile {
  position: relative;
  overflow: hidden;
}

.status-mini-card {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 122px;
  backdrop-filter: blur(12px);
}

.status-mini-card strong {
  display: block;
  margin-top: 12px;
  font-size: 30px;
}

.status-mini-card span:last-child {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(251, 246, 239, 0.74);
}

.status-mini-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(251, 246, 239, 0.72);
}

.shimmer-card::after,
.luxe-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  animation: shimmerSweep 7s ease-in-out infinite;
  pointer-events: none;
}

.top-gap { margin-top: 24px; }
.top-gap-sm { margin-top: 10px; }

.grid {
  display: grid;
  gap: 20px;
}

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

.card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow-lg);
  backdrop-filter: var(--blur);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 72px rgba(56, 40, 24, 0.14);
  border-color: rgba(255, 255, 255, 0.62);
}

.nested-card {
  background: var(--panel-soft);
  box-shadow: var(--shadow-md);
}

.technical-shell {
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.6), rgba(255, 252, 246, 0.72));
}

.workspace-shell {
  padding: 26px;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(20px);
}

.workspace-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.crm-shell {
  background:
    radial-gradient(circle at top right, rgba(200, 155, 60, 0.15), transparent 26%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.64), rgba(255, 252, 246, 0.78));
}

.whatsapp-shell {
  background:
    radial-gradient(circle at top left, rgba(30, 77, 62, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(248, 250, 247, 0.6), rgba(255, 252, 246, 0.74));
}

.workspace-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.workspace-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.section-band {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.section-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-rose);
}

.section-head,
.section-subtle-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.card h2,
.card h3,
.section-band h2 {
  margin: 0 0 8px;
}

.section-description,
.hint,
.metric-caption {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.divider {
  height: 1px;
  margin: 20px 0;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.info-box {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.info-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-grid .info-tile strong {
  font-size: 30px;
}

.info-tile {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.36));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.info-tile span { color: var(--muted); font-size: 13px; }
.info-tile strong { font-size: 28px; color: var(--accent); }
.info-tile small { color: var(--muted); }

.info-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.info-label {
  color: var(--muted);
  font-size: 14px;
}

.info-value {
  font-weight: 700;
  text-align: right;
}

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

input,
select,
button,
code {
  min-height: 48px;
  border-radius: 15px;
  border: 1px solid var(--line);
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

button {
  padding: 0 18px;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #204d3f, #17392f);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(30, 77, 62, 0.18);
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.44);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.secondary-button {
  background: linear-gradient(135deg, #e0bb65, #b8872f);
  color: #23180d;
  box-shadow: 0 16px 28px rgba(184, 135, 47, 0.22);
}

.light-button {
  color: #f9f4eb;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.list-stack {
  display: grid;
  gap: 12px;
}

.list-item {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.list-item p {
  margin: 10px 0 0;
  line-height: 1.65;
}

.list-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 144px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.28));
}

.branded-empty {
  min-height: 220px;
  gap: 8px;
  padding: 26px;
}

.empty-illustration {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(200, 155, 60, 0.18), rgba(30, 77, 62, 0.14));
  color: var(--accent);
  font-size: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.empty-title {
  font-family: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.1;
  color: var(--ink);
}

.empty-copy {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.7;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.success { background: rgba(31, 107, 83, 0.12); color: var(--success); }
.badge.warning { background: rgba(155, 91, 18, 0.12); color: var(--warning); }
.badge.danger { background: rgba(166, 62, 53, 0.12); color: var(--danger); }
.badge.neutral { background: rgba(110, 100, 87, 0.12); color: #51473d; }

.inline-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(166, 62, 53, 0.08);
  color: var(--danger);
}

.debug-block {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.debug-block summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
}

.output {
  margin: 0;
  min-height: 140px;
  padding: 14px;
  overflow: auto;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.95);
  color: #e8f8ea;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.compact-output { min-height: 100px; }
.output-large { min-height: 280px; }

code {
  min-height: auto;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(30, 77, 62, 0.08);
}

details summary {
  cursor: pointer;
  font-weight: 700;
}

@keyframes shimmerSweep {
  0%, 70%, 100% { transform: translateX(-120%); }
  82% { transform: translateX(120%); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pageGlow {
  from { background-position: 0% 0%, 100% 0%, 0 0; }
  to { background-position: 2% 4%, 98% 2%, 0 0; }
}

@media (max-width: 1100px) {
  .hero,
  .workspace-head {
    flex-direction: column;
  }

  .status-mini-grid,
  .info-grid,
  .two-up,
  .three-up {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 20px, 1360px);
    padding: 18px 0 40px;
  }

  .hero,
  .workspace-shell,
  .card {
    padding: 18px;
  }

  .hero-nav,
  .inline-actions,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-nav-link {
    width: 100%;
    justify-content: center;
  }
}
