:root {
  --bg: #160b0b;
  --surface: rgba(39, 18, 21, 0.88);
  --surface-soft: rgba(56, 25, 30, 0.82);
  --line: rgba(255, 210, 194, 0.14);
  --text: #fff6f1;
  --muted: #d0b7ae;
  --accent: #ffb36b;
  --accent-strong: #ff7a59;
  --accent-soft: #ffe2b8;
  --glow: rgba(255, 122, 89, 0.24);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 179, 107, 0.2), transparent 24%),
    radial-gradient(circle at 80% 12%, rgba(255, 122, 89, 0.18), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(255, 221, 183, 0.1), transparent 26%),
    linear-gradient(160deg, #140809 0%, #1f0f11 45%, #2a1417 100%);
}

.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 72px; }
.hero, .card, .panel, .panel-card, .tenant-card, .empty {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 24px;
}
.hero {
  padding: 40px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(72, 28, 33, 0.92), rgba(29, 12, 18, 0.98)),
    var(--surface);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.hero::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -30px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 145, 109, 0.28), transparent 66%);
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto auto -120px -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 221, 183, 0.12), transparent 70%);
  pointer-events: none;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.brand-mark img {
  width: 150px;
  max-width: 34vw;
  height: auto;
  filter: drop-shadow(0 16px 34px rgba(255, 122, 89, 0.28));
}
.brand-caption {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  flex: 1.15;
}
.hero-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(420px, 100%);
}
.hero-stage-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 206, 168, 0.2);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)),
    rgba(26, 11, 17, 0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 18px 50px rgba(0,0,0,.16);
}
.hero-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.hero-stage-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
}
.hero-flow {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.hero-flow li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 214, 193, 0.12);
}
.hero-flow strong {
  font-size: 15px;
}
.hero-flow span {
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}
.hero-stage-meta,
.hero-proof {
  display: grid;
  gap: 12px;
}
.hero-stage-meta {
  margin-top: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hero-stage-meta span,
.hero-proof div {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255, 214, 193, 0.12);
}
.hero-stage-meta span {
  color: #ffe7da;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.hero-proof {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-proof strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}
.hero-proof span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.hero-ribbon-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.hero-ribbon {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 187, 129, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: #ffe5ca;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.hero-visual-wall {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 12px;
}
.hero-visual {
  margin: 0;
  min-height: 180px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 193, 0.14);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
}
.hero-visual img,
.proof-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual-tall {
  grid-row: span 2;
  min-height: 372px;
}
.eyebrow, .mono, code { font-family: "IBM Plex Mono", monospace; }
.eyebrow { margin: 0 0 10px; color: var(--accent-soft); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
h1 { margin: 0; font-size: clamp(42px, 8vw, 72px); line-height: .96; max-width: 800px; }
.lede { margin: 16px 0 0; color: var(--muted); font-size: 20px; max-width: 720px; line-height: 1.5; }
.button {
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}
.button-primary { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #2d130f; box-shadow: 0 12px 34px var(--glow); }
.button-secondary { background: rgba(255,255,255,.03); border: 1px solid var(--line); color: #fff1ea; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 18px; }
.marketing-grid .feature-card {
  min-height: 100%;
}
.feature-card-accent {
  background:
    radial-gradient(circle at top right, rgba(255, 188, 123, 0.18), transparent 28%),
    var(--surface);
}
.card, .panel, .panel-card, .tenant-card, .empty { padding: 22px; }
.dashboard-nav,
.overview-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 24px;
}
.dashboard-nav {
  margin-top: 18px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.dashboard-nav-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dashboard-nav-brand img {
  width: 132px;
  height: auto;
}
.dashboard-nav-brand h2 {
  margin: 0;
}
.dashboard-nav-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
  margin-top: 18px;
}
.overview-card {
  padding: 20px;
}
.overview-card strong {
  display: block;
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}
.overview-card p:last-child {
  color: var(--muted);
  line-height: 1.5;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}
.workspace-main,
.workspace-sidebar {
  min-width: 0;
}
.ops-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.ops-card {
  min-height: 100%;
}
.ops-card-select {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ops-card-select input {
  margin-top: 3px;
}
.panel-sticky {
  position: sticky;
  top: 18px;
}
.info-stack p + p {
  margin-top: 12px;
}
.feature-card {
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(255, 122, 89, 0.16), transparent 70%);
}
.feature-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 12px;
}
.card h2, .panel h2, .panel-card h3, .tenant-card h3 { margin: 0 0 10px; }
.card p, .tenant-card p, .empty, .result { margin: 0; color: var(--muted); line-height: 1.6; }
.panel { margin-top: 18px; }
.brand-banner {
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(101, 36, 28, 0.9), rgba(40, 14, 21, 0.96));
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 18px;
  align-items: center;
}
.signal-band,
.comparison-band,
.proof-wall {
  margin-top: 18px;
  display: grid;
  gap: 18px;
}
.proof-wall {
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: stretch;
}
.proof-wall-copy {
  padding: 20px 8px 20px 0;
}
.proof-wall-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.04;
}
.proof-wall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 170px;
  gap: 14px;
}
.proof-tile {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 214, 193, 0.12);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
}
.proof-tile-wide {
  grid-column: span 2;
}
.proof-tile-tall {
  grid-row: span 2;
}
.signal-band {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}
.signal-card,
.comparison-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.signal-card {
  padding: 24px;
}
.signal-card h2,
.comparison-copy h2,
.comparison-card h3 {
  margin: 0 0 12px;
}
.signal-card p,
.comparison-card p,
.comparison-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.signal-card-contrast {
  background:
    linear-gradient(145deg, rgba(88, 39, 27, 0.94), rgba(45, 17, 23, 0.96));
}
.signal-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  display: grid;
  gap: 12px;
}
.signal-list li {
  line-height: 1.55;
}
.comparison-band {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
}
.comparison-copy {
  padding: 10px 0;
}
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.comparison-card {
  padding: 22px;
}
.comparison-card-strong {
  background:
    linear-gradient(160deg, rgba(103, 42, 31, 0.96), rgba(42, 17, 22, 0.96));
  border-color: rgba(255, 201, 148, 0.3);
}
.comparison-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 193, 0.14);
  background: rgba(255,255,255,0.04);
  color: #ffe0cf;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .06em;
}
.brand-banner-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
}
.lede.compact {
  font-size: 17px;
  max-width: 620px;
}
.brand-banner-mascot {
  width: min(100%, 320px);
  justify-self: end;
  filter: drop-shadow(0 22px 40px rgba(255, 122, 89, 0.28));
}
.checkout-hero-copy {
  max-width: 760px;
}
.checkout-panel {
  margin-top: 18px;
}
.checkout-card {
  display: grid;
  gap: 22px;
}
.checkout-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.checkout-summary h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
}
.checkout-summary-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.checkout-step {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 214, 193, 0.14);
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}
.checkout-step strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}
.checkout-step span {
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}
.checkout-confirm {
  display: grid;
  gap: 14px;
}
.checkout-inline-note {
  display: grid;
  gap: 10px;
  margin: 12px 0 2px;
}
.checkout-inline-note p {
  color: var(--muted);
  line-height: 1.55;
}
.section-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 18px; }
.section-head-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-avatar {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(255, 32, 32, 0.18));
}
.forms, .tenant-grid { display: grid; gap: 18px; }
.forms { grid-template-columns: repeat(2, minmax(0,1fr)); }
.tenant-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.tenant-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.tenant-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.status-pill,
.status-good,
.status-draft,
.status-warn {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .04em;
}
.status-pill,
.status-good {
  border: 1px solid rgba(77, 215, 158, 0.3);
  background: rgba(77, 215, 158, 0.12);
  color: #baf3de;
}
.status-draft {
  border: 1px solid rgba(255, 199, 87, 0.26);
  background: rgba(255, 199, 87, 0.1);
  color: #ffe4a1;
}
.status-warn {
  border: 1px solid rgba(255, 120, 120, 0.24);
  background: rgba(255, 120, 120, 0.1);
  color: #ffc2c2;
}
label,
.result,
.tenant-meta span,
.hero-ribbon,
.button,
.mono,
code {
  position: relative;
  z-index: 1;
}
input:focus,
select:focus {
  outline: 2px solid rgba(123, 227, 192, 0.5);
  outline-offset: 1px;
}
label { display: block; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
input, select {
  width: 100%;
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}
.tenant-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.tenant-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255, 72, 72, 0.18);
  color: var(--muted);
  font-size: 12px;
}
.result { margin-top: 12px; min-height: 24px; }
.checkout-brand-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.02);
}
.checkout-brand-row img {
  width: 100%;
  height: auto;
}
.flash-banner {
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-items: center;
}
.flash-banner img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}
.flash-banner h2 {
  margin: 0 0 8px;
}
.flash-success {
  background: linear-gradient(135deg, rgba(16, 49, 34, 0.92), rgba(10, 23, 40, 0.96));
}
.flash-cancelled {
  background: linear-gradient(135deg, rgba(63, 39, 8, 0.9), rgba(10, 23, 40, 0.96));
}
.empty-branded {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
}
.empty-mascot {
  width: min(100%, 220px);
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(255, 32, 32, 0.18));
}
.runtime-panel.hidden,
.empty.hidden,
.button.hidden { display: none; }
.runtime-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.log-box {
  margin: 16px 0 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.28);
  color: #d7e6fb;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 160px;
  max-height: 420px;
  overflow: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
}
.onboarding-list {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--text);
}
.onboarding-list li {
  margin-bottom: 12px;
  line-height: 1.6;
}
.info-stack > * + * {
  margin-top: 12px;
}
.team-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.compact-card {
  padding: 14px 16px;
  border-radius: 16px;
}
.input-like {
  min-width: 120px;
}

