:root {
  color-scheme: dark;
  --bg: #050707;
  --bg-2: #0a1010;
  --panel: rgba(13, 19, 19, 0.88);
  --panel-strong: #0c1212;
  --line: rgba(190, 226, 218, 0.13);
  --line-strong: rgba(120, 214, 192, 0.34);
  --text: #f2f5f2;
  --muted: #a3ada8;
  --soft: #69746f;
  --accent: #79d6c0;
  --accent-strong: #9aead4;
  --amber: #d5a24d;
  --orange: #d47a54;
  --red: #cf5d65;
  --shadow: 0 1.4rem 3.6rem rgba(0, 0, 0, 0.42);
  --radius: 0.625rem;
  --radius-lg: 1rem;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --container: 76rem;
  --embed-width: 27.5rem;
  --embed-height: 47.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    linear-gradient(180deg, rgba(5, 7, 7, 0.56), #050707 38rem),
    #050707 url("assets/aml-network-bg.png") top center / min(110rem, 190vw) auto no-repeat;
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Segoe UI",
    sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.011) 1px, transparent 1px);
  background-size: 5.5rem 5.5rem;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 68%);
}

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

svg {
  display: block;
  width: 1em;
  height: 1em;
}

svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.7rem 0.9rem;
  color: #04100d;
  border-radius: var(--radius);
  background: var(--accent);
  font-weight: 720;
  transform: translateY(-140%);
  transition: transform 260ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 1rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.9rem;
  padding: 0.5rem;
  border: 1px solid rgba(190, 226, 218, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(8, 12, 12, 0.74);
  box-shadow: 0 1rem 2.8rem rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(1.25rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 720;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(121, 214, 192, 0.32);
  border-radius: var(--radius);
  background: rgba(121, 214, 192, 0.075);
}

.brand-mark svg {
  width: 1.2rem;
  height: 1.2rem;
}

.desktop-nav {
  display: none;
}

.desktop-nav a,
.site-footer nav a {
  color: var(--muted);
  font-size: 0.9rem;
  transition:
    color 420ms var(--ease),
    transform 420ms var(--ease);
}

.desktop-nav a:hover,
.site-footer nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.header-cta,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(154, 234, 212, 0.35);
  border-radius: var(--radius);
  background: #8fe4cf;
  color: #02100f;
  font-size: 0.9rem;
  font-weight: 760;
  white-space: nowrap;
  box-shadow:
    0 0.8rem 1.9rem rgba(121, 214, 192, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transition:
    transform 520ms var(--ease),
    box-shadow 520ms var(--ease),
    filter 520ms var(--ease);
}

.header-cta:hover,
.primary-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.04);
  box-shadow:
    0 1.1rem 2.4rem rgba(121, 214, 192, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.header-cta:active,
.primary-button:active {
  transform: translateY(0) scale(0.985);
}

.button-icon {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(2, 16, 15, 0.1);
}

.button-icon svg {
  width: 1rem;
  height: 1rem;
}

.header-cta .button-icon {
  display: none;
}

.hero {
  display: grid;
  gap: 2.4rem;
  align-items: center;
  min-height: calc(100dvh - 5.5rem);
  padding: 4rem 0 4.8rem;
}

.hero > *,
.widget-zone,
.widget-frame,
.iframe-stage,
.connect-control,
.connect-button,
.risk-scale,
.risk-item,
.step-card,
.risk-row,
.benefit-panel {
  min-width: 0;
}

.hero-copy {
  max-width: 40rem;
}

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

h1 {
  max-width: 12.4ch;
  margin-bottom: 1.35rem;
  font-size: clamp(2.85rem, 10vw, 4.95rem);
  font-weight: 690;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.95rem, 4.6vw, 3rem);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-lede {
  max-width: 35rem;
  margin-bottom: 1.8rem;
  color: #c4cdc8;
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.primary-button {
  min-width: min(100%, 20rem);
  min-height: 3.45rem;
  padding: 0.85rem 1.05rem;
  font-size: 0.98rem;
}

.assurance-list {
  display: grid;
  gap: 0;
  max-width: 35rem;
  margin: 1.65rem 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.assurance-list div {
  display: grid;
  grid-template-columns: 5.8rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.78rem 0;
  border-bottom: 1px solid rgba(190, 226, 218, 0.08);
}

.assurance-list div:last-child {
  border-bottom: 0;
}

.assurance-list dt,
.assurance-list dd {
  margin: 0;
}

.assurance-list dt {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 740;
  text-transform: uppercase;
}

.assurance-list dd {
  color: #cbd4cf;
  font-size: 0.9rem;
}

.widget-zone {
  display: flex;
  justify-content: center;
  width: 100%;
}

.widget-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 0.7rem;
  border: 1px solid rgba(121, 214, 192, 0.3);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(19, 28, 28, 0.96), rgba(7, 11, 11, 0.98)),
    rgba(12, 21, 24, 0.9);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.widget-frame::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: url("assets/aml-network-bg.png") center / cover no-repeat;
  opacity: 0.11;
  mix-blend-mode: screen;
}

.frame-toolbar,
.iframe-stage,
.connect-control,
.risk-scale {
  position: relative;
  z-index: 1;
}

.frame-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.5rem;
  padding: 0 0.55rem 0.15rem;
  color: var(--accent);
  font-size: 0.83rem;
}

