:root {
  --pk-ink: #0b0e14;
  --pk-ink-2: #121722;
  --pk-off: #eef1f6;
  --pk-key: #f2f4f8;
  --pk-key-soft: #fff;
  --pk-key-muted: #7d8696;
  --pk-card: rgba(18, 23, 34, 0.82);
  --pk-card-line: hsla(0, 0%, 100%, 0.16);
  --pk-surface: #fbfaf7;
  --pk-surface-2: #f3f1ec;
  --pk-text: #11151d;
  --pk-muted: #5c6270;
  --pk-line: rgba(17, 21, 29, 0.12);
  --pk-code-bg: rgba(17, 21, 29, 0.05);
  --pk-accent: #11151d;
  --pk-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --pk-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pk-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --pk-max: 72rem;
  --pk-gutter: clamp(16px, 4vw, 40px);
}

body.chakra-ui-dark {
  --pk-surface: #0e121a;
  --pk-surface-2: #0a0d13;
  --pk-text: #e8ebf1;
  --pk-muted: #9aa1ae;
  --pk-line: hsla(0, 0%, 100%, 0.1);
  --pk-code-bg: hsla(0, 0%, 100%, 0.06);
  --pk-accent: #f2f4f8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pk-surface);
  color: var(--pk-text);
  font-family: var(--pk-sans);
}

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

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--pk-accent);
  outline-offset: 3px;
}

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

.pk-site {
  position: relative;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pk-site > main {
  flex: 1 1;
}

.pk-wrap {
  width: 100%;
  max-width: var(--pk-max);
  margin: 0 auto;
  padding: 0 var(--pk-gutter);
}

.pk-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px var(--pk-gutter);
  color: var(--pk-off);
  font-size: 15px;
}

.pk-brand {
  font-family: var(--pk-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pk-brand-logo {
  width: 40px;
  height: auto;
  flex-shrink: 0;
}

.pk-pair {
  display: flex;
  gap: 8px;
}

.pk-fill,
.pk-ghost {
  font-family: var(--pk-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.pk-ghost {
  background: transparent;
  color: var(--pk-off);
  border-color: rgba(238, 241, 246, 0.25);
}

.pk-ghost:hover {
  border-color: rgba(238, 241, 246, 0.6);
}

.pk-fill {
  display: inline-flex;
  align-items: center;
  background: var(--pk-key);
  color: var(--pk-ink);
}

.pk-fill:hover {
  background: var(--pk-key-soft);
}

.pk-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse 60% 70% at 75% 45%, #16203a 0, var(--pk-ink) 70%);
  color: var(--pk-off);
}

.pk-hero--full {
  min-height: max(620px, 100svh);
  display: flex;
  align-items: center;
}

.pk-hero canvas,
.pk-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.pk-hero canvas {
  width: 100%;
  height: 100%;
}

.pk-hero::after {
  content: "";
  background: linear-gradient(90deg, rgba(11, 14, 20, 0.92), rgba(11, 14, 20, 0.55) 45%, transparent 75%);
}

.pk-hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--pk-max);
  margin: 0 auto;
  padding: 120px var(--pk-gutter) 56px;
}

.pk-hero--full .pk-hero-inner {
  position: static;
  padding-top: 140px;
  padding-bottom: 96px;
}

.pk-hero--full .pk-hero-copy {
  max-width: 640px;
}

.pk-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pk-mono);
  font-size: 12px;
  color: #c3c9d4;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--pk-card-line);
  background: hsla(0, 0%, 100%, 0.06);
  margin: 0 0 22px;
}

.pk-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pk-key);
  animation: pk-pulse 2s ease-in-out infinite;
}

.pk-display {
  font-family: var(--pk-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-size: clamp(56px, 10vw, 124px);
  margin: 0;
}

.pk-display em {
  font-style: normal;
  color: var(--pk-key-muted);
}

.pk-sub {
  font-size: clamp(17px, 2vw, 21px);
  color: #c3c9d4;
  margin: 16px 0 0;
}

.pk-phrase {
  display: inline-block;
  min-height: 1.4em;
  animation: pk-fade 0.35s ease;
}

.pk-caret {
  color: var(--pk-key);
  animation: pk-blink 1s steps(1) infinite;
}

@keyframes pk-fade {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

@keyframes pk-pulse {
  50% {
    opacity: 0.35;
  }
}

.pk-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.pk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 24px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.pk-btn:hover {
  transform: translateY(-1px);
}

.pk-btn--primary {
  background: var(--pk-key);
  color: var(--pk-ink);
}

.pk-btn--primary:hover {
  background: var(--pk-key-soft);
}

.pk-win {
  position: relative;
  background: var(--pk-card);
  color: var(--pk-off);
  border: 1px solid var(--pk-card-line);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  text-align: left;
  overflow: hidden;
}

.pk-win-tab {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--pk-key);
  padding: 12px 14px 0;
  font-family: var(--pk-mono);
}

.pk-win-title {
  font-family: var(--pk-mono);
  font-size: 15px;
  font-weight: 500;
  padding: 4px 14px 10px;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.08);
}

.pk-win-body {
  font-family: var(--pk-mono);
  font-size: 11.5px;
  line-height: 1.65;
  padding: 10px 14px 12px;
  color: #c3c9d4;
}

.pk-win-body pre {
  margin: 0;
  white-space: pre;
  font-family: inherit;
}

.pk-chip {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid hsla(0, 0%, 100%, 0.15);
  padding: 1px 8px;
  margin: 6px 4px 0 0;
  color: var(--pk-off);
}

