* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #060816;
  --bg-soft: rgba(17, 24, 51, 0.78);
  --panel: rgba(12, 18, 39, 0.78);
  --panel-strong: rgba(19, 26, 54, 0.94);
  --line: rgba(120, 151, 255, 0.2);
  --text: #eef3ff;
  --muted: #91a2cf;
  --primary: #71a7ff;
  --accent: #7b5cff;
  --success: #43d59f;
  --error: #ff7f9f;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(69, 112, 255, 0.14), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(123, 92, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #050814 0%, #070b19 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1260px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #6fa9ff, #7657ff);
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(67, 107, 255, 0.35);
}

.brand-copy {
  display: grid;
}

.brand-copy strong {
  font-size: 16px;
}

.brand-copy small {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.topnav a {
  text-decoration: none;
  color: #d6e1fd;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(125, 154, 255, 0.18);
  background: rgba(94, 120, 200, 0.08);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.06));
  pointer-events: none;
}

.bg-orb {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
}

.orb-a {
  top: -80px;
  left: -80px;
  background: #3d7cff;
}

.orb-b {
  top: 120px;
  right: -120px;
  background: #7a5bff;
}

.hero {
  margin-bottom: 20px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.feature-chip {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(122, 146, 226, 0.14);
  background: rgba(12, 17, 38, 0.68);
  box-shadow: var(--shadow);
}

.feature-chip span {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-chip strong {
  font-size: 15px;
  line-height: 1.5;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0 0 12px;
}

h3 {
  margin: 0 0 8px;
}

h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  max-width: 760px;
}

h2 {
  font-size: clamp(22px, 2.2vw, 32px);
}

.subtitle {
  margin: 0;
  color: #c1ceef;
  line-height: 1.75;
  max-width: 740px;
}

.panel {
  background: linear-gradient(180deg, rgba(16, 23, 49, 0.88), rgba(10, 14, 31, 0.88));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  margin-top: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 22px;
}

.hero-copy,
.hero-side {
  display: grid;
  gap: 18px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.lang-pills span,
.ghost-link,
.status-label,
.guide-step {
  border: 1px solid rgba(125, 154, 255, 0.25);
  background: rgba(119, 151, 255, 0.08);
  color: #d9e5ff;
}

.lang-pills span {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ghost-link {
  text-decoration: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 600;
}

.status-card {
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(121, 150, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(23, 31, 66, 0.95), rgba(10, 15, 33, 0.95));
}

.status-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 10px;
}

.status-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.status-card.accent {
  background:
    linear-gradient(180deg, rgba(36, 27, 76, 0.95), rgba(13, 15, 37, 0.95));
}

.status-label {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.guide-card {
  border-radius: 20px;
  border: 1px solid rgba(128, 152, 255, 0.16);
  padding: 18px;
  background: rgba(9, 14, 31, 0.5);
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.guide-step {
  display: inline-flex;
  border-radius: 12px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.mission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
  gap: 18px;
  margin-top: 18px;
}

.mission-panel,
.side-panel,
.query-panel {
  margin-top: 0;
}

.section-heading {
  margin-bottom: 14px;
}

.panel-desc {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: #d8e2fb;
  font-size: 14px;
  font-weight: 600;
}

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

input,
textarea,
button {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(118, 143, 224, 0.2);
  padding: 14px 16px;
  font: inherit;
}

input,
textarea {
  background: rgba(7, 12, 27, 0.85);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

input:focus,
textarea:focus {
  border-color: rgba(122, 159, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(88, 120, 255, 0.12);
}

.radio-field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.radio-field legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.choice-group {
  display: grid;
  gap: 10px;
}

.choice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(124, 145, 212, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe6ff;
  cursor: pointer;
}

.choice-item input {
  width: auto;
  margin: 0;
}

button {
  background: linear-gradient(135deg, #5f8cff, #7550ff);
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 30px rgba(60, 92, 211, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 22px 34px rgba(60, 92, 211, 0.45);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.side-panel {
  align-content: start;
}

.intel-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  align-items: start;
}

.query-tip {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.benefit-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(117, 143, 224, 0.16);
  background: rgba(9, 14, 31, 0.5);
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border-radius: 18px;
  border: 1px solid rgba(117, 143, 224, 0.16);
  background: rgba(9, 14, 31, 0.52);
  padding: 18px 18px 16px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.result {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(6, 11, 25, 0.78);
  border: 1px solid rgba(96, 120, 196, 0.18);
  white-space: pre-wrap;
  line-height: 1.6;
}

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

.success {
  border-color: rgba(67, 213, 159, 0.45);
  color: #a8f7d7;
  background: rgba(7, 29, 23, 0.65);
}

.error {
  border-color: rgba(255, 127, 159, 0.45);
  color: #ffc1d2;
  background: rgba(42, 13, 24, 0.72);
}

.result-card {
  display: grid;
  gap: 12px;
}

.result-title {
  font-size: 16px;
  font-weight: 700;
}

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

.result-item {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(124, 145, 212, 0.12);
}

.result-item-wide {
  margin-top: 10px;
}

.result-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.result-item strong {
  display: block;
  word-break: break-word;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 110px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(124, 145, 212, 0.16);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 700;
}

.status-badge.processing,
.status-badge.pending {
  color: #ffd58a;
  border-color: rgba(255, 213, 138, 0.24);
  background: rgba(90, 60, 10, 0.28);
}

.status-badge.succeeded,
.status-badge.used,
.status-badge.active {
  color: #9ef3cf;
  border-color: rgba(67, 213, 159, 0.28);
  background: rgba(7, 52, 35, 0.32);
}

.status-badge.failed,
.status-badge.error,
.status-badge.disabled,
.status-badge.void {
  color: #ffc1d2;
  border-color: rgba(255, 127, 159, 0.28);
  background: rgba(77, 22, 39, 0.34);
}

.batch-results {
  display: grid;
  gap: 14px;
}

.batch-order-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(124, 145, 212, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

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

.missing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.missing-list code {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(124, 145, 212, 0.12);
}

@media (max-width: 1080px) {
  .hero-panel,
  .mission-layout,
  .guide-grid,
  .feature-strip,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .hero-top {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 24px 14px 48px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel {
    padding: 18px;
    border-radius: 20px;
  }

  .lookup-form {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .batch-order-head {
    flex-direction: column;
    align-items: flex-start;
  }

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