:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #667085;
  --line: #d8dee9;
  --brand: #1769aa;
  --brand-dark: #0f4f83;
  --ok: #107c41;
  --warm: #ff6b35;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 4%, rgba(75, 119, 255, .14), transparent 28%),
    linear-gradient(180deg, #f4f7fb, #e9eff8);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-nav nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.landing {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 28px 64px;
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(245,248,253,.86)),
    linear-gradient(135deg, #ffffff, #edf4ff);
  border: 1px solid rgba(200, 214, 235, .9);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(37, 62, 103, .13);
  overflow: hidden;
  padding: 44px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -140px;
  bottom: -170px;
  background: radial-gradient(circle, rgba(43, 108, 246, .15), transparent 68%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #edf4ff;
  color: #2458b8;
  padding: 7px 16px;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.12;
  margin-bottom: 18px;
  color: #142033;
  letter-spacing: 0;
}

.hero p {
  color: #667085;
  font-size: 17px;
  line-height: 1.7;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 26px auto 0;
  justify-content: flex-start;
  max-width: 500px;
}

.hero-actions button {
  flex: 1;
  min-height: 56px;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(90deg, #327df3, #6957ee);
  box-shadow: 0 18px 36px rgba(65, 111, 240, .22);
}

.hero-actions .ghost {
  background: #eef4fb;
  color: var(--brand);
  box-shadow: none;
}

.hero-metrics {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-preview {
  position: relative;
  z-index: 1;
  background: #111827;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 30px 60px rgba(17, 24, 39, .26);
}

.preview-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #475569;
}

.preview-top span:first-child { background: #ff6b6b; }
.preview-top span:nth-child(2) { background: #ffd166; }
.preview-top span:nth-child(3) { background: #57cc99; }

.preview-top b {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.preview-grid article {
  background: linear-gradient(180deg, #1f2937, #172033);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 16px;
  padding: 18px;
}

.preview-grid small,
.preview-grid em {
  color: #94a3b8;
  font-style: normal;
}

.preview-grid strong {
  display: block;
  color: #fff;
  font-size: 24px;
  margin: 8px 0;
}

.preview-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 16px;
  padding: 14px;
  margin-top: 12px;
  overflow: auto;
}

.preview-flow span {
  color: #dbeafe;
  white-space: nowrap;
  font-size: 13px;
}

.preview-flow i {
  width: 30px;
  height: 1px;
  background: #3b82f6;
  flex: 0 0 auto;
}

.hero-metrics span {
  color: #667085;
  font-size: 13px;
  background: #f6f9fd;
  border: 1px solid #e5edf8;
  border-radius: 999px;
  padding: 7px 12px;
}

.hero-metrics b {
  color: #142033;
  margin-right: 4px;
}

.spotlight {
  margin: 22px auto;
  border: 1px solid #d5e2f4;
  background: rgba(255, 255, 255, .74);
  border-radius: 18px;
  padding: 24px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1f3b66;
  font-weight: 900;
  margin-bottom: 16px;
}

.section-title strong {
  background: #102033;
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: none;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.spotlight-grid article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: center;
  background: rgba(255,255,255,.88);
  border: 1px solid #dce7f5;
  border-radius: 14px;
  padding: 18px;
}

.spotlight h3 {
  color: #142033;
  margin-bottom: 8px;
}

.spotlight p {
  color: #667085;
  line-height: 1.6;
}

.icon,
.tile-icon {
  width: 50px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 900;
}

.icon {
  background: #dbeafe;
  color: #1d4ed8;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.feature-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin: 8px 0 2px;
}

.feature-heading span {
  color: #2458b8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  background: #edf4ff;
  border: 1px solid #d9e8ff;
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
}

.feature-heading h2 {
  max-width: 650px;
  font-size: 24px;
  line-height: 1.35;
  margin: 0;
  text-align: right;
}

.feature-band article {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(255, 255, 255, .78);
  border: 1px solid #dbe6f6;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 36px rgba(42, 68, 105, .07);
}

.feature-band h3 {
  margin: 18px 0 8px;
  font-size: 19px;
  white-space: nowrap;
}

.feature-band p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  font-size: 14px;
}

.tile-icon.blue { background: #cfe5ff; color: #2264aa; }
.tile-icon.green { background: #c8f4dc; color: #1b7950; }
.tile-icon.pink { background: #ffe0f0; color: #a14076; }
.tile-icon.yellow { background: #ffefab; color: #a86e05; }
.tile-icon.purple { background: #e4d8ff; color: #6044a3; }
.tile-icon.cyan { background: #d5f6ff; color: #19708a; }

.flow {
  margin-top: 22px;
  background: rgba(255,255,255,.72);
  border: 1px solid #dbe6f6;
  border-radius: 18px;
  padding: 24px;
}

.flow h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.flow-steps article {
  background: #fff;
  border: 1px solid #e4ebf5;
  border-radius: 14px;
  padding: 18px;
}

.flow-steps b {
  color: #327df3;
  display: block;
  margin-bottom: 12px;
}

.flow-steps span {
  font-weight: 900;
}

.flow-steps p {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 8px;
}

.auth-wrap {
  max-width: 460px;
  margin: 40px auto;
  padding: 0 20px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
}

button:hover {
  background: var(--brand-dark);
}

button:disabled {
  cursor: wait;
  opacity: .65;
}

.ghost {
  background: #eef4fb;
  color: var(--brand);
}

.ghost:hover {
  background: #dcecf8;
}

.small {
  padding: 7px 10px;
  font-size: 13px;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.topbar p,
.hint {
  color: var(--muted);
  margin-top: 6px;
}

.grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.narrow {
  max-width: 420px;
}

.wide {
  grid-column: 1 / -1;
}

.hidden {
  display: none !important;
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  margin-bottom: 12px;
  font-size: 14px;
}

label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
}

input[type="checkbox"] {
  width: auto;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  background: #fff;
  color: var(--text);
}

textarea {
  resize: vertical;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tenant-list {
  display: grid;
  gap: 14px;
}

.tenant {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

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

.tenant h3 {
  font-size: 17px;
}

.tenant p {
  color: var(--muted);
  margin-top: 2px;
}

.kv {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  margin: 8px 0;
  font-size: 13px;
}

.info-box {
  border: 1px solid #d8e7f3;
  background: #f5faff;
  border-radius: 8px;
  padding: 10px;
  margin-top: 14px;
}

.qr-box {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.qr-box img {
  width: 220px;
  height: 220px;
  border: 1px solid #d8e7f3;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.qr-box p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.kv span {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.cards-count {
  color: var(--ok);
  font-weight: 700;
  margin: 12px 0;
}

.stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.stats span {
  background: #eef4fb;
  color: #164b75;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}

.logs {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.log {
  display: grid;
  grid-template-columns: 170px 160px 60px 1fr;
  gap: 10px;
  border-bottom: 1px solid #eef1f5;
  padding-bottom: 8px;
  font-size: 12px;
  align-items: start;
}

.log span,
.log em,
.log code {
  color: var(--muted);
}

.log code {
  overflow-wrap: anywhere;
  white-space: normal;
}

.claim-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(23, 105, 170, .12), rgba(16, 124, 65, .10)),
    #f7fafc;
}

.claim-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 48px rgba(31, 41, 55, .12);
}

.brand {
  color: var(--brand);
  font-weight: 800;
  margin-bottom: 8px;
}

.claim-card h1 {
  font-size: 26px;
  margin-bottom: 10px;
}

.claim-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.result {
  border: 1px solid #9ad7b1;
  background: #effaf2;
  color: #064d25;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@media (max-width: 840px) {
  .shell {
    padding: 18px;
  }
  .topbar,
  .tenant-head {
    align-items: stretch;
    flex-direction: column;
  }
  .grid,
  .feature-band,
  .spotlight-grid,
  .flow-steps,
  .two,
  .log {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .feature-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .feature-heading h2 {
    text-align: left;
    font-size: 21px;
  }
  .feature-band article,
  .spotlight-grid article {
    grid-template-columns: 1fr;
  }
}
