@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap");

/* ------------------------------------------------------------------ */
/* Tokens — from src/index.css                                         */
/* ------------------------------------------------------------------ */

:root {
  --background: #ffffff;
  --foreground: #10151b;
  --card: #f6f9fb;
  --card-foreground: #10151b;
  --muted: #eef3f6;
  --muted-foreground: #56646f;
  --primary: #00add8;
  --primary-strong: #007d9c;
  --primary-foreground: #ffffff;
  --accent: #00add8;
  --border: #e4eaef;
  --ring: #00add8;
  --code-bg: #0d1117;
  --radius: 14px;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

.dark {
  --background: #0a0e14;
  --foreground: #e7eef5;
  --card: #11161f;
  --card-foreground: #e7eef5;
  --muted: #161d28;
  --muted-foreground: #8b98a6;
  --primary: #22c9f0;
  --primary-strong: #00add8;
  --primary-foreground: #04141a;
  --accent: #22c9f0;
  --border: #1e2733;
  --ring: #22c9f0;
  --code-bg: #070a0f;
}

/* ------------------------------------------------------------------ */
/* Preflight (Tailwind-like)                                           */
/* ------------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  transition: background-color 0.4s ease, color 0.4s ease;
}

::selection {
  background: color-mix(in srgb, var(--primary) 30%, transparent);
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
}

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

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-size: inherit;
  font-weight: inherit;
}

p {
  margin: 0;
}

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

pre {
  margin: 0;
}

/* hide scrollbars until scrolling */
* {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
*:hover {
  scrollbar-color: var(--border) transparent;
}
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}
:hover::-webkit-scrollbar-thumb {
  background: var(--border);
}

/* ------------------------------------------------------------------ */
/* Shared utilities                                                    */
/* ------------------------------------------------------------------ */

.page {
  min-height: 100vh;
  font-family: var(--font-sans);
}

.is-hidden {
  display: none !important;
}

.font-display {
  font-family: var(--font-display);
}

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

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

.text-primary-adaptive {
  color: var(--primary-strong);
}
.dark .text-primary-adaptive {
  color: var(--primary);
}

.tok-kw {
  color: #ff7edb;
}
.tok-str {
  color: #7ee787;
}
.tok-com {
  color: #6b7686;
  font-style: italic;
}
.tok-fn {
  color: var(--primary);
}

.grid-bg {
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ------------------------------------------------------------------ */
/* Animations                                                          */
/* ------------------------------------------------------------------ */

@keyframes float-mascot {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-18px) rotate(1.5deg);
  }
}
@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.12);
  }
}
@keyframes spin-orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-float {
  animation: float-mascot 6s ease-in-out infinite;
}
.animate-glow {
  animation: glow-pulse 4s ease-in-out infinite;
}
.animate-orbit {
  animation: spin-orbit 22s linear infinite;
}

.reveal {
  opacity: 0;
}
.reveal.in {
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: all 150ms var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--background) 80%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4rem;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 25%, transparent);
  transition: transform 150ms var(--ease);
}

.logo:hover .logo-mark {
  transform: scale(1.05);
}

.logo-img {
  height: 1.75rem;
  width: 1.75rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.logo-word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
}

.logo-go {
  color: var(--primary);
}

.logo-rest {
  color: var(--foreground);
}

.nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-btn {
  border-radius: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}

.nav-btn:hover {
  background: var(--muted);
  color: var(--foreground);
}

.nav-btn.is-active {
  color: var(--primary);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-pill {
  display: none;
  height: 2.25rem;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 60%, transparent);
  padding: 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

.search-label {
  width: 10rem;
  min-width: 0;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  outline: none;
}

.search-label::placeholder {
  color: var(--muted-foreground);
}

.lang-switch {
  display: flex;
  height: 2.25rem;
  align-items: center;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 60%, transparent);
  padding: 0.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
}

.lang-btn {
  display: flex;
  height: 100%;
  align-items: center;
  border-radius: 0.375rem;
  padding: 0 0.625rem;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}

.lang-btn:hover {
  color: var(--foreground);
}

.lang-btn.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.lang-btn.is-active:hover {
  color: var(--primary-foreground);
}

