@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Source+Code+Pro:wght@400;600&display=swap");

:root {
  --bg: #0b0f14;
  --bg-accent: #141d27;
  --panel: #121821;
  --panel-border: #233041;
  --text: #f7f7f2;
  --muted: #a3b3c4;
  --accent: #ffb703;
  --accent-strong: #fb8500;
  --success: #56c271;
  --danger: #ef476f;
  --warning: #ffd166;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #1f2b3a 0%, #0b0f14 45%, #070a0f 100%);
  min-height: 100vh;
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  gap: 24px;
}

.hero {
  display: grid;
  gap: 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
  font-size: 12px;
}

h1 {
  font-size: clamp(2.25rem, 3vw, 3.2rem);
  margin: 0;
}

.lede {
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.6;
}

.panel {
  background: linear-gradient(160deg, var(--panel) 0%, #0f151d 100%);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

button {
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #1a1200;
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(255, 183, 3, 0.25);
}

.muted {
  color: var(--muted);
  margin-top: 6px;
}

.status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.status-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: #1f2a37;
  font-weight: 600;
}

.status-pill.success {
  background: rgba(86, 194, 113, 0.2);
  color: var(--success);
}

.status-pill.fail {
  background: rgba(239, 71, 111, 0.2);
  color: var(--danger);
}

.progress {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.progress-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  border-radius: 999px;
  width: 0%;
  transition: width 0.2s ease;
}

.results,
.guidance {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.result-card,
.guidance-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(15, 20, 28, 0.7);
  display: grid;
  gap: 6px;
}

.result-card.success {
  border-color: rgba(86, 194, 113, 0.4);
}

.result-card.fail {
  border-color: rgba(239, 71, 111, 0.4);
}

.result-title {
  font-weight: 600;
}

.result-meta {
  color: var(--muted);
  font-family: "Source Code Pro", monospace;
  font-size: 0.85rem;
}

.result-url {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: "Source Code Pro", monospace;
  word-break: break-all;
}

.result-tip {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.result-error-message {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: "Source Code Pro", monospace;
  word-break: break-all;
  opacity: 0.9;
}

.guidance-card p {
  margin: 0;
}

.guidance-card.troubleshooting {
  border-color: rgba(255, 193, 7, 0.35);
  background: rgba(255, 193, 7, 0.06);
}

.guidance-card code {
  font-family: "Source Code Pro", monospace;
  font-size: 0.9em;
}

@media (max-width: 720px) {
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  button {
    width: 100%;
  }
}
