: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;
}

.compact-hero {
  margin-bottom: 20px;
}

.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;
}

.compact-hero h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.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;
}

.subtle-card {
  box-shadow: none;
  background: rgba(15, 15, 15, 0.82);
}

.card h2 {
  margin: 0 0 14px;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.card p,
.card-note {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 18px;
}

.card-note {
  margin: 18px 0 0;
}

.card-note a,
.text-link {
  color: var(--text);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.form-row.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin: 20px 0 8px;
}

input,
select,
textarea {
  width: 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;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

input::placeholder,
textarea::placeholder {
  color: #696969;
}

input:focus,
select:focus,
textarea: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;
  line-height: 1.4;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

button,
.button-link {
  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;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
}

button:hover:not(:disabled),
.button-link:hover {
  transform: translateY(-1px);
}

button:active:not(:disabled),
.button-link:active {
  transform: translateY(0);
}

button.secondary,
.button-link.secondary {
  background: transparent;
  color: var(--text);
  border-color: #5a5a5a;
}

button.secondary:hover:not(:disabled),
.button-link.secondary:hover {
  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;
}

.top-status {
  margin: 0 0 18px;
}

.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;
}

.summary-grid {
  margin-top: 8px;
}

.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;
}

.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;
}

@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);
  }

  .compact-hero h1 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .hero p {
    font-size: 16px;
  }

  .card {
    padding: 22px;
    border-radius: 18px;
  }

  .form-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .button-row {
    flex-direction: column;
  }

  button,
  .button-link {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    align-items: center;
  }
}
