:root {
  --night: #0b1426;
  --night-deep: #070d18;
  --panel: #111e34;
  --panel-2: #172740;
  --ivory: #f4efe2;
  --muted: #b7c0d0;
  --gold: #e6b95e;
  --gold-soft: #f1d59a;
  --line: rgba(244, 239, 226, 0.16);
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  min-width: 0;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(230, 185, 94, 0.12), transparent 32rem),
    radial-gradient(circle at 88% 22%, rgba(89, 126, 173, 0.16), transparent 28rem),
    linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
}
a { color: var(--gold-soft); text-underline-offset: 0.22em; }
a:hover { color: var(--ivory); }
img { max-width: 100%; height: auto; display: block; }
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--night-deep);
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 13, 24, 0.88);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
  padding-block: 0.6rem;
}
.brand img { width: 180px; max-width: 100%; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--gold-soft); border-bottom-color: var(--gold); }
main { display: block; }
.hero { padding: clamp(2.75rem, 7vw, 5.5rem) 0 2rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 2rem; align-items: center; }
.eyebrow { margin: 0 0 0.65rem; color: var(--gold); font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2.25rem, 6vw, 4.1rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1rem; }
.lede { color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 62ch; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: var(--night-deep);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--night-deep); }
.button.secondary { background: transparent; color: var(--ivory); border-color: var(--line); }
.button.secondary:hover { border-color: var(--gold); color: var(--gold-soft); }
.panel {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.panel-title { margin-bottom: 0.4rem; color: var(--gold-soft); }
.panel p:last-child { margin-bottom: 0; }
.note-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.note-list li { padding: 0.55rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.note-list li:first-child { border-top: 0; }
.section { padding: 2.5rem 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-head p { color: var(--muted); max-width: 58ch; margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.card {
  background: rgba(17, 30, 52, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  min-width: 0;
}
.card p { color: var(--muted); margin-bottom: 0; }
.card-index { display: inline-block; color: var(--gold); font-size: 0.78rem; letter-spacing: 0.12em; margin-bottom: 0.6rem; }
.flow-scroll, .table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 13, 24, 0.42);
  scrollbar-color: var(--gold) transparent;
}
.flow-scroll:focus-visible, .table-scroll:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.flow-inner { min-width: 760px; padding: 1rem; }
.flow-label {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 172px;
  gap: 1rem;
  padding: 0 0.9rem 0.6rem;
  color: var(--gold-soft);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.flow { display: flex; gap: 1rem; }
.flow-step {
  position: relative;
  flex: 0 0 220px;
  min-height: 176px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}
.flow-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1rem;
  width: 1rem;
  border-top: 1px dashed var(--gold);
}
.flow-step:last-child::after { display: none; }
.flow-time { color: var(--gold); font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.flow-name { margin: 0.45rem 0 0.7rem; font-size: 1rem; }
.flow-owner { margin: 0; padding-top: 0.65rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }
.table-scroll { border-radius: 16px; }
.table-inner { min-width: 640px; padding: 0.5rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { color: var(--gold-soft); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td { color: var(--muted); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.1rem 1.1rem 1.1rem 4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(17, 30, 52, 0.82);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.1rem;
  top: 1.05rem;
  color: var(--gold);
  font-weight: 700;
}
.steps p { color: var(--muted); margin-bottom: 0; }
.terms-list { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.terms-list li { margin-bottom: 0.6rem; }
.callout {
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--gold);
  background: rgba(230, 185, 94, 0.08);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
}
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem 0; color: var(--muted); font-size: 0.88rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.footer-links a { text-decoration: none; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .header-inner { justify-content: flex-start; }
  .brand img { width: 160px; }
}
@media (max-width: 420px) {
  .wrap { width: min(1120px, calc(100% - 1.25rem)); }
  .button { width: 100%; }
  .button-row { display: grid; }
  .flow-inner { padding: 0.75rem; }
  .flow-step { flex-basis: 200px; min-height: 164px; }
}
