@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;700;800&family=Libre+Baskerville:wght@400;700&display=swap");

:root {
  --bg: #090d16;
  --bg-soft: #101726;
  --red: #7e0d0d;
  --red-deep: #520909;
  --red-light: #c23a32;
  --cream: #f4ead9;
  --cream-soft: rgba(244, 234, 217, 0.72);
  --cream-muted: rgba(244, 234, 217, 0.52);
  --line: rgba(244, 234, 217, 0.16);
  --line-strong: rgba(244, 234, 217, 0.34);
  --gold: #c8a96a;
  --ink: #1c1714;
  --whatsapp: #25d366;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body.system-page {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.system-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 8%, rgba(194, 58, 50, 0.2), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(200, 169, 106, 0.12), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 44px 44px, auto;
}

body.system-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(9, 13, 22, 0.2), rgba(9, 13, 22, 0.72));
  pointer-events: none;
}

a {
  color: inherit;
}

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

.system-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  width: min(1120px, calc(100% - 28px));
  min-height: 60px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 10px 9px 18px;
  border: 1px solid var(--line);
  background: rgba(9, 13, 22, 0.78);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.system-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}

.system-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 169, 106, 0.6);
  border-radius: 50%;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.system-brand strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.system-brand span:last-child {
  display: block;
  margin-top: 1px;
  color: var(--cream-muted);
  font-size: 11px;
}

.system-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.system-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--cream-soft);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.system-links a:hover,
.system-links a.active {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.055);
}

.system-links .nav-cta {
  margin-left: 8px;
  border: 1px solid rgba(200, 169, 106, 0.42);
  color: var(--gold);
}

.system-progress {
  position: fixed;
  left: 22px;
  top: 50%;
  z-index: 30;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
}

.system-progress a {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(244, 234, 217, 0.46);
  border-radius: 50%;
  background: rgba(244, 234, 217, 0.12);
  text-indent: -999px;
  overflow: hidden;
}

.system-progress a:hover {
  border-color: var(--gold);
  background: var(--gold);
}

.system-shell {
  padding-top: 0;
}

.system-section {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(110px, 12vh, 150px) clamp(18px, 4vw, 58px) clamp(46px, 7vh, 78px);
  isolation: isolate;
}

.system-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.96;
  background:
    linear-gradient(90deg, rgba(126, 13, 13, 0.9), rgba(82, 9, 9, 0.62) 42%, rgba(9, 13, 22, 0.18)),
    radial-gradient(circle at 16% 44%, rgba(244, 234, 217, 0.08), transparent 22rem);
}

.system-section:nth-child(even)::before {
  background:
    linear-gradient(90deg, rgba(82, 9, 9, 0.9), rgba(126, 13, 13, 0.55) 44%, rgba(9, 13, 22, 0.24)),
    radial-gradient(circle at 22% 54%, rgba(200, 169, 106, 0.1), transparent 24rem);
}

.system-section[data-tone="dark"]::before {
  background:
    linear-gradient(90deg, rgba(9, 13, 22, 0.96), rgba(9, 13, 22, 0.74) 46%, rgba(126, 13, 13, 0.32)),
    radial-gradient(circle at 20% 45%, rgba(200, 169, 106, 0.09), transparent 26rem);
}

.system-section[data-tone="cream"] {
  color: var(--ink);
}

.system-section[data-tone="cream"]::before {
  background:
    linear-gradient(90deg, rgba(244, 234, 217, 0.98), rgba(240, 224, 198, 0.96) 48%, rgba(126, 13, 13, 0.18)),
    radial-gradient(circle at 18% 36%, rgba(126, 13, 13, 0.08), transparent 28rem);
}

.system-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.system-copy {
  max-width: 570px;
}

.slide-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(18px, 3vw, 34px);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.slide-meta::before {
  content: "";
  width: 52px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.system-kicker {
  margin: 0 0 13px;
  color: var(--cream-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

[data-tone="cream"] .system-kicker {
  color: rgba(28, 23, 20, 0.52);
}

.system-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8.4vw, 7.4rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.system-title.small {
  font-size: clamp(2.65rem, 6.2vw, 5.55rem);
}

.system-title em {
  color: var(--gold);
  font-style: normal;
}

.system-lead {
  max-width: 720px;
  margin: clamp(18px, 3vw, 28px) 0 0;
  color: var(--cream-soft);
  font-size: clamp(1.22rem, 2.5vw, 1.8rem);
  line-height: 1.45;
  text-wrap: balance;
}

[data-tone="cream"] .system-lead {
  color: rgba(28, 23, 20, 0.72);
}

.system-text {
  margin: 22px 0 0;
  color: var(--cream-soft);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 1.78;
}

[data-tone="cream"] .system-text {
  color: rgba(28, 23, 20, 0.76);
}

.system-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 42px);
}

.system-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cream);
  padding: 13px 19px;
  background: var(--cream);
  color: var(--red-deep);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.system-button.secondary {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 234, 217, 0.42);
}

