:root {
  --ink: #100719;
  --ink-2: #190b2a;
  --panel: rgba(36, 15, 55, 0.82);
  --panel-soft: rgba(73, 29, 105, 0.42);
  --line: rgba(246, 205, 112, 0.28);
  --gold: #f4c463;
  --gold-2: #ffdf8a;
  --violet: #9d38ff;
  --violet-2: #d66dff;
  --text: #fff7df;
  --muted: #cbb9df;
  --green: #5bd79a;
  --red: #ff6a6a;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(153, 63, 255, 0.35), transparent 31rem),
    radial-gradient(circle at 78% 16%, rgba(239, 180, 75, 0.19), transparent 30rem),
    linear-gradient(180deg, #09020f 0%, #16051f 42%, #0c0614 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 14px;
  background: var(--gold);
  color: #160515;
  z-index: 20;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(12, 3, 20, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(157, 56, 255, 0.38);
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-toggle {
  display: none;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-2);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #eadcf9;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(244, 196, 99, 0.12);
  color: var(--gold-2);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 590px;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 2, 15, 0.88), rgba(9, 2, 15, 0.46) 42%, rgba(9, 2, 15, 0.2)),
    linear-gradient(180deg, rgba(9, 2, 15, 0.2), rgba(9, 2, 15, 0.92));
  z-index: -1;
}

.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 94px 0 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  color: var(--gold-2);
  background: rgba(47, 17, 70, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet-2);
  box-shadow: 0 0 16px var(--violet-2);
}

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

h1 {
  max-width: 860px;
  margin: 20px 0 16px;
  font-size: clamp(2.2rem, 5.35vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 690px;
  margin-bottom: 24px;
  color: #eadcf9;
  font-size: clamp(1rem, 2vw, 1.14rem);
  overflow-wrap: anywhere;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 223, 138, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, #f4c463, #9d38ff);
  color: #160515;
  font-weight: 900;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.1);
  box-shadow: 0 12px 30px rgba(157, 56, 255, 0.25);
}

.btn.secondary {
  background: rgba(28, 10, 44, 0.75);
  color: var(--gold-2);
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.metric {
  min-height: 92px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(25, 7, 39, 0.62);
}

.metric strong {
  display: block;
  color: var(--gold-2);
  font-size: 1.35rem;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section.compact {
  padding-top: 38px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.42fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-kicker {
  color: var(--violet-2);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.76rem;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.75rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
  line-height: 1.25;
}

.muted {
  color: var(--muted);
}

.image-text {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.82fr);
  gap: 28px;
  align-items: center;
}

.image-text.reverse {
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 0.98fr);
}

.media-panel {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(20, 7, 30, 0.68);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

.media-panel img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

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

.copy-panel ul,
.text-page ul {
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
}

.copy-panel li + li,
.text-page li + li {
  margin-top: 10px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.card,
.mini-card,
.faq-item,
.text-page {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(28, 9, 43, 0.78);
}

.card {
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 223, 138, 0.55);
  background: rgba(45, 16, 68, 0.86);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  padding: 18px;
}

.tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold-2);
  font-weight: 900;
  font-size: 0.78rem;
}

.mini-card {
  padding: 18px;
}

.mini-card strong {
  display: block;
  color: var(--gold-2);
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 8px;
}

.ledger {
  display: grid;
  gap: 10px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.ledger-row span:first-child {
  color: var(--muted);
}

.ledger-row span:last-child {
  color: var(--gold-2);
  font-weight: 900;
  text-align: right;
}

.route {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
}

.route .mini-card {
  position: relative;
  min-height: 166px;
}

.route .mini-card::before {
  counter-increment: step;
  content: "0" counter(step);
  color: var(--violet-2);
  font-weight: 900;
  font-size: 0.92rem;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item button {
  width: 100%;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-item button::after {
  content: "+";
  color: var(--gold-2);
  font-size: 1.4rem;
}

.faq-item.is-open button::after {
  content: "-";
}

.faq-panel {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
}

.faq-item.is-open .faq-panel {
  display: block;
}

.page-hero {
  padding: 116px 0 46px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(9, 2, 15, 0.9), rgba(35, 9, 54, 0.72)),
    var(--page-image);
  background-size: cover;
  background-position: center;
}

.page-hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 780px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.text-page {
  padding: clamp(22px, 4vw, 42px);
}

.text-page h2 {
  margin-top: 34px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.text-page h2:first-child {
  margin-top: 0;
}

.notice {
  padding: 18px;
  border: 1px solid rgba(91, 215, 154, 0.35);
  border-radius: 8px;
  background: rgba(91, 215, 154, 0.08);
  color: #d8ffe9;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(8, 2, 13, 0.88);
}

.footer-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 30px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--gold-2);
}

.copyright {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .nav-toggle {
    position: absolute;
    right: 16px;
    top: 16px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    background: rgba(47, 17, 70, 0.74);
    box-shadow: 0 0 18px rgba(157, 56, 255, 0.25);
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(16, 7, 25, 0.98);
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero {
    min-height: 600px;
  }

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

  .section-head,
  .image-text,
  .image-text.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav-wrap,
  .section,
  .hero-inner,
  .page-hero-inner,
  .footer-grid {
    width: min(100% - 22px, var(--max));
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  h1 {
    max-width: 340px;
    margin: 16px 0 12px;
    font-size: clamp(1.72rem, 9.4vw, 2.35rem);
    line-height: 1.08;
  }

  .hero-lead {
    max-width: 350px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .hero-actions {
    gap: 8px;
  }

  .btn {
    min-height: 42px;
    padding: 10px 13px;
    font-size: 0.9rem;
  }

  .hero-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4,
  .route {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: auto;
    padding: 11px 12px;
  }

  .metric strong {
    font-size: 1.2rem;
  }

  .metric span {
    font-size: 0.9rem;
  }

  .copy-panel,
  .text-page {
    padding: 20px;
  }

  .ledger-row {
    grid-template-columns: 1fr;
  }

  .ledger-row span:last-child {
    text-align: left;
  }
}

@media (max-width: 920px) {
  .site-header .nav-toggle {
    position: absolute;
    right: 16px;
    top: 16px;
    display: inline-flex !important;
    flex: 0 0 42px;
  }
}
