/* ── Design tokens ── */
:root {
  --bg: #07080b;
  --surface: #101217;
  --surface-2: #171a21;
  --surface-3: #232733;

  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);

  --text: #f6f4ec;
  --text-2: #a7adba;
  --text-3: #7b8494;

  --purple: #b589ff;
  --blue: #5aa7ff;
  --cyan: #38d9d0;
  --amber: #ffd166;
  --green: #7dff9d;
  --coral: #ff7a90;

  --glow-purple: rgba(167, 139, 250, 0.22);
  --glow-blue: rgba(96, 165, 250, 0.22);
  --grid-line: rgba(255, 255, 255, 0.055);
  --panel-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);

  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display:
    'Bricolage Grotesque', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui,
    sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(135deg, rgba(125, 255, 157, 0.075), transparent 32%),
    linear-gradient(225deg, rgba(255, 209, 102, 0.06), transparent 28%), var(--bg);
  background-size:
    46px 46px,
    46px 46px,
    auto,
    auto,
    auto;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.72) 42%, transparent 100%);
}

h1,
h2,
h3,
.nav-logo,
.nav-links a,
.nav-download,
.nav-github,
.mobile-menu-link,
.btn {
  font-family: var(--font-display);
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 18px;
  background: transparent;
  pointer-events: none;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 7px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(7, 8, 11, 0.78);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  pointer-events: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: 0;
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 42px;
  padding: 6px 12px 6px 7px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
  transition:
    background 0.18s,
    transform 0.18s;
}

.nav-logo:hover {
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-1px);
}

.nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(125, 255, 157, 0.22),
    0 10px 24px rgba(56, 217, 208, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  flex: 0 1 auto;
  min-width: 0;
  margin-left: 14px;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  min-height: 42px;
  padding: 0;
  position: relative;
  transition:
    color 0.15s,
    transform 0.15s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  opacity: 0;
  transform: scaleX(0.65);
  transition:
    opacity 0.15s,
    transform 0.15s;
}

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

.nav-links a:hover::after {
  opacity: 0.55;
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.075);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    transform 0.15s;
}

.nav-github svg {
  color: var(--amber);
  opacity: 0.9;
  flex-shrink: 0;
}

.nav-github:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 209, 102, 0.26);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #07100b;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow:
    0 12px 28px rgba(56, 217, 208, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition:
    box-shadow 0.15s,
    transform 0.15s,
    filter 0.15s;
}

.nav-download:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow:
    0 16px 34px rgba(125, 255, 157, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

@media (max-width: 1080px) {
  .nav {
    padding: 0 14px;
  }

  .nav-inner {
    gap: 8px;
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  .nav-github-label {
    display: none;
  }
}

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

  .nav-inner {
    min-height: 56px;
    border-radius: 18px;
  }

  .nav-links,
  .nav-download,
  .nav-github,
  .nav-actions {
    display: none;
  }
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 126px 32px 58px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(125, 255, 157, 0.12);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(125, 255, 157, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(125, 255, 157, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.55;
  transform: perspective(700px) rotateX(62deg) translateY(-15%);
  transform-origin: top center;
}

.hero-signal {
  position: absolute;
  height: 1px;
  width: min(760px, 70vw);
  background: linear-gradient(90deg, transparent, rgba(125, 255, 157, 0.5), transparent);
  opacity: 0.7;
}

.hero-signal-a {
  top: 184px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-signal-b {
  bottom: 132px;
  left: 12%;
  background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.38), transparent);
}

.hero-content {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(125, 255, 157, 0.18);
  border-radius: 16px;
  background: rgba(7, 8, 11, 0.68);
  box-shadow: var(--panel-shadow);
  margin-bottom: 18px;
  animation: fadeUp 0.5s ease both;
}

.hero-brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  box-shadow:
    0 0 0 1px rgba(125, 255, 157, 0.2),
    0 18px 42px rgba(0, 0, 0, 0.42);
}

.hero-brand-name,
.hero-brand-meta {
  display: block;
  text-align: left;
}

.hero-brand-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-brand-meta {
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(125, 255, 157, 0.08);
  border: 1px solid rgba(125, 255, 157, 0.2);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 24px;
  animation: fadeUp 0.5s ease 0.04s both;
}

.hero-badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(125, 255, 157, 0.85);
}

.hero-title {
  max-width: 960px;
  margin: 0 auto 22px;
  font-size: clamp(3rem, 7vw, 6.35rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--text);
  animation: fadeUp 0.55s ease 0.06s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--green) 0%, var(--amber) 48%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-2);
  max-width: 720px;
  margin: 0 auto 30px;
  line-height: 1.72;
  animation: fadeUp 0.55s ease 0.12s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
  animation: fadeUp 0.55s ease 0.18s both;
}

.hero-install {
  max-width: 780px;
  margin: 0 auto 20px;
  animation: fadeUp 0.55s ease 0.2s both;
}

.hero-install-block {
  background: rgba(7, 8, 11, 0.84);
  border-color: rgba(125, 255, 157, 0.16);
}

.hero-install-tag {
  margin-left: auto;
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 800;
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 780px;
  margin: 0 auto 22px;
  animation: fadeUp 0.55s ease 0.24s both;
}

.hero-proof-grid div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.hero-proof-grid span,
.hero-proof-grid strong {
  display: block;
}