[data-tone="cream"] .system-button {
  border-color: var(--red-deep);
  background: var(--red-deep);
  color: var(--cream);
}

[data-tone="cream"] .system-button.secondary {
  background: transparent;
  color: var(--red-deep);
}

.system-visual {
  position: relative;
  min-height: clamp(420px, 70vh, 720px);
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(244, 234, 217, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 234, 217, 0.032) 1px, transparent 1px),
    rgba(9, 13, 22, 0.34);
  background-size: 34px 34px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

[data-tone="cream"] .system-visual {
  border-color: rgba(28, 23, 20, 0.16);
  background:
    linear-gradient(rgba(28, 23, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 23, 20, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.42);
}

.wireframe {
  position: absolute;
  inset: clamp(26px, 4vw, 54px);
  display: grid;
  grid-template-rows: 1.15fr 0.5fr 0.86fr 0.5fr 0.58fr;
  border: 1px solid rgba(244, 234, 217, 0.24);
}

[data-tone="cream"] .wireframe {
  border-color: rgba(82, 9, 9, 0.22);
}

.wire-row {
  position: relative;
  border-bottom: 1px solid rgba(244, 234, 217, 0.16);
  opacity: 0.62;
}

[data-tone="cream"] .wire-row {
  border-color: rgba(82, 9, 9, 0.14);
}

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

.wire-row::before,
.wire-row::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(244, 234, 217, 0.2);
}

[data-tone="cream"] .wire-row::before,
[data-tone="cream"] .wire-row::after {
  border-color: rgba(82, 9, 9, 0.22);
}

.wire-hero::before {
  left: 8%;
  top: 23%;
  width: 35%;
  height: 10px;
  box-shadow: 0 22px 0 rgba(244, 234, 217, 0.18), 0 44px 0 rgba(244, 234, 217, 0.13);
  border: 0;
  background: rgba(244, 234, 217, 0.2);
}

.wire-hero::after {
  right: 8%;
  top: 18%;
  width: 34%;
  height: 56%;
}

.wire-problem::before {
  left: 8%;
  top: 26%;
  width: 18%;
  height: 36%;
  border-radius: 50%;
  box-shadow: 120px 0 0 -1px rgba(244, 234, 217, 0.08), 240px 0 0 -1px rgba(244, 234, 217, 0.08);
}

.wire-story::before {
  left: 8%;
  top: 24%;
  width: 34%;
  height: 48%;
}

.wire-story::after {
  right: 8%;
  top: 28%;
  width: 38%;
  height: 9px;
  box-shadow: 0 24px 0 rgba(244, 234, 217, 0.14), 0 48px 0 rgba(244, 234, 217, 0.1);
  border: 0;
  background: rgba(244, 234, 217, 0.18);
}

.wire-proof::before {
  left: 12%;
  right: 12%;
  top: 28%;
  height: 7px;
  border: 0;
  background: rgba(244, 234, 217, 0.2);
  box-shadow: 0 21px 0 rgba(244, 234, 217, 0.12);
}

.wire-features::before {
  left: 7%;
  top: 22%;
  width: 18%;
  height: 48%;
  box-shadow: 112px 0 0 -1px rgba(244, 234, 217, 0.07), 224px 0 0 -1px rgba(244, 234, 217, 0.07), 336px 0 0 -1px rgba(244, 234, 217, 0.07);
}

.wire-cta::before {
  left: 28%;
  right: 28%;
  top: 38%;
  height: 34%;
}

.wire-row.is-active {
  opacity: 1;
  background: linear-gradient(90deg, rgba(194, 58, 50, 0.26), rgba(244, 234, 217, 0.055));
  outline: 1px solid rgba(244, 234, 217, 0.48);
  box-shadow: 0 0 34px rgba(244, 234, 217, 0.12);
}

[data-tone="cream"] .wire-row.is-active {
  background: linear-gradient(90deg, rgba(126, 13, 13, 0.18), rgba(255, 255, 255, 0.24));
  outline-color: rgba(126, 13, 13, 0.34);
}

.visual-label {
  position: absolute;
  left: clamp(20px, 3vw, 42px);
  top: clamp(20px, 3vw, 38px);
  z-index: 3;
  max-width: 190px;
}

.visual-label span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.visual-label strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.visual-label p {
  margin: 13px 0 0;
  color: var(--cream-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

[data-tone="cream"] .visual-label p {
  color: rgba(28, 23, 20, 0.58);
}

.system-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.system-card {
  border: 1px solid var(--line);
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.system-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cream);
  font-size: 0.96rem;
}

.system-card p {
  margin: 0;
  color: var(--cream-muted);
  font-size: 0.95rem;
  line-height: 1.58;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.proof-item {
  border-top: 1px solid var(--gold);
  padding-top: 15px;
}

.proof-item b {
  display: block;
  font-family: var(--serif);
  color: var(--cream);
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.proof-item span {
  display: block;
  margin-top: 8px;
  color: var(--cream-muted);
  font-size: 0.95rem;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.feature-list span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 169, 106, 0.45);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 900;
}

.feature-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--cream);
}

