:root {
  color-scheme: dark;
  --bg: #07100d;
  --panel: rgba(10, 25, 20, 0.84);
  --panel-strong: rgba(14, 39, 31, 0.96);
  --line: rgba(127, 255, 194, 0.22);
  --line-bright: rgba(127, 255, 194, 0.52);
  --text: #e7fff3;
  --muted: #8eb7a4;
  --faint: #5f8375;
  --amber: #f4c86a;
  --green: #78ffb7;
  --red: #ff6e7c;
  --blue: #7fb7ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  font-family: "IBM Plex Mono", "SFMono-Regular", "Menlo", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(120, 255, 183, 0.12), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(244, 200, 106, 0.1), transparent 30rem),
    linear-gradient(135deg, #050807 0%, #07100d 42%, #031612 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(127, 255, 194, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 255, 194, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

button, input { font: inherit; }

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  max-width: 780px;
}

h2 {
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.panel, .status-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel {
  padding: 22px;
  margin-bottom: 18px;
  border-radius: 22px;
}

.status-card {
  min-height: 112px;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.status-dot {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 22px var(--red);
}

.status-dot.ready {
  background: var(--green);
  box-shadow: 0 0 22px var(--green);
}

.status-label {
  margin: 0 0 4px;
  color: var(--faint);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.grid-two {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
}

.hint {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--faint);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 13px;
  color: var(--text);
  background: rgba(1, 8, 6, 0.66);
  outline: none;
}

input:focus {
  border-color: var(--line-bright);
  box-shadow: 0 0 0 4px rgba(120, 255, 183, 0.1);
}

.combo {
  position: relative;
}

.combo-button {
  width: 100%;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 13px;
  color: var(--text);
  background: rgba(1, 8, 6, 0.66);
  text-align: left;
  cursor: pointer;
}

.combo-button:focus-visible,
.combo-button[aria-expanded="true"] {
  border-color: var(--line-bright);
  box-shadow: 0 0 0 4px rgba(120, 255, 183, 0.1);
}

.combo-caret {
  color: var(--green);
  font-size: 1rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.combo-button[aria-expanded="true"] .combo-caret {
  transform: rotate(180deg);
}

.combo-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  padding: 6px;
  background: rgba(3, 15, 12, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(120, 255, 183, 0.08) inset;
}

.combo-option {
  width: 100%;
  border: 0;
  border-radius: 11px;
  padding: 11px 12px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.combo-option:hover,
.combo-option:focus-visible {
  color: var(--text);
  background: rgba(120, 255, 183, 0.1);
  outline: none;
}

.combo-option.active {
  color: #06100c;
  background: linear-gradient(135deg, var(--green), #d9ff84);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.flow-state {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--green);
  background: rgba(120, 255, 183, 0.06);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button.primary {
  color: #06100c;
  background: linear-gradient(135deg, var(--green), #d9ff84);
  border-color: transparent;
}

.button.secondary {
  background: rgba(127, 183, 255, 0.14);
}

.button.ghost {
  background: transparent;
  color: var(--muted);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.timeline li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(127, 255, 194, 0.13);
  border-radius: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.badge {
  align-self: start;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge.running { color: #06100c; background: var(--amber); }
.badge.ok { color: #06100c; background: var(--green); }
.badge.error { color: #160406; background: var(--red); }

.step-title {
  margin: 0 0 4px;
  color: var(--text);
}

.step-detail {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.links a {
  color: var(--green);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
  background: rgba(120, 255, 183, 0.06);
}

@media (max-width: 820px) {
  .hero, .grid-two, .form-grid, .event-form {
    grid-template-columns: 1fr;
  }
  .section-heading {
    flex-direction: column;
  }
  .timeline li {
    grid-template-columns: 1fr;
  }
}
