:root {
  color-scheme: light;
  --plum-950: #1b0827;
  --plum-900: #2b0d3d;
  --plum-800: #4b176a;
  --plum-700: #6c2488;
  --pp-600: #a21670;
  --pp-500: #c02682;
  --pp-300: #e6a6d4;
  --onion-500: #69b848;
  --onion-200: #d7f0ca;
  --ink: #16051e;
  --muted: #6f5d76;
  --paper: #fff8fd;
  --white: #ffffff;
  --line: rgba(74, 23, 106, 0.14);
  --shadow: 0 24px 70px rgba(79, 21, 102, 0.18);
  --content: 1200px;
  --gutter: clamp(18px, 4vw, 32px);
  --content-pad: max(var(--gutter), calc((100vw - var(--content)) / 2 + var(--gutter)));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 8px var(--content-pad);
  background: rgba(255, 248, 253, 0.82);
  border-bottom: 1px solid rgba(74, 23, 106, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  transition: color 180ms ease, transform 180ms ease;
}

.nav a:hover {
  color: var(--pp-600);
  transform: translateY(-1px);
}

.nav-cta {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--plum-900);
  color: var(--white) !important;
}

.section-band {
  padding: clamp(70px, 9vw, 108px) var(--content-pad);
}

.hero {
  position: relative;
  min-height: clamp(590px, 72vh, 700px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 250, 253, 0.96) 0%, rgba(250, 236, 247, 0.88) 48%, rgba(235, 248, 229, 0.86) 100%),
    linear-gradient(180deg, #fffafd 0%, #f4e8f7 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  transform: translateY(-22px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--pp-600);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 640px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.lede {
  max-width: 560px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 34px;
}

.hero-metrics div {
  min-width: 132px;
  padding: 0 24px;
  border-left: 1px solid rgba(74, 23, 106, 0.16);
}

.hero-metrics div:first-child {
  padding-left: 0;
  border-left: none;
}

.hero-metrics strong {
  display: block;
  color: var(--plum-900);
  font-size: 28px;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--pp-600), var(--plum-700));
  color: var(--white);
  box-shadow: 0 16px 30px rgba(162, 22, 112, 0.24);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--plum-800);
}

.hero-visual {
  position: absolute;
  right: var(--content-pad);
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(320px, 30vw, 470px);
  min-width: 0;
  pointer-events: none;
  transform: translateY(-44%);
}

.logo-orbit {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  opacity: 0.68;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 220ms ease-out;
}

.logo-orbit img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(83, 16, 87, 0.2));
}

.usage {
  background:
    linear-gradient(180deg, #fffafd 0%, #fff 42%, #f5eaf8 100%);
}

.usage .section-heading {
  margin-bottom: clamp(34px, 6vw, 66px);
}

.usage .section-heading h2 {
  max-width: none;
  white-space: nowrap;
}

.usage-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.22fr) minmax(280px, 0.78fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: stretch;
}

.usage-copy {
  align-self: center;
}

.usage-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

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

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--plum-900);
  font-weight: 750;
}

.feature-list span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--onion-500);
  box-shadow: 0 0 0 5px rgba(105, 184, 72, 0.16);
  flex: 0 0 auto;
}

.editor {
  height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #16051e;
  box-shadow: 0 28px 80px rgba(65, 14, 85, 0.24);
}

.editor-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.editor-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.editor-bar span:nth-child(1) {
  background: #ff6b8a;
}

.editor-bar span:nth-child(2) {
  background: #ffc457;
}

.editor-bar span:nth-child(3) {
  background: #69b848;
}

.editor-bar p {
  margin: 0 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

pre {
  margin: 0;
  padding: clamp(18px, 3vw, 30px);
  height: calc(100% - 48px);
  overflow: auto;
  color: #f9eef8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: clamp(12px, 1.5vw, 15px);
  line-height: 1.72;
  white-space: pre-wrap;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--onion-500);
  animation: blink 900ms steps(2, start) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.routing {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(460px, 1.18fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
  min-height: 540px;
  background:
    linear-gradient(rgba(74, 23, 106, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 23, 106, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 18% 38%, rgba(192, 38, 130, 0.16), transparent 28%),
    radial-gradient(circle at 76% 42%, rgba(105, 184, 72, 0.18), transparent 22%),
    linear-gradient(115deg, #fffafd 0%, #f8edf8 48%, #eef9e8 100%);
  background-size: 54px 54px, 54px 54px, auto, auto, auto;
  color: var(--ink);
}

.routing .eyebrow {
  color: var(--pp-600);
}

.routing-copy {
  max-width: 460px;
}

.routing-copy h2 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 46px);
  white-space: nowrap;
}

.routing-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.routing-map {
  position: relative;
  width: min(100%, 560px);
  height: 330px;
  margin: 0 auto;
}

.route-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.route-lines path {
  fill: none;
  stroke: rgba(105, 184, 72, 0.72);
  stroke-width: 2.5;
  stroke-dasharray: 7 8;
  stroke-linecap: round;
  animation: dashFlow 520ms linear infinite;
}

.route-node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 116px;
  min-height: 96px;
  padding: 14px 12px;
  border: 1px solid rgba(74, 23, 106, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 24px 58px rgba(79, 21, 102, 0.12);
  text-align: center;
}

.route-node strong {
  margin-top: 8px;
  color: var(--plum-900);
  font-size: 13px;
  line-height: 1.1;
}

.route-node span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.source-node {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  border-color: rgba(192, 38, 130, 0.26);
  box-shadow: 0 18px 45px rgba(192, 38, 130, 0.13);
}

.proxy-node {
  left: 222px;
  top: 50%;
  transform: translateY(-50%);
  border-color: rgba(105, 184, 72, 0.32);
  box-shadow: 0 18px 45px rgba(105, 184, 72, 0.15);
}

.proxy-node img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(230, 166, 212, 0.18));
}