.hero-proof-grid span {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-proof-grid strong {
  color: var(--text-2);
  font-size: 0.78rem;
}

.hero-console {
  max-width: 860px;
  margin: 0 auto 18px;
  border: 1px solid rgba(125, 255, 157, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(7, 8, 11, 0.82);
  box-shadow: var(--panel-shadow);
  overflow: hidden;
  animation: fadeUp 0.55s ease 0.28s both;
}

.hero-console-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.hero-console-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

.hero-console-top span:nth-child(2) {
  background: var(--amber);
}

.hero-console-top span:nth-child(3) {
  background: var(--green);
}

.hero-console-top strong {
  margin-left: auto;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.hero-console-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.055);
}

.hero-console-body p {
  margin: 0;
  padding: 14px 16px;
  background: rgba(7, 8, 11, 0.92);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: left;
}

.hero-console-body span {
  color: var(--green);
  margin-right: 8px;
}

.hero-note {
  color: var(--text-3);
  font-size: 0.78rem;
  margin-top: 0;
  margin-bottom: 0;
  animation: fadeUp 0.55s ease 0.24s both;
}

/* ── Provider strip ── */
.project-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(125, 255, 157, 0.08), transparent 42%), rgba(16, 18, 23, 0.78);
  flex-wrap: wrap;
}

.project-strip-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 999px;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-strip-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-strip-list span {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ── Demo showcase ── */
.demo-showcase {
  padding: 58px 32px 72px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
}

.demo-showcase-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 20px;
}

.demo-showcase .demo-card {
  max-width: 580px;
  margin: 0 auto;
  animation: fadeUp 0.55s ease 0.1s both;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s,
    opacity 0.15s;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 55%);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #07100b;
  box-shadow: 0 4px 24px rgba(56, 217, 208, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 8px 36px rgba(125, 255, 157, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

@keyframes pulse-ring {
  0% {
    box-shadow:
      0 4px 24px rgba(56, 217, 208, 0.22),
      0 0 0 0 rgba(125, 255, 157, 0.34);
  }
  70% {
    box-shadow:
      0 4px 24px rgba(56, 217, 208, 0.22),
      0 0 0 14px rgba(125, 255, 157, 0);
  }
  100% {
    box-shadow:
      0 4px 24px rgba(56, 217, 208, 0.22),
      0 0 0 0 rgba(125, 255, 157, 0);
  }
}

.btn-active {
  animation: pulse-ring 1.8s ease-out;
}

/* ── Demo card ── */
.demo-card {
  background: rgba(16, 18, 23, 0.9);
  border: 1px solid rgba(125, 255, 157, 0.13);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--panel-shadow);
  text-align: left;
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.demo-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red {
  background: #ef4444;
  opacity: 0.65;
}
.dot-yellow {
  background: #f59e0b;
  opacity: 0.65;
}
.dot-green {
  background: #10b981;
  opacity: 0.65;
}

.demo-window-title {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 500;
  flex: 1;
  text-align: center;
}

.demo-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-3);
  margin-bottom: 8px;
}

.demo-label-result {
  color: var(--cyan);
}

.demo-text {
  font-size: 0.88rem;
  line-height: 1.55;
  padding: 12px 14px;
  border-radius: 8px;
}

.demo-selected {
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: var(--text-2);
}

.demo-result {
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.14);
  color: var(--text);
}

.demo-transform {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-key {
  font-size: 0.78rem !important;
  padding: 3px 9px !important;
}

.demo-arrow-icon {
  color: var(--text-3);
  flex-shrink: 0;
}

.demo-transform-label {
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ── Keyboard key ── */
.key {
  display: inline-block;
  background: var(--surface-3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── Workflow section ── */
.oss-section {
  padding: 18px 32px 96px;
}

.oss-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: stretch;
}

.oss-copy,
.oss-grid article,
.contribute-panel {
  border: 1px solid rgba(125, 255, 157, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(16, 18, 23, 0.84);
  box-shadow: var(--panel-shadow);
}

.oss-copy {
  border-radius: 18px;
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.oss-copy::after {
  content: '';
  position: absolute;
  inset: auto -40px -70px auto;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 209, 102, 0.14);
  transform: rotate(14deg);
}

.oss-copy h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
  margin-bottom: 18px;
}

.oss-copy p {
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.72;
  max-width: 520px;
  margin-bottom: 24px;
}

.oss-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.oss-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.oss-grid article {
  border-radius: 16px;
  padding: 22px;
}

.oss-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
}

.oss-grid h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.oss-grid p {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── Main layout ── */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px 120px;
}

/* ── Section commons ── */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-desc {
  font-size: 0.975rem;
  color: var(--text-2);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── How it works ── */
.how-section {
  padding: 100px 0 80px;
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  align-items: start;
}

.how-connector {
  height: 2px;
  background: linear-gradient(to right, rgba(167, 139, 250, 0.3), rgba(167, 139, 250, 0.1));
  margin-top: 44px;
  align-self: flex-start;
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  border-radius: 14px;
  transition: background 0.2s;
}

.how-step:hover {
  background: rgba(125, 255, 157, 0.025);
}

.how-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(125, 255, 157, 0.07);
  border: 1px solid rgba(125, 255, 157, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green);
}

.how-step-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.how-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.how-step p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Shortcuts ── */
.shortcuts-section {
  padding: 0 0 80px;
}

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

.shortcut-card {
  background: rgba(16, 18, 23, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 28px 24px;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shortcut-card:hover {
  border-color: rgba(125, 255, 157, 0.18);
  background: rgba(125, 255, 157, 0.035);
  transform: translateY(-3px);
}

.shortcut-card-featured {
  background: rgba(255, 209, 102, 0.035);
  border-color: rgba(255, 209, 102, 0.18);
}

.shortcut-card-featured:hover {
  border-color: rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.06);
}

.shortcut-key-badge {
  display: inline-flex;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 20px;
}

.badge-amber {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.22);
  color: var(--amber);
}

.badge-green {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--green);
}

.badge-purple {
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.22);
  color: var(--purple);
}

