:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0b0b0c;
  --surface: #111113;
  --surface-2: #171719;
  --line: rgba(255,255,255,.12);
  --line-strong: rgba(255,255,255,.2);
  --text: #f6f3ee;
  --muted: #aaa39a;
  --muted-2: #746f68;
  --red: #e11919;
  --red-soft: rgba(225,25,25,.13);
  --cream: #f3eee3;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 6%, rgba(225,25,25,.18), transparent 32rem),
    radial-gradient(circle at 88% 22%, rgba(255,255,255,.05), transparent 26rem),
    linear-gradient(180deg, #050505 0%, #080808 58%, #f4f0e8 58%, #f4f0e8 100%);
  line-height: 1.55;
}
body.simple-bg { background: #050505; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--red);
  border-radius: 6px;
}
.skip-link:focus { top: 16px; }

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 24px 0;
}
.nav {
  width: min(var(--max), 100%);
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10,10,11,.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: .04em;
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}
.brand span { font-size: 1.02rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}
.nav-links a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #d8d2cb;
  font-size: .92rem;
  font-weight: 740;
}
.nav-links a.active,
.nav-links a:hover {
  color: #fff;
  background: var(--red-soft);
}
.book, .btn, .menu, form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: #fff;
  background: #151515;
  font-weight: 850;
  cursor: pointer;
}
.book, .btn.primary, form button {
  border-color: rgba(225,25,25,.6);
  background: var(--red);
  box-shadow: 0 14px 42px rgba(225,25,25,.18);
}
.btn.ghost { background: rgba(255,255,255,.04); }
.menu { display: none; }

main { overflow: hidden; }
.hero,
.section,
.light-section,
.footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}
.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  gap: 56px;
  align-items: center;
  padding: 82px 0 74px;
}
.hero-copy { max-width: 720px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 7px rgba(225,25,25,.12);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7.2vw, 6.9rem);
  line-height: .9;
  letter-spacing: -.05em;
}
h2 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 4.8vw, 4.7rem);
  line-height: .94;
  letter-spacing: -.045em;
}
h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.hero-copy > p:not(.eyebrow), .section-head > p, .intro-copy p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.trust span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #ddd7d0;
  background: rgba(255,255,255,.045);
  font-size: .88rem;
  font-weight: 720;
}
.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.22);
}
.panel-head b { font-size: 1rem; }
.panel-head small { color: var(--muted); font-weight: 750; }
.panel-logo { display: flex; align-items: center; gap: 10px; }
.panel-logo img { width: 34px; height: 34px; border-radius: 7px; background: #000; }
.system-card { padding: 20px; }
.system-flow { display: grid; gap: 10px; }
.flow-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0,0,0,.18);
}
.flow-row span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
}
.flow-row p { margin: 4px 0 0; color: var(--muted); font-size: .94rem; }

.section { padding: 86px 0; color: var(--text); }
.light-section {
  padding: 90px 0;
  color: #101010;
}
.light-section .eyebrow { color: #1b1715; }
.light-section .section-head > p,
.light-section p { color: #5e5751; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}
.cards {
  display: grid;
  gap: 14px;
}
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cards.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .cards article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(10,10,10,.12);
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 34px rgba(12,12,12,.06);
}
.section .card,
.section .cards article {
  border-color: var(--line);
  background: rgba(255,255,255,.045);
  box-shadow: none;
}
.card span, .cards article span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: #fff;
  background: #111;
  font-weight: 900;
}
.section .card span, .section .cards article span { background: var(--red); }
.card p, .cards article p { margin-bottom: 18px; font-size: .98rem; }
.card a, .cards article a { color: var(--red); font-weight: 900; }

.diagram {
  display: grid;
  gap: 12px;
  padding: 18px;
}
.diagram-node {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0,0,0,.22);
}
.diagram-node strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.diagram-node small { color: var(--muted); }
.diagram-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.diagram-node.red { border-color: rgba(225,25,25,.5); background: rgba(225,25,25,.12); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: 42px;
  align-items: start;
}
.list { display: grid; gap: 10px; margin-top: 24px; }
.list li {
  list-style: none;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.045);
}
.list strong { color: var(--text); }

.article-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 760px);
  gap: 44px;
  align-items: start;
}
.article-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.045);
}
.article-sidebar .eyebrow { margin-bottom: 8px; }
.article-sidebar a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #ddd7d0;
  background: rgba(0,0,0,.18);
  font-weight: 760;
}
.article-body {
  padding: 8px 0 0;
  color: #eee9e1;
}
.article-body h2 {
  margin-top: 38px;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.article-body p {
  color: var(--muted);
  font-size: 1.06rem;
}
.article-meta {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.045);
}
.callout {
  margin: 30px 0;
  padding: 20px;
  border: 1px solid rgba(225,25,25,.45);
  border-radius: var(--radius);
  color: #f8f2ec;
  background: rgba(225,25,25,.12);
}
.callout strong { color: #fff; }

.contact-panel { padding: 20px; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 14px; }
.contact-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0,0,0,.18);
}
.contact-option span { color: var(--muted); font-size: .94rem; }
form { display: grid; gap: 10px; }
input, textarea, select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(0,0,0,.2);
}
textarea { min-height: 120px; resize: vertical; }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 46px;
  color: #5e5751;
  font-weight: 720;
}
.footer .brand { color: #111; }
.footer .brand img { width: 34px; height: 34px; }

@media (max-width: 980px) {
  body { background: #050505; }
  .nav-wrap { padding: 12px 14px 0; }
  .nav { flex-wrap: wrap; }
  .menu { display: inline-flex; }
  .book { display: none; }
  .nav-links {
    order: 4;
    display: none;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-links.is-open { display: grid; }
  .nav-links a { text-align: center; }
  .hero,
  .section,
  .light-section,
  .footer { width: min(100% - 28px, var(--max)); }
  .hero, .split, .section-head, .contact-grid, .article-shell { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .hero { min-height: auto; padding: 54px 0 60px; gap: 32px; }
  h1 { font-size: clamp(3rem, 14vw, 5.2rem); }
  h2 { font-size: clamp(2.2rem, 10vw, 4rem); }
  .light-section { color: var(--text); background: #f4f0e8; width: 100%; padding-left: 14px; padding-right: 14px; }
  .cards.three, .cards.four, .cards.five, .cards.six { grid-template-columns: 1fr; }
  .diagram-split { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; color: #d0c8bd; }
  .footer .brand { color: #fff; }
}

@media (max-width: 520px) {
  .brand span { font-size: .92rem; }
  .brand img { width: 36px; height: 36px; }
  .hero-copy > p:not(.eyebrow) { font-size: 1rem; }
  .actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-panel { border-radius: 6px; }
  .flow-row { grid-template-columns: 1fr; }
}
