/* ═══════════════════════════════════════════════════════════════
   Foldnize — Landing page
   Pure HTML/CSS · Dark · Modern · Inspired by Raycast / Linear /
   Resend / Vercel / Cursor.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0c12;
  --bg-elev: #12151e;
  --bg-elev-2: #181c27;
  --bg-overlay: rgba(10, 12, 18, 0.72);

  --border: #232838;
  --border-strong: #343b4d;
  --border-glow: rgba(108, 140, 255, 0.18);

  --text: #f0f2f7;
  --text-muted: #8a92a6;
  --text-dim: #8b94a8;

  --accent: #6c8cff;
  --accent-bright: #a8baff;
  --accent-deep: #4a63d6;
  --accent-soft: rgba(108, 140, 255, 0.12);

  --success: #4ade80;
  --warn: #facc15;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-accent: 0 12px 40px rgba(108, 140, 255, 0.18);

  --container-max: 1180px;
  --container-pad: 24px;

  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
  --font-mono:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent-bright);
  border-radius: var(--radius-sm);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
}


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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(108, 140, 255, 0.32);
  color: var(--text);
}

/* ─────────────────────────── Content pages ─────────────────────────── */

.page-main {
  padding: 88px 0 104px;
}

.error-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.error-page .page-main {
  flex: 1;
}

.page-hero {
  max-width: 820px;
  margin-bottom: 64px;
}