.icon-btn {
  display: grid;
  height: 2.25rem;
  width: 2.25rem;
  place-items: center;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 60%, transparent);
  color: var(--foreground);
  transition: color 150ms var(--ease), border-color 150ms var(--ease);
}

.icon-btn:hover {
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
  color: var(--primary);
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: transform 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease),
    background-color 150ms var(--ease);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--primary) 25%, transparent),
    0 4px 6px -4px color-mix(in srgb, var(--primary) 25%, transparent);
}

.btn-primary:hover {
  translate: 0 -0.125rem;
}

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--card);
}

.btn-secondary:hover {
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
}

.arrow-icon {
  transition: translate 150ms var(--ease);
}

.btn-primary:hover .arrow-icon,
.showcase-card:hover .arrow-icon {
  translate: 0.25rem 0;
}

.btn-cta {
  position: relative;
  margin-top: 2.25rem;
  padding: 0.875rem 1.75rem;
  box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--primary) 30%, transparent),
    0 4px 6px -4px color-mix(in srgb, var(--primary) 30%, transparent);
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.7;
}

.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  gap: 2.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.hero-copy {
  position: relative;
  z-index: 10;
  order: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  color: var(--primary-strong);
}

.dark .hero-badge {
  color: var(--primary);
}

.ping {
  position: relative;
  display: flex;
  height: 0.5rem;
  width: 0.5rem;
}

.ping-ring {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background: var(--primary);
  opacity: 0.75;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ping-dot {
  position: relative;
  display: inline-flex;
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: var(--primary);
}

.hero-title {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hero-title .text-gradient {
  display: block;
}

.hero-sub {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.install-bar {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--code-bg);
  padding: 0.625rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.install-prompt {
  color: var(--primary);
}

.install-cmd {
  color: rgb(255 255 255 / 0.9);
}

.install-ok {
  display: none;
  margin-left: 0.25rem;
  color: #34d399;
}

.hero-mascot {
  position: relative;
  z-index: 10;
  order: 1;
  margin: 0 auto;
  width: 100%;
  max-width: 10rem; /* ~160px on mobile */
  text-align: center;
}

.mascot-wrap {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
}

.mascot-glow {
  position: absolute;
  inset: 10%;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--primary) 40%, transparent);
  filter: blur(64px);
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  aspect-ratio: 1 / 1;
  width: 118%;
  translate: -50% -50%;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
}

.orbit-ring-inner {
  position: absolute;
  inset: 12%;
  border-radius: 9999px;
  border: 1px dashed color-mix(in srgb, var(--primary) 20%, transparent);
}

.orbit-dot {
  position: absolute;
  left: 50%;
  top: 0;
  height: 0.75rem;
  width: 0.75rem;
  translate: -50% 0;
  border-radius: 9999px;
  background: var(--primary);
  box-shadow: 0 0 16px var(--primary);
}

.orbit-dot-sm {
  position: absolute;
  bottom: 8%;
  left: 14%;
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--primary) 70%, transparent);
}

.mascot-img {
  position: relative;
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 25px 50px rgba(0, 173, 216, 0.3));
}

.float-chip {
  display: none; /* hide chips on small screens — restored at lg */
  position: absolute;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation-delay: 1.2s;
}

/* Quieter orbit at small sizes so a compact mascot stays readable */
@media (max-width: 1023px) {
  .orbit {
    width: 108%;
    opacity: 0.55;
  }

  .orbit-dot,
  .orbit-dot-sm {
    display: none;
  }

  .mascot-glow {
    filter: blur(40px);
  }

  .hero-grid {
    gap: 1.5rem;
    padding-top: 2.5rem;
  }

  .hero-title {
    margin-top: 1rem;
  }
}

.float-chip span {
  color: var(--primary);
}

.float-chip-tl {
  left: -0.75rem;
  top: 2.5rem;
}

.float-chip-br {
  right: -0.75rem;
  bottom: 4rem;
}

/* ------------------------------------------------------------------ */
/* Stats                                                               */
/* ------------------------------------------------------------------ */

.stats {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--border);
}

.stat-cell {
  background: var(--card);
  padding: 1.5rem;
  text-align: center;
}

.stat-k {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 800;
}

.stat-v {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

/* ------------------------------------------------------------------ */
/* Sections / features                                                 */
/* ------------------------------------------------------------------ */

.section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 5rem 1.25rem;
}