@media (max-width: 1100px) {
  .hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .signal-band,
  .comparison-band,
  .proof-wall,
  .checkout-steps {
    grid-template-columns: 1fr;
  }
  .comparison-grid,
  .hero-stage-meta,
  .hero-proof {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    width: 100%;
  }
  .proof-wall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .team-columns {
    grid-template-columns: 1fr;
  }
  .panel-sticky {
    position: static;
  }
}

@media (max-width: 860px) {
  .shell { width: min(100% - 18px, 1180px); padding-top: 14px; padding-bottom: 42px; }
  .hero, .grid, .forms, .tenant-grid, .section-head, .brand-banner, .dashboard-nav, .overview-grid, .workspace-grid, .ops-grid { display: block; }
  .hero, .card, .panel, .panel-card, .tenant-card, .empty, .brand-banner, .flash-banner { border-radius: 20px; }
  .brand-mark { display: block; }
  .brand-mark img { width: 180px; max-width: 70vw; margin-bottom: 12px; }
  .hero-stage { width: 100%; }
  .hero-stage-head { display: block; }
  .hero-stage-head .status-good { margin-top: 10px; }
  .hero-actions { margin-top: 18px; }
  .hero-ribbon-row { margin-top: 14px; }
  .dashboard-nav-meta { margin-top: 14px; }
  .runtime-actions { display: block; }
  .brand-banner-mascot { width: 220px; margin-top: 18px; }
  .checkout-summary { display: block; }
  .checkout-summary-badges { margin-top: 14px; justify-content: flex-start; }
  .hero-visual-wall,
  .proof-wall-grid { grid-template-columns: 1fr; }
  .hero-visual,
  .hero-visual-tall,
  .proof-tile,
  .proof-tile-wide,
  .proof-tile-tall {
    min-height: 220px;
    grid-column: auto;
    grid-row: auto;
  }
  .checkout-brand-row,
  .empty-branded,
  .flash-banner { grid-template-columns: 1fr; }
  .checkout-brand-row { gap: 12px; }
  .section-head-brand { align-items: flex-start; }
  .tenant-card-top { display: block; }
  .grid > * + *, .forms > * + *, .tenant-grid > * + *, .overview-grid > * + *, .workspace-grid > * + * { margin-top: 16px; }
  h1 { font-size: clamp(34px, 12vw, 52px); }
  .lede { font-size: 18px; }
  .button { width: 100%; }
  .tenant-actions .button,
  .tenant-actions a.button { width: auto; }
  .runtime-actions .button,
  .runtime-actions a.button { width: 100%; margin-top: 10px; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 14px, 1180px); }
  .hero, .card, .panel, .panel-card, .tenant-card, .empty, .brand-banner, .flash-banner {
    padding: 18px;
  }
  .section-avatar {
    width: 46px;
    height: 46px;
  }
  .hero-ribbon {
    width: 100%;
    justify-content: center;
  }
  .hero-stage-card,
  .signal-card,
  .comparison-card,
  .checkout-step {
    padding: 18px;
  }
  .tenant-actions {
    display: block;
  }
  .tenant-actions > * + * {
    margin-top: 10px;
  }
  .tenant-actions .button,
  .tenant-actions a.button {
    width: 100%;
  }
  .brand-banner-mascot,
  .empty-mascot {
    width: 180px;
  }
  .dashboard-nav-brand img {
    width: 112px;
  }
  .overview-card strong {
    font-size: 34px;
  }
  .checkout-brand-row img {
    max-width: 160px;
    margin: 0 auto;
  }
}
