@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* ---------------------------------------------------------------
   Hermes Pyramids — dark claymorphism theme tokens
--------------------------------------------------------------- */
:root {
  --background: oklch(0.155 0.018 262);
  --foreground: oklch(0.93 0.012 250);
  --card: oklch(0.205 0.022 262);
  --card-foreground: oklch(0.95 0.01 250);
  --popover: oklch(0.23 0.024 262);
  --primary: oklch(0.84 0.13 84);
  --primary-foreground: oklch(0.26 0.05 72);
  --secondary: oklch(0.28 0.026 262);
  --secondary-foreground: oklch(0.93 0.012 250);
  --muted: oklch(0.27 0.024 262);
  --muted-foreground: oklch(0.67 0.024 255);
  --accent: oklch(0.86 0.1 175);
  --accent-foreground: oklch(0.25 0.05 175);
  --destructive: oklch(0.68 0.2 25);
  --border: oklch(1 0 0 / 9%);
  --chart-1: oklch(0.84 0.13 84);
  --chart-2: oklch(0.8 0.12 175);
  --chart-3: oklch(0.78 0.11 232);
  --chart-4: oklch(0.75 0.14 40);
  --chart-5: oklch(0.73 0.14 305);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  color: var(--foreground);
  background-color: var(--background);
  background-image:
    radial-gradient(1100px 620px at 12% -8%, oklch(0.55 0.1 300 / 0.16), transparent 62%),
    radial-gradient(950px 520px at 88% 2%, oklch(0.62 0.1 200 / 0.14), transparent 58%),
    radial-gradient(1000px 900px at 50% 118%, oklch(0.68 0.12 85 / 0.1), transparent 62%);
  background-attachment: fixed;
  font-family: "Space Grotesk", "IBM Plex Sans Arabic", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection {
  background: color-mix(in oklab, var(--primary) 45%, transparent);
  color: var(--primary-foreground);
}

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

a {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------
   Clay surfaces
--------------------------------------------------------------- */
.clay {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  box-shadow:
    0 26px 50px -32px rgb(0 0 0 / 0.95),
    inset 0 1px 0 0 rgb(255 255 255 / 0.07),
    inset 0 -18px 30px -22px rgb(0 0 0 / 0.7);
}

.clay-sm {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow:
    0 14px 28px -20px rgb(0 0 0 / 0.9),
    inset 0 1px 0 0 rgb(255 255 255 / 0.06),
    inset 0 -10px 18px -14px rgb(0 0 0 / 0.6);
}

.clay-inset {
  background-color: color-mix(in oklab, var(--background) 82%, black 18%);
  border: 1px solid rgb(255 255 255 / 5%);
  border-radius: 1.25rem;
  box-shadow:
    inset 0 10px 18px -12px rgb(0 0 0 / 0.9),
    inset 0 -1px 0 0 rgb(255 255 255 / 0.05);
}

.clay-pill {
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow:
    0 8px 16px -12px rgb(0 0 0 / 0.9),
    inset 0 1px 0 0 rgb(255 255 255 / 0.08);
}

.clay-press {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.clay-press:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--primary) 35%, var(--border));
  box-shadow:
    0 34px 56px -34px rgb(0 0 0 / 0.95),
    inset 0 1px 0 0 rgb(255 255 255 / 0.1),
    inset 0 -18px 30px -22px rgb(0 0 0 / 0.7);
}

.tech-grid {
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 4%) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 4%) 1px, transparent 1px);
  background-size: 46px 46px;
}

/* ---------------------------------------------------------------
   Typography + helpers
--------------------------------------------------------------- */
.display-font {
  font-family: "Space Grotesk", "IBM Plex Sans Arabic", ui-sans-serif, system-ui, sans-serif;
}