.browser-stack {
  position: absolute;
  right: 0;
  top: 20px;
  display: grid;
  gap: 16px;
}

.browser-node {
  position: relative;
  width: 112px;
  min-height: 86px;
}

.node-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.node-code {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pp-500), var(--plum-700));
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
}

.browser-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  filter: drop-shadow(0 10px 14px rgba(79, 21, 102, 0.12));
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -15;
  }
}

.faq {
  background: #f6eef9;
}

.faq .section-heading {
  margin-bottom: clamp(28px, 5vw, 52px);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.faq-item {
  width: 100%;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-item span {
  display: block;
  position: relative;
  padding-right: 34px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 900;
}

.faq-item span::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--pp-600);
}

.faq-item[aria-expanded="true"] span::after {
  content: "-";
}

.faq-item p {
  display: none;
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.faq-item[aria-expanded="true"] p {
  display: block;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(18px, 5vw, 70px);
  background: var(--plum-950);
  color: rgba(255, 255, 255, 0.72);
}

.footer span {
  color: var(--white);
  font-weight: 900;
}

.footer p {
  margin: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 940px) {
  .section-band {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero {
    display: grid;
    min-height: auto;
    gap: 34px;
    align-items: start;
  }

  .hero-copy {
    transform: none;
  }

  .hero-visual {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    width: min(62vw, 340px);
    margin: 0 auto;
    opacity: 0.66;
    transform: none;
  }

  .usage-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .usage-copy {
    order: 1;
  }

  .editor {
    order: 2;
  }

  .routing {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
  }

  .routing-copy h2 {
    white-space: normal;
  }

  .routing-map {
    height: 420px;
  }

  .source-node {
    left: 50%;
    top: 4%;
    transform: translateX(-50%);
  }

  .proxy-node {
    left: 50%;
    top: 44%;
    transform: translate(-50%, -50%);
  }

  .browser-stack {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 0;
    display: flex;
    width: min(100%, 390px);
    justify-content: center;
    transform: translateX(-50%);
  }

  .browser-node {
    width: 108px;
  }

  .route-lines {
    display: none;
  }

}

@media (max-width: 620px) {
  .site-header {
    min-height: 56px;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .eyebrow,
  h1,
  h2,
  h3,
  .lede,
  .hero-copy,
  .section-heading,
  .usage-copy,
  .routing-copy {
    text-align: center;
  }

  h1,
  h2 {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .usage .section-heading h2,
  .routing-copy h2 {
    white-space: normal;
  }

  .lede,
  .routing-copy p:not(.eyebrow),
  .usage-copy p {
    margin-right: auto;
    margin-left: auto;
  }

  .hero {
    gap: 24px;
  }

  .hero-visual {
    width: min(72vw, 260px);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    justify-items: center;
  }

  .hero-metrics div {
    min-width: 0;
    padding: 0;
    border-left: none;
    text-align: center;
  }

  .hero-metrics strong {
    font-size: clamp(20px, 6vw, 26px);
  }

  .hero-metrics span {
    font-size: 11px;
    line-height: 1.2;
  }

  .editor {
    height: 430px;
  }

  .routing-map {
    width: min(100%, 360px);
    height: auto;
    display: grid;
    justify-items: center;
    gap: 14px;
    margin-top: 8px;
  }

  .source-node,
  .proxy-node,
  .browser-stack,
  .browser-node {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
  }

  .source-node,
  .proxy-node {
    width: min(100%, 180px);
  }

  .browser-stack {
    display: grid;
    width: 100%;
    max-width: 180px;
    gap: 14px;
    justify-content: stretch;
  }

  .browser-node {
    width: 100%;
  }

  .footer {
    display: flex;
  }
}
