:root {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --surface-strong: #edf1f6;
  --card: #ffffff;
  --ink: #101211;
  --ink-soft: #46515f;
  --ink-muted: #7c8796;
  --line: #dfe5ec;
  --line-soft: #edf1f5;
  --accent: #86a6d1;
  --accent-dark: #4f73a8;
  --accent-soft: #eef4fc;
  --warning: #9a5d0a;
  --warning-soft: #fff8e8;
  --dark: #111318;
  --max-width: 1160px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button {
  color: inherit;
  font: inherit;
}

code,
.mono {
  font-family: var(--mono);
}

.metrics-pixel {
  position: absolute;
  left: -9999px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgb(223 229 236 / 85%);
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 64px;
  align-items: center;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand > span:last-child > span {
  color: var(--accent-dark);
}

.brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-dark);
  color: white;
  font-size: 0.92rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 28px;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 550;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.header-actions,
.language-switcher {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 10px;
}

.language-switcher {
  gap: 1px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.language-switcher a {
  min-width: 32px;
  padding: 3px 6px;
  border-radius: 5px;
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.language-switcher a[aria-current="page"] {
  background: var(--surface-strong);
  color: var(--ink);
}

.header-cta {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding-inline: 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 140ms ease, background-color 140ms ease;
}

.header-cta:hover {
  background: #25282d;
  transform: translateY(-1px);
}

.hero {
  display: grid;
  width: min(calc(100% - 80px), var(--max-width));
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(56px, 8vw, 100px);
  align-items: center;
  margin-inline: auto;
  padding-block: 92px 88px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 5px 13px;
  border: 1px solid #cbdcf0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 650;
}

.status-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(79 115 168 / 12%);
}

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

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(3.8rem, 6.3vw, 5.5rem);
  font-weight: 750;
  letter-spacing: -0.058em;
  line-height: 0.98;
}

h1 em {
  color: var(--accent-dark);
  font-style: normal;
}

.hero-lede {
  max-width: 590px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-inline: 21px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

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

.button-primary {
  background: var(--ink);
  color: white;
}

.button-primary:hover {
  background: #25282d;
}

.button-quiet {
  border-color: var(--line);
  background: white;
  color: var(--ink-soft);
}

.button-quiet:hover {
  border-color: #b8c1cc;
  color: var(--ink);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.78rem;
  list-style: none;
}

.hero-facts span {
  margin-right: 5px;
  color: var(--accent-dark);
  font-weight: 800;
}

.gateway-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 22px 60px -28px rgb(58 78 108 / 26%), 0 2px 8px rgb(58 78 108 / 6%);
}

.gateway-card-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: #fbfcfe;
  color: var(--ink-muted);
  font-size: 0.66rem;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8dee7;
}

.live-status {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 5px;
  color: var(--accent-dark);
  font-size: 0.65rem;
  font-weight: 650;
  text-transform: uppercase;
}

.live-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.gateway-body {
  padding: clamp(26px, 4vw, 38px);
}

.card-kicker,
.section-kicker {
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.endpoint {
  overflow: hidden;
  margin-bottom: 26px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-list {
  overflow: hidden;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.route-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 49px;
  padding-inline: 15px;
  border-bottom: 1px solid var(--line-soft);
}

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

.route-list code {
  font-size: 0.76rem;
}

.route-list span {
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 0.61rem;
}

.account-line {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 15px;
  border-radius: 11px;
  background: var(--accent-soft);
}

.account-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: none;
  place-items: center;
  border-radius: 7px;
  background: white;
  color: var(--accent-dark);
  font-weight: 800;
}

.account-line strong,
.account-line small {
  display: block;
}

.account-line strong {
  margin-bottom: 3px;
  font-size: 0.79rem;
}

.account-line small {
  color: #60738c;
  font-size: 0.67rem;
  line-height: 1.45;
}

.setup-section {
  padding: 96px max(40px, calc((100vw - var(--max-width)) / 2));
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-heading h2,
.privacy-heading h2,
.cta-section h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 720;
  letter-spacing: -0.048em;
  line-height: 1.05;
}

.section-heading > p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.setup-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
}

.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.step-number {
  align-self: start;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 650;
}

.setup-steps h3 {
  margin-bottom: 7px;
  font-size: 0.94rem;
  letter-spacing: -0.015em;
}

.setup-steps p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.79rem;
  line-height: 1.62;
}

.setup-steps p code {
  color: var(--ink);
  font-size: 0.73rem;
}

.inline-link {
  display: inline-block;
  margin-top: 11px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

.token-placeholder {
  display: block;
  overflow: hidden;
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.config-panel {
  position: sticky;
  top: 86px;
  overflow: hidden;
  border: 1px solid #2c3038;
  border-radius: 16px;
  background: var(--dark);
  box-shadow: 0 20px 55px -30px rgb(0 0 0 / 55%);
  color: #e5e9ef;
}

.config-toolbar {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: 18px;
  border-bottom: 1px solid #282d34;
  background: #171a1f;
  color: #9ca5b2;
  font-size: 0.68rem;
}

.config-toolbar > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.config-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(79 115 168 / 12%);
}

.copy-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding-inline: 10px;
  border: 1px solid #3a414b;
  border-radius: 7px;
  background: #20242a;
  color: #ced5df;
  font-size: 0.67rem;
  cursor: pointer;
}

