:root {
  --bg: #080808;
  --panel: #111111;
  --panel-2: #171717;
  --text: #f4f4f4;
  --text-soft: #d9d9d9;
  --muted: #a6a6a6;
  --line: #2b2b2b;
  --line-strong: #4a4a4a;

  --button: #f4f4f4;
  --button-text: #080808;

  --good-bg: #dff7e6;
  --good-text: #1d7a3a;

  --bad-bg: #ffe5e5;
  --bad-text: #9b1111;

  --warn-bg: #fff2d8;
  --warn-text: #8a5a00;

  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 25% 0%, rgba(255, 255, 255, 0.06), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
}

.page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 72px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 58px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 108px;
  height: auto;
}

.top-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.top-nav a:hover {
  color: var(--text);
}

.hero {
  margin-bottom: 30px;
}

.eyebrow,
.step-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 600;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  max-width: 720px;
}

.card {
  background: rgba(17, 17, 17, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px;
  margin: 18px 0;
}

.card h2 {
  margin: 0 0 14px;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 18px;
}

label {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin: 20px 0 8px;
}

input {
  width: min(500px, 100%);
  background: #0b0b0b;
  color: var(--text);
  border: 1px solid #3b3b3b;
  border-radius: 14px;
  padding: 15px 16px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder {
  color: #696969;
}

input:focus {
  border-color: #f4f4f4;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.small-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

button {
  appearance: none;
  border: 1px solid var(--button);
  background: var(--button);
  color: var(--button-text);
  border-radius: 14px;
  padding: 14px 23px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button.secondary {
  background: transparent;
  color: var(--text);
  border-color: #5a5a5a;
}

button.secondary:hover:not(:disabled) {
  background: #181818;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.status {
  margin-top: 18px;
  border-radius: 14px;
  padding: 15px 16px;
  font-weight: 800;
  line-height: 1.45;
}

.status.muted {
  background: #1b1b1b;
  color: var(--muted);
  border: 1px solid var(--line);
}

.status.good {
  background: var(--good-bg);
  color: var(--good-text);
}

.status.bad {
  background: var(--bad-bg);
  color: var(--bad-text);
}

.status.warn {
  background: var(--warn-bg);
  color: var(--warn-text);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.info-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 76px;
}

.info-card .label {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.info-card div:last-child {
  color: var(--text);
  font-weight: 800;
  word-break: break-all;
}

pre {
  width: 100%;
  min-height: 220px;
  max-height: 420px;
  overflow: auto;
  background: #050505;
  color: #f4f4f4;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.footer {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Customer mode hides engineering detail. */
.customer-mode [data-debug],
.customer-mode .engineer-only {
  display: none !important;
}

.customer-mode .customer-only {
  display: initial;
}

.engineer-mode .customer-only {
  display: none !important;
}

/* Engineer mode makes debug information visually explicit. */
.engineer-mode [data-debug] {
  display: block;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 24px, 920px);
    padding-top: 28px;
  }

  .site-header {
    margin-bottom: 40px;
  }

  .top-nav {
    gap: 16px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .hero p {
    font-size: 16px;
  }

  .card {
    padding: 22px;
    border-radius: 18px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .button-row {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    align-items: center;
  }
}