:root {
  --bg: #07080c;
  --bg-surface: #0e1017;
  --bg-card: #11131b;
  --bg-input: #0a0b10;
  --border: #1e2230;
  --border-strong: #2c3246;
  --text: #f3f5fa;
  --text-muted: #8a91a8;
  --text-dim: #5d647a;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --cyan: #38bdf8;
  --emerald: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 28px 64px rgba(0, 0, 0, 0.58);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(640px 420px at 78% 12%, rgba(37, 99, 235, 0.14), transparent 70%),
    radial-gradient(520px 360px at 14% 28%, rgba(56, 189, 248, 0.06), transparent 70%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Header */
.nav-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(56, 189, 248, 0.14));
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: grid;
  place-items: center;
  color: var(--cyan);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  background: var(--primary);
  color: #fff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: #cbd5e1;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
}

.status-dot.ok {
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.status-dot.warn {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.status-dot.err {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

/* Main Split Layout */
.page-shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 24px 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 52px;
  align-items: center;
}

/* Left Column */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.hero-title {
  font-size: clamp(36px, 4.6vw, 54px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-accent {
  color: var(--cyan);
  position: relative;
  display: inline-block;
}

.hero-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
}

.hero-desc {
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 450px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  max-width: 450px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metric-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.metric-val {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Right Column Console Card */
.console-card {
  background:
    radial-gradient(360px 200px at 90% 0%, rgba(37, 99, 235, 0.14), transparent 70%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.console-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.console-tab:hover {
  color: var(--text);
}

.console-tab.active {
  color: #ffffff;
  border-bottom-color: var(--cyan);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.06), transparent);
}

.console-body {
  padding: 22px 24px 20px;
}

.tab-view {
  display: none;
}

.tab-view.active {
  display: block;
}

/* 3-Step Indicator */
.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.step-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.step-pill.active {
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--text);
  background: rgba(37, 99, 235, 0.1);
}

.step-pill.done {
  border-color: rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #171a26;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-pill.active .step-num {
  background: var(--primary);
  color: #ffffff;
}

.step-pill.done .step-num {
  background: var(--emerald);
  color: #06281c;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

/* Form Elements */
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.field-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  color: var(--text);
  padding: 13px 14px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-input.has-btn {
  padding-right: 84px;
}

.field-input::placeholder {
  color: #4f566d;
}

.field-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.paste-btn {
  position: absolute;
  right: 7px;
  padding: 6px 11px;
  border-radius: 7px;
  background: #191c28;
  border: 1px solid var(--border-strong);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.paste-btn:hover {
  background: #23283a;
  color: #ffffff;
}

.field-hint {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 7px;
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, opacity 0.15s ease;
}

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

.btn-primary {
  flex: 1;
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-hover), #0369a1);
}

.btn-ghost {
  background: #171a26;
  border-color: var(--border-strong);
  color: #cbd5e1;
}

.btn-ghost:hover:not(:disabled) {
  background: #1f2334;
}

/* Summary Boxes */
.summary-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  margin-bottom: 14px;
  font-size: 13px;
}

.confirm-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px 14px;
  display: grid;
  gap: 9px;
  font-size: 13px;
}

.confirm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.confirm-row span {
  color: var(--text-muted);
}

.confirm-row strong {
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-active,
.badge-completed {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

.badge-running,
.badge-submitting,
.badge-queued {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}

.badge-partial {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
}

.badge-failed,
.badge-cancelled,
.badge-canceled {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

/* Alerts & Progress */
.alert {
  display: none;
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 13px;
}

.alert.show {
  display: block;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #fca5a5;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #6ee7b7;
}

.alert-info {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
}

.progress-panel {
  display: none;
  margin-top: 16px;
  padding: 15px;
  border-radius: 11px;
  background: var(--bg-input);
  border: 1px solid var(--border);
}

.progress-panel.show {
  display: block;
}

.progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
}

.progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #171a26;
  overflow: hidden;
  margin-bottom: 13px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transition: width 0.35s ease;
}

.progress-fill.done {
  background: var(--emerald);
}

.progress-fill.err {
  background: var(--red);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.meta-cell {
  background: #12141e;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.meta-cell strong {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
}

.console-foot {
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
}

/* Bottom Guide Strip */
.guide-strip {
  margin-top: 52px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.guide-step {
  display: flex;
  align-items: center;
  gap: 13px;
}

.guide-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #141723;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.guide-step strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.guide-step span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .guide-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    padding: 16px;
  }
  .nav-link {
    display: none;
  }
  .page-shell {
    padding: 20px 16px 40px;
  }
  .stepper {
    grid-template-columns: 1fr;
  }
  .meta-grid {
    grid-template-columns: 1fr;
  }
}