.copy-button:hover {
  border-color: #596474;
  background: #282e36;
}

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

.config-code {
  max-height: 520px;
  overflow: auto;
  margin: 0;
  padding: 24px;
  color: #d8dee7;
  font-family: var(--mono);
  font-size: clamp(0.68rem, 1.3vw, 0.78rem);
  line-height: 1.72;
  scrollbar-color: #4b5563 #171a1f;
  tab-size: 2;
}

.config-notes {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid #282d34;
  background: #171a1f;
}

.warning-note {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #5c4825;
  border-radius: 8px;
  background: #251f15;
  color: #d9c9a8;
  font-size: 0.7rem;
  line-height: 1.55;
}

.warning-note strong {
  color: #f0d8a8;
}

.config-notes details {
  padding: 10px 12px;
  border: 1px solid #313945;
  border-radius: 8px;
  color: #aeb7c4;
  font-size: 0.69rem;
}

.config-notes summary {
  color: #d4dbe5;
  font-weight: 650;
  cursor: pointer;
}

.config-notes details p {
  margin: 9px 0 0;
  line-height: 1.55;
}

.config-notes code {
  color: #bfd3ed;
  font-size: 0.65rem;
}

.copy-status {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.privacy-section {
  width: min(calc(100% - 80px), var(--max-width));
  margin-inline: auto;
  padding-block: 96px;
}

.privacy-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.privacy-heading h2 {
  margin-bottom: 0;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.privacy-grid article {
  min-height: 250px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.privacy-index {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 650;
}

.privacy-grid h3 {
  margin-bottom: 10px;
  font-size: 0.94rem;
}

.privacy-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.65;
}

.cta-section {
  display: flex;
  width: min(calc(100% - 80px), var(--max-width));
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin: 0 auto 40px;
  padding: clamp(34px, 6vw, 64px);
  border-radius: 18px;
  background: var(--dark);
  color: white;
}

.cta-section .section-kicker {
  color: #abc6e9;
}

.cta-section h2 {
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.cta-section p:not(.section-kicker) {
  margin-bottom: 26px;
  color: #aeb7c4;
}

.button-light {
  background: white;
  color: var(--ink);
}

.button-light:hover {
  background: #edf1f6;
}

.cta-qr {
  display: grid;
  flex: none;
  padding: 12px;
  place-items: center;
  border-radius: 13px;
  background: white;
}

.cta-qr img {
  display: block;
  width: 132px;
  height: 132px;
}

.site-footer {
  display: grid;
  width: min(calc(100% - 80px), var(--max-width));
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-inline: auto;
  padding-block: 36px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.72rem;
}

.site-footer p {
  margin: 0;
}

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

.footer-brand {
  font-size: 0.88rem;
}

.footer-brand .brand-mark {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  font-size: 0.78rem;
}

.brand:focus-visible,
.site-nav a:focus-visible,
.language-switcher a:focus-visible,
.header-cta:focus-visible,
.button:focus-visible,
.inline-link:focus-visible,
.copy-button:focus-visible,
.config-notes summary:focus-visible {
  outline: 3px solid rgb(79 115 168 / 35%);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .site-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 52px;
    padding-block: 70px;
  }

  .gateway-card {
    width: min(100%, 620px);
  }

  .setup-layout {
    grid-template-columns: 1fr;
  }

  .setup-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .config-panel {
    position: static;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .privacy-grid article {
    min-height: 0;
  }

  .privacy-index {
    margin-bottom: 30px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .header-cta {
    display: none;
  }

  .hero,
  .privacy-section,
  .cta-section,
  .site-footer {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .hero {
    gap: 42px;
    padding-block: 54px 58px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    align-items: flex-start;
    flex-direction: column;
  }

  .gateway-card-top {
    grid-template-columns: auto 1fr;
  }

  .gateway-card-top > .mono {
    justify-self: end;
  }

  .live-status {
    display: none;
  }

  .gateway-body {
    padding: 24px 20px;
  }

  .endpoint {
    font-size: 0.92rem;
  }

  .setup-section {
    padding: 68px 16px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2,
  .privacy-heading h2,
  .cta-section h2 {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  .setup-steps {
    display: flex;
  }

  .config-toolbar {
    padding-inline: 13px;
  }

  .config-code {
    max-height: none;
    padding: 20px 16px;
    font-size: 0.65rem;
  }

  .privacy-section {
    padding-block: 68px;
  }

  .privacy-heading {
    margin-bottom: 34px;
  }

  .cta-section {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
    padding: 32px 24px;
  }

  .cta-qr {
    display: none;
  }

  .site-footer {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer p:last-child {
    justify-self: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .header-cta {
    transition: none;
  }
}
