:root {
  --bg: #07111c;
  --deep: #040b14;
  --navy: #14304c;
  --gold: #e3b15a;
  --cream: #f6f1e6;
  --muted: rgba(246, 241, 230, 0.72);
  --line: rgba(227, 177, 90, 0.28);
  --sans: "Segoe UI", "Helvetica Neue", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--cream);
  font-family: var(--sans);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 480px at 85% -10%, rgba(227, 177, 90, 0.16), transparent 58%),
    radial-gradient(700px 420px at -10% 20%, rgba(28, 74, 122, 0.45), transparent 60%),
    linear-gradient(rgba(227, 177, 90, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 177, 90, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 80px 80px, 80px 80px;
}

a { color: var(--gold); }

.disclaimer-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: var(--deep);
  color: var(--cream);
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.disclaimer-bar a { color: var(--gold); }

.disclaimer-lead,
.disclaimer-more,
.disclaimer-more-label,
.nav-toggle,
.nav-toggle-label,
.when-open { display: none; }

.disclaimer-lead,
.disclaimer-body { margin: 0; }

.site-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 28, 0.82);
}

.header-inner,
.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
  text-decoration: none;
}

.brand img {
  height: 52px;
  width: auto;
  background: var(--cream);
  border-radius: 14px;
  padding: 0.2rem 0.35rem;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  justify-content: flex-end;
}

.nav a {
  color: rgba(246, 241, 230, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a[aria-current="page"],
.nav a:hover { color: var(--gold); }

main { flex: 1; padding: 2.5rem 0 3.5rem; }

.hero {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.stat-panel {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(8, 18, 32, 0.72);
  padding: 1.15rem 1.1rem 1rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: rgba(12, 28, 48, 0.9);
  padding: 0.9rem 0.95rem 1rem;
}

.stat strong {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--sans);
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat span,
.stat-panel > .quiet {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.stat-panel > .quiet { margin-top: 0.85rem; }

.eyebrow {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; }

h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.lead {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.actions, .cards, .steps, .docs, .split {
  display: grid;
  gap: 1rem;
}

.actions { grid-template-columns: repeat(auto-fit, minmax(180px, max-content)); margin-top: 1.4rem; }

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--gold);
  color: var(--deep);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.15rem;
  cursor: pointer;
}

.button.ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--line);
}

.cards, .steps, .docs { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1.5rem; }

.card, .bank, .form, .doc, .zone {
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(12, 28, 48, 0.82);
  padding: 1.2rem 1.25rem 1.3rem;
}

.card p, .doc p, .zone p, .bank p { color: var(--muted); line-height: 1.6; }

.section { margin-top: 2.6rem; }

.bank dl { margin: 1rem 0 0; }
.bank div { display: grid; gap: 0.15rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.bank dt { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.bank dd { margin: 0; font-size: 1.05rem; }

.quiet { color: var(--muted); font-size: 0.92rem; }

form { display: grid; gap: 0.85rem; }
label { display: grid; gap: 0.35rem; font-size: 0.95rem; }
input, textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: #07111c;
  color: var(--cream);
  font: inherit;
  padding: 0.75rem 0.85rem;
}
.check { grid-template-columns: auto 1fr; align-items: start; gap: 0.7rem; color: var(--muted); }
.check input { width: auto; margin-top: 0.25rem; }

.notice {
  border: 1px solid var(--line);
  background: rgba(227, 177, 90, 0.1);
  color: var(--gold);
  border-radius: 1rem;
  padding: 0.8rem 1rem;
}

.notice.error { color: #ffb4b4; border-color: rgba(255, 180, 180, 0.45); }

.table-wrap { overflow-x: auto; margin: 0.5rem 0 1.4rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
select { width: 100%; border-radius: 0.9rem; border: 1px solid var(--line); background: #07111c; color: var(--cream); font: inherit; padding: 0.75rem 0.85rem; }

.split { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.contact-split { align-items: end; }
.contact-split > .form { margin: 0; }

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--deep);
  padding: 2rem 0 2.4rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-grid ul { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-grid a { color: var(--cream); text-decoration: none; }
.footer-grid a:hover { color: var(--gold); }
.footer-disclaimer { color: var(--muted); line-height: 1.65; margin: 0.4rem 0 0; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 1rem 1.5rem;
  background: rgba(4, 11, 20, 0.78);
}

html.qi-ack .gate { display: none; }

.gate-card {
  width: min(38rem, 100%);
  border: 1px solid var(--gold);
  border-radius: 1.5rem;
  background: var(--deep);
  padding: 1.4rem 1.3rem 1.3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  max-height: calc(100vh - 7rem);
  overflow: auto;
}

.gate-card h2 { margin: 0.35rem 0 0.6rem; font-size: 1.8rem; }
.gate-card p { color: var(--muted); line-height: 1.6; }

@media (min-width: 800px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; }
  .footer-grid { grid-template-columns: 1.3fr 0.7fr 1.2fr; }
}

@media (max-width: 800px) {
  .disclaimer-bar {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .disclaimer-lead { display: block; }
  .disclaimer-body { display: none; }
  .disclaimer-more-label {
    display: inline-block;
    margin-top: 0.2rem;
    color: var(--gold);
    font-weight: 700;
    cursor: pointer;
  }
  .disclaimer-more:checked ~ .disclaimer-lead { display: none; }
  .disclaimer-more:checked ~ .disclaimer-body { display: block; }
  .disclaimer-more:checked ~ .disclaimer-more-label .when-closed { display: none; }
  .disclaimer-more:checked ~ .disclaimer-more-label .when-open { display: inline; }

  .header-inner { flex-wrap: wrap; padding: 0.45rem 0; }
  .brand img { height: 40px; }
  .brand strong { font-size: 1.05rem; }
  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    cursor: pointer;
  }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.2rem 0 0.75rem;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav-toggle:checked ~ .nav-toggle-label .when-closed { display: none; }
  .nav-toggle:checked ~ .nav-toggle-label .when-open { display: inline; }
}

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