.shortcut-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.shortcut-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 20px;
}

.shortcut-platforms {
  font-size: 0.75rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* ── Usage section ── */
.usage-section {
  padding: 0 0 80px;
}

.usage-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.usage-card {
  display: flex;
  gap: 20px;
  background: rgba(16, 18, 23, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px 24px;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.usage-card:hover {
  border-color: rgba(125, 255, 157, 0.18);
  background: rgba(125, 255, 157, 0.03);
  transform: translateY(-2px);
}

.usage-card.highlight {
  background: rgba(56, 217, 208, 0.035);
  border-color: rgba(56, 217, 208, 0.16);
}

.usage-card.highlight:hover {
  border-color: rgba(56, 217, 208, 0.28);
  background: rgba(56, 217, 208, 0.06);
}

.usage-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--amber);
  margin-top: 2px;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.usage-card:hover .usage-icon {
  transform: scale(1.1);
}

.usage-card.highlight .usage-icon {
  background: rgba(56, 217, 208, 0.1);
  border-color: rgba(56, 217, 208, 0.22);
  color: var(--cyan);
}

.usage-body {
  flex: 1;
  min-width: 0;
}

.usage-body h3 {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.usage-body p {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-bottom: 10px;
  line-height: 1.6;
}

.usage-body p:last-child {
  margin-bottom: 0;
}

/* ── Features ── */
.features-section {
  padding: 0 0 80px;
}

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

.feature-item {
  background: rgba(16, 18, 23, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px 24px;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-item:hover {
  border-color: rgba(125, 255, 157, 0.18);
  background: rgba(125, 255, 157, 0.03);
  transform: translateY(-2px);
}

.feature-item h3 {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-item p,
.feature-item ul,
.feature-item ol {
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.65;
}

.provider-list {
  list-style: none;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.provider-list li {
  font-size: 0.82rem;
  color: var(--text-2);
  padding-left: 14px;
  position: relative;
}

.provider-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-3);
}

.how-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
  counter-reset: how;
}

.how-list li {
  font-size: 0.86rem;
  color: var(--text-2);
  padding-left: 22px;
  position: relative;
  counter-increment: how;
}

.how-list li::before {
  content: counter(how) '.';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ── Code blocks ── */
pre {
  background: rgba(8, 8, 12, 0.95);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 48px 14px 18px;
  margin-bottom: 10px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[hidden] {
  display: none !important;
}

code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
}

pre code {
  display: block;
  min-width: 0;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 0.875rem;
  color: #e2e8f0;
  line-height: 1.6;
}

/* ── Code block (tabbed card) ── */
.code-block {
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.code-block pre {
  margin-bottom: 0;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--border);
  box-shadow: none;
}

.code-block-header {
  display: flex;
  gap: 4px;
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  padding: 7px 10px;
}

.hint {
  color: var(--text-2) !important;
  font-size: 0.82rem !important;
  margin-bottom: 0 !important;
}

/* ── Copy button ── */
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-3);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    transform 0.15s;
  padding: 0;
  border-radius: 7px;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
  transform: scale(1.05);
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-btn svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

/* ── Setup / Getting started ── */
.setup-section {
  padding: 0 0 80px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.steps[hidden] {
  display: none;
}
.code-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s;
}
.code-tab:hover {
  color: var(--text);
}
.code-tab.active {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  box-shadow: 0 1px 6px var(--glow-purple);
}

.step {
  display: flex;
  gap: 24px;
  padding: 22px 20px;
  border-radius: 16px;
  transition: background 0.2s;
}

.step:hover {
  background: rgba(255, 255, 255, 0.02);
}

.step-number {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  font-weight: 700;
  font-size: 0.83rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--glow-purple);
  margin-top: 2px;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-content h3 {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.step-content p {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* ── Contribution panel ── */
.contribute-section {
  padding: 0 0 80px;
}

.contribute-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  border-radius: 20px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.contribute-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(125, 255, 157, 0.06), transparent 40%),
    linear-gradient(180deg, transparent, rgba(255, 209, 102, 0.045));
  pointer-events: none;
}

.contribute-copy,
.contribute-list {
  position: relative;
}

.contribute-copy h2 {
  font-size: clamp(1.8rem, 4vw, 2.85rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

.contribute-copy p {
  color: var(--text-2);
  font-size: 0.94rem;
  line-height: 1.7;
}

.contribute-list {
  display: grid;
  gap: 10px;
}

.contribute-list a {
  display: block;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(7, 8, 11, 0.45);
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.55;
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
}

.contribute-list a:hover {
  background: rgba(125, 255, 157, 0.055);
  border-color: rgba(125, 255, 157, 0.2);
  transform: translateY(-2px);
}

.contribute-list span {
  display: block;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 3px;
}

/* ── CTA section ── */
.cta-section {
  padding: 0 0 0;
}

.cta-card {
  background:
    linear-gradient(135deg, rgba(125, 255, 157, 0.08) 0%, rgba(255, 209, 102, 0.045) 100%),
    rgba(16, 18, 23, 0.88);
  border: 1px solid rgba(125, 255, 157, 0.16);
  border-radius: 20px;
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.35;
  pointer-events: none;
}

.cta-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
  animation: floatIcon 4s ease-in-out infinite;
  position: relative;
}

.cta-title {
  font-size: 2rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  color: var(--text) !important;
  margin-bottom: 12px !important;
  text-transform: none !important;
  line-height: 1.2 !important;
}

.cta-desc {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 32px;
}

.buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.note {
  font-size: 0.78rem;
  color: var(--text-3);
}

.download-count-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(125, 255, 157, 0.07);
  border: 1px solid rgba(125, 255, 157, 0.18);
  border-radius: 999px;
  padding: 5px 14px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.download-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 10px;
}

/* ── Footer ── */
footer {
  text-align: center;
  color: var(--text-3);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  padding: 32px 32px 48px;
  margin-top: 80px;
}

footer a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

footer a:hover,
footer a:focus-visible {
  color: var(--text);
  text-decoration-color: currentColor;
}

/* ── Docs ── */
.nav-links a.nav-link-active {
  color: var(--text);
}

.nav-links a.nav-link-active::after {
  opacity: 0.85;
  transform: scaleX(1);
}

.mobile-menu-link-active {
  color: var(--text);
}

.docs-main {
  max-width: 1120px;
  padding-top: 118px;
}

.docs-hero {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}

.docs-kicker {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.docs-hero h1 {
  font-size: 3.15rem;
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 800;
  margin-bottom: 18px;
}

.docs-hero p {
  max-width: 660px;
  margin: 0 auto;
  color: var(--text-2);
  font-size: 1.03rem;
  line-height: 1.75;
}

.docs-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.docs-actions .btn,
.docs-inline-actions .btn {
  border-radius: 8px;
}

.docs-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 56px;
}

.docs-quick-card {
  display: block;
  min-height: 168px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 0.18s,
    border-color 0.18s,
    background 0.18s;
}

.docs-quick-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--surface-2);
}

.docs-quick-card span {
  display: block;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.docs-quick-card strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 8px;
}

.docs-quick-card p {
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.55;
}

.docs-layout {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 82px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 17, 21, 0.72);
}

.docs-sidebar a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 10px;
  border-radius: 6px;
  transition:
    color 0.15s,
    background 0.15s;
}