.section-code {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.section-head {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-sub {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--muted-foreground);
}

.features-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  transition: all 150ms var(--ease);
}

.feature-card:hover {
  translate: 0 -0.25rem;
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  box-shadow: 0 20px 25px -5px color-mix(in srgb, var(--primary) 5%, transparent),
    0 8px 10px -6px color-mix(in srgb, var(--primary) 5%, transparent);
}

.feature-blob {
  position: absolute;
  right: -2rem;
  top: -2rem;
  height: 6rem;
  width: 6rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  filter: blur(40px);
  opacity: 0;
  transition: opacity 150ms var(--ease);
}

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

.feature-mark {
  display: block;
  height: 0.2rem;
  width: 1.5rem;
  border-radius: 9999px;
  background: var(--primary);
  margin-bottom: 0.75rem;
}

.feature-icon {
  display: grid;
  height: 2.75rem;
  width: 2.75rem;
  place-items: center;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  font-size: 1.5rem;
  line-height: 2rem;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 20%, transparent);
}

.feature-title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
}

.feature-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* ------------------------------------------------------------------ */
/* Code window                                                         */
/* ------------------------------------------------------------------ */

.code-window {
  max-width: 56rem;
  margin: 2.5rem auto 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px color-mix(in srgb, var(--primary) 5%, transparent);
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.05);
  padding: 0.75rem 1rem;
  background: var(--code-bg);
}

.traffic {
  display: flex;
  gap: 0.375rem;
}

.traffic-dot {
  height: 0.75rem;
  width: 0.75rem;
  border-radius: 9999px;
}

.traffic-red {
  background: #ff5f57;
}
.traffic-yellow {
  background: #febc2e;
}
.traffic-green {
  background: #28c840;
}

.code-tabs {
  margin-left: 0.5rem;
  display: flex;
  gap: 0.25rem;
}

.code-tab {
  border-radius: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgb(255 255 255 / 0.4);
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}

.code-tab:hover {
  color: rgb(255 255 255 / 0.7);
}

.code-tab.is-active {
  background: rgb(255 255 255 / 0.1);
  color: var(--primary);
}

.code-filename {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgb(255 255 255 / 0.3);
}

.code-body {
  overflow-x: auto;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.625;
  background: var(--code-bg);
}

.code-table {
  display: table;
  width: 100%;
  color: rgb(255 255 255 / 0.85);
}

.code-row {
  display: table-row;
}

.code-ln {
  display: table-cell;
  user-select: none;
  padding-right: 1rem;
  text-align: right;
  color: rgb(255 255 255 / 0.25);
  font-variant-numeric: tabular-nums;
}

.code-line {
  display: table-cell;
  white-space: pre;
}

/* ------------------------------------------------------------------ */
/* Steps                                                               */
/* ------------------------------------------------------------------ */

.steps-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.step-card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-num {
  display: grid;
  height: 2.25rem;
  width: 2.25rem;
  place-items: center;
  border-radius: 9999px;
  background: var(--primary);
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary-foreground);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
}

.step-desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

.step-pre {
  margin-top: 1rem;
  overflow-x: auto;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgb(255 255 255 / 0.85);
  background: var(--code-bg);
}

/* ------------------------------------------------------------------ */
/* Showcase                                                            */
/* ------------------------------------------------------------------ */

.showcase {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 40%, transparent);
  padding: 5rem 0;
}

.showcase-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.showcase-wrap {
  max-width: 42rem;
  margin: 2.5rem auto 0;
}

.showcase-card {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: left;
  transition: all 150ms var(--ease);
}

.showcase-card:hover {
  translate: 0 -0.25rem;
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  box-shadow: 0 20px 25px -5px color-mix(in srgb, var(--primary) 10%, transparent),
    0 8px 10px -6px color-mix(in srgb, var(--primary) 10%, transparent);
}

.showcase-body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
}

.showcase-blob {
  position: absolute;
  right: -2.5rem;
  top: -2.5rem;
  height: 8rem;
  width: 8rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  filter: blur(40px);
}

.showcase-icon {
  position: relative;
  display: grid;
  height: 4rem;
  width: 4rem;
  flex: none;
  place-items: center;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 25%, transparent);
}

