:root {
  --ink: #050a15;
  --muted: #475569;
  --canvas: #fafaf7;
  --line: #e8e8e0;
  --accent: #8b7355;
  --accent-dark: #7a6549;
  --navy: #07111f;
  --white: #fff;
}

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-Variable.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.top-nav {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  color: rgba(255, 255, 255, 0.84);
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.top-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  backdrop-filter: blur(14px);
}

.brand {
  height: 56px;
  display: flex;
  align-items: center;
}

.brand img {
  height: 34px;
  width: auto;
  display: block;
  transition: transform 220ms ease, filter 220ms ease;
}

.top-nav.scrolled .brand img {
  filter: invert(1);
}

.brand:hover img {
  transform: scale(1.04);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a,
.nav-actions a {
  transition: opacity 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-links a:hover {
  opacity: 0.72;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 20px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.btn .arrow-svg {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-ghost {
  color: currentColor;
  border-color: rgba(255, 255, 255, 0.26);
}

.top-nav.scrolled .btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn-solid,
.btn-primary {
  color: white;
  background: var(--accent);
}

.btn-solid:hover,
.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
}

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

.btn-footer {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg,
.hero-shade,
.panel-bg,
.pricing-bg,
.footer-bg {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.12), transparent 20%),
    linear-gradient(rgba(5, 10, 21, 0.52), rgba(5, 10, 21, 0.52)),
    url("/assets/backgrounds/hero-mountain.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(5, 10, 21, 0.2), rgba(5, 10, 21, 0.12) 52%, rgba(5, 10, 21, 0.48)),
    radial-gradient(circle at 50% 65%, rgba(139, 115, 85, 0.2), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: 96px 24px 32px;
  color: white;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2.75rem, 6vw + 1rem, 5.5rem);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 300;
}

.hero h1 span {
  font-style: italic;
  color: rgba(255, 255, 255, 0.82);
}

.hero p {
  margin: 0 auto 40px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.7;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.features {
  position: relative;
  background: white;
}

.feature-section {
  position: relative;
  height: 130vh;
  background: white;
}

.feature-section.has-two {
  height: 250vh;
}

.feature-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.feature-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(148, 163, 184, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 25% 25%;
  pointer-events: none;
  opacity: 0.55;
}

.feature-frame {
  position: relative;
  z-index: 10;
  width: min(95%, 1400px);
  height: 80vh;
  min-height: 600px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(5, 10, 21, 0.2);
}

.feature-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 360ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-layer.secondary {
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
}

.feature-section.phase-second .feature-layer.primary {
  opacity: 0;
  transform: translateY(-40px);
  pointer-events: none;
}

.feature-section.phase-second .feature-layer.secondary {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.feature-visual {
  position: relative;
  z-index: 4;
  width: 55%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
}

.section-number {
  --number-y: 0px;
  position: absolute;
  left: clamp(48px, 6vw, 96px);
  top: 96px;
  z-index: 20;
  color: rgba(139, 115, 85, 0.55);
  font-size: clamp(7.5rem, 16vw, 15rem);
  font-weight: 200;
  line-height: 0.8;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50px, var(--number-y), 0) scale(0.8);
  transform-origin: top left;
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.section-number.in-view {
  opacity: 1;
  transform: translate3d(0, var(--number-y), 0) scale(1);
}

.panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  background: var(--canvas);
}

.panel-bg-1 {
  background: linear-gradient(rgba(250, 250, 247, 0.12), rgba(250, 250, 247, 0.2)), url("/assets/backgrounds/bg-1.png") center / cover no-repeat;
}

.panel-bg-2 {
  background: linear-gradient(rgba(250, 250, 247, 0.08), rgba(250, 250, 247, 0.14)), url("/assets/backgrounds/bg-2.png") center / cover no-repeat;
}

.panel-bg-3 {
  background: linear-gradient(rgba(250, 250, 247, 0.08), rgba(250, 250, 247, 0.14)), url("/assets/backgrounds/bg-3.png") center / cover no-repeat;
}

.panel-bg.darken {
  filter: brightness(0.72) saturate(0.8);
}

.mockup,
.feature-copy {
  position: relative;
  z-index: 4;
}

.mockup {
  width: 100%;
  max-width: 700px;
  justify-self: end;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(5, 10, 21, 0.22);
}

.feature-layer > .feature-copy {
  width: min(45%, 540px);
  max-width: none;
  align-self: center;
  margin: auto clamp(32px, 5vw, 64px) auto 0;
}

.window-bar,
.mockup-head {
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.window-bar {
  display: grid;
  grid-template-columns: 12px 12px 12px 1fr;
  gap: 8px;
  align-items: center;
  padding: 14px 16px;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-bar span:nth-child(1) { background: #ff5f56; }
.window-bar span:nth-child(2) { background: #ffbd2e; }
.window-bar span:nth-child(3) { background: #27ca40; }

.window-bar code {
  justify-self: center;
  min-width: min(260px, 100%);
  padding: 7px 16px;
  border: 1px solid var(--line);
  background: white;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}

.log-body {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  min-height: 330px;
}

.log-list {
  padding: 16px;
  background: var(--canvas);
  border-right: 1px solid var(--line);
}

.log-item {
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: white;
  opacity: 0.75;
}

.log-item.active {
  border-color: #2563eb;
  border-left-width: 4px;
  opacity: 1;
}

.log-item strong {
  display: block;
  color: #2563eb;
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.log-item span {
  font-size: 12px;
  color: var(--ink);
}

.log-detail {
  padding: 28px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.detail-top {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.log-detail span {
  color: #94a3b8;
}

pre {
  white-space: pre-wrap;
  margin: 0;
}

.log-detail pre {
  margin-top: 16px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--ink);
}

.feature-copy {
  max-width: 520px;
  padding: 48px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 50px rgba(5, 10, 21, 0.14);
}

.feature-copy span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 24px;
}

.feature-copy h2 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 300;
}

.feature-copy p {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 300;
}

.feature-copy a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}

.arrow-char {
  display: inline-block;
  transition: transform 180ms ease;
}

.feature-copy .arrow-char {
  display: inline-block;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
}

.feature-copy a:hover .arrow-char,
.btn:hover .arrow-char {
  transform: translateX(3px);
}

.mockup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.mockup-head.vertical {
  display: block;
}

.mockup-head span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
}

button {
  font: inherit;
}

.mockup-head button {
  border: 0;
  background: var(--ink);
  color: white;
  padding: 8px 14px;
  font-size: 12px;
}

.flags {
  overflow: hidden;
  background: white;
}

.flags-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.flags-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.window-dots {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  margin-right: 8px;
}

.window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.window-dots i:nth-child(1) { background: #ff5f56; }
.window-dots i:nth-child(2) { background: #ffbd2e; }
.window-dots i:nth-child(3) { background: #27ca40; }

.flags-title strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.flags-head button {
  border: 0;
  background: var(--ink);
  color: white;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.flags-list {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.flag-card {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: white;
}

.flag-card.active {
  border-color: var(--accent);
  background: var(--canvas);
}

.flag-card p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.flag-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.flag-title-row strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.active-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #16a34a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.flag-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.flag-toggle {
  position: relative;
  width: 32px;
  height: 16px;
  border-radius: 999px;
  background: #cbd5e1;
}

.flag-toggle i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: white;
  transition: left 180ms ease;
}

.flag-toggle.on {
  background: #16a34a;
}

.flag-toggle.on i {
  left: 18px;
}

.flag-status em {
  font-style: normal;
  color: #94a3b8;
  font-size: 11px;
  white-space: nowrap;
}

.variants {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 28px;
}

.variant {
  border: 1px solid var(--line);
  padding: 24px;
}

.variant.winner {
  border-color: #16a34a;
  background: #f0fdf4;
}

.variant strong {
  display: block;
  margin-bottom: 22px;
}

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

.variant-heading strong {
  margin: 0;
}

.variant-heading span {
  padding: 2px 8px;
  border: 1px solid #bbf7d0;
  background: #dcfce7;
  color: #16a34a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.variant label {
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font-size: 12px;
  margin: 16px 0 8px;
}

.variant div {
  height: 7px;
  background: #f1f5f9;
}

.variant i {
  display: block;
  height: 100%;
  background: #94a3b8;
}

.variant.winner i {
  background: #16a34a;
}

.slack {
  max-width: 430px;
  justify-self: center;
  overflow: hidden;
}

.slack-top {
  background: #3f0e40;
  color: white;
  padding: 14px 18px;
  font-weight: 800;
}

.slack-top span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 50%;
  background: #2bac76;
}

.slack-msg {
  display: flex;
  gap: 16px;
  padding: 22px;
}

.bot-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.slack-msg em {
  background: #f2f2f2;
  color: #616061;
  font-style: normal;
  font-size: 11px;
  padding: 1px 4px;
}

.alert-box {
  border-left: 4px solid #e01e5a;
  padding: 6px 0 6px 12px;
  margin: 12px 0;
  line-height: 1.7;
}

.alert-box code {
  color: #e01e5a;
  background: #f8f8f8;
  border: 1px solid var(--line);
  padding: 1px 6px;
  font-size: 12px;
}

.slack button {
  margin-right: 8px;
  border: 1px solid #d1d2d3;
  background: white;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.editor {
  overflow: hidden;
  border-color: #333;
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.editor-top {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #2d2d2d;
  border-bottom: 1px solid #1e1e1e;
  padding: 8px 16px;
  color: #969696;
  font-size: 12px;
}

.editor-dots {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.editor-dots i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.editor-dots i:nth-child(1) { background: #ff5f56; }
.editor-dots i:nth-child(2) { background: #ffbd2e; }
.editor-dots i:nth-child(3) { background: #27ca40; }

.editor-tabs {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.editor-tabs span {
  display: inline-block;
  padding: 6px 16px;
  white-space: nowrap;
}

.editor-tabs span:first-child {
  background: #1e1e1e;
  color: #d4d4d4;
  border-top: 1px solid #007acc;
}

.editor-code {
  padding: 16px 0;
  line-height: 1.7;
}

.code-row {
  display: flex;
  padding: 0 16px;
}

.code-row.error {
  padding-left: 12px;
  border-left: 4px solid #f14c4c;
  background: #4a1919;
}

.ln {
  width: 40px;
  padding-right: 16px;
  color: #858585;
  text-align: right;
  user-select: none;
  flex: 0 0 40px;
}

.code-text {
  flex: 1;
  min-width: 0;
  white-space: pre;
}

.code-text b,
.insight-suggestion b {
  font-weight: 400;
}

.kw-blue { color: #569cd6; }
.kw-yellow { color: #dcdcaa; }
.kw-cyan { color: #4ec9b0; }
.kw-purple { color: #c586c0; }
.kw-orange { color: #ce9178; }

.insight-row {
  margin: 8px 0;
}

.insight {
  position: relative;
  flex: 1;
  padding: 16px;
  border: 1px solid #454545;
  background: #252526;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
}

.insight::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 16px;
  width: 12px;
  height: 12px;
  border-top: 1px solid #454545;
  border-left: 1px solid #454545;
  background: #252526;
  transform: rotate(45deg);
}

.insight-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #454545;
}

.insight-title span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #8b7355;
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.insight-title strong {
  color: #cccccc;
  font-size: 13px;
  font-weight: 800;
}

.insight p {
  margin: 0 0 16px;
  color: #969696;
  font-size: 12px;
  line-height: 1.6;
}

.insight code {
  color: #ce9178;
  background: #1e1e1e;
  padding: 1px 4px;
}

.insight-suggestion {
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #333;
  background: #1e1e1e;
  color: #d4d4d4;
  font-size: 12px;
}

.insight-suggestion b {
  color: #4ec9b0;
}

.insight-action {
  display: flex;
  justify-content: flex-end;
}

.insight-action button {
  border: 0;
  background: #0e639c;
  color: white;
  padding: 6px 16px;
  font-size: 12px;
}

.pricing {
  position: relative;
  overflow: hidden;
  background: var(--canvas);
  border-top: 1px solid var(--line);
  padding: 96px 24px;
}

.pricing-bg {
  opacity: 0.28;
  mix-blend-mode: multiply;
  background: url("/assets/backgrounds/pricing-bg.png") center / cover no-repeat;
}

.section-heading {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 64px;
}

.section-heading h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 300;
}

.section-heading p {
  color: var(--muted);
}

.pricing-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.price-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  padding: 32px;
  box-shadow: 0 20px 55px rgba(5, 10, 21, 0.1);
  position: relative;
}

.price-card.featured {
  background: rgba(5, 10, 21, 0.96);
  color: white;
  border-color: var(--ink);
  transform: scale(1.04);
  z-index: 3;
}

.price-card mark {
  position: absolute;
  top: 0;
  right: 0;
  padding: 5px 12px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.price-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.price {
  font-size: 34px;
  font-weight: 300;
  margin-bottom: 18px;
}

.price span {
  color: #94a3b8;
  font-size: 14px;
}

.price-card p {
  color: var(--muted);
  font-size: 13px;
  min-height: 40px;
}

.price-card.featured p {
  color: rgba(255, 255, 255, 0.72);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  min-height: 160px;
}

.price-card li {
  margin: 14px 0;
  color: var(--muted);
  font-size: 14px;
}

.price-card.featured li {
  color: rgba(255, 255, 255, 0.88);
}

.price-card li::before {
  content: "✓";
  color: var(--accent);
  margin-right: 10px;
  font-weight: 900;
}

.price-card a {
  display: flex;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 12px 18px;
  font-weight: 800;
}

.price-card.featured a {
  background: var(--accent);
  border-color: var(--accent);
}

.footer-cta {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  background: var(--ink);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.footer-bg {
  opacity: 0.4;
  mix-blend-mode: screen;
  background: url("/assets/backgrounds/bg-2.png") center / cover no-repeat;
}

.footer-cta::before,
.footer-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.footer-cta::before {
  background: linear-gradient(180deg, white, transparent 38%, rgba(5, 10, 21, 0.9));
}

.footer-cta::after {
  background: linear-gradient(0deg, var(--ink), rgba(5, 10, 21, 0.78), transparent 72%);
}

.footer-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: auto auto 64px;
  text-align: center;
  padding: 120px 24px 0;
}

.footer-content h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  line-height: 1.2;
}

.footer-content p {
  margin: 0 auto 38px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 300;
}

.footer-content div {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

footer {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 34px 0 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}

footer div {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

footer a:hover {
  color: white;
}

.simple-page {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  padding: 120px 24px 64px;
}

.simple-card {
  max-width: 760px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 24px 80px rgba(5, 10, 21, 0.08);
}

.simple-card .page-logo {
  display: block;
  height: 34px;
  width: auto;
  filter: invert(1);
  margin-bottom: 40px;
}

.simple-card h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  font-weight: 300;
}

.simple-card h2 {
  margin-top: 34px;
}

.simple-card p,
.simple-card li {
  color: var(--muted);
  line-height: 1.75;
}

.simple-card .btn {
  margin-top: 24px;
}

.legal-page {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
}

.legal-header {
  border-bottom: 1px solid rgba(5, 10, 21, 0.06);
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: blur(12px);
}

.legal-header-inner,
.legal-main,
.legal-footer-inner {
  width: min(896px, calc(100% - 48px));
  margin: 0 auto;
}

.legal-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.legal-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: invert(1);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(5, 10, 21, 0.62);
  font-size: 14px;
  font-weight: 600;
}

.legal-back:hover {
  color: var(--ink);
}

.legal-back svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-main {
  padding: 48px 0 24px;
}

.legal-main h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.02;
}

.legal-updated {
  margin: 0 0 48px;
  color: rgba(5, 10, 21, 0.4);
  font-size: 14px;
}

.legal-content {
  display: grid;
  gap: 32px;
  color: rgba(5, 10, 21, 0.68);
  font-size: 16px;
  line-height: 1.75;
}

.legal-content section {
  display: grid;
  gap: 12px;
}

.legal-content h2,
.legal-content h3,
.legal-content p,
.legal-content ul {
  margin: 0;
}

.legal-content h2 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.legal-content h3 {
  margin-top: 8px;
  color: rgba(5, 10, 21, 0.9);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.legal-content ul {
  display: grid;
  gap: 8px;
  padding-left: 24px;
}

.legal-content strong {
  color: rgba(5, 10, 21, 0.9);
  font-weight: 700;
}

.legal-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-contact-card {
  width: min(100%, 420px);
  margin-top: 4px;
  padding: 16px;
  border: 1px solid rgba(5, 10, 21, 0.1);
  border-radius: 8px;
  background: rgba(5, 10, 21, 0.04);
}

.legal-footer {
  width: 100%;
  margin: 48px 0 0;
  padding: 0;
  border-top: 1px solid rgba(5, 10, 21, 0.06);
  color: rgba(5, 10, 21, 0.42);
  text-align: left;
}

.legal-footer-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
  margin-bottom: 0;
  font-size: 13px;
}

.legal-footer p {
  margin: 0;
}

.legal-footer a:hover {
  color: var(--ink);
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--ink);
}

.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 96px);
}

.login-card {
  width: min(100%, 390px);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  color: var(--ink);
}

.login-brand img {
  width: 32px;
  height: 32px;
  filter: invert(1);
  object-fit: contain;
}

.login-brand span {
  font-size: 20px;
  font-family: Nunito, Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.login-auth h1,
.login-check h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.12;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.login-help,
.login-check p {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.login-help a,
.login-legal a,
.password-label-row a,
.login-reset {
  color: var(--accent);
}

.login-error {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.login-google,
.login-submit,
.login-reset,
.login-methods button {
  font: inherit;
  cursor: pointer;
}

.login-google {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.login-google:hover {
  transform: scale(1.02);
  border-color: #cfcfc5;
  background: #fffef9;
}

.login-google svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.login-divider {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 24px 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);
}

.login-divider span {
  position: relative;
  padding: 0 12px;
  background: var(--canvas);
}

.login-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}

.login-methods button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  transition: background 180ms ease, color 180ms ease;
}

.login-methods button.active {
  background: var(--accent);
  color: white;
}

.login-methods svg,
.login-input-wrap svg,
.login-check-icon svg {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-methods svg {
  width: 14px;
  height: 14px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.password-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.password-label-row a {
  font-size: 12px;
  font-weight: 600;
}

.login-input-wrap {
  position: relative;
  display: block;
}

.login-input-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  color: #94a3b8;
  transform: translateY(-50%);
  pointer-events: none;
}

.login-input-wrap input {
  width: 100%;
  min-height: 46px;
  padding: 12px 18px 12px 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.login-input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 115, 85, 0.1);
}

.login-submit {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.login-submit:hover {
  transform: scale(1.02);
  background: var(--accent-dark);
}

.login-submit:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.login-legal {
  margin-top: 32px;
  text-align: center;
}

.login-legal p {
  margin: 0 auto;
  max-width: 340px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.login-legal p + p {
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink);
}

.login-check {
  text-align: center;
}

.login-check-icon {
  width: 64px;
  height: 64px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.login-check-icon svg {
  width: 32px;
  height: 32px;
}

.login-reset {
  border: 0;
  background: transparent;
  font-size: 14px;
}

.login-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 45%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 90px),
    #050a15;
  color: white;
}

.login-visual::before,
.login-visual::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transform: rotate(-8deg);
}

.login-visual::after {
  inset: 28%;
  transform: rotate(11deg);
}

.login-visual-copy {
  position: relative;
  z-index: 1;
  max-width: 460px;
  padding: 48px;
  text-align: center;
}

.login-visual-copy p {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.12;
  font-weight: 300;
  letter-spacing: -0.04em;
}

.login-visual-copy span {
  font-weight: 500;
}

.login-visual-copy small {
  display: block;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.demo-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
}

.demo-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(148, 163, 184, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px);
  background-size: 25% 25%;
  opacity: 0.62;
  pointer-events: none;
}

.demo-bg::after {
  content: "";
  position: absolute;
  right: 0;
  top: 72px;
  width: min(52vw, 760px);
  height: calc(100% - 72px);
  background:
    linear-gradient(90deg, var(--canvas), rgba(250, 250, 247, 0.78) 26%, rgba(250, 250, 247, 0.26)),
    url("/assets/backgrounds/bg-2.png") center / cover no-repeat;
  opacity: 0.48;
  mix-blend-mode: multiply;
}

.demo-nav {
  position: relative;
  z-index: 5;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(14px);
}

.demo-brand {
  height: 56px;
  display: flex;
  align-items: center;
}

.demo-brand img {
  height: 34px;
  width: auto;
  filter: invert(1);
}

.demo-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.demo-nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.demo-nav-link:hover {
  color: var(--ink);
}

.demo-shell {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 48px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 0.82fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
  padding: 42px 0 56px;
}

.demo-copy {
  max-width: 640px;
}

.demo-copy > span {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.demo-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(2.9rem, 5.2vw, 4.55rem);
  line-height: 1.04;
  font-weight: 300;
}

.demo-copy p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.68;
  font-weight: 300;
}

.demo-agenda {
  width: min(100%, 520px);
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.demo-agenda div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid var(--line);
}

.demo-agenda b {
  color: rgba(139, 115, 85, 0.72);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.demo-agenda span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.demo-form {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border: 1px solid rgba(232, 232, 224, 0.95);
  box-shadow: 0 28px 80px rgba(5, 10, 21, 0.11);
  backdrop-filter: blur(18px);
}

.demo-form-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 300;
  line-height: 1.12;
}

.demo-form-head p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.demo-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(250, 250, 247, 0.78);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.demo-form textarea {
  resize: vertical;
  min-height: 78px;
  line-height: 1.5;
}

.demo-form input::placeholder,
.demo-form textarea::placeholder {
  color: rgba(71, 85, 105, 0.55);
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.12);
}

.demo-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: var(--accent);
  color: white;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 900;
  transition: background 180ms ease;
}

.demo-submit:hover {
  background: var(--accent-dark);
}

.demo-submit .arrow-svg {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-success {
  margin: 0;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .top-nav {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .feature-section,
  .feature-section.has-two {
    height: auto;
  }

  .feature-stage {
    position: relative;
    height: auto;
    min-height: 0;
    display: block;
    padding: 96px 24px;
  }

  .feature-panel {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 96px 24px;
  }

  .feature-frame {
    width: 100%;
    height: auto;
    min-height: 0;
    display: block;
    overflow: visible;
  }

  .panel-bg {
    inset: 0;
    width: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
  }

  .feature-stage::before,
  .feature-panel::before {
    background-size: 50% 25%;
  }

  .feature-layer,
  .feature-layer.secondary,
  .feature-section.phase-second .feature-layer.primary,
  .feature-section.phase-second .feature-layer.secondary {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .feature-layer + .feature-layer {
    margin-top: 48px;
  }

  .feature-visual {
    width: 100%;
    height: auto;
    min-height: 300px;
    padding: 32px;
  }

  .feature-layer > .feature-copy {
    width: 100%;
    margin: 0;
  }

  .section-number {
    top: 56px;
    opacity: 0.45;
  }

  .mockup,
  .feature-copy {
    justify-self: center;
    max-width: 760px;
  }

  .feature-copy {
    padding: 32px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .price-card.featured {
    transform: none;
  }

  .login-page {
    display: block;
  }

  .login-form-side {
    min-height: 100vh;
    padding: 56px 24px;
  }

  .login-visual {
    display: none;
  }

  .demo-nav {
    padding: 0 24px;
  }

  .demo-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 40px 0 64px;
  }

  .demo-copy {
    max-width: 760px;
  }
}

@media (max-width: 680px) {
  .top-nav {
    height: 64px;
    padding: 0 18px;
  }

  .brand img {
    height: 28px;
  }

  .btn-ghost {
    display: none;
  }

  .btn {
    padding: 9px 14px;
  }

  .hero-content {
    padding-top: 88px;
  }

  .log-body,
  .variants {
    grid-template-columns: 1fr;
  }

  .log-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-copy h2 {
    font-size: 2rem;
  }

  .feature-copy p {
    font-size: 16px;
  }

  .footer-content div,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .login-form-side {
    padding: 36px 20px;
  }

  .login-card {
    width: 100%;
  }

  .login-brand {
    margin-bottom: 38px;
  }

  .login-auth h1,
  .login-check h1 {
    font-size: 28px;
  }

  .login-methods button {
    min-width: 0;
    padding-inline: 8px;
  }

  .demo-nav {
    min-height: 64px;
    padding: 0 18px;
  }

  .demo-brand img {
    height: 28px;
  }

  .demo-nav-link {
    display: none;
  }

  .demo-shell {
    width: min(100% - 32px, 1180px);
    padding-top: 28px;
  }

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

  .demo-copy h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-number {
    transform: none;
    transition: none;
  }
}

.docs-shell-body {
  min-height: 100vh;
  color: #d8e1ea;
  background:
    radial-gradient(circle at 22% 0%, rgba(139, 115, 85, 0.18), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(74, 144, 226, 0.12), transparent 24%),
    #070b12;
}

.docs-shell-body code,
.docs-shell-body pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 18, 0.86);
  backdrop-filter: blur(18px);
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.docs-brand img {
  height: 30px;
  width: auto;
  display: block;
}

.docs-toplinks {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: rgba(216, 225, 234, 0.68);
  font-size: 14px;
  font-weight: 700;
}

.docs-toplinks a {
  transition: color 160ms ease;
}

.docs-toplinks a:hover,
.docs-toplinks a.active {
  color: #fff;
}

.docs-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.docs-actions .btn-ghost {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
}

.docs-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  background: transparent;
  font-weight: 800;
}

.docs-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 220px;
  gap: 40px;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 28px 34px 72px;
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 116px);
  overflow: auto;
  scrollbar-width: thin;
}

.docs-sidebar {
  padding-right: 12px;
}

.docs-search {
  position: relative;
  margin-bottom: 22px;
}

.docs-search input {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 0 14px;
  outline: none;
}

.docs-search input::placeholder {
  color: rgba(216, 225, 234, 0.46);
}

.docs-nav-group {
  margin-bottom: 22px;
}

.docs-nav-title,
.docs-toc-title {
  margin: 0 0 8px;
  color: rgba(216, 225, 234, 0.42);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-nav-group a {
  display: block;
  padding: 7px 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(216, 225, 234, 0.68);
  font-size: 14px;
  line-height: 1.35;
}

.docs-nav-group a:hover,
.docs-nav-group a.active {
  border-left-color: #34d399;
  color: #fff;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.12), transparent);
}

.docs-main {
  min-width: 0;
  padding: 20px 0 80px;
}

.docs-article {
  max-width: 820px;
}

.docs-kicker {
  margin: 0 0 12px;
  color: #34d399;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-article h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0;
}

.docs-description {
  margin: 0 0 34px;
  max-width: 680px;
  color: rgba(216, 225, 234, 0.72);
  font-size: 19px;
  line-height: 1.7;
}

.docs-article h2 {
  margin: 50px 0 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 30px;
  line-height: 1.15;
}

.docs-article h3 {
  margin: 34px 0 12px;
  color: #f7fafc;
  font-size: 21px;
  line-height: 1.25;
}

.docs-article h4 {
  margin: 26px 0 10px;
  color: #f7fafc;
  font-size: 17px;
}

.docs-article p,
.docs-article li {
  color: rgba(216, 225, 234, 0.74);
  font-size: 16px;
  line-height: 1.75;
}

.docs-article p {
  margin: 0 0 18px;
}

.docs-article a:not(.docs-card) {
  color: #5eead4;
  border-bottom: 1px solid rgba(94, 234, 212, 0.32);
}

.docs-article ul,
.docs-article ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.docs-article table {
  display: block;
  width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  border-collapse: collapse;
  color: rgba(216, 225, 234, 0.74);
}

.docs-article th,
.docs-article td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 12px;
  text-align: left;
}

.docs-article th {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.docs-article code:not(pre code) {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
  padding: 2px 6px;
  font-size: 0.88em;
}

.docs-codeblock,
.docs-codegroup {
  margin: 22px 0;
}

.docs-codeblock pre {
  margin: 0;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #050814;
  color: #e6edf6;
  padding: 18px;
  font-size: 13px;
  line-height: 1.7;
}

.docs-code-label {
  display: inline-flex;
  margin-bottom: 0;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(216, 225, 234, 0.66);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-codegroup {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.docs-codegroup .docs-codeblock {
  margin: 0 0 14px;
}

.docs-codegroup .docs-codeblock:last-child {
  margin-bottom: 0;
}

.docs-callout {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid rgba(52, 211, 153, 0.24);
  background: rgba(52, 211, 153, 0.08);
}

.docs-callout.tip {
  border-color: rgba(94, 234, 212, 0.26);
  background: rgba(94, 234, 212, 0.08);
}

.docs-callout.warning {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.08);
}

.docs-callout p:last-child {
  margin-bottom: 0;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.docs-card-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-card {
  display: block;
  min-height: 124px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  color: inherit;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.docs-card:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.52);
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.12), rgba(255, 255, 255, 0.03));
}

.docs-card strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 16px;
}

.docs-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.docs-steps {
  margin: 24px 0;
  counter-reset: docs-step;
}

.docs-step {
  position: relative;
  padding: 0 0 22px 42px;
  border-left: 1px solid rgba(52, 211, 153, 0.32);
}

.docs-step:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.docs-step::before {
  counter-increment: docs-step;
  content: counter(docs-step);
  position: absolute;
  left: -15px;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: #10b981;
  color: #03130e;
  font-size: 13px;
  font-weight: 900;
}

.docs-step strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

.docs-param {
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.docs-param-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.docs-param-name {
  color: #fff;
  font-weight: 900;
}

.docs-param-type,
.docs-required {
  color: rgba(216, 225, 234, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.docs-required {
  color: #34d399;
}

.docs-accordion {
  margin: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.docs-accordion summary {
  cursor: pointer;
  padding: 14px 16px;
  color: #fff;
  font-weight: 900;
}

.docs-accordion-body {
  padding: 0 16px 16px;
}

.docs-footer-clean {
  margin-top: 72px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(216, 225, 234, 0.48);
  font-size: 13px;
}

.docs-toc a {
  display: block;
  padding: 6px 0;
  color: rgba(216, 225, 234, 0.54);
  font-size: 13px;
  line-height: 1.35;
}

.docs-toc a:hover {
  color: #fff;
}

.docs-toc a.depth-3 {
  padding-left: 14px;
}

.docs-empty-toc {
  color: rgba(216, 225, 234, 0.38);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .docs-topbar {
    grid-template-columns: auto 1fr auto;
    padding: 0 20px;
  }

  .docs-toplinks {
    display: none;
  }

  .docs-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 22px 64px;
  }

  .docs-sidebar {
    position: fixed;
    z-index: 45;
    top: 64px;
    bottom: 0;
    left: 0;
    width: min(86vw, 330px);
    max-height: none;
    padding: 24px;
    background: #070b12;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .docs-shell-body.docs-sidebar-open .docs-sidebar {
    transform: translateX(0);
  }

  .docs-toc {
    display: none;
  }
}

@media (max-width: 740px) {
  .docs-actions .btn-ghost {
    display: none;
  }

  .docs-actions .btn-solid {
    min-height: 38px;
    padding-inline: 14px;
  }

  .docs-layout {
    padding-inline: 18px;
  }

  .docs-card-grid,
  .docs-card-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .docs-article h1 {
    font-size: clamp(2.35rem, 15vw, 3.6rem);
  }

  .docs-description {
    font-size: 17px;
  }
}