.docs-sidebar a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.docs-content {
  min-width: 0;
}

.docs-section {
  scroll-margin-top: 88px;
  padding-bottom: 64px;
}

.docs-section:last-child {
  padding-bottom: 0;
}

.docs-section h2 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.docs-section h3 {
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.docs-section .docs-subsection-title {
  display: block;
  margin-top: 48px;
  margin-bottom: 14px;
}

.docs-section p {
  color: var(--text-2);
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.docs-section a:not(.btn) {
  color: var(--cyan);
}

.docs-step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.docs-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.docs-step > div {
  min-width: 0;
}

.docs-step > span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.24);
  color: var(--amber);
  font-weight: 800;
  font-size: 0.8rem;
}

.docs-step pre {
  margin: 12px 0 0;
}

.docs-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.docs-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 20px 0;
}

.docs-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.docs-table th,
.docs-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.9rem;
}

.docs-table th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.docs-table td {
  color: var(--text-2);
}

.docs-table tr:last-child td {
  border-bottom: none;
}

.docs-callout {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(34, 211, 238, 0.06);
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.65;
}

.docs-callout strong {
  color: var(--text);
}

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

.docs-changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-bottom: 2px;
}

.docs-changelog-status {
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 600;
}

.docs-changelog-source,
.docs-changelog-link {
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 700;
}

.docs-panel,
.docs-changelog article {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.docs-changelog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 700;
}

.docs-changelog-tag {
  color: var(--green);
}

.docs-panel pre {
  margin-top: 14px;
  margin-bottom: 0;
}

.docs-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 16px;
}

.docs-badge-list li {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.8rem;
  font-weight: 600;
}

.docs-changelog ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 0 18px;
}