.showcase-icon img {
  height: 3rem;
  width: 3rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

.showcase-copy {
  position: relative;
  min-width: 0;
  flex: 1 1 0%;
}

.showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  color: var(--primary-strong);
}

.dark .showcase-tag {
  color: var(--primary);
}

.showcase-tag-dot {
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 9999px;
  background: var(--primary);
}

.showcase-name {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.showcase-desc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.showcase-arrow {
  flex: none;
}

.showcase-cta {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

.showcase-cta a {
  font-weight: 600;
  color: var(--primary);
}

.showcase-cta a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* CTA                                                                 */
/* ------------------------------------------------------------------ */

.cta-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 6rem 1.25rem;
}

.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  background: var(--card);
  padding: 2.5rem;
  text-align: center;
}

.cta-glow {
  position: absolute;
  top: -5rem;
  left: 50%;
  height: 16rem;
  width: 16rem;
  translate: -50% 0;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--primary) 25%, transparent);
  filter: blur(64px);
}

.cta-mascot {
  position: relative;
  margin: 0 auto 2rem;
  height: 6rem;
  width: 6rem;
  border-radius: 1rem;
  object-fit: contain;
  padding: 0.25rem;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent);
}

.cta-title {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.cta-sub {
  position: relative;
  max-width: 40rem;
  margin: 1.25rem auto 0;
  color: var(--muted-foreground);
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  max-width: 24rem;
}

.footer-tagline {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3.5rem;
  row-gap: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.footer-col-title {
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-col ul {
  margin-top: 0.75rem;
}

.footer-col li + li {
  margin-top: 0.5rem;
}

.footer-link {
  text-align: left;
  color: var(--muted-foreground);
  transition: color 150ms var(--ease);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

.footer-made {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-made-icon {
  display: grid;
  height: 1.25rem;
  width: 1.25rem;
  place-items: center;
  border-radius: 0.25rem;
  background: color-mix(in srgb, var(--primary) 15%, transparent);
}

.footer-made-icon img {
  height: 1rem;
  width: 1rem;
  border-radius: 0.125rem;
  object-fit: cover;
}

/* ------------------------------------------------------------------ */
/* Docs                                                                */
/* ------------------------------------------------------------------ */

.docs {
  display: grid;
  gap: 2.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

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

.docs-search {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.docs-search::placeholder {
  color: var(--muted-foreground);
}

.docs-search:focus {
  border-color: color-mix(in srgb, var(--primary) 60%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 20%, transparent);
}

.docs-nav {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.docs-nav-link {
  border-radius: 0.5rem;
  border-left: 2px solid transparent;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
  transition: color 150ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease);
}

.docs-nav-link:hover {
  background: var(--muted);
  color: var(--foreground);
}

.docs-nav-link.is-active {
  border-left-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  font-weight: 600;
  color: var(--primary);
}

.docs-main {
  min-width: 0;
  max-width: 48rem;
}

.docs-banner {
  position: relative;
  margin-bottom: 2.5rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
}

.docs-banner-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background: radial-gradient(120% 120% at 80% -10%, var(--primary), transparent 60%);
}

.docs-banner-body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
}

.docs-banner-img {
  height: 6rem;
  width: 4rem;
  flex: none;
  object-fit: contain;
}

.docs-readme {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.docs-banner-title {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.docs-banner-sub {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

.docs-section {
  display: flow-root;
}

.docs-h2 {
  margin-top: 4rem;
  scroll-margin-top: 6rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* Only the first section on the page — every section wraps its own H2 as
   first child, so a bare :first-child / section > h2:first-child zero would
   wipe margin-top on every heading. */
.docs-section:first-of-type > .docs-h2 {
  margin-top: 0;
}

.docs-h2 a {
  text-decoration: none;
}

.docs-h2 .pilcrow {
  margin-left: 0.5rem;
  color: var(--primary);
  opacity: 0;
  transition: opacity 150ms var(--ease);
}

.docs-h2:hover .pilcrow {
  opacity: 1;
}

.docs-p {
  margin-top: 1.25rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.docs-ul {
  margin-top: 1.5rem;
}

.docs-ul li + li {
  margin-top: 0.75rem;
}

.docs-li {
  display: flex;
  gap: 0.75rem;
  color: var(--muted-foreground);
}

.docs-bullet {
  margin-top: 0.6875rem;
  height: 0.375rem;
  width: 0.375rem;
  flex: none;
  border-radius: 9999px;
  background: var(--primary);
}

.docs-li-text {
  line-height: 1.75;
}

.docs-callout {
  margin-top: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  padding: 0.875rem 1.125rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

.docs-callout-warn {
  border-color: color-mix(in srgb, #f59e0b 30%, transparent);
  background: color-mix(in srgb, #f59e0b 8%, transparent);
  color: #b45309;
}

.dark .docs-callout-warn {
  color: #fcd34d;
}

.docs-code {
  margin-top: 1.5rem;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.docs-code-file {
  border-bottom: 1px solid rgb(255 255 255 / 0.05);
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgb(255 255 255 / 0.4);
  background: var(--code-bg);
}

.docs-code-body {
  overflow-x: auto;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.625;
  color: rgb(255 255 255 / 0.85);
  background: var(--code-bg);
}

.docs-code-line {
  white-space: pre;
}

.docs-inline {
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background: var(--muted);
  padding: 0.125rem 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--primary);
}

.docs-badges {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.docs-badges + .docs-p {
  margin-top: 1.75rem;
}

.badge {
  display: inline-flex;
  overflow: hidden;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
}

.badge-label {
  background: #555;
  padding: 0.25rem 0.5rem;
  color: rgb(255 255 255 / 0.9);
}

.badge-value {
  padding: 0.25rem 0.5rem;
  color: #fff;
  background: var(--primary);
}

.badge-value-ok {
  background: #059669;
}

.catalog-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.875rem;
}

.catalog-card {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1rem;
}

.catalog-card code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--primary);
}

.catalog-card p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

.docs-edit {
  margin-top: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

.docs-edit a {
  font-weight: 600;
  color: var(--primary);
}

.docs-edit a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Responsive — sm 640 / md 768 / lg 1024                              */
/* ------------------------------------------------------------------ */

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
    line-height: 1.05;
  }

  .install-ok {
    display: inline;
  }

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

  .section-title,
  .cta-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .showcase-body {
    padding: 1.75rem;
  }

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

  .footer-bottom {
    flex-direction: row;
  }

  .docs-banner-body {
    padding: 2rem;
  }

  .docs-banner-img {
    height: 8rem;
    width: 6rem;
  }

  .docs-banner-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

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

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .hero-grid {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .cta-card {
    padding: 4rem;
  }

  .footer-top {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .search-pill {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero-copy {
    order: 0;
  }

  .hero-mascot {
    order: 0;
    max-width: 24rem;
    text-align: left;
  }

  .float-chip {
    display: block;
  }

  .hero-title {
    font-size: 3.75rem;
    line-height: 1.05;
  }

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

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

  .docs-sidebar {
    position: sticky;
    top: 5rem;
    height: calc(100vh - 6rem);
    overflow-y: auto;
    padding-right: 0.5rem;
  }
}

/* ------------------------------------------------------------------ */
/* Cookie banner                                                       */
/* ------------------------------------------------------------------ */

.cookie-banner {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: stretch;
  gap: 0.875rem;
  max-width: 30rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  color: var(--card-foreground);
  box-shadow: 0 18px 40px -18px color-mix(in srgb, #000 45%, transparent),
    0 0 0 1px color-mix(in srgb, var(--primary) 12%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: cookie-in 320ms var(--ease) both;
}

.cookie-banner.is-hidden,
.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-mascot {
  flex: 0 0 8.75rem;
  align-self: stretch;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}

.cookie-banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.cookie-banner-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.cookie-banner-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

.cookie-banner-text {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  border-radius: 0.625rem;
}

@keyframes cookie-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 399px) {
  .cookie-banner {
    gap: 0.65rem;
    padding: 0.875rem 0.9rem;
  }

  .cookie-banner-mascot {
    flex-basis: 6.5rem;
  }
}

@media (min-width: 640px) {
  .cookie-banner {
    left: 1.25rem;
    right: auto;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    width: min(32rem, calc(100vw - 2.5rem));
    max-width: 32rem;
  }

  .cookie-banner-mascot {
    flex-basis: 10rem;
  }
}
