:root {
  color-scheme: dark;
  --bg: #080706;
  --smoke: #0f0d0b;
  --panel: rgba(18, 16, 14, 0.82);
  --panel-strong: rgba(25, 21, 18, 0.92);
  --line: rgba(255, 164, 92, 0.16);
  --line-strong: rgba(255, 164, 92, 0.34);
  --text: #f4efe7;
  --muted: #a99f92;
  --faint: #746b60;
  --ember: #ff8a3d;
  --ember-soft: rgba(255, 138, 61, 0.14);
  --archive: #70d89d;
  --unsub: #63c8d7;
  --needs: #f2c45b;
  --reply: #b99cff;
  --quarantine: #ff6f66;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(255, 138, 61, 0.042) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    var(--bg);
  background-size: 76px 76px;
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: 0;
}

.page-shell {
  min-height: 100vh;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 36px);
}

.hero {
  position: relative;
  min-height: min(820px, calc(100vh - 48px));
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(690px, 100%);
  padding: clamp(24px, 5vw, 58px) 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--ember);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(54px, 9vw, 118px);
  line-height: 0.86;
  font-weight: 870;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(26px, 4vw, 44px);
  line-height: 0.98;
  font-weight: 840;
  letter-spacing: 0;
}

.pitch {
  max-width: 640px;
  margin-top: 26px;
  color: var(--text);
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.42;
}

.proof-list {
  max-width: 700px;
  margin: 30px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.proof-list li {
  min-height: 52px;
  padding: 11px 13px 11px 15px;
  border-left: 3px solid var(--ember);
  background: rgba(18, 16, 14, 0.78);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.25;
  text-transform: uppercase;
}

.proof-list li:nth-child(2) {
  border-left-color: var(--unsub);
}

.proof-list li:nth-child(3) {
  border-left-color: var(--needs);
}

.signup-form {
  max-width: 650px;
}

.signup-form label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input,
button {
  min-height: 56px;
  border-radius: 8px;
  font: inherit;
  letter-spacing: 0;
}

input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: rgba(10, 9, 8, 0.9);
  color: var(--text);
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.026);
}

input::placeholder {
  color: var(--faint);
}

input:focus {
  border-color: rgba(255, 138, 61, 0.78);
  outline: 2px solid rgba(255, 138, 61, 0.26);
  outline-offset: 3px;
}

button {
  border: 1px solid rgba(255, 138, 61, 0.78);
  background: var(--ember);
  color: #130905;
  padding: 0 24px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(255, 138, 61, 0.16);
}

button:hover:not(:disabled) {
  background: #ffae6a;
}

button:focus-visible {
  outline: 2px solid rgba(255, 138, 61, 0.78);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.form-message {
  min-height: 30px;
  margin: 12px 0 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.form-message:not(:empty) {
  padding: 9px 11px;
  background: rgba(18, 16, 14, 0.82);
}

.form-message.success {
  border-color: rgba(112, 216, 157, 0.35);
  color: var(--archive);
}

.form-message.duplicate {
  border-color: rgba(242, 196, 91, 0.36);
  color: var(--needs);
}

.form-message.error {
  border-color: rgba(255, 111, 102, 0.4);
  color: var(--quarantine);
}

.meta-row {
  max-width: 650px;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 22px;
}

.meta-row p {
  margin: 0;
}

#signup-count {
  color: var(--ember);
  font-family: var(--mono);
  font-size: clamp(20px, 3vw, 34px);
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  line-height: 1;
}

a {
  color: var(--ember);
  text-decoration: none;
  text-underline-offset: 4px;
}

a:hover,
a:focus-visible {
  color: #ffae6a;
  outline: none;
  text-decoration: underline;
}

.meta-row a {
  color: var(--unsub);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inbox-visual {
  position: absolute;
  z-index: 1;
  top: 12%;
  right: 0;
  bottom: 8%;
  left: clamp(500px, 48vw, 560px);
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 138, 61, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(10, 9, 8, 0.88);
  background-size: 44px 44px;
  overflow: hidden;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(14px);
}

.visual-topline {
  height: 46px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(25, 21, 18, 0.9);
}

.visual-topline span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.visual-topline span:first-child {
  background: var(--quarantine);
}

.visual-topline span:nth-child(2) {
  background: var(--needs);
}

.visual-topline span:nth-child(3) {
  background: var(--ember);
}

.visual-grid {
  min-height: calc(100% - 46px);
  padding: 16px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
}

.mail-stack {
  display: grid;
  align-content: center;
  gap: 10px;
}

.mail-row {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 16, 14, 0.86);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mail-row strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.mail-row span {
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 5px 8px;
  border: 1px solid rgba(112, 216, 157, 0.35);
  border-radius: 999px;
  background: rgba(112, 216, 157, 0.12);
  color: var(--archive);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.mail-row.decision-unsub span {
  border-color: rgba(99, 200, 215, 0.38);
  background: rgba(99, 200, 215, 0.12);
  color: var(--unsub);
}

.mail-row.decision-reply span {
  border-color: rgba(185, 156, 255, 0.43);
  background: rgba(185, 156, 255, 0.13);
  color: var(--reply);
}

.mail-row.decision-quarantine span {
  border-color: rgba(255, 111, 102, 0.48);
  background: rgba(255, 111, 102, 0.13);
  color: var(--quarantine);
}

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

.audit-stream span {
  min-height: 40px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 7, 6, 0.64);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.25;
}

.visitor-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 14px;
  margin: 12px 0 36px;
}

.visitor-section {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 16, 14, 0.82);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
}

.visitor-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--ember);
}

.visitor-section p {
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

.setup-steps {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: setup;
  display: grid;
  gap: 12px;
}

.setup-steps li {
  position: relative;
  min-height: 48px;
  padding: 0 0 0 54px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.setup-steps li::before {
  counter-increment: setup;
  content: counter(setup);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ember);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

code {
  border: 1px solid rgba(255, 164, 92, 0.2);
  border-radius: 6px;
  background: rgba(8, 7, 6, 0.7);
  color: var(--text);
  padding: 2px 5px;
  font-family: var(--mono);
  font-size: 0.92em;
}

.visitor-section .approval-note {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--needs);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 780;
}

@media (max-width: 980px) {
  .page-shell {
    padding: 18px;
  }

  .hero {
    min-height: auto;
    overflow: visible;
  }

  .hero-content {
    padding-top: 12px;
  }

  .inbox-visual {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    min-height: 390px;
    margin-top: 36px;
  }

  .proof-list,
  .visitor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    background-size: 56px 56px;
  }

  .page-shell {
    padding: 16px;
  }

  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 30px;
  }

  .pitch,
  .visitor-section p {
    font-size: 17px;
  }

  .form-row,
  .audit-stream {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  .meta-row {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