.docs-changelog li {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.docs-changelog li::marker {
  color: var(--green);
}

.docs-changelog-empty {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.docs-changelog-link {
  display: inline-flex;
  margin-top: 14px;
}

@media (max-width: 860px) {
  .docs-main {
    padding-top: 96px;
  }

  .docs-hero h1 {
    font-size: 2.4rem;
  }

  .docs-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .docs-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-two-col,
  .docs-changelog {
    grid-template-columns: 1fr;
  }

  .docs-changelog-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .docs-main {
    padding-top: 88px;
  }

  .docs-hero {
    text-align: left;
    margin-bottom: 34px;
  }

  .docs-hero h1 {
    font-size: 2rem;
  }

  .docs-hero p {
    font-size: 0.96rem;
  }

  .docs-actions {
    justify-content: flex-start;
  }

  .docs-quick-grid,
  .docs-sidebar {
    grid-template-columns: 1fr;
  }

  .docs-step {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .docs-section h2 {
    font-size: 1.55rem;
  }

  .docs-table {
    min-width: 560px;
  }
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

/* ── Scroll reveal ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal.delay-1 {
  transition-delay: 0.1s;
}
.scroll-reveal.delay-2 {
  transition-delay: 0.2s;
}
.scroll-reveal.delay-3 {
  transition-delay: 0.3s;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-download {
    display: none;
  }
  .nav-github {
    display: none;
  }
  .nav-actions {
    display: none;
  }
  .nav-inner {
    padding: 0 16px;
    gap: 12px;
  }
  .nav-hamburger {
    margin-left: auto;
  }

  .hero-proof-grid,
  .hero-console-body,
  .oss-inner,
  .contribute-panel {
    grid-template-columns: 1fr;
  }

  .oss-section {
    padding: 16px 20px 72px;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .how-connector {
    display: none;
  }

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

@media (max-width: 640px) {
  .hero {
    padding: 96px 20px 58px;
  }
  .hero-logo-lockup {
    align-items: flex-start;
    width: 100%;
    max-width: 360px;
  }
  .hero-title {
    font-size: 2.55rem;
    letter-spacing: 0;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .hero-actions,
  .oss-actions {
    flex-direction: column;
  }
  .hero-actions .btn,
  .oss-actions .btn {
    justify-content: center;
    width: 100%;
  }
  .hero-proof-grid,
  .oss-grid {
    grid-template-columns: 1fr;
  }
  .hero-console-body p {
    font-size: 0.74rem;
  }
  .project-strip {
    justify-content: flex-start;
    padding: 16px 20px;
  }
  .project-strip-list {
    justify-content: flex-start;
  }
  .oss-copy,
  .contribute-panel {
    padding: 22px;
  }

  main {
    padding: 0 20px 80px;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

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

  .usage-card {
    padding: 18px 18px;
  }
  .usage-card {
    gap: 14px;
  }

  .contribute-list a {
    padding: 13px 14px;
  }

  .step {
    padding: 18px 16px;
  }

  .cta-card {
    padding: 40px 24px;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 2.1rem;
  }
}

/* ── New Feature Banner ── */
.new-feature-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.12), rgba(251, 191, 36, 0.12));
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
  text-align: center;
  flex-wrap: wrap;
  margin-top: 58px; /* height of fixed nav */
}

.new-feature-pill {
  display: inline-block;
  background: var(--amber);
  color: #0c0c0f;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}

.new-feature-text {
  font-size: 0.875rem;
  color: var(--text-2);
}

.new-feature-text code {
  font-size: 0.82rem;
  background: var(--surface-3);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--cyan);
}

.new-feature-link {
  color: var(--amber);
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}

.new-feature-link:hover {
  text-decoration: underline;
}

/* ── Authenticated browsing feature card ── */
.feature-item-new {
  grid-column: 1 / -1;
  border-color: rgba(251, 191, 36, 0.3);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), var(--surface));
  position: relative;
}

.feature-new-badge {
  display: inline-block;
  background: var(--amber);
  color: #0c0c0f;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.auth-setup-box {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.auth-setup-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-browser-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 6px;
}

/* Auth manual-setup tabs */
.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.auth-tab {
  flex: 1 1 180px;
  min-width: 0;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  font-family: inherit;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.auth-tab:hover {
  background: var(--surface-2);
  color: var(--text);
}

.auth-tab-active {
  background: var(--surface-2);
  border-color: var(--cyan);
  color: var(--cyan);
}

.auth-tab-panel {
  padding-top: 4px;
  min-width: 0;
}

.auth-tab-panel p,
.auth-tab-panel li,
.auth-tab-panel a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.auth-tab-panel pre {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.auth-tab-panel p code,
.auth-tab-panel li code,
.auth-tab-panel a code {
  display: inline;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.auth-setup-box,
.auth-tab-panel,
.how-list li {
  min-width: 0;
}

.auth-setup-box {
  overflow-x: hidden;
}

@media (max-width: 640px) {
  .auth-tabs {
    gap: 6px;
  }

  .auth-tab {
    flex: 1 1 100%;
    font-size: 0.78rem;
    padding: 8px 10px;
    text-align: left;
  }

  .auth-tab-panel {
    font-size: 0.94rem;
  }

  .auth-tab-panel pre {
    padding: 10px 38px 10px 12px;
  }

  .auth-tab-panel pre code {
    font-size: 0.74rem;
  }
}

/* ── OmniAgent nav + CTA ── */
.nav-links a.nav-link-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.nav-new-pill {
  display: inline-block;
  background: var(--amber);
  color: #0c0c0f;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 20px;
  line-height: 1.4;
}

.omniagent-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.omniagent-platforms {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.omniagent-cta-hero {
  justify-content: center;
  margin-top: 22px;
}

/* ── OmniAgent grid ── */
.omniagent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.omniagent-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.omniagent-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.omniagent-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.omniagent-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.22);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
}

.omniagent-card-icon-amber {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.22);
  color: var(--amber);
}

.omniagent-card-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.omniagent-card-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.omniagent-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.omniagent-card > p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.6;
}

.omniagent-card .hint {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-top: auto;
}

/* Chat preview (left card) */
.omniagent-chat-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.omniagent-chat-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-2);
}

.omniagent-chat-row span:last-child {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}

.omniagent-chat-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.omniagent-chat-system .omniagent-chat-tag {
  color: var(--amber);
}

.omniagent-chat-user .omniagent-chat-tag {
  color: var(--text);
}

.omniagent-chat-agent .omniagent-chat-tag {
  color: var(--purple);
}

.omniagent-chat-agent span:last-child {
  background: rgba(167, 139, 250, 0.06);
  border-color: rgba(167, 139, 250, 0.18);
  color: var(--text);
}

/* Vertical flow (right card) */
.omniagent-flow {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.omniagent-flow-step {
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
}

.omniagent-flow-step:last-child {
  padding-bottom: 0;
}

.omniagent-flow-step::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(167, 139, 250, 0.35), rgba(167, 139, 250, 0.08));
}

.omniagent-flow-step:last-child::before {
  display: none;
}