.frame-toolbar strong {
  color: #d7e4df;
  font-size: 0.82rem;
  font-weight: 680;
}

.frame-toolbar span {
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 640;
  text-align: right;
  text-transform: uppercase;
}

.iframe-stage {
  display: grid;
  min-height: 16rem;
  overflow: hidden;
  border: 1px solid rgba(190, 226, 218, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(7, 12, 12, 0.78), rgba(3, 6, 6, 0.8)),
    rgba(3, 8, 10, 0.72);
  aspect-ratio: 16 / 9;
}

.widget-frame.has-embed .iframe-stage {
  min-height: 0;
  width: 100%;
  height: var(--embed-height);
  max-width: var(--embed-width);
  border: 0;
  aspect-ratio: auto;
  justify-self: center;
}

.widget-frame.has-embed {
  width: min(100%, calc(var(--embed-width) + 1.4rem + 2px));
  max-width: calc(var(--embed-width) + 1.4rem + 2px);
}

.iframe-stage iframe,
.iframe-placeholder {
  grid-area: 1 / 1;
}

.iframe-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  opacity: 0;
  overflow: hidden;
  transition: opacity 520ms var(--ease);
}

.iframe-stage iframe.is-active {
  opacity: 1;
}

.widget-frame.has-embed .iframe-stage iframe {
  opacity: 1;
}

.widget-frame.has-embed .iframe-placeholder {
  display: none !important;
}

.iframe-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.55rem;
  padding: 1.5rem;
  text-align: center;
}

.placeholder-shield {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  color: rgba(242, 245, 242, 0.24);
}

.placeholder-shield svg {
  width: 3.6rem;
  height: 3.6rem;
}

.placeholder-title {
  margin: 0;
  color: rgba(242, 245, 242, 0.84);
  font-weight: 720;
  overflow-wrap: anywhere;
}

.placeholder-copy {
  max-width: 24rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.connect-control {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.8rem;
  padding: 0.85rem;
  border: 1px solid rgba(190, 226, 218, 0.1);
  border-radius: var(--radius);
  background: rgba(18, 26, 26, 0.74);
}

.widget-frame.has-embed .connect-control,
.widget-frame.has-embed .risk-scale {
  display: none;
}

.connect-copy span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 740;
  text-transform: uppercase;
}

.connect-copy strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 730;
}

.connect-copy p {
  max-width: 27rem;
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.connect-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.42rem 0.75rem;
  color: #03110e;
  border: 1px solid rgba(121, 214, 192, 0.42);
  border-radius: var(--radius);
  background: #8fe4cf;
  font-size: 0.9rem;
  font-weight: 760;
  white-space: nowrap;
}

.connect-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(2, 16, 15, 0.1);
}

.connect-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.risk-scale {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.risk-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 2.9rem;
  padding: 0.65rem 0.75rem;
  color: var(--accent);
  border: 1px solid rgba(190, 226, 218, 0.08);
  border-radius: var(--radius);
  background: rgba(8, 13, 13, 0.62);
}

.risk-line {
  display: block;
  width: 100%;
  height: 0.28rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.82;
}

.risk-item p {
  min-width: 5.1rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 680;
  text-align: right;
}

.risk-item.low {
  color: var(--accent);
}

.risk-item.mid {
  color: var(--amber);
}

.risk-item.high {
  color: var(--orange);
}

.risk-item.critical {
  color: var(--red);
}

.process-section,
.risk-section,
.benefits-section {
  padding: 4.3rem 0;
}

.section-heading {
  max-width: 44rem;
  margin: 0 0 2rem;
  text-align: left;
}

