:root {
  --ink: #08111b;
  --ink-deep: #050a10;
  --surface: #0e1a27;
  --surface-raised: #132334;
  --line: rgba(197, 210, 220, 0.14);
  --text: #f2eee5;
  --text-muted: #aab5bd;
  --text-faint: #74828c;
  --accent: #c6a66a;
  --accent-hover: #d7b978;
  --status: #35bfa5;
  --danger: #d47878;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-ui: Manrope, system-ui, sans-serif;
  --container: 70rem;
  --radius: 4px;
  --space: 8px;
}

@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("/assets/fonts/dm-serif-display.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--ink);
  padding: 0.5rem 1rem;
}

.skip-link:focus {
  left: var(--space);
  top: var(--space);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Identity bar */
.identity-bar {
  background: var(--ink-deep);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}

.identity-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  min-height: 2.4rem;
  padding-block: 0.4rem;
}

.identity-bar p {
  margin: 0;
  color: var(--text-faint);
}

.identity-bar strong {
  color: var(--text-muted);
  font-weight: 600;
}

.identity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.identity-links a {
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
}

.identity-links a:hover {
  color: var(--accent);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 17, 27, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.1;
}

.brand-desk {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.nav {
  display: none;
  gap: 1.1rem;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.has-drop {
  position: relative;
}

.has-drop > a::after {
  content: " ▾";
  font-size: 0.7em;
  color: var(--accent);
}

.drop {
  display: none;
  position: absolute;
  top: 100%;
  left: -0.75rem;
  min-width: 15rem;
  padding: 0.5rem 0;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  z-index: 60;
}

.has-drop:hover .drop,
.has-drop:focus-within .drop {
  display: block;
}

.drop a {
  display: block;
  padding: 0.5rem 1rem;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.88rem;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 0.55rem;
}

.menu-toggle span {
  display: block;
  height: 1px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.25rem 1rem 1rem;
  border-top: 1px solid var(--line);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

@media (min-width: 1100px) {
  .nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .header-actions .btn-quiet {
    display: inline-flex;
  }
}

@media (max-width: 1099px) {
  .header-actions .btn-quiet {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--ink);
}

.btn-quiet {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.btn-quiet:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Type */
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.display {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.18;
  font-weight: 400;
}

.subheading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.25;
}

.lead {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.muted,
.content p,
.content li {
  color: var(--text-muted);
}

.content {
  max-width: 65ch;
}

.content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text);
  margin: 2.25rem 0 0.75rem;
  font-size: 1.5rem;
}

.content h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text);
  margin: 1.75rem 0 0.5rem;
  font-size: 1.2rem;
}

.content ul,
.content ol {
  padding-left: 1.2rem;
}

/* Sections */
.section {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 40rem;
}

.section-head .lead {
  margin-top: 0.85rem;
}

.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(
      ellipse 55% 45% at 85% 10%,
      rgba(198, 166, 106, 0.14),
      transparent 55%
    ),
    radial-gradient(
      ellipse 40% 35% at 10% 80%,
      rgba(53, 191, 165, 0.06),
      transparent 50%
    ),
    linear-gradient(180deg, #0a1520 0%, var(--ink) 100%);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.35fr 0.85fr;
    align-items: end;
    gap: 3rem;
  }
}

.hero-tagline {
  margin: 0.75rem 0 0;
  color: var(--text-faint);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}

.hero-visual-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding: 0.8rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 16, 0.92) 40%);
}

.hero-visual-strip span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

/* Trust strip */
.trust-strip {
  border-top: 1px solid var(--line);
  background: var(--ink-deep);
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

@media (min-width: 800px) {
  .trust-strip-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  padding: 1.15rem 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

.trust-item span {
  color: var(--text-faint);
  font-size: 0.8rem;
}

/* Role matrix */
.role-matrix {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

@media (min-width: 800px) {
  .role-matrix {
    grid-template-columns: repeat(4, 1fr);
  }
}

.role-cell {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.role-cell .who {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.role-cell p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Portal mock */
.portal-mock {
  border: 1px solid var(--line);
  background: var(--surface-raised);
  padding: 1.25rem;
  font-size: 0.88rem;
  max-width: 34rem;
}

.portal-mock-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.portal-mock-head strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
}

.portal-mock-head span {
  color: var(--text-faint);
  font-size: 0.75rem;
}

.portal-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.portal-row:last-child {
  border-bottom: 0;
}

.portal-row .k {
  color: var(--text-faint);
}

.portal-row .v {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.portal-row .v.gold {
  color: var(--accent);
}

.portal-row .v.green {
  color: var(--status);
}

.portal-note {
  margin-top: 0.9rem;
  padding: 0.65rem 0.8rem;
  border: 1px dashed rgba(198, 166, 106, 0.5);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
}

.portal-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Pillars / cards */
.pillar-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}

@media (min-width: 800px) {
  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  padding: 1.25rem 1.15rem;
  border: 1px solid var(--line);
  background: rgba(14, 26, 39, 0.7);
}

.pillar .eyebrow {
  margin-bottom: 0.45rem;
}

.pillar p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: rgba(198, 166, 106, 0.35);
}

.card p {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card .card-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.operator-note {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 42rem;
}

.disclaimer {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--accent);
  background: var(--surface-raised);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.note-warn {
  border-left-color: var(--danger);
}

/* Flow diagram */
.flow {
  display: grid;
  gap: 0;
  margin: 2rem 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.flow-step:last-child {
  border-bottom: 0;
}

.flow-step .n {
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.flow-step strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.flow-step span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.flow-arrow {
  text-align: center;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 0.35rem;
  border-bottom: 1px solid var(--line);
}

/* Steps numbered list */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.1rem 1.1rem 1.1rem 3.6rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.steps li strong {
  color: var(--text);
}

/* Tables */
.spec-table,
.stage-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.spec-table th,
.spec-table td,
.stage-table th,
.stage-table td {
  text-align: left;
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th,
.stage-table th {
  color: var(--text-faint);
  font-weight: 600;
}

.spec-table td,
.stage-table td {
  color: var(--text-muted);
}

.stage-table thead th {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Split protect */
.split-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.check-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--status);
  border-radius: 1px;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  max-width: 65ch;
}

/* Page hero */
.page-hero {
  padding: clamp(3rem, 6vw, 4rem) 0 2.25rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #0a1520 0%, var(--ink) 100%);
}

.page-hero .lead {
  margin-top: 0.9rem;
}

/* Forms */
.form-wrap {
  max-width: 38rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.form-section-label {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* CTA band */
.cta-band {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

/* Anti-fraud rules */
.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.rule-list li {
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Status chips (illustrative) */
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.status-chip {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  color: var(--text-faint);
}

.status-chip.is-live {
  border-color: rgba(53, 191, 165, 0.45);
  color: var(--status);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  background: var(--ink-deep);
}

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

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
}

.footer-heading {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 0.4rem;
}

.footer-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.85rem;
  max-width: 48rem;
}

.footer-legal strong {
  color: var(--text-muted);
  font-weight: 600;
}

.footer-legal p {
  margin: 0 0 0.65rem;
}

.formula {
  margin: 2rem 0 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  text-align: center;
}

.formula p {
  margin: 0.35rem 0;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.formula .eq {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: none;
  margin-top: 0.75rem;
}