.omniagent-flow-num {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.32);
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.omniagent-flow-step-result .omniagent-flow-num {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

.omniagent-flow-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.omniagent-flow-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.omniagent-flow-meta {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.5;
}

.omniagent-flow-snippet {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 2px;
  line-height: 1.5;
}

.omniagent-flow-snippet code {
  color: var(--amber);
  background: transparent;
  padding: 0;
}

@media (max-width: 860px) {
  .omniagent-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile nav ── */
.nav-hamburger {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  margin-left: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}

.nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(125, 255, 157, 0.18);
  transform: translateY(-1px);
}

.nav-hamburger:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.nav-hamburger-bar {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    top 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.18s ease;
}

.nav-hamburger-bar:nth-child(1) {
  top: 13px;
}
.nav-hamburger-bar:nth-child(2) {
  top: 20px;
}
.nav-hamburger-bar:nth-child(3) {
  top: 27px;
}

.nav-hamburger[aria-expanded='true'] .nav-hamburger-bar:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}
.nav-hamburger[aria-expanded='true'] .nav-hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-6px);
}
.nav-hamburger[aria-expanded='true'] .nav-hamburger-bar:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: 68px;
  left: 12px;
  right: 12px;
  max-width: 520px;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(7, 8, 11, 0.95);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 10px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
  pointer-events: none;
}

.mobile-menu[data-open='true'] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 750;
  border-radius: 12px;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.18s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transform: translateX(2px);
  outline: none;
}

.mobile-menu-link-new {
  color: var(--text);
  background: rgba(125, 255, 157, 0.08);
}

.mobile-menu-actions {
  margin-top: 10px;
}

.mobile-menu-download {
  display: block;
  text-align: center;
  padding: 13px 16px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #07100b;
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(56, 217, 208, 0.2);
  transition:
    transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.18s;
}

.mobile-menu-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(125, 255, 157, 0.28);
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.mobile-menu-github svg {
  color: var(--amber);
  flex-shrink: 0;
}

.mobile-menu-github:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 209, 102, 0.24);
  transform: translateY(-1px);
}

body.mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .nav-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }
}

@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ── Star modal ── */
.star-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.star-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 9, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.star-modal[data-open='true'] .star-modal-backdrop {
  opacity: 1;
}

.star-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-hover);
  border-radius: 18px;
  padding: 32px 28px 26px;
  text-align: center;
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(167, 139, 250, 0.06) inset;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition:
    opacity 0.24s ease,
    transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.star-modal[data-open='true'] .star-modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.star-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.star-modal-close:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text);
}

.star-modal-close:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.star-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin: 0 auto 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: var(--amber);
  animation: starPulse 2.4s ease-in-out infinite;
}

@keyframes starPulse {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.35);
  }
  50% {
    transform: scale(1.06) rotate(-4deg);
    box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
  }
}

.star-modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
  letter-spacing: 0;
}

.star-modal-desc {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0 0 18px;
}

.star-modal-stats {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
  margin-bottom: 22px;
}

.star-modal-stats-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber);
  font-family: var(--font-mono);
}

.star-modal-stats-label {
  font-size: 0.8rem;
  color: var(--text-2);
}

.star-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.star-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 11px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1),
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.18s,
    color 0.15s;
}

.star-modal-btn-primary {
  background: linear-gradient(135deg, #d97706, #fbbf24);
  color: #0c0c0f;
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.28);
}

.star-modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.42);
}

.star-modal-btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-2);
}

.star-modal-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-hover);
  color: var(--text);
}

body.star-modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .star-modal-card {
    padding: 28px 22px 22px;
    border-radius: 16px;
  }
  .star-modal-title {
    font-size: 1.18rem;
  }
}

/* ── Telegram section: ensure links are visible against dark background ── */
#telegram a,
#telegram .hint a,
.feature-item-new .auth-setup-box a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#telegram a:hover,
#telegram .hint a:hover,
.feature-item-new .auth-setup-box a:hover {
  color: #fff;
  text-decoration: underline;
  opacity: 0.85;
}

/* ── Hero install (one-line install command) ── */
.hero-install {
  max-width: 560px;
  margin: 0 auto 20px;
  animation: fadeUp 0.55s ease 0.18s both;
  position: relative;
}

.hero-install::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.3),
    rgba(96, 165, 250, 0.2),
    rgba(34, 211, 238, 0.15)
  );
  z-index: 0;
  filter: blur(0px);
  opacity: 0.6;
}

.hero-install > * {
  position: relative;
  z-index: 1;
}

.hero-install-block {
  margin: 0;
  text-align: left;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-install-block pre {
  padding: 18px 52px 18px 20px;
}

.hero-install-block pre code {
  font-size: 0.9rem;
}

.hero-install-block .code-block-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
}

.hero-install-tag {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-install-note {
  color: var(--text-3);
  font-size: 0.82rem;
  margin: 10px auto 0;
  max-width: 540px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 640px) {
  .hero-install {
    max-width: 100%;
  }
  .hero-install::before {
    display: none;
  }
  .hero-install-tag {
    display: none;
  }
  .demo-showcase {
    padding: 36px 20px 48px;
  }
}

/* ── Docs: reading progress ── */
.docs-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}

.docs-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, var(--purple), var(--blue) 45%, var(--cyan));
  transition: width 0.08s linear;
}

/* ── Docs: hero backdrop ── */
.docs-hero {
  position: relative;
  isolation: isolate;
  padding: 8px 0 4px;
}

