:root {
  --bg: #07111f;
  --panel: #0e1b30;
  --panel-2: #122340;
  --panel-3: #183055;
  --text: #eef4ff;
  --muted: #9fb0c9;
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.14);
  --line: rgba(212, 175, 55, 0.18);
  --line-strong: rgba(212, 175, 55, 0.28);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(19, 38, 73, 0.98) 0, rgba(7, 17, 31, 1) 55%),
    var(--bg);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.site-header,
.site-footer {
  background: rgba(4, 10, 20, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  margin-top: 40px;
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.menu {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.menu a,
.btn {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.menu a:hover,
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.hero,
.card,
.panel {
  background: linear-gradient(180deg, rgba(18, 35, 64, 0.98), rgba(8, 16, 30, 0.98));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 34px;
  margin-top: 22px;
}

.section {
  margin-top: 22px;
}

.card,
.panel {
  padding: 26px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid.cols-2,
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

h1,
h2,
h3,
h4 {
  margin: 0.15em 0 0.55em;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 2.15rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0.75em 0;
}

small,
.muted {
  color: var(--muted);
}

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.pill,
.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
}

.badge.success {
  background: rgba(20, 132, 67, 0.18);
  border-color: rgba(20, 132, 67, 0.35);
}

.badge.warning {
  background: rgba(196, 145, 31, 0.16);
  border-color: rgba(196, 145, 31, 0.35);
}

.badge.danger {
  background: rgba(192, 56, 56, 0.16);
  border-color: rgba(192, 56, 56, 0.35);
}

.badge.neutral {
  background: rgba(255, 255, 255, 0.05);
}

.status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

.stat {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.kpi {
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #f3d77a);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
}

.notice {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.notice strong {
  color: var(--text);
}

.image-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-soft);
}

.responsive-image,
.receipt-preview {
  display: block;
  width: 100%;
  height: auto;
}

.responsive-image {
  object-fit: cover;
}

.receipt-preview {
  max-height: 380px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 18px;
}

.receipt-preview-link {
  display: block;
  border-radius: 18px;
  overflow: hidden;
}

/* HTML-designed illustration system: no external art assets needed */
.artboard {
  position: relative;
  min-height: 320px;
  padding: 22px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 18%, rgba(212, 175, 55, 0.14), transparent 30%),
    radial-gradient(circle at 82% 16%, rgba(75, 116, 180, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(16, 29, 53, 0.98), rgba(8, 15, 28, 0.98));
  box-shadow: var(--shadow-soft);
}

.artboard::before {
  content: "";
  position: absolute;
  inset: 0;
  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: 32px 32px;
  opacity: 0.35;
  pointer-events: none;
}

.artboard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 48%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

.artboard > * {
  position: relative;
  z-index: 1;
}

.art-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.art-stage,
.art-metric-row,
.art-stack,
.art-cases,
.art-ledger,
.art-status-grid {
  display: grid;
  gap: 12px;
}

.art-stage {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.art-panel,
.art-case,
.art-ledger-row,
.art-status-item {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.art-panel,
.art-case,
.art-status-item {
  padding: 14px 15px;
}

.art-panel strong,
.art-case strong,
.art-status-item strong,
.art-ledger-row strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 4px;
}

.art-panel small,
.art-case small,
.art-status-item small,
.art-ledger-row small {
  color: var(--muted);
}

.art-panel-accent {
  background: linear-gradient(135deg, var(--gold), #f3d77a);
  color: #102038;
}

.art-panel-accent strong,
.art-panel-accent small {
  color: inherit;
}

.art-path {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 56%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.9), transparent);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.12);
}

.art-path::before,
.art-path::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.12);
}

.art-path::before { left: 0; }
.art-path::after { right: 0; }

.art-metric-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.art-meter {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.art-meter b {
  display: block;
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 2px;
}

.art-meter span {
  color: var(--muted);
  font-size: 0.92rem;
}

.art-blueprint .art-panel {
  min-height: 108px;
}

.art-corridor .art-mapline {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 58%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.95), rgba(75, 116, 180, 0.9));
  opacity: 0.9;
}

.art-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.14);
}

.art-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20px;
  width: 2px;
  height: 20px;
  background: rgba(255, 255, 255, 0.35);
  transform: translateX(-50%);
}

.art-map-notes {
  position: absolute;
  inset: auto 18px 18px 18px;
  display: grid;
  gap: 10px;
}

.art-map-notes .art-panel {
  max-width: 280px;
}

.art-scarcity .art-progress {
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  margin-top: 16px;
}

.art-scarcity .art-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #f3d77a);
}

.art-ledger {
  margin-top: 18px;
}

.art-ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.art-ledger-row strong {
  margin-bottom: 0;
}

.art-scarcity .art-stack {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.art-shield {
  position: relative;
  min-height: 210px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 38%, rgba(212, 175, 55, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(20, 35, 64, 0.96), rgba(7, 12, 22, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.art-shield::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px 22px 34px 34px;
  border: 2px solid rgba(212, 175, 55, 0.35);
  clip-path: polygon(50% 0%, 100% 15%, 88% 100%, 12% 100%, 0 15%);
}

.art-shield::after {
  content: "Queue secure";
  position: absolute;
  inset: auto 22px 24px 22px;
  display: inline-flex;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.art-status-grid {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.art-lifestyle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.art-skyline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  margin-top: 20px;
  min-height: 190px;
}

.art-skyline span {
  display: block;
  border-radius: 16px 16px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(244, 213, 131, 0.9), rgba(212, 175, 55, 0.35));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.art-skyline span:nth-child(2n) {
  background: linear-gradient(180deg, rgba(80, 121, 188, 0.95), rgba(80, 121, 188, 0.28));
}

.art-skyline span:nth-child(1) { height: 48%; }
.art-skyline span:nth-child(2) { height: 76%; }
.art-skyline span:nth-child(3) { height: 58%; }
.art-skyline span:nth-child(4) { height: 92%; }
.art-skyline span:nth-child(5) { height: 64%; }

.art-gallery .art-cases {
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.art-gallery .art-case {
  min-height: 152px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.art-card-band {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(255, 255, 255, 0.03));
}

.art-card-band strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}

form.section.grid,
form.grid {
  align-items: end;
}

@media (max-width: 900px) {
  .art-stage,
  .art-metric-row,
  .art-scarcity .art-stack,
  .art-status-grid,
  .art-gallery .art-cases {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .artboard {
    min-height: 280px;
    padding: 18px;
  }

  .art-stage,
  .art-metric-row,
  .art-scarcity .art-stack,
  .art-status-grid,
  .art-gallery .art-cases {
    grid-template-columns: 1fr;
  }
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(3, 10, 20, 0.55);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(159, 176, 201, 0.75);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
  background: rgba(3, 10, 20, 0.72);
}

button,
.btn {
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), #f3d77a);
  color: #102038;
  font-weight: 800;
  border: 0;
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  padding: 20px;
  background: rgba(2, 6, 12, 0.72);
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.modal.open {
  display: flex;
}

.modal-box {
  max-width: 720px;
  width: min(720px, 100%);
  background: linear-gradient(180deg, rgba(18, 35, 64, 0.99), rgba(8, 16, 30, 0.99));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.narrow {
  max-width: 820px;
}

@media (max-width: 720px) {
  .wrap {
    padding: 16px;
  }

  .hero,
  .card,
  .panel,
  .modal-box {
    border-radius: 20px;
    padding: 20px;
  }

  .menu {
    width: 100%;
  }

  .menu a,
  .btn {
    width: 100%;
  }

  .status-badges,
  .menu,
  .stats {
    gap: 8px;
  }
}
