:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #172033;
  background: #f3f6fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 2%, rgba(96, 117, 255, 0.09), transparent 27rem),
    #f3f6fb;
}

button {
  font: inherit;
}

.shell {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 60px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.5fr);
  gap: 30px;
  align-items: end;
  overflow: hidden;
  padding: 34px;
  border-radius: 28px;
  color: white;
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 255, 255, 0.2), transparent 24rem),
    radial-gradient(circle at 6% 90%, rgba(91, 124, 255, 0.24), transparent 25rem),
    linear-gradient(132deg, #081431 0%, #152b68 54%, #375bd2 100%);
  box-shadow: 0 26px 70px rgba(18, 39, 93, 0.25);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  font-size: 0.9rem;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #172a63;
  background: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.environment-pill {
  margin-left: 4px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
}

.eyebrow,
.section-label {
  margin: 0;
  color: #7891cf;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #aebff3;
}

h1 {
  max-width: 950px;
  margin: 11px 0 0;
  font-size: clamp(2.35rem, 5vw, 4.65rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-description {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.65;
}

.readiness-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(5, 15, 43, 0.48);
  backdrop-filter: blur(18px);
}

.readiness-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.readiness-heading div {
  display: grid;
  gap: 3px;
}

.readiness-heading span:last-child {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 99px;
  background: #59e6a8;
  box-shadow: 0 0 0 6px rgba(89, 230, 168, 0.13);
}

.status-dot.running {
  background: #ffd166;
  box-shadow: 0 0 0 6px rgba(255, 209, 102, 0.13);
}

.environment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 16px;
}

.environment-grid div {
  min-width: 0;
}

.environment-grid span,
.expected-outcome span {
  display: block;
  color: #7f8ca4;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.environment-grid strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: white;
  font-size: 0.8rem;
  text-overflow: ellipsis;
}

.safety-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  padding: 13px 16px;
  border: 1px solid #ebd899;
  border-radius: 14px;
  color: #695317;
  background: #fff9e9;
}

.safety-banner div:last-child {
  display: grid;
  gap: 2px;
}

.safety-banner span {
  color: #826c31;
  font-size: 0.85rem;
}

.safety-icon {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: #b68a19;
  font-weight: 900;
}

.journey {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid #dce4f0;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 32px rgba(24, 45, 86, 0.055);
}

.journey-heading,
.card-title-row,
.response-heading,
.activity-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.journey h2,
.test-card h2,
.response-card h2,
.activity-card h2,
.talk-track-card h2 {
  margin: 4px 0 0;
  color: #17233c;
  font-size: 1.15rem;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  margin-top: 18px;
}

.journey-step {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e7f1;
  border-radius: 13px;
  background: #f8faff;
}

.journey-step > span {
  display: grid;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  color: #4866b4;
  background: #e7edff;
  font-size: 0.72rem;
  font-weight: 850;
}

.journey-step div {
  min-width: 0;
}

.journey-step strong,
.journey-step small {
  display: block;
}