.mono,
code,
pre,
kbd {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: var(--secondary);
  border: 1px solid var(--border);
  box-shadow:
    0 8px 16px -12px rgb(0 0 0 / 0.9),
    inset 0 1px 0 0 rgb(255 255 255 / 0.08);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.section-heading {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.section-heading .kicker {
  display: inline-flex;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: var(--secondary);
  border: 1px solid var(--border);
  box-shadow:
    0 8px 16px -12px rgb(0 0 0 / 0.9),
    inset 0 1px 0 0 rgb(255 255 255 / 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-heading h2 {
  margin: 1.25rem 0 0;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-heading p {
  margin: 1rem 0 0;
  color: var(--muted-foreground);
  line-height: 1.75;
}

.section-heading.start {
  margin-inline: 0;
  text-align: start;
}

.records-visual {
  order: 2;
}

@media (min-width: 900px) {
  .records-visual {
    order: -1;
  }
}

section {
  padding-block: 4rem;
}

/* ---------------------------------------------------------------
   Icons
--------------------------------------------------------------- */
.i {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

[dir="rtl"] .flip-x {
  transform: scaleX(-1);
}

/* ---------------------------------------------------------------
   Buttons
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding-inline: 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease;
}

.btn .i {
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow:
    0 14px 26px -14px rgb(0 0 0 / 0.85),
    inset 0 1px 0 0 rgb(255 255 255 / 0.4),
    inset 0 -5px 9px -7px rgb(0 0 0 / 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: inset 0 4px 8px -4px rgb(0 0 0 / 0.5);
}

.btn-outline {
  background: color-mix(in oklab, var(--card) 55%, transparent);
  border-color: color-mix(in oklab, var(--border) 100%, transparent);
  color: var(--foreground);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--secondary);
}

.btn-ghost {
  color: var(--muted-foreground);
  padding-inline: 0.875rem;
}

.btn-ghost:hover {
  color: var(--foreground);
  background: var(--secondary);
}

.btn-lg {
  height: 3rem;
  padding-inline: 1.75rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ---------------------------------------------------------------
   Header / navigation
--------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.75rem 1rem 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 72rem;
  margin-inline: auto;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.25rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1rem;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted-foreground);
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.nav-links a:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.25rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow:
    0 8px 16px -12px rgb(0 0 0 / 0.9),
    inset 0 1px 0 0 rgb(255 255 255 / 0.08);
}

.lang-toggle button {
  min-width: 2.25rem;
  height: 1.75rem;
  padding-inline: 0.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

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

.lang-toggle button.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: inset 0 1px 0 0 rgb(255 255 255 / 0.4);
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
}

.menu-toggle .i {
  font-size: 1rem;
}

.mobile-panel {
  display: none;
  max-width: 72rem;
  margin: 0.75rem auto 0;
  padding: 0.75rem;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-panel ul a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted-foreground);
}

.mobile-panel ul a:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.mobile-panel .panel-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.mobile-panel .panel-actions .btn {
  flex: 1;
}

@media (min-width: 640px) {
  .only-desktop {
    display: inline-flex;
  }
}

@media (max-width: 639px) {
  .only-desktop {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-panel {
    display: none !important;
  }
}

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: 3.5rem 4rem;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 560px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(75% 60% at 50% 0%, black, transparent);
  mask-image: radial-gradient(75% 60% at 50% 0%, black, transparent);
}

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

.hero h1 {
  margin: 1.5rem 0 0;
  font-size: clamp(3.25rem, 9vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(to bottom, var(--primary), color-mix(in oklab, var(--primary) 45%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 48rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.75;
  color: color-mix(in oklab, var(--foreground) 90%, transparent);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-note a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
  color: color-mix(in oklab, var(--foreground) 85%, transparent);
  transition: color 0.15s ease;
}

.hero-note a:hover {
  color: var(--primary);
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
}

/* Product mock */
.mock {
  width: 100%;
  margin-top: 3rem;
  padding: 0.75rem;
}

@media (min-width: 640px) {
  .mock {
    padding: 1rem;
  }
}

.mock-panes {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

@media (min-width: 640px) {
  .mock-panes {
    padding: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .mock-panes {
    grid-template-columns: 2fr 3fr;
  }
}

.mock-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.mock-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--secondary);
  border: 1px solid var(--border);
  font-size: 0.6875rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted-foreground);
}

.mock-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: color-mix(in oklab, var(--card) 60%, transparent);
}

.mock-row.is-active {
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
  background: color-mix(in oklab, var(--primary) 10%, transparent);
}

.mock-row .thumb {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: var(--secondary);
  flex-shrink: 0;
}

.mock-row.is-active .thumb {
  background: color-mix(in oklab, var(--primary) 80%, transparent);
}

.mock-row .meta {
  min-width: 0;
  flex: 1;
  text-align: start;
}

.mock-row .meta strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-row .meta span {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

.mock-row .i {
  font-size: 1rem;
  color: var(--muted-foreground);
}

.mock-row.is-active .i {
  color: var(--primary);
}

.mock-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.mock-detail-head strong {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.tag-mono {
  padding: 0.125rem 0.5rem;
  border-radius: 0.5rem;
  background: var(--secondary);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
}

.badge-danger {
  background: color-mix(in oklab, var(--destructive) 15%, transparent);
  color: var(--destructive);
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.mock-stats div {
  padding: 0.75rem;
  border-radius: 1rem;
  background: color-mix(in oklab, var(--card) 70%, transparent);
  text-align: start;
}

.mock-stats span {
  display: block;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

.mock-stats strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.spark {
  display: flex;
  align-items: flex-end;
  gap: 0.375rem;
  height: 6rem;
  margin-top: 0.75rem;
}

.spark i {
  flex: 1;
  border-radius: 0.5rem 0.5rem 0.25rem 0.25rem;
  background: color-mix(in oklab, var(--primary) 35%, transparent);
  transform-origin: bottom;
  animation: bar-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.spark i.is-last {
  background: var(--primary);
}

@keyframes bar-rise {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.spark-caption {
  margin-top: 0.5rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  text-align: start;
}

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 1024px) {
  .metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.metrics .clay-sm {
  padding: 1rem 1.25rem;
  text-align: start;
}

.metrics dt {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.metrics dd {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted-foreground);
}

.hero-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.hero-tagline .i {
  color: var(--primary);
}

/* ---------------------------------------------------------------
   Modules bento
--------------------------------------------------------------- */
.bento {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .span-3 {
    grid-column: span 3;
  }
  .span-2 {
    grid-column: span 2;
  }
}

.module-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  text-align: start;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  font-size: 1.25rem;
}

.tone-1 {
  background: color-mix(in oklab, var(--chart-1) 15%, transparent);
  color: var(--chart-1);
}
.tone-2 {
  background: color-mix(in oklab, var(--chart-2) 15%, transparent);
  color: var(--chart-2);
}
.tone-3 {
  background: color-mix(in oklab, var(--chart-3) 15%, transparent);
  color: var(--chart-3);
}
.tone-4 {
  background: color-mix(in oklab, var(--chart-4) 15%, transparent);
  color: var(--chart-4);
}
.tone-5 {
  background: color-mix(in oklab, var(--chart-5) 15%, transparent);
  color: var(--chart-5);
}

.module-card h3 {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.module-card p {
  margin: 0.5rem 0 0;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chips span {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--secondary);
  font-size: 0.6875rem;
  font-weight: 500;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}

/* ---------------------------------------------------------------
   Developers
--------------------------------------------------------------- */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: 72rem;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.check-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: start;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: color-mix(in oklab, var(--foreground) 85%, transparent);
}

.check-dot {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.125rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  color: var(--accent);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.code-card {
  padding: 0.75rem;
}

@media (min-width: 640px) {
  .code-card {
    padding: 1rem;
  }
}

.code-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.code-head .i {
  color: var(--primary);
}

.dots {
  display: flex;
  gap: 0.375rem;
  margin-inline-start: auto;
}

.dots i {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
}

pre.code {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: start;
  direction: ltr;
  unicode-bidi: isolate;
}

.c-key {
  color: var(--chart-3);
}
.c-str {
  color: var(--chart-1);
}
.c-cmd {
  color: var(--chart-2);
}
.c-num {
  color: var(--chart-5);
}
.c-dim {
  color: var(--muted-foreground);
}

.kbd-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  direction: ltr;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

kbd {
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  background: var(--secondary);
  font-size: 0.6875rem;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}

/* ---------------------------------------------------------------
   Records
--------------------------------------------------------------- */
.detail-card {
  padding: 1rem;
}

@media (min-width: 640px) {
  .detail-card {
    padding: 1.25rem;
  }
}

.detail-path {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}

.detail-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.75rem;
}

.detail-title strong {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.field-grid {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field-grid div {
  padding: 0.625rem 0.875rem;
  border-radius: 1rem;
  background: color-mix(in oklab, var(--card) 70%, transparent);
  text-align: start;
}

.field-grid dt {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

.field-grid dd {
  margin: 0.125rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.movements {
  margin-top: 1rem;
  padding: 0.875rem;
  border-radius: 1rem;
  background: color-mix(in oklab, var(--card) 70%, transparent);
  text-align: start;
}

.movements > span {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

.movements ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.875rem;
}

.movements li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.qty {
  display: inline-block;
  margin-inline-end: 0.5rem;
  padding: 0.125rem 0.375rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
}

.qty-in {
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  color: var(--accent);
}

.qty-out {
  background: color-mix(in oklab, var(--destructive) 15%, transparent);
  color: var(--destructive);
}

.movements time {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* ---------------------------------------------------------------
   Pricing
--------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  gap: 1rem;
  max-width: 56rem;
  margin: 3rem auto 0;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: 3fr 2fr;
  }
}

.plan-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  text-align: start;
}

.plan-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--primary) 15%, transparent);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.plan-price strong {
  font-size: clamp(3rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--primary);
}

.plan-price span {
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.plan-note {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: color-mix(in oklab, var(--foreground) 85%, transparent);
}

.excluded {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: color-mix(in oklab, var(--secondary) 60%, transparent);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.excluded .i {
  margin-top: 0.125rem;
  color: var(--destructive);
}

.plan-footnote {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.plan-side {
  padding: 1.75rem;
  text-align: start;
}

.plan-side h3 {
  margin: 0;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.plan-side > p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.spec-list {
  margin-top: 1.25rem;
}

.spec-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.625rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  font-size: 0.875rem;
}

.spec-list div:last-child {
  margin-bottom: 0;
}

.spec-list dt {
  color: var(--muted-foreground);
}

.spec-list dd {
  margin: 0;
  font-weight: 600;
}

/* ---------------------------------------------------------------
   Payments
--------------------------------------------------------------- */
.pay-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .pay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pay-card {
  padding: 1.75rem;
  text-align: start;
}

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

.pay-head .icon-tile {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.25rem;
}

.pay-head .pay-name strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.pay-head .pay-name > span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.pay-card > p {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.copy-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  direction: ltr;
}

.copy-field .value {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.copy-field .value.is-address {
  font-size: 0.8125rem;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--secondary);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.copy-btn:hover {
  background: color-mix(in oklab, var(--secondary) 70%, var(--primary) 30%);
}

.pay-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.pay-hint .i {
  color: var(--chart-4);
}

.steps {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  text-align: start;
  font-size: 0.875rem;
  line-height: 1.6;
  color: color-mix(in oklab, var(--foreground) 85%, transparent);
}

.steps .num {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: color-mix(in oklab, var(--primary) 15%, transparent);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

/* ---------------------------------------------------------------
   FAQ
--------------------------------------------------------------- */
.faq {
  max-width: 48rem;
  margin: 2.5rem auto 0;
  padding: 0.5rem;
}

.faq details {
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  list-style: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

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

.faq summary:hover {
  color: var(--primary);
}

.faq summary .plus {
  position: relative;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--muted-foreground);
}

.faq summary .plus::before,
.faq summary .plus::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.faq summary .plus::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq details[open] summary .plus::after {
  transform: translateY(-50%) rotate(0deg);
}

.faq details[open] summary {
  color: var(--primary);
}

.faq .answer {
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* ---------------------------------------------------------------
   Final CTA
--------------------------------------------------------------- */
.final {
  padding-bottom: 6rem;
  padding-top: 2.5rem;
}

.final-card {
  position: relative;
  overflow: hidden;
  max-width: 64rem;
  margin-inline: auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .final-card {
    padding: 3.5rem;
  }
}

.final-card .tech-grid {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, black, transparent);
  mask-image: radial-gradient(70% 70% at 50% 50%, black, transparent);
}

.final-card > *:not(.tech-grid) {
  position: relative;
}

.final-card h2 {
  margin: 0;
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.final-card p {
  max-width: 36rem;
  margin: 1rem auto 0;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.final-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .final-actions {
    flex-direction: row;
  }
}

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1rem 2.5rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  max-width: 72rem;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.footer-brand p {
  max-width: 20rem;
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.footer-brand .lang-toggle {
  margin-top: 1.25rem;
}

.footer-col h3 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.footer-col ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col a {
  font-size: 0.875rem;
  text-decoration: none;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
  transition: color 0.15s ease;
}

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

.pay-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  text-align: start;
}

.pay-mini .i {
  color: var(--chart-3);
  font-size: 1rem;
}

.pay-mini.btc .i {
  color: var(--chart-4);
}

.pay-mini .val {
  flex: 1;
  min-width: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
}

.icon-btn {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.icon-btn:hover {
  color: var(--primary);
}

.footer-col .tiny {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

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

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-stack .pay-mini {
  background-color: var(--card);
}

/* ---------------------------------------------------------------
   Toast + reveal animations
--------------------------------------------------------------- */
.toast {
  position: fixed;
  inset-inline: 0;
  bottom: 1.5rem;
  z-index: 80;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.toast span {
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  background: var(--popover);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px -24px rgb(0 0 0 / 0.9);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Reveal only hides content when JavaScript is available to show it. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .spark i {
    animation: none;
  }
}
