* {
  box-sizing: border-box;
}

:root {
  --bg: #f6f1e8;
  --bg-panel: rgba(255, 250, 243, 0.82);
  --bg-panel-strong: rgba(255, 250, 243, 0.94);
  --ink: #0f1720;
  --muted: #53606d;
  --line: rgba(15, 23, 32, 0.1);
  --accent: #0a8f7a;
  --accent-strong: #0a6f61;
  --accent-soft: rgba(10, 143, 122, 0.12);
  --warning: #b7791f;
  --warning-soft: rgba(183, 121, 31, 0.12);
  --danger: #b43f2f;
  --danger-soft: rgba(180, 63, 47, 0.12);
  --shadow: 0 24px 80px rgba(17, 24, 39, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(10, 143, 122, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(255, 139, 85, 0.18), transparent 28rem),
    linear-gradient(180deg, #fbf6ee 0%, var(--bg) 46%, #efe6d8 100%);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
}

button,
input {
  font: inherit;
}

.page-glow {
  position: fixed;
  inset: auto;
  width: 32rem;
  height: 32rem;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}

.page-glow-a {
  top: -10rem;
  left: -6rem;
  background: rgba(10, 143, 122, 0.26);
}

.page-glow-b {
  right: -8rem;
  bottom: -10rem;
  background: rgba(255, 139, 85, 0.24);
}

.layout {
  width: min(1100px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.hero {
  padding: 1rem 0 2rem;
  animation: rise 500ms ease-out both;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-strong);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 18ch;
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 46rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.meta-pill {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(15, 23, 32, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  font-size: 0.92rem;
}

.console-card,
.results-summary,
.results-card {
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--radius-xl);
  background: var(--bg-panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.console-card {
  overflow: hidden;
  animation: rise 620ms ease-out 80ms both;
}

.console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.44);
}

.console-topbar p,
.results-card-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.traffic-lights {
  display: flex;
  gap: 0.45rem;
}

.traffic-lights span {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #ff9570;
}

.traffic-lights span:nth-child(2) {
  background: #ffc661;
}

.traffic-lights span:nth-child(3) {
  background: #6fd6ae;
}

.analyze-form {
  padding: 1.6rem 1.4rem 1rem;
}

.field-label {
  display: block;
  margin-bottom: 0.65rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
}

.field-row input {
  min-width: 0;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(15, 23, 32, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.field-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(10, 143, 122, 0.12);
}

.field-row button {
  padding: 1rem 1.4rem;
  border: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0b9782 0%, #0b7769 100%);
  color: #f7fff8;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.field-row button:hover,
.field-row button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(10, 111, 97, 0.22);
}

.field-row button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.field-hint {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.example-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0 1.4rem 1.4rem;
}

.example-chip {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 23, 32, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.example-chip:hover,
.example-chip:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(10, 143, 122, 0.4);
  background: rgba(255, 255, 255, 0.96);
}

.example-chip span {
  font-weight: 700;
}

.example-chip code,
.step-details li {
  font-family: "IBM Plex Mono", monospace;
}

.results-panel {
  margin-top: 1.6rem;
  animation: rise 580ms ease-out both;
}

.results-panel.is-hidden {
  display: none;
}

.results-summary {
  padding: 1.3rem 1.4rem;
}

.results-summary h2,
.results-card-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.results-summary p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.results-summary.is-pass {
  background: linear-gradient(135deg, rgba(10, 143, 122, 0.18), rgba(255, 255, 255, 0.8));
}

.results-summary.is-warning {
  background: linear-gradient(135deg, rgba(183, 121, 31, 0.16), rgba(255, 255, 255, 0.8));
}

.results-summary.is-fail,
.results-summary.is-error {
  background: linear-gradient(135deg, rgba(180, 63, 47, 0.16), rgba(255, 255, 255, 0.8));
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.results-card {
  padding: 1.25rem;
}

.results-card-header {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.steps-container {
  display: grid;
  gap: 0.9rem;
}

.step-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--bg-panel-strong);
}

.step-card.is-pass {
  border-color: rgba(10, 143, 122, 0.24);
  background: linear-gradient(180deg, rgba(10, 143, 122, 0.08), rgba(255, 255, 255, 0.9));
}

.step-card.is-warning {
  border-color: rgba(183, 121, 31, 0.24);
  background: linear-gradient(180deg, rgba(183, 121, 31, 0.08), rgba(255, 255, 255, 0.9));
}

.step-card.is-fail,
.step-card.is-error {
  border-color: rgba(180, 63, 47, 0.22);
  background: linear-gradient(180deg, rgba(180, 63, 47, 0.08), rgba(255, 255, 255, 0.9));
}

.step-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.step-header h3 {
  margin: 0;
  font-size: 1rem;
}

.step-status {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.step-status.is-pass {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.step-status.is-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.step-status.is-fail,
.step-status.is-error {
  background: var(--danger-soft);
  color: var(--danger);
}

.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.step-details {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

.step-details li + li {
  margin-top: 0.45rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .layout {
    width: min(100vw - 1rem, 100%);
    padding-top: 1.5rem;
  }

  .hero h1 {
    max-width: 18ch;
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .console-card,
  .results-summary,
  .results-card {
    border-radius: 1.5rem;
  }
}