.pk-float {
  position: absolute;
  z-index: 1;
  animation: pk-bob 10s ease-in-out infinite;
}

.pk-float--a {
  right: max(var(--pk-gutter), 5%);
  bottom: 14%;
  width: 300px;
}

.pk-float--b {
  right: max(calc(var(--pk-gutter) + 230px), 22%);
  top: 18%;
  width: 210px;
  animation-delay: -3s;
}

.pk-float--c {
  right: max(var(--pk-gutter), 6%);
  top: 24%;
  width: 160px;
  animation-delay: -6s;
}

@keyframes pk-bob {
  50% {
    transform: translateY(-8px);
  }
}

.pk-ca {
  margin-top: 28px;
  max-width: 560px;
}

.pk-ca .pk-win-body {
  padding: 0;
}

.pk-hero .pk-ca-address {
  display: block;
  padding: 14px;
  border: 0;
  background: transparent;
  border-radius: 0;
  font-family: var(--pk-mono);
  font-size: 15px;
  color: var(--pk-off);
  word-break: break-all;
  user-select: all;
}

.pk-copy {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  font-family: var(--pk-mono);
  font-size: 12px;
  padding: 10px 14px;
  background: hsla(0, 0%, 100%, 0.05);
  border: 0;
  border-top: 1px solid var(--pk-card-line);
  cursor: pointer;
  color: var(--pk-key-soft);
}

.pk-copy:hover {
  background: hsla(0, 0%, 100%, 0.1);
}

.pk-section {
  background: var(--pk-surface);
  color: var(--pk-text);
  padding: clamp(48px, 8vw, 96px) 0;
}

.pk-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.pk-h2 {
  font-family: var(--pk-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-size: clamp(34px, 5vw, 54px);
  margin: 0 0 18px;
}

.pk-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--pk-text);
  max-width: 60ch;
  margin: 0;
}

.pk-stats {
  display: grid;
  gap: 14px;
}

.pk-stat {
  border: 1px solid var(--pk-line);
  border-radius: 16px;
  padding: 18px 22px;
  background: var(--pk-surface-2);
}

.pk-stat-num {
  font-family: var(--pk-display);
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.pk-stat-label {
  font-size: 13px;
  color: var(--pk-muted);
  margin-top: 6px;
}

.pk-soon {
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pk-soon li {
  list-style: none;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px dashed var(--pk-line);
  color: var(--pk-muted);
  font-size: 14px;
}

.pk-soon .mono {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--pk-accent);
}

.pk-acc code,
.pk-section code {
  font-family: var(--pk-mono);
  font-size: 0.82em;
  padding: 1px 6px;
  background: var(--pk-code-bg);
  border: 1px solid var(--pk-line);
  border-radius: 6px;
}

.pk-acc code {
  background: hsla(0, 0%, 100%, 0.06);
  border-color: hsla(0, 0%, 100%, 0.14);
}

.pk-acc {
  background: var(--pk-ink);
  padding: clamp(48px, 8vw, 96px) 0;
  color: var(--pk-off);
}

.pk-acc .pk-h2 {
  color: var(--pk-off);
}

.pk-acc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.pk-acc-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.pk-acc details {
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  border-radius: 14px;
  background: var(--pk-ink-2);
  transition: border-color 0.15s;
}

.pk-acc details:hover,
.pk-acc details[open] {
  border-color: var(--pk-card-line);
}

.pk-acc summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  font-size: 15px;
}

.pk-acc summary::-webkit-details-marker {
  display: none;
}

.pk-acc-hex {
  font-family: var(--pk-mono);
  font-size: 12px;
  color: var(--pk-key);
}

.pk-acc-name {
  font-weight: 600;
  color: var(--pk-off);
}

.pk-acc-desc {
  color: #8d95a3;
}

.pk-acc-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  color: var(--pk-key);
}

.pk-acc details[open] .pk-acc-icon::before {
  content: "−";
}

.pk-acc details:not([open]) .pk-acc-icon::before {
  content: "+";
}

.pk-acc-body {
  padding: 0 18px 20px 86px;
  font-size: 15px;
  line-height: 1.7;
  color: #c3c9d4;
  max-width: 86ch;
}

.pk-badge {
  font-family: var(--pk-mono);
  font-size: 10px;
  color: var(--pk-ink);
  background: var(--pk-key);
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 8px;
  vertical-align: 2px;
}

.pk-footer {
  background: var(--pk-surface-2);
  color: var(--pk-text);
  border-top: 1px solid var(--pk-line);
  font-size: 13px;
}

.pk-footer .pk-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 24px;
}

.pk-footer span {
  color: var(--pk-muted);
  font-family: var(--pk-mono);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .pk-float--a,
  .pk-float--b {
    display: none;
  }
}

@media (max-width: 767px) {
  .pk-fill,
  .pk-ghost {
    font-size: 13px;
    padding: 8px 12px;
  }

  .pk-float,
  .pk-ghost .pk-label {
    display: none;
  }

  .pk-hero::after {
    background: linear-gradient(180deg, rgba(11, 14, 20, 0.2), rgba(11, 14, 20, 0.85) 60%);
  }

  .pk-split {
    grid-template-columns: 1fr;
  }

  .pk-acc summary {
    grid-template-columns: 44px 1fr auto;
    font-size: 14px;
    padding: 14px;
  }

  .pk-acc-desc {
    display: none;
  }

  .pk-acc-body {
    padding: 0 14px 18px;
  }

  .pk-cta {
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pk-caret,
  .pk-float,
  .pk-kicker::before,
  .pk-phrase {
    animation: none;
  }
}