.page-hero h1 {
  margin: 14px 0 22px;
  font-size: clamp(2.35rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.page-lead {
  max-width: 760px;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 64px;
  align-items: start;
}

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

.article-content section {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.article-content h2 {
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.article-content h3 {
  margin: 26px 0 10px;
  font-size: 1.1rem;
}

.article-content p,
.article-content li {
  color: var(--text-muted);
}

.article-content p + p {
  margin-top: 14px;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 10px;
  margin: 18px 0 0 22px;
}

.article-content strong {
  color: var(--text);
}

.article-content a:not(.btn) {
  color: var(--accent-bright);
  text-decoration: underline;
  text-decoration-color: rgba(168, 186, 255, 0.35);
  text-underline-offset: 3px;
}

.article-content pre {
  margin-top: 18px;
  padding: 20px;
  overflow-x: auto;
  color: #dce3f7;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.article-content pre code {
  white-space: pre;
}

.example-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.example-table th,
.example-table td {
  padding: 13px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.example-table th {
  color: var(--text);
  background: var(--bg-elev-2);
}

.example-table td {
  color: var(--text-muted);
}

.page-aside {
  position: sticky;
  top: 96px;
  padding: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.page-aside h2 {
  margin-bottom: 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.page-aside nav {
  display: grid;
  gap: 10px;
}

.page-aside a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.page-aside a:hover {
  color: var(--accent-bright);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.related-card {
  display: block;
  padding: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    transform 0.18s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 140, 255, 0.5);
  background: var(--bg-elev-2);
  box-shadow: var(--shadow-accent);
}

.related-card:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}

.related-card strong,
.related-card span {
  display: block;
}

.related-card span {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .page-main {
    padding-top: 56px;
  }

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

  .page-aside {
    position: static;
    order: -1;
  }

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

  .example-table {
    display: block;
    overflow-x: auto;
  }
}

/* ─────────────────────────── Primitives ─────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.muted {
  color: var(--text-muted);
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--accent-bright);
  white-space: nowrap;
}

/* Reset inline-code styling for <code> inside <pre> blocks
   so multi-line snippets keep their line breaks. */
pre code {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  white-space: pre;
}

.gradient-text {
  background: linear-gradient(180deg, #a8baff 0%, #6c8cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Eyebrow pill */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 999px;
  user-select: none;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(108, 140, 255, 0.7);
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 56px;
  max-width: 760px;
}

.section-title .muted {
  color: var(--text-dim);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(180deg, #a8baff 0%, #6c8cff 100%);
  color: #0a0c12;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 22px rgba(108, 140, 255, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 10px 28px rgba(108, 140, 255, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: #4a546c;
}

/* ─────────────────────────── Header ─────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-overlay);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(35, 40, 56, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.logo-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 10px;
}

.logo-text {
  font-size: 16px;
}

.logo.small .logo-mark {
  width: 30px;
  height: 30px;
}

.logo.small .logo-mark img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 8px 14px !important;
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border-strong);
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: #4a546c;
}

/* ─────────────────────────── Hero ─────────────────────────── */

.hero {
  position: relative;
  padding: clamp(72px, 12vw, 140px) 0 clamp(56px, 10vw, 120px);
  overflow: hidden;
  isolation: isolate;
}

.hero-orb {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 1100px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(108, 140, 255, 0.22) 0%,
    rgba(108, 140, 255, 0) 60%
  );
  filter: blur(10px);
  z-index: -2;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(
    circle at 50% 30%,
    #000 0%,
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  margin-top: 28px;
  font-size: clamp(2.4rem, 7.5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  background: linear-gradient(180deg, #ffffff 0%, #c9d0e2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 14ch;
}

.hero-sub {
  margin-top: 26px;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.download-platforms {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.download-detected {
  font-size: 12px;
  color: var(--text-muted);
  min-height: 1.2em;
}

.download-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
}

.download-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.download-links a:hover {
  text-decoration: underline;
}

.download-sep {
  color: var(--border-strong);
  user-select: none;
}

/* Hero preview card */
.hero-preview {
  position: relative;
  margin-top: 72px;
  width: 100%;
  max-width: 760px;
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(108, 140, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.hero-preview::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(108, 140, 255, 0.35) 0%,
    transparent 50%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid var(--border);
}

.preview-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a4055;
}

.preview-dot.red {
  background: #ff5f57;
}

.preview-dot.yellow {
  background: #febc2e;
}

.preview-dot.green {
  background: #28c840;
}

.preview-title {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.preview-body {
  padding: 22px 28px 26px;
  text-align: left;
}

.preview-headings {
  display: grid;
  grid-template-columns: 1fr 28px 1.4fr;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--border);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.preview-row {
  display: grid;
  grid-template-columns: 1fr 28px 1.4fr;
  gap: 16px;
  align-items: center;
  padding: 8px 0;
  font-size: 13.5px;
}

.preview-row code {
  background: none;
  border: none;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-row .dim {
  color: var(--text-muted);
}

.preview-row .accent {
  color: var(--accent-bright);
}

.preview-folder {
  color: var(--accent);
  font-weight: 500;
  background: rgba(108, 140, 255, 0.12);
  padding: 1px 4px;
  margin-right: 1px;
  border-radius: 3px;
}

.hero-sub-strong {
  color: var(--accent-bright);
  font-weight: 600;
}

.arrow {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* ─────────────────────────── Features ─────────────────────────── */

.features {
  padding: clamp(72px, 10vw, 120px) 0;
  position: relative;
  border-top: 1px solid var(--border);
}

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

.feature-card {
  position: relative;
  padding: 28px 24px 26px;
  background: linear-gradient(
    180deg,
    var(--bg-elev) 0%,
    rgba(18, 21, 30, 0.6) 100%
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
  overflow: hidden;
}

.feature-card-highlight {
  border-color: rgba(108, 140, 255, 0.32);
  background: linear-gradient(
    180deg,
    rgba(108, 140, 255, 0.06) 0%,
    rgba(18, 21, 30, 0.4) 100%
  );
}

.feature-card-highlight:hover {
  border-color: rgba(108, 140, 255, 0.55);
}

.feature-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a0c12;
  background: linear-gradient(180deg, #a8baff 0%, #6c8cff 100%);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(108, 140, 255, 0.35);
  user-select: none;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 0%),
    rgba(108, 140, 255, 0.08),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: linear-gradient(180deg, #161a26 0%, var(--bg-elev) 100%);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(108, 140, 255, 0.22);
  color: var(--accent-bright);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.feature-card em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

.feature-card code {
  font-size: 11.5px;
  padding: 1px 5px;
  white-space: nowrap;
}

/* ─────────────────────────── Docs ─────────────────────────── */

.docs {
  padding: clamp(72px, 10vw, 120px) 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(
      800px 400px at 0% 0%,
      rgba(108, 140, 255, 0.06),
      transparent 60%
    ),
    radial-gradient(
      600px 400px at 100% 0%,
      rgba(168, 186, 255, 0.04),
      transparent 60%
    );
}

.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 64px;
}

.docs-steps ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.docs-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(108, 140, 255, 0.32);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.docs-steps h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}

.docs-steps p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.docs-steps p code {
  font-size: 12.5px;
}

.docs-steps em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

/* Code window */
.code-window {
  background: #0d0f17;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.code-window.subtle {
  box-shadow: var(--shadow-sm);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.018);
  border-bottom: 1px solid var(--border);
}

.code-title {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.code-window pre {
  padding: 20px 22px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
}

.code-window pre::-webkit-scrollbar {
  height: 8px;
}

.code-window pre::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

.tok-prompt {
  color: var(--accent);
  user-select: none;
  margin-right: 6px;
}

.tok-cmd {
  color: var(--accent-bright);
}

.tok-comment {
  color: var(--text-muted);
  font-style: italic;
}

.tok-keyword {
  color: #c084fc;
}

.tok-fn {
  color: #fde68a;
}

.tok-string {
  color: #6ee7b7;
}

.docs-extra {
  margin-top: 56px;
}

.docs-extra h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.docs-extra p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 720px;
}

.docs-extra code {
  font-size: 12.5px;
}

.docs-deep-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid rgba(108, 140, 255, 0.3);
  border-radius: var(--radius-sm);
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.docs-deep-link:hover {
  background: rgba(108, 140, 255, 0.22);
  transform: translateY(-1px);
}

/* ─────────────────────────── Footer ─────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  background: #08090e;
  padding: 64px 0 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 320px;
}

.footer-tag {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s ease;
  width: max-content;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-meta {
  letter-spacing: 0.02em;
}

/* ─────────────────────────── Responsive ─────────────────────────── */

@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  :root {
    --container-pad: 18px;
  }

  .site-nav a {
    padding: 6px;
    font-size: 12px;
  }

  .nav-cta {
    display: none;
  }

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

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .preview-body {
    padding: 18px 18px 22px;
  }

  .preview-headings,
  .preview-row {
    grid-template-columns: 1fr 20px 1.2fr;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .logo-text {
    display: none;
  }

  .hero-preview {
    margin-top: 56px;
  }

  .preview-row {
    font-size: 12px;
  }

  .preview-title {
    display: none;
  }
}
