:root {
  color-scheme: light;
  --ink: #0b1514;
  --muted: #5c6b68;
  --line: #d9e2de;
  --panel: #ffffff;
  --soft: #f4f8f6;
  --emerald: #047857;
  --emerald-2: #0f9f7a;
  --gold: #b98527;
  --steel: #57706f;
  --danger: #b45309;
  --shadow: 0 24px 80px rgba(11, 21, 20, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 18, 16, 0.92) 0%, rgba(4, 18, 16, 0.72) 42%, rgba(4, 18, 16, 0.24) 100%),
    linear-gradient(0deg, rgba(4, 18, 16, 0.64) 0%, rgba(4, 18, 16, 0) 45%);
}

.topbar,
.hero-content {
  position: relative;
  z-index: 1;
}

.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav-actions,
.hero-actions,
.panel-heading,
.address-row,
.sale-stats {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  background: #fff;
  color: var(--emerald);
  padding: 8px 10px;
  border-radius: 6px;
  letter-spacing: 0;
}

.nav-actions {
  gap: 14px;
  font-size: 14px;
}

.nav-actions a {
  color: rgba(255, 255, 255, 0.82);
}

.hero-content {
  width: min(1180px, calc(100% - 40px));
  margin: 130px auto 0;
  max-width: 680px;
  margin-left: max(20px, calc((100% - 1180px) / 2));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--emerald-2);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.hero .eyebrow {
  color: #8ee0c4;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(54px, 9vw, 112px);
  line-height: 0.92;
}

h2 {
  font-size: 24px;
}

.lead {
  font-size: 19px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-btn,
.secondary-btn,
.icon-btn {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-btn {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 12px 30px rgba(4, 120, 87, 0.32);
}

.secondary-btn,
.icon-btn {
  background: #e9f1ee;
  color: var(--ink);
}

.hero .secondary-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

button:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.status-band {
  width: min(1180px, calc(100% - 40px));
  margin: -74px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.status-band div {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.status-band div:last-child {
  border-right: 0;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 8px;
}

.workspace {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 70px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items: start;
}

.side-panel,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(11, 21, 20, 0.06);
}

.side-panel {
  padding: 22px;
  position: sticky;
  top: 20px;
}

.side-panel h2 {
  margin-bottom: 20px;
}

.address-row {
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

code {
  color: var(--ink);
  background: #eef4f1;
  padding: 5px 7px;
  border-radius: 5px;
}

.health {
  margin-top: 20px;
  padding: 14px;
  border-radius: 6px;
  background: #f8f1e4;
  color: #6f4b14;
  font-weight: 700;
  line-height: 1.45;
}

.health.ok {
  background: #e6f6ee;
  color: #075d43;
}

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

.panel {
  padding: 22px;
}

.panel.wide {
  grid-column: 1 / -1;
}

.panel-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  background: #e6f6ee;
  color: var(--emerald);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.pill.warning {
  background: #fff3db;
  color: var(--danger);
}

.sale-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.sale-copy p {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 0;
}

.progress-track {
  height: 12px;
  background: #e5eeea;
  border-radius: 99px;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
}

.sale-stats {
  gap: 20px;
  margin-top: 22px;
}

.sale-stats div {
  flex: 1;
  padding: 18px;
  background: var(--soft);
  border-radius: 6px;
}

.sale-stats strong,
.sale-stats span {
  display: block;
}

.sale-stats span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

output {
  display: block;
  min-height: 22px;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.balance-box {
  padding: 24px;
  background: linear-gradient(135deg, #e7f6ef, #f7f2e8);
  border-radius: 8px;
  margin-bottom: 18px;
}

.balance-box span,
.balance-box small {
  display: block;
}

.balance-box span {
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.balance-box small {
  color: var(--muted);
  margin-top: 8px;
}

.pool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pool-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfdfc;
}

.pool-card span,
.pool-card small,
.pool-card b {
  display: block;
}

.pool-card span {
  color: var(--emerald);
  font-weight: 900;
}

.pool-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 24px;
}

.pool-card small {
  min-height: 38px;
  color: var(--muted);
}

.pool-card b {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .hero {
    min-height: 620px;
  }

  .topbar,
  .nav-actions,
  .workspace,
  .sale-layout {
    display: block;
  }

  .nav-actions {
    margin-top: 16px;
  }

  .nav-actions a,
  .nav-actions button {
    margin: 6px 8px 0 0;
  }

  .status-band,
  .main-grid,
  .pool-grid {
    grid-template-columns: 1fr;
  }

  .status-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-panel {
    position: static;
    margin-bottom: 22px;
  }

  .panel {
    margin-bottom: 22px;
  }

  .hero-content {
    margin-top: 72px;
  }
}
