:root {
  color-scheme: dark;
  --bg: #07111d;
  --bg-soft: rgba(10, 18, 30, 0.8);
  --panel: rgba(12, 20, 34, 0.76);
  --panel-strong: rgba(16, 26, 44, 0.92);
  --line: rgba(149, 180, 220, 0.16);
  --text: #eef4ff;
  --muted: rgba(219, 231, 247, 0.72);
  --accent: #ffb45c;
  --accent-2: #6ee7d8;
  --accent-3: #8ea5ff;
  --danger: #ff7d7d;
  --success: #84f3b3;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  --radius: 28px;
  font-family: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(110, 231, 216, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 180, 92, 0.14), transparent 32%),
    linear-gradient(180deg, #06101a 0%, #090f17 100%);
  color: var(--text);
}

.bg-grid,
.bg-orb {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 82%);
}

.bg-orb {
  filter: blur(80px);
  opacity: 0.5;
}

.bg-orb-a {
  background: rgba(255, 180, 92, 0.18);
  width: 34vw;
  height: 34vw;
  right: -8vw;
  top: -6vw;
}

.bg-orb-b {
  background: rgba(110, 231, 216, 0.16);
  width: 26vw;
  height: 26vw;
  left: -6vw;
  bottom: 5vw;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1460px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.panel {
  background: linear-gradient(180deg, rgba(19, 28, 45, 0.9), rgba(9, 14, 24, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  padding: 28px;
  margin-bottom: 20px;
}

.eyebrow,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 214, 171, 0.92);
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: end;
}

.hero h1,
.panel h2 {
  font-family: "Space Grotesk", sans-serif;
  margin: 10px 0 14px;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 5.1rem);
  line-height: 0.94;
  max-width: 11ch;
}

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

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

.hero-stats div,
.result-card,
fieldset,
.timeline-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats div {
  border-radius: 20px;
  padding: 16px 18px;
}

.hero-stats strong,
.result-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}

.hero-stats span,
.result-card span,
.result-card p,
.small-note {
  color: var(--muted);
  line-height: 1.5;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
}

.unlock-panel {
  padding: 24px;
  margin-bottom: 20px;
}

.unlock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.status-locked {
  background: rgba(255, 125, 125, 0.12);
  color: var(--danger);
  border-color: rgba(255, 125, 125, 0.24);
}

.form-panel,
.preview-panel,
.timeline-panel {
  padding: 24px;
}

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-header h2 {
  font-size: 2rem;
  margin: 4px 0 0;
}

.ghost-button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), #ff9161);
  color: #151515;
  box-shadow: 0 20px 36px rgba(255, 180, 92, 0.22);
}

.secondary-button {
  background: rgba(110, 231, 216, 0.1);
  color: var(--text);
}

.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.ghost-button:disabled,
.secondary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.form-grid {
  display: grid;
  gap: 16px;
}

fieldset {
  margin: 0;
  padding: 18px;
  border-radius: 22px;
}

legend {
  padding: 0 8px;
  color: rgba(255, 214, 171, 0.95);
  font-weight: 800;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.93rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(5, 10, 18, 0.7);
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(255, 180, 92, 0.38);
  outline-offset: 2px;
}

.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.preview-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(132, 243, 179, 0.12);
  color: var(--success);
  border: 1px solid rgba(132, 243, 179, 0.24);
  font-weight: 800;
  white-space: nowrap;
}

.form-panel.is-locked {
  position: relative;
  opacity: 0.75;
}

.form-panel.is-locked::after {
  content: "Unlock the demo in the browser console to activate this form.";
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(6, 12, 20, 0.72);
  color: var(--text);
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(6px);
}

.form-panel.is-locked * {
  pointer-events: none;
}

.form-panel.is-locked .panel-header,
.form-panel.is-locked .form-actions {
  pointer-events: auto;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  min-width: 220px;
  max-width: min(92vw, 420px);
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 16, 26, 0.92);
  color: var(--text);
  box-shadow: var(--shadow);
  transform: translateY(16px);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.result-stack {
  display: grid;
  gap: 14px;
}

.result-card {
  border-radius: 22px;
  padding: 18px;
}

.result-card span,
.result-card p {
  font-size: 0.93rem;
}

.result-card strong {
  font-size: 1.05rem;
}

.token-card code,
pre {
  display: block;
  margin: 0;
  border-radius: 18px;
  background: rgba(4, 8, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #eaf7ff;
  padding: 14px 16px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.token-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.timeline-panel {
  margin-top: 20px;
}

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

.timeline-step {
  border-radius: 20px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 16px;
  align-items: center;
}

.step-index {
  color: rgba(255, 214, 171, 0.94);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.step-detail {
  color: var(--muted);
}

.step-pill {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

.step-pill.pending {
  color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.04);
}

.step-pill.live {
  color: #051013;
  background: linear-gradient(135deg, var(--success), #c3ffdd);
}

.step-pill.done {
  color: #08101a;
  background: linear-gradient(135deg, var(--accent), #ffe0b9);
}

@media (max-width: 1120px) {
  .workspace,
  .hero-copy {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 20px, 1460px);
    padding-top: 10px;
  }

  .hero,
  .form-panel,
  .preview-panel,
  .timeline-panel {
    padding: 18px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.6rem);
  }

  .two-up,
  .timeline-step {
    grid-template-columns: 1fr;
  }

  .panel-header {
    flex-direction: column;
  }
}