.feature-list p {
  margin: 0;
  color: var(--cream-muted);
}

.country-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.country-mini button {
  border: 1px solid rgba(244, 234, 217, 0.22);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--cream-soft);
  cursor: pointer;
}

.country-mini button.is-active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200, 169, 106, 0.12);
}

.country-note {
  margin-top: 16px;
  color: var(--cream-muted);
  font-size: 0.98rem;
}

.portal-grid .system-card {
  min-height: 148px;
}

.portal-visual {
  display: grid;
  place-items: center;
}

.portal-panel {
  width: min(72%, 540px);
  min-height: 62%;
  border: 1px solid rgba(244, 234, 217, 0.24);
  background:
    linear-gradient(rgba(244, 234, 217, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 234, 217, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.035);
  background-size: 28px 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.portal-top {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(244, 234, 217, 0.16);
  padding: 0 16px;
}

.portal-top span {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(244, 234, 217, 0.44);
  border-radius: 50%;
}

.portal-layout {
  min-height: 360px;
  display: grid;
  grid-template-columns: 92px 1fr;
}

.portal-sidebar {
  border-right: 1px solid rgba(244, 234, 217, 0.12);
  padding: 20px 15px;
}

.portal-sidebar i {
  display: block;
  height: 10px;
  margin-bottom: 18px;
  background: rgba(244, 234, 217, 0.18);
}

.portal-sidebar i:nth-child(1) {
  background: rgba(200, 169, 106, 0.78);
}

.portal-main {
  padding: 28px;
}

.portal-line {
  width: 56%;
  height: 10px;
  margin-bottom: 13px;
  background: rgba(244, 234, 217, 0.16);
}

.portal-line.wide {
  width: 76%;
  height: 16px;
  background: rgba(244, 234, 217, 0.28);
}

.portal-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 34px 0;
}

.portal-timeline::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 17px;
  height: 1px;
  background: rgba(244, 234, 217, 0.16);
}

.portal-timeline span {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: block;
  border: 1px solid rgba(244, 234, 217, 0.22);
  border-radius: 50%;
  background: #151320;
}

.portal-timeline span.active {
  border-color: var(--gold);
  background: rgba(200, 169, 106, 0.26);
  box-shadow: 0 0 34px rgba(200, 169, 106, 0.2);
}

.portal-docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.portal-docs b {
  min-height: 74px;
  border: 1px solid rgba(244, 234, 217, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

.floating-whatsapp-system {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  border: 1px solid rgba(37, 211, 102, 0.34);
  border-radius: 999px;
  padding: 9px 15px 9px 10px;
  background: rgba(16, 55, 40, 0.94);
  color: white;
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.floating-whatsapp-system svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.system-footer {
  border-top: 1px solid var(--line);
  padding: 30px 18px 38px;
  color: var(--cream-muted);
  text-align: center;
  background: #070b13;
}

.system-footer a {
  color: var(--gold);
  text-decoration: none;
}

@media (max-width: 980px) {
  .system-nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    transform: none;
    border-width: 0 0 1px;
    border-radius: 0;
  }

  .system-links {
    gap: 2px;
    overflow-x: auto;
  }

  .system-links a {
    padding-inline: 9px;
    font-size: 10px;
  }

  .system-progress {
    display: none;
  }

  .system-section {
    min-height: auto;
    padding-top: 52px;
  }

  .system-inner {
    grid-template-columns: 1fr;
  }

  .system-visual {
    min-height: 430px;
    order: -1;
  }

  .visual-label {
    max-width: 145px;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .system-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 14px;
  }

  .system-links {
    width: 100%;
  }

  .system-links .nav-cta {
    margin-left: 0;
  }

  .system-section {
    padding-inline: 16px;
  }

  .system-title {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .system-title.small {
    font-size: clamp(2.4rem, 12vw, 4.1rem);
  }

  .system-card-grid {
    grid-template-columns: 1fr;
  }

  .wireframe {
    inset: 18px;
  }

  .visual-label strong {
    font-size: 2.6rem;
  }

  .floating-whatsapp-system span {
    display: none;
  }

  .floating-whatsapp-system {
    width: 52px;
    height: 52px;
    justify-content: center;
    padding: 0;
  }

  .portal-panel {
    width: calc(100% - 28px);
    min-height: 350px;
  }

  .portal-layout {
    grid-template-columns: 64px 1fr;
    min-height: 300px;
  }

  .portal-main {
    padding: 22px 16px;
  }
}