.docs-hero-bg {
  position: absolute;
  inset: -60px -40px -20px;
  z-index: -1;
  overflow: hidden;
  border-radius: 24px;
  mask-image: radial-gradient(120% 100% at 50% 20%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 20%, #000 35%, transparent 78%);
}

.docs-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.55;
}

.docs-hero-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  width: 620px;
  height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--glow-purple), transparent 68%);
  filter: blur(12px);
}

/* ── Docs: quick cards ── */
.docs-quick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 190px;
  padding: 20px;
}

.docs-quick-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181, 137, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.docs-quick-card:hover::before {
  opacity: 1;
}

.docs-quick-card .docs-quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: flex-start;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 9px;
  border: 1px solid rgba(181, 137, 255, 0.22);
  background: rgba(181, 137, 255, 0.1);
  color: var(--purple);
  transition:
    border-color 0.2s,
    background 0.2s;
}

.docs-quick-card .docs-quick-icon svg {
  display: block;
  width: 17px;
  height: 17px;
}

.docs-quick-card:hover .docs-quick-icon {
  border-color: rgba(181, 137, 255, 0.42);
  background: rgba(181, 137, 255, 0.16);
}

.docs-quick-card p {
  margin-bottom: 0;
}

.docs-quick-card .docs-quick-go {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 14px;
  color: var(--text-3);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 0.2s;
}

.docs-quick-card .docs-quick-go svg {
  display: block;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}

.docs-quick-card:hover .docs-quick-go {
  color: var(--cyan);
}

.docs-quick-card:hover .docs-quick-go svg {
  transform: translateX(3px);
}

/* ── Docs: sidebar ── */
.docs-sidebar-title {
  padding: 4px 10px 8px;
  color: var(--text-3);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.docs-sidebar a {
  position: relative;
}

.docs-sidebar a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: var(--purple);
  transform: translateY(-50%);
  transition:
    height 0.2s ease,
    opacity 0.2s ease;
  opacity: 0;
}

.docs-sidebar a.is-active {
  color: var(--text);
  background: rgba(181, 137, 255, 0.09);
}

.docs-sidebar a.is-active::before {
  height: 62%;
  opacity: 1;
}

@media (max-width: 860px) {
  .docs-sidebar-title {
    grid-column: 1 / -1;
  }
}

/* ── Docs: callout with icon rail ── */
.docs-callout {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 18px 15px 16px;
  overflow: hidden;
}

.docs-callout::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cyan);
  opacity: 0.65;
}

.docs-callout .docs-callout-icon {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  align-self: start;
  height: 1.65em;
  color: var(--cyan);
}

.docs-callout .docs-callout-icon svg {
  display: block;
  align-self: center;
  width: 17px;
  height: 17px;
}

/* ── Docs: tables ── */
.docs-table-wrap {
  position: relative;
  background: rgba(255, 255, 255, 0.015);
}

.docs-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #14161d;
  backdrop-filter: blur(6px);
}

.docs-table tbody tr {
  transition: background 0.15s;
}

.docs-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.028);
}

.docs-table td code,
.docs-table th code {
  white-space: nowrap;
}

.docs-section p code,
.docs-section li code,
.docs-callout code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.docs-step pre,
.docs-panel pre {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* ── Docs: changelog ── */
.docs-changelog-header {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.docs-changelog-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.docs-changelog-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.14);
}

.docs-changelog-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  white-space: nowrap;
}

.docs-changelog-source:hover {
  text-decoration: underline;
}

.docs-changelog article {
  position: relative;
  padding-top: 20px;
  transition:
    border-color 0.18s,
    background 0.18s;
}

.docs-changelog article:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
}

.docs-changelog-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  margin-bottom: 12px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.docs-changelog-badge.badge-cli {
  color: var(--cyan);
  border: 1px solid rgba(56, 217, 208, 0.25);
  background: rgba(56, 217, 208, 0.09);
}

.docs-changelog-badge.badge-mac {
  color: var(--purple);
  border: 1px solid rgba(181, 137, 255, 0.25);
  background: rgba(181, 137, 255, 0.09);
}

.docs-changelog-badge.badge-win {
  color: var(--blue);
  border: 1px solid rgba(90, 167, 255, 0.25);
  background: rgba(90, 167, 255, 0.09);
}

.docs-changelog article h3 em {
  display: inline-block;
  margin-left: 4px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.86em;
  font-style: normal;
  font-weight: 700;
}

.docs-changelog li {
  padding-left: 2px;
}

/* ── Docs: step list with connecting rail ── */
.docs-step-list {
  position: relative;
  gap: 12px;
}

.docs-step {
  position: relative;
  padding: 20px;
  transition:
    border-color 0.18s,
    background 0.18s;
}

.docs-step:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

/* vertical rail linking consecutive steps */
.docs-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 34px;
  top: 50px;
  bottom: -12px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.28), transparent);
}

.docs-step > span {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
}

.docs-step h3 {
  color: var(--text);
}

.docs-step pre {
  background: rgba(0, 0, 0, 0.32);
}

@media (max-width: 640px) {
  .docs-step:not(:last-child)::after {
    display: none;
  }
}

/* ── Docs: panels & badge chips ── */
.docs-panel {
  transition:
    border-color 0.18s,
    background 0.18s;
}

.docs-panel:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
}

.docs-badge-list li {
  transition:
    color 0.15s,
    border-color 0.15s;
}

.docs-badge-list li:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

/* ── Docs: footer parity with page chrome ── */
.docs-main + footer,
.docs-main ~ footer {
  margin-top: 96px;
}