.section-heading p {
  max-width: 36rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.steps {
  display: grid;
  gap: 0.85rem;
}

.step-card,
.benefit-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 15, 15, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.step-card {
  position: relative;
  display: grid;
  gap: 0.75rem;
  overflow: hidden;
  padding: 1.25rem;
}

.step-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: url("assets/aml-network-bg.png") center / cover no-repeat;
  opacity: 0;
}

.step-card:first-child::before {
  opacity: 0.16;
}

.step-card > * {
  position: relative;
  z-index: 1;
}

.step-number {
  display: block;
  color: var(--accent);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
}

.step-card p,
.risk-row p,
.benefit-panel li,
.final-cta p,
.site-footer p {
  color: var(--muted);
}

.risk-section {
  position: relative;
}

.risk-section::before {
  position: absolute;
  inset: 1rem -1rem auto;
  z-index: -1;
  height: 64%;
  content: "";
  border: 1px solid rgba(190, 226, 218, 0.06);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15, 21, 21, 0.48), rgba(5, 7, 7, 0));
}

.risk-list {
  display: grid;
  gap: 0.8rem;
}

.risk-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(190, 226, 218, 0.1);
  border-radius: var(--radius);
  background: rgba(8, 13, 13, 0.58);
}

.risk-icon,
.panel-icon {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.risk-icon svg,
.panel-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.risk-icon.emerald {
  color: var(--accent);
}

.risk-icon.amber {
  color: var(--amber);
}

.risk-icon.red {
  color: var(--red);
}

.benefit-split {
  display: grid;
  gap: 0.9rem;
}

.benefit-panel {
  padding: 1.25rem;
}

.panel-icon {
  margin-bottom: 1rem;
  color: var(--accent);
}

.benefit-panel ul {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 1.1rem 0 0;
  list-style: none;
}

.benefit-panel li {
  position: relative;
  padding-left: 1.45rem;
}

.benefit-panel li::before {
  position: absolute;
  top: 0.45rem;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  content: "";
  transform: rotate(45deg);
}

.final-cta {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin: 3rem 0 2rem;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(12, 19, 19, 0.94), rgba(8, 13, 13, 0.7)),
    url("assets/aml-network-bg.png") right center / auto 150% no-repeat;
  box-shadow: var(--shadow);
}

.final-cta h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.65rem, 4.7vw, 2.45rem);
}

.final-cta p {
  max-width: 43rem;
  margin-bottom: 0;
}

.site-footer {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding: 2rem 0 1rem;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(1.35rem);
  transition:
    opacity 760ms var(--ease),
    transform 760ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 640px) {
  .page-shell {
    padding: 1.25rem;
  }

  .header-cta .button-icon {
    display: grid;
  }

  .connect-control {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .connect-button {
    min-width: 9.5rem;
  }

  .risk-scale {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .risk-item {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .risk-item p {
    min-width: 0;
    text-align: left;
  }
}

@media (min-width: 832px) {
  .desktop-nav {
    display: flex;
    gap: clamp(1.5rem, 4vw, 4.3rem);
    align-items: center;
  }

  .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(27rem, 1.08fr);
    gap: clamp(2rem, 6vw, 5rem);
    padding-top: 3.4rem;
  }

  .steps {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .step-card:first-child {
    grid-row: span 2;
    align-content: end;
    min-height: 18rem;
  }

  .risk-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .risk-row {
    min-height: 13.5rem;
    align-content: start;
  }

  .risk-row:nth-child(1),
  .risk-row:nth-child(2),
  .risk-row:nth-child(3) {
    grid-column: span 2;
  }

  .risk-row:nth-child(4),
  .risk-row:nth-child(5) {
    grid-column: span 3;
  }

  .benefit-split {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .benefit-panel {
    padding: 1.8rem;
  }

  .final-cta {
    grid-template-columns: 1fr auto;
    padding: 2rem;
  }

  .site-footer {
    grid-template-columns: 1fr auto 1fr;
  }

  .site-footer p {
    justify-self: end;
  }
}

@media (min-width: 1088px) {
  .page-shell {
    padding: 1.5rem;
  }

  .site-header {
    padding: 0.62rem 0.8rem;
  }

  .process-section,
  .risk-section,
  .benefits-section {
    padding: 5.6rem 0;
  }

  .step-card {
    padding: 1.55rem;
  }

  .widget-frame {
    padding: 0.85rem;
  }
}

@media (max-width: 432px) {
  .brand {
    font-size: 0.92rem;
  }

  .header-cta {
    padding-inline: 0.78rem;
    font-size: 0.82rem;
  }

  .connect-button {
    font-size: 0.86rem;
  }

  .frame-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
    padding-block: 0.35rem 0.55rem;
  }
}
