:root {
  --bg: #f9f6f1;
  --ink: #151316;
  --panel: rgba(255, 255, 255, 0.82);
  --stroke: rgba(29, 24, 30, 0.12);
  --accent: #e75822;
  --accent-2: #0f766e;
  --ok: #0f766e;
  --warn: #b45309;
  --fail: #b91c1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 20%, #fff3d8 0%, transparent 45%),
    radial-gradient(circle at 90% 10%, #e5f7f6 0%, transparent 45%),
    var(--bg);
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  z-index: -1;
  animation: drift 14s ease-in-out infinite;
}

.orb-a {
  width: 320px;
  height: 320px;
  background: #ffd199;
  top: -80px;
  right: -30px;
}

.orb-b {
  width: 280px;
  height: 280px;
  background: #93d6d1;
  bottom: -60px;
  left: -20px;
  animation-delay: -6s;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(12px, -18px);
  }
}

.layout {
  width: min(1100px, 92vw);
  margin: 2rem auto 3rem;
  display: grid;
  gap: 1rem;
}

.hero {
  padding: 1rem 0.25rem;
  animation: reveal 400ms ease-out;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
}

.eyebrow {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #594f53;
}

.subline {
  max-width: 70ch;
}

.panel {
  border: 1px solid var(--stroke);
  background: var(--panel);
  backdrop-filter: blur(7px);
  border-radius: 18px;
  padding: 1.1rem;
  animation: reveal 420ms ease-out;
}

@keyframes reveal {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.tabs {
  display: flex;
  gap: 0.5rem;
}

.tab {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: #ffffff;
  padding: 0.55rem 1rem;
  font-family: 'IBM Plex Mono', monospace;
  cursor: pointer;
}

.tab.active {
  background: var(--ink);
  color: #fff;
}

.grid {
  display: grid;
  gap: 0.85rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

input {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font: inherit;
  background: #fff;
}

.actions {
  display: flex;
  margin-top: 1rem;
}

button {
  font: inherit;
}

.cta,
.secondary {
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.cta {
  background: linear-gradient(135deg, var(--accent), #ef8a63);
  color: #fff;
  font-weight: 700;
}

.secondary {
  background: linear-gradient(135deg, var(--accent-2), #47b6ac);
  color: #fff;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

.hint {
  font-size: 0.85rem;
  opacity: 0.75;
}

.hidden {
  display: none;
}

.timeline {
  display: grid;
  gap: 0.5rem;
}

.timeline-row {
  border: 1px dashed var(--stroke);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem;
}

.timeline-row small {
  grid-column: 1 / -1;
  opacity: 0.78;
}

.status-completed,
.step-completed {
  border-color: rgba(15, 118, 110, 0.45);
}

.status-failed,
.step-failed {
  border-color: rgba(185, 28, 28, 0.45);
}

.status-running,
.step-running {
  border-color: rgba(180, 83, 9, 0.45);
}

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