:root {
  --blue: #2c418c;
  --ink: #f7f8ff;
  --muted: rgb(247 248 255 / 0.72);
  --line: rgb(255 255 255 / 0.16);
  --panel: rgb(5 7 18 / 0.62);
  --panel-strong: rgb(5 7 18 / 0.84);
  --accent: #ff7a2f;
  --cyan: #00e5e5;
  --panel-width: min(360px, calc(100vw - 28px));
  --split-card-width: 560px;
  --split-card-bottom: clamp(72px, 8vh, 116px);
  --example-card-nudge: clamp(118px, 10vw, 190px);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #02040c;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 24%, rgb(44 65 140 / 0.42), transparent 34rem),
    radial-gradient(circle at 82% 74%, rgb(0 229 229 / 0.18), transparent 32rem),
    #02040c;
}

.site-stage {
  min-height: 100vh;
  transition: transform 260ms ease;
  overflow-x: hidden;
}

body.settings-open .site-stage {
  transform: translateX(calc(var(--panel-width) + 22px));
}

.site-track {
  width: 150vw;
  min-height: 100vh;
  display: flex;
  transition: transform 620ms cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

body.example-open .site-track {
  transform: translateX(-50vw);
}

#networkCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(2 4 12 / 0.22) 0%, rgb(2 4 12 / 0.04) 54%, rgb(2 4 12 / 0.2) 100%),
    radial-gradient(circle at 42% 35%, transparent 0%, rgb(2 4 12 / 0.12) 72%);
}

body.example-open::after {
  background:
    linear-gradient(90deg, rgb(2 4 12 / 0.16) 0%, rgb(2 4 12 / 0.03) 52%, rgb(2 4 12 / 0.16) 100%),
    radial-gradient(circle at 42% 35%, transparent 0%, rgb(2 4 12 / 0.08) 72%);
}

.settings-toggle,
.panel-close,
.reset-settings,
.contact-form button {
  font: inherit;
}

.settings-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 30;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 8px;
  color: rgb(247 248 255 / 0.86);
  background: rgb(255 255 255 / 0.07);
  cursor: pointer;
  backdrop-filter: blur(10px);
  opacity: 0.2;
}

.settings-toggle:hover {
  opacity: 1;
  background: rgb(255 255 255 / 0.13);
}

body.settings-open .settings-toggle {
  opacity: 0;
  pointer-events: none;
}

.settings-panel {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 35;
  width: var(--panel-width);
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  padding: 18px;
  color: #f3f3f3;
  background: var(--panel);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 12px;
  box-shadow: 0 28px 90px rgb(0 0 0 / 0.38);
  backdrop-filter: blur(9px) saturate(1.18);
  opacity: 0;
  transform: translateX(calc(-100% - 20px));
  transition:
    opacity 230ms ease,
    transform 260ms ease;
}

body.settings-open .settings-panel {
  opacity: 1;
  transform: translateX(0);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0;
}

.panel-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  color: rgb(255 255 255 / 0.7);
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.panel-close:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.08);
}

.settings-section {
  margin: 20px 0 12px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.46);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.settings-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.setting-field {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  color: rgb(255 255 255 / 0.76);
  font-size: 15px;
  font-weight: 740;
}

.setting-field span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.setting-field strong {
  color: rgb(255 255 255 / 0.76);
  font-variant-numeric: tabular-nums;
}

.setting-field small {
  color: rgb(255 255 255 / 0.42);
  font-size: 12px;
  line-height: 1.4;
}

.setting-field textarea,
.setting-field input[type="color"] {
  width: 100%;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 7px;
  background: rgb(0 0 0 / 0.32);
}

.setting-field textarea {
  min-height: 116px;
  padding: 10px;
  resize: vertical;
  color: #fff;
  font: 15px "SF Mono", Menlo, Consolas, monospace;
  line-height: 1.3;
}

.setting-field input[type="range"] {
  width: 100%;
  accent-color: #f4f4f4;
}

.setting-field input[type="color"] {
  height: 36px;
  padding: 3px;
}

.reset-settings {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 8px;
  color: rgb(255 255 255 / 0.82);
  background: rgb(255 255 255 / 0.06);
  cursor: pointer;
  font-weight: 780;
}

.reset-settings:hover {
  background: rgb(255 255 255 / 0.1);
}

.page-shell {
  position: relative;
  z-index: 2;
  flex: 0 0 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(384px, var(--split-card-width));
  align-items: end;
  gap: clamp(32px, 6vw, 86px);
  padding: clamp(24px, 5vw, 72px);
}

.content {
  align-self: center;
  max-width: 840px;
  padding-bottom: 0;
}

.brand-lockup {
  position: fixed;
  top: clamp(70px, 11vh, 118px);
  left: clamp(24px, 5vw, 72px);
  z-index: 3;
  width: fit-content;
  display: block;
  filter: drop-shadow(0 22px 58px rgb(0 0 0 / 0.42));
  pointer-events: none;
}

.logo-mark {
  display: block;
  width: clamp(168px, 19.6vw, 266px);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 1;
}

.eyebrow,
.form-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 0.94;
  letter-spacing: 0;
  opacity: 1;
  transition:
    opacity 360ms ease,
    transform 620ms cubic-bezier(0.76, 0, 0.24, 1);
}

.lede {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
  transition:
    opacity 320ms ease,
    transform 620ms cubic-bezier(0.76, 0, 0.24, 1);
}

body.example-open .content h1,
body.example-open .content .lede {
  opacity: 0;
  transform: translateX(-90px);
}

.contact-form {
  position: relative;
  align-self: center;
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3.6vw, 34px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.012), rgb(255 255 255 / 0.004) 48%, rgb(0 229 229 / 0.004)),
    rgb(5 7 18 / 0.11);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.04),
    0 20px 72px rgb(0 0 0 / 0.22);
  backdrop-filter: blur(7.2px) saturate(1.08);
  -webkit-backdrop-filter: blur(7.2px) saturate(1.08);
  transition:
    transform 620ms cubic-bezier(0.76, 0, 0.24, 1),
    margin 620ms cubic-bezier(0.76, 0, 0.24, 1);
}

.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 10%, rgb(255 255 255 / 0.018), transparent 11rem),
    linear-gradient(120deg, rgb(255 255 255 / 0.01), transparent 34%);
  opacity: 0.32;
}

.contact-form > * {
  position: relative;
  z-index: 1;
}

.contact-form h2 {
  margin-bottom: 4px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.02;
  letter-spacing: 0;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgb(247 248 255 / 0.76);
  font-size: 13px;
  font-weight: 720;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 6px;
  padding: 12px;
  color: #fff;
  background: rgb(255 255 255 / 0.025);
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.028);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-form input {
  min-height: 46px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgb(255 122 47 / 0.78);
  box-shadow: 0 0 0 3px rgb(255 122 47 / 0.13);
}

.contact-form button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.contact-form button:hover {
  background: #3550ac;
}

.contact-form button:disabled {
  cursor: default;
  background: #294079;
}

.contact-form .example-link {
  color: rgb(247 248 255 / 0.82);
  background: rgb(255 255 255 / 0.035);
  border: 1px solid rgb(255 255 255 / 0.12);
}

.contact-form .example-link:hover {
  background: rgb(255 255 255 / 0.075);
}

.form-note {
  margin: 0;
  color: rgb(247 248 255 / 0.52);
  font-size: 12px;
  line-height: 1.45;
}

body.example-open .page-shell {
  align-items: end;
}

body.example-open .contact-form {
  align-self: end;
  margin-bottom: var(--split-card-bottom);
}

.example-page {
  position: relative;
  z-index: 2;
  flex: 0 0 50vw;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 64px);
  transition: transform 620ms cubic-bezier(0.76, 0, 0.24, 1);
}

body.example-open .example-page {
  place-items: end center;
  padding-bottom: var(--split-card-bottom);
  transform: translateX(calc(-1 * var(--example-card-nudge)));
}

.booster-card {
  position: relative;
  width: min(var(--split-card-width), calc(50vw - 72px));
  max-height: min(620px, calc(100vh - var(--split-card-bottom) - 40px));
  overflow-y: auto;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 8px;
  color: rgb(247 248 255 / 0.86);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.012), rgb(255 255 255 / 0.004) 48%, rgb(0 229 229 / 0.004)),
    rgb(5 7 18 / 0.11);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.04),
    0 20px 72px rgb(0 0 0 / 0.22);
  backdrop-filter: blur(7.2px) saturate(1.08);
  -webkit-backdrop-filter: blur(7.2px) saturate(1.08);
}

.booster-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 10%, rgb(255 255 255 / 0.018), transparent 11rem),
    linear-gradient(120deg, rgb(255 255 255 / 0.01), transparent 34%);
  opacity: 0.32;
}

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

.example-back {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 7px;
  color: rgb(247 248 255 / 0.74);
  background: rgb(255 255 255 / 0.045);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
}

.example-back:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.085);
}

.booster-head {
  padding-right: 88px;
}

.booster-head h2 {
  margin-bottom: 4px;
  color: #fff;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.02;
  letter-spacing: 0;
}

.booster-head p {
  margin-bottom: 22px;
  color: rgb(247 248 255 / 0.62);
  font-size: 14px;
  line-height: 1.45;
}

.booster-grid {
  display: grid;
  gap: 0;
}

.bst-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.09);
  color: rgb(247 248 255 / 0.78);
  font-size: 15px;
}

.bst-row b {
  color: rgb(247 248 255 / 0.92);
  font-weight: 650;
  text-align: right;
}

.bst-big {
  display: flex;
  gap: 34px;
  margin: 18px 0;
}

.bst-big div span {
  display: block;
  margin-bottom: 2px;
  color: rgb(247 248 255 / 0.44);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bst-big div b {
  color: #f0ca60;
  font-size: 34px;
  font-weight: 760;
  line-height: 1;
}

.bst-big div small {
  margin-left: 6px;
  color: rgb(247 248 255 / 0.58);
  font-size: 11px;
  font-weight: 650;
}

.bstd-wrap {
  position: relative;
  margin: 18px 0 20px;
  padding: 12px 12px 8px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.025);
}

.bstd {
  width: 100%;
  max-height: 310px;
  height: auto;
  display: block;
  overflow: visible;
}

.bstd-l {
  stroke: rgb(255 255 255 / 0.28);
  stroke-width: 1.1;
  stroke-miterlimit: 10;
  fill: none;
}

.bstd-l.duplo {
  stroke: #d4a017;
  stroke-width: 2;
  filter: drop-shadow(0 0 4px rgb(212 160 23 / 0.5));
}

.bstd-lab {
  fill: rgb(247 248 255 / 0.54);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-anchor: end;
}

.bstd-lab.duplo,
.bstd-val.duplo {
  fill: #f0ca60;
}

.bstd-val {
  fill: rgb(255 255 255 / 0.52);
  font-size: 9px;
  text-anchor: end;
}

.bstd-val.duplo {
  font-weight: 700;
}

.bstd-lines {
  opacity: 0;
  animation: bstdFade 0.5s ease forwards;
}

.bstd-dot0 {
  fill: #f0ca60;
  opacity: 0;
  animation: bstdFade 0.45s ease 0.2s forwards;
}

.bstd-acto {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.bstd-acto.on {
  opacity: 1;
}

.bstd-curva {
  fill: none;
  stroke: #7fb2da;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-miterlimit: 10;
}

.bstd-dotf {
  fill: #f0ca60;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bstd-cruz {
  fill: #9fb3c4;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bstd-brazo {
  fill: none;
  stroke: #7fb2da;
  stroke-width: 2.2;
  stroke-miterlimit: 10;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bstd-burb {
  opacity: 0;
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.2, 1.6, 0.4, 1);
  transform: scale(0.5);
  transform-box: fill-box;
  transform-origin: center;
}

.bstd-burb circle {
  fill: rgb(15 39 64 / 0.92);
  stroke: #d4a017;
  stroke-width: 1.3;
}

.bstd-burb text {
  fill: #f0ca60;
  font-size: 10px;
  font-weight: 700;
  text-anchor: middle;
}

.bstd-flecha {
  fill: #d4a017;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bstd-dur {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bstd-dur path {
  fill: none;
  stroke: rgb(255 255 255 / 0.25);
  stroke-width: 1;
}

.bstd-dur text {
  fill: rgb(247 248 255 / 0.54);
  font-size: 8.5px;
  letter-spacing: 0.5px;
  text-anchor: middle;
}

.bstd-acto.on .bstd-dotf,
.bstd-acto.on .bstd-cruz,
.bstd-acto.on .bstd-brazo,
.bstd-acto.on .bstd-flecha,
.bstd-acto.on .bstd-dur {
  opacity: 1;
  transition-delay: 2.6s;
}

.bstd-acto.on .bstd-burb {
  opacity: 1;
  transform: scale(1);
  transition-delay: 2.85s;
}

.bstd-pasos {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 2px 0 4px;
}

.bstd-paso {
  padding: 2px 10px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 20px;
  color: rgb(247 248 255 / 0.38);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.bstd-paso.on {
  color: #0f2740;
  background: #d4a017;
  border-color: #d4a017;
}

.bstd-replay {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 4px 10px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 7px;
  color: rgb(247 248 255 / 0.58);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
}

.bstd-replay:hover {
  color: #fff;
  border-color: rgb(255 255 255 / 0.35);
}

.booster-copy {
  margin: 0 0 8px;
  color: rgb(247 248 255 / 0.82);
  font-size: 14px;
  line-height: 1.6;
}

.bst-esc {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  color: rgb(247 248 255 / 0.6);
  font-size: 13px;
  line-height: 1.5;
}

.bst-esc i {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4a017;
  border-radius: 50%;
  color: #f0ca60;
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

@keyframes bstdFade {
  to {
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  body.settings-open .site-stage {
    transform: translateX(0);
  }

  body.settings-open::after {
    background:
      linear-gradient(90deg, rgb(2 4 12 / 0.9) 0%, rgb(2 4 12 / 0.54) 100%),
      radial-gradient(circle at 42% 35%, transparent 0%, rgb(2 4 12 / 0.62) 72%);
  }
}

@media (max-width: 920px) {
  body {
    overflow-y: auto;
  }

  .site-track {
    width: 200vw;
  }

  body.example-open .site-track {
    transform: translateX(-100vw);
  }

  .example-page {
    flex-basis: 100vw;
    transform: none;
  }

  body.example-open .example-page {
    transform: none;
  }

  .page-shell {
    min-height: 100svh;
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 78px;
  }

  .content {
    padding-top: 98px;
    padding-bottom: 0;
  }

  .brand-lockup {
    top: 78px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 66px);
  }
}

@media (max-width: 560px) {
  .page-shell {
    gap: 28px;
    padding: 78px 16px 24px;
  }

  .brand-lockup {
    left: 16px;
  }

  .lede {
    font-size: 17px;
  }

  .contact-form {
    padding: 16px;
  }

  .contact-form .example-link {
    display: none;
  }

  .booster-card {
    width: min(640px, calc(100vw - 32px));
    max-height: calc(100svh - 32px);
  }

  .booster-head {
    padding-right: 0;
  }

  .example-back {
    position: static;
    margin-bottom: 14px;
  }

  .bst-row {
    font-size: 13px;
  }

  .bst-big {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-track {
    transition: none;
  }

  .bstd-lines,
  .bstd-dot0 {
    animation: none;
    opacity: 1;
  }

  .bstd-acto.on * {
    transition: none;
  }
}