.journey-step strong {
  overflow: hidden;
  color: #263550;
  font-size: 0.83rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-step small {
  margin-top: 2px;
  color: #7b879c;
  font-size: 0.7rem;
}

.secondary-button {
  border: 1px solid #d2dbea;
  border-radius: 10px;
  padding: 9px 12px;
  color: #405271;
  background: #f9fbff;
  cursor: pointer;
  font-weight: 750;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(390px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.test-column {
  display: grid;
  gap: 16px;
}

.test-card {
  display: grid;
  grid-template-columns: 52px minmax(270px, 1fr) minmax(330px, 0.85fr);
  gap: 18px;
  align-items: start;
  padding: 21px;
  border: 1px solid #dce4f0;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 32px rgba(24, 45, 86, 0.055);
}

.card-number {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: linear-gradient(145deg, #253f8f, #5877dc);
  box-shadow: 0 9px 22px rgba(55, 84, 166, 0.22);
  font-size: 0.74rem;
  font-weight: 850;
}

.card-copy > p {
  margin: 10px 0;
  color: #66738a;
  font-size: 0.89rem;
  line-height: 1.55;
}

.value-tag {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #4862a9;
  background: #edf2ff;
  font-size: 0.7rem;
  font-weight: 800;
}

.expected-outcome {
  margin-top: 13px;
  padding: 10px 11px;
  border-radius: 11px;
  background: #f5f7fb;
}

.expected-outcome strong {
  display: block;
  margin-top: 3px;
  color: #3d4a62;
  font-size: 0.8rem;
}

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

.action-button {
  min-height: 45px;
  border: 1px solid #ccd6e8;
  border-radius: 11px;
  padding: 10px 12px;
  color: #26426f;
  background: #f8faff;
  cursor: pointer;
  font-weight: 770;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.action-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #8199d0;
  background: #eef3ff;
}

.action-button.primary {
  color: white;
  border-color: #3657bc;
  background: linear-gradient(135deg, #25449d, #4d70da);
}

.action-button.danger {
  color: #8d2940;
  border-color: #efc1ca;
  background: #fff5f6;
}

.action-button.warning {
  color: #77570f;
  border-color: #ecd391;
  background: #fff9e8;
}

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

.response-column {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 16px;
}

.response-card,
.activity-card,
.talk-track-card {
  padding: 20px;
  border: 1px solid #dce4f0;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 32px rgba(24, 45, 86, 0.055);
}

.http-badge {
  border-radius: 999px;
  padding: 6px 10px;
  color: #12643d;
  background: #e7f8ef;
  font-size: 0.8rem;
  font-weight: 850;
}

.http-badge.error {
  color: #8b273c;
  background: #fdecef;
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 38px 16px 24px;
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 15px;
  color: #5871b6;
  background: #edf2ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 850;
}

.empty-state span {
  max-width: 300px;
  margin-top: 5px;
  color: #7a879e;
  font-size: 0.84rem;
  line-height: 1.5;
}

.response-meta {
  display: grid;
  gap: 5px;
  margin: 17px 0 13px;
  padding: 12px;
  border-radius: 12px;
  color: #53617a;
  background: #f5f7fb;
  font-size: 0.79rem;
}

.response-meta strong {
  color: #26344d;
}

.response-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 8px;
}

.tab {
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  color: #647089;
  background: transparent;
  cursor: pointer;
  font-size: 0.77rem;
  font-weight: 800;
}

.tab.active {
  color: #3654a1;
  background: #edf2ff;
}

pre {
  max-height: 420px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border-radius: 13px;
  color: #dce7ff;
  background: #111a2f;
  font: 0.77rem/1.55 "SFMono-Regular", Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.activity-heading > span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  color: #4562ae;
  background: #edf2ff;
  font-size: 0.75rem;
  font-weight: 850;
}

.activity-list {
  display: grid;
  gap: 7px;
  max-height: 290px;
  overflow: auto;
  margin-top: 14px;
}

.activity-item {
  display: grid;
  grid-template-columns: 65px 1fr auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 9px 10px;
  color: #33425d;
  background: #f5f7fb;
  text-align: left;
  cursor: pointer;
}

.activity-item:hover {
  background: #edf2fb;
}

.activity-item span {
  color: #7a879b;
  font-size: 0.71rem;
}

.empty-activity {
  color: #8490a4;
  font-size: 0.84rem;
}

.talk-track-card {
  color: white;
  border-color: transparent;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.16), transparent 10rem),
    linear-gradient(140deg, #1b347c, #4c6dd3);
}

.talk-track-card .section-label {
  color: #b7c6f3;
}

.talk-track-card h2 {
  color: white;
}

.talk-track-card p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.87rem;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .journey-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .response-column {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .talk-track-card {
    grid-column: 1 / -1;
  }
}

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

  .test-card {
    grid-template-columns: 48px 1fr;
  }

  .test-card .button-grid {
    grid-column: 2;
  }

  .response-column {
    grid-template-columns: 1fr;
  }

  .talk-track-card {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 18px, 1500px);
    padding-top: 9px;
  }

  .hero {
    padding: 23px;
  }

  .brand-row {
    margin-bottom: 25px;
  }

  .environment-grid,
  .journey-grid,
  .button-grid {
    grid-template-columns: 1fr;
  }

  .journey-heading,
  .card-title-row {
    align-items: flex-start;
  }

  .test-card {
    grid-template-columns: 1fr;
  }

  .test-card .button-grid {
    grid-column: auto;
  }
}