/* Keep decorative hero backdrop from widening the page on small screens */
@media (max-width: 860px) {
  .docs-hero-bg {
    inset: -40px 0 -10px;
  }
  .docs-hero-glow {
    width: 100%;
    max-width: 420px;
  }
}

/* Horizontal-scroll affordance for wide tables */
.docs-table-wrap {
  background-image: linear-gradient(90deg, transparent 82%, rgba(7, 8, 11, 0.85));
  background-repeat: no-repeat;
  background-attachment: local, scroll;
}

@media (min-width: 861px) {
  .docs-table-wrap {
    background-image: none;
  }
}

/* Error page */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.error-card {
  width: min(100%, 42rem);
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--bg-card);
  text-align: center;
}

.error-card .nav-logo {
  justify-content: center;
  margin-bottom: 2rem;
}

.error-card h1 {
  margin: 0.75rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1;
}

.error-card p:not(.section-label) {
  color: var(--text-muted);
}

.error-card .buttons {
  justify-content: center;
  margin-top: 2rem;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--green);
  color: #08110c;
  font-weight: 800;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Changelog ---------- */
.chg-latest {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--text-muted, #9aa3b2);
}
.chg-release {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.chg-release:first-child {
  border-top: none;
  padding-top: 6px;
}
.chg-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.chg-version {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.chg-version:hover {
  opacity: 0.75;
}
.chg-meta time {
  font-size: 0.85rem;
  color: #8b94a3;
}
.chg-compare {
  font-size: 0.8rem;
  color: #7aa2ff;
  text-decoration: none;
}
.chg-compare:hover {
  text-decoration: underline;
}
.chg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chg-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.55;
}
.chg-tag {
  flex: 0 0 auto;
  min-width: 84px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.chg-add {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.25);
}
.chg-fix {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.25);
}
.chg-imp {
  color: #7aa2ff;
  background: rgba(122, 162, 255, 0.1);
  border-color: rgba(122, 162, 255, 0.25);
}
.chg-doc {
  color: #c4b5fd;
  background: rgba(196, 181, 253, 0.1);
  border-color: rgba(196, 181, 253, 0.25);
}
.chg-text {
  color: #c8cfdb;
}
.chg-text strong {
  color: #fff;
  font-weight: 600;
}
.chg-empty {
  color: #76808f;
  font-size: 0.92rem;
  margin: 0;
}
@media (max-width: 760px) {
  .chg-release {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .chg-meta {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
  }
}

/* ---------- Blog ---------- */
.blog-main {
  min-height: calc(100vh - 150px);
  padding: 132px 24px 96px;
}
.blog-hero,
.blog-grid,
.blog-article {
  width: min(100%, 880px);
  margin-inline: auto;
}
.blog-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}
.blog-hero h1,
.blog-article-header h1 {
  margin: 12px 0 18px;
  max-width: 820px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.blog-hero > p:last-child,
.blog-dek {
  max-width: 700px;
  color: var(--text-2);
  font-size: clamp(1.05rem, 2.5vw, 1.28rem);
  line-height: 1.65;
}
.blog-grid {
  padding-top: 18px;
}
.blog-card {
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}
.blog-card h2 {
  margin: 9px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.blog-card h2 a {
  color: var(--text);
  text-decoration: none;
}
.blog-card h2 a:hover {
  color: var(--purple);
}
.blog-card > p:not(.section-label) {
  max-width: 680px;
  color: var(--text-2);
  line-height: 1.7;
}
.blog-card-meta,
.blog-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: #818a9a;
  font-size: 0.82rem;
}
.blog-read,
.blog-back {
  display: inline-flex;
  margin-top: 20px;
  color: var(--purple);
  font-weight: 700;
  text-decoration: none;
}
.blog-read:hover,
.blog-back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.blog-article-header {
  padding: 52px 0 45px;
  border-bottom: 1px solid var(--border);
}
.blog-article-header h1 {
  font-size: clamp(2.5rem, 7vw, 4.8rem);
}
.blog-prose {
  width: min(100%, 720px);
  margin: 48px auto 0;
  font-size: 1.06rem;
  line-height: 1.82;
}
.blog-prose p {
  margin: 0 0 1.45em;
  color: #d6dae2;
}
.blog-prose h2 {
  margin: 2.2em 0 0.7em;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
}
.blog-prose pre {
  overflow-x: auto;
  margin: 1.6em 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: #d7def0;
  font-size: 0.9rem;
  line-height: 1.65;
}
.blog-prose code {
  font-family: var(--font-mono);
}
.blog-prose p code {
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--surface-2);
}
.blog-prose a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-cta {
  width: min(100%, 720px);
  margin: 64px auto 0;
  padding: 32px;
  border: 1px solid var(--border-bright);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(181, 137, 255, 0.08), rgba(111, 166, 255, 0.04));
}
.blog-cta h2 {
  margin: 8px 0;
  font-family: var(--font-display);
  font-size: 2rem;
}
.blog-cta > p:not(.section-label) {
  margin: 0 0 22px;
  color: var(--text-2);
}
@media (max-width: 640px) {
  .blog-main { padding: 92px 20px 72px; }
  .blog-hero { padding: 48px 0 38px; }
  .blog-article-header { padding: 34px 0; }
  .blog-prose { margin-top: 34px; font-size: 1rem; line-height: 1.75; }
  .blog-cta { padding: 24px; }
}
.blog-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
@media (max-width: 640px) {
  .blog-cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .blog-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
