/* ==========================================================================
   ONYX / Zepto interface layer
   Built on top of a self hosted Bulma build. Bulma supplies the reset and the
   column maths; every visible surface is authored here so that no stock
   framework styling survives on screen.
   Design tokens below are the single source of truth for the whole site.
   ========================================================================== */

:root {
  /* Bulma variable overrides, applied before anything else paints. */
  --bulma-family-primary: "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --bulma-family-secondary: "Inconsolata", ui-monospace, monospace;
  --bulma-primary: #2ca3f2;
  --bulma-primary-invert: #ffffff;
  --bulma-link: #0e6fb8;
  --bulma-text: #0b0c0e;
  --bulma-text-strong: #0b0c0e;
  --bulma-body-background-color: #ffffff;
  --bulma-radius: 2px;
  --bulma-radius-small: 2px;
  --bulma-radius-large: 4px;

  /* Onyx palette. Hue of the ice accent is seed derived (204deg). */
  --onyx-ink: #0b0c0e;
  --onyx-graphite: #14161a;
  --onyx-slate: #1d2026;
  --onyx-steel: #6b7280;
  --onyx-steel-soft: #9aa1ab;
  --onyx-line: #e3e6eb;
  --onyx-line-dark: #262a31;
  --onyx-mist: #f1f3f6;
  --onyx-paper: #ffffff;
  --onyx-ice: #2ca3f2;
  --onyx-ice-deep: #0e6fb8;
  --onyx-ice-wash: #e9f5fe;
  --onyx-sig-green: #35d07f;
  --onyx-sig-amber: #f2c14e;
  --onyx-sig-coral: #f2654e;

  /* Geometry, derived from the 8px seed step. */
  --onyx-step: 8px;
  --onyx-radius: 2px;
  --onyx-radius-lg: 4px;
  --onyx-pill: 999px;
  --onyx-wrap: 1260px;
  --onyx-measure: 68ch;

  /* Elevation, seed selected as the deeper register. */
  --onyx-shadow-sm: 0 8px 24px -16px rgba(11, 12, 14, 0.45);
  --onyx-shadow: 0 30px 70px -34px rgba(11, 12, 14, 0.55), 0 2px 0 rgba(11, 12, 14, 0.04);
  --onyx-shadow-lift: 0 40px 90px -40px rgba(14, 111, 184, 0.55), 0 4px 0 rgba(11, 12, 14, 0.05);

  --onyx-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body.onyx-shell {
  margin: 0;
  background: var(--onyx-paper);
  color: var(--onyx-ink);
  font-family: "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--onyx-ice-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--onyx-ice);
}

:focus-visible {
  outline: 2px solid var(--onyx-ice);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--onyx-ice);
  color: #fff;
}

.onyx-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.onyx-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--onyx-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--onyx-radius);
  transition: top 0.2s var(--onyx-ease);
}

.onyx-skip:focus {
  top: 12px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Typography primitives
   -------------------------------------------------------------------------- */

.onyx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: "Inconsolata", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--onyx-ice-deep);
}

.onyx-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--onyx-sig-green);
  box-shadow: 0 0 0 4px rgba(53, 208, 127, 0.16);
}

.onyx-band--dark .onyx-eyebrow {
  color: var(--onyx-ice);
}

.onyx-title {
  margin: 0 0 18px;
  font-weight: 700;
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
}

.onyx-display {
  margin: 0 0 24px;
  font-weight: 700;
  font-size: clamp(2.5rem, 6.2vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.onyx-lede {
  margin: 0 0 32px;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.75;
  color: var(--onyx-steel);
  max-width: 38rem;
}

.onyx-lede--tight {
  max-width: 30rem;
}

.onyx-mono {
  font-family: "Inconsolata", ui-monospace, monospace;
  letter-spacing: 0.02em;
}

.onyx-muted {
  color: var(--onyx-steel);
}

.onyx-center {
  text-align: center;
}

.onyx-center .onyx-lede,
.onyx-center .onyx-head__sub {
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.onyx-wrap {
  width: 100%;
  max-width: var(--onyx-wrap);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.onyx-wrap--narrow {
  max-width: 880px;
}

.onyx-band {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
}

.onyx-band--tight {
  padding: clamp(48px, 6vw, 72px) 0;
}

.onyx-band--mist {
  background: var(--onyx-mist);
}

.onyx-band--dark {
  background: var(--onyx-ink);
  color: #fff;
}

.onyx-band--dark .onyx-title,
.onyx-band--dark .onyx-display {
  color: #fff;
}

.onyx-band--dark .onyx-lede,
.onyx-band--dark .onyx-head__sub {
  color: rgba(255, 255, 255, 0.7);
}

.onyx-band--seam {
  border-top: 1px solid var(--onyx-line);
}

.onyx-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.onyx-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.onyx-head__sub {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--onyx-steel);
}

.onyx-rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--onyx-line);
}

.onyx-rule--led {
  height: 3px;
  background: linear-gradient(90deg, var(--onyx-sig-green), var(--onyx-sig-amber) 52%, var(--onyx-sig-coral));
}

/* --------------------------------------------------------------------------
   Progress rail + top bar
   -------------------------------------------------------------------------- */

.onyx-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 120;
  background: linear-gradient(90deg, var(--onyx-ice), var(--onyx-sig-green));
}

.onyx-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--onyx-line);
}

.onyx-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.onyx-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.onyx-brand img {
  height: 26px;
  width: auto;
}

.onyx-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.onyx-menu__link {
  position: relative;
  padding: 10px 14px;
  font-family: "Inconsolata", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--onyx-ink);
  transition: color 0.2s var(--onyx-ease);
}

.onyx-menu__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--onyx-ice);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--onyx-ease);
}

.onyx-menu__link:hover {
  color: var(--onyx-ice-deep);
}

.onyx-menu__link:hover::after,
.onyx-menu__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.onyx-menu__link[aria-current="page"] {
  color: var(--onyx-ice-deep);
}

.onyx-topbar__cta {
  margin-left: 12px;
}

.onyx-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--onyx-line);
  border-radius: var(--onyx-radius);
  cursor: pointer;
}

.onyx-burger span {
  display: block;
  height: 2px;
  background: var(--onyx-ink);
  transition: transform 0.25s var(--onyx-ease), opacity 0.2s var(--onyx-ease);
}

.onyx-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.onyx-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.onyx-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.onyx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--onyx-pill);
  font-family: "Source Sans Pro", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s var(--onyx-ease), background-color 0.22s var(--onyx-ease),
    color 0.22s var(--onyx-ease), border-color 0.22s var(--onyx-ease), box-shadow 0.22s var(--onyx-ease);
}

.onyx-btn--solid {
  background: var(--onyx-ink);
  border-color: var(--onyx-ink);
  color: #fff;
  box-shadow: var(--onyx-shadow-sm);
}

.onyx-btn--solid:hover {
  background: var(--onyx-ice);
  border-color: var(--onyx-ice);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--onyx-shadow-lift);
}

.onyx-btn--ghost {
  background: transparent;
  border-color: var(--onyx-ink);
  color: var(--onyx-ink);
}

.onyx-btn--ghost:hover {
  background: var(--onyx-ink);
  color: #fff;
  transform: translateY(-2px);
}

.onyx-btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--onyx-ink);
}

.onyx-btn--light:hover {
  background: var(--onyx-ice);
  border-color: var(--onyx-ice);
  color: #fff;
  transform: translateY(-2px);
}

.onyx-btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.onyx-btn--outline-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--onyx-ink);
  transform: translateY(-2px);
}

.onyx-btn--sm {
  padding: 11px 20px;
  font-size: 14px;
}

.onyx-btn--block {
  width: 100%;
}

.onyx-btn__arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.22s var(--onyx-ease);
}

.onyx-btn:hover .onyx-btn__arrow {
  transform: translateX(3px);
}

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

.onyx-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 110px) 0 clamp(72px, 10vw, 130px);
  background: var(--onyx-ink);
  color: #fff;
}

.onyx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle closest-side at 72% 42%, rgba(44, 163, 242, 0.22), transparent 72%),
    radial-gradient(circle closest-side at 12% 88%, rgba(255, 255, 255, 0.07), transparent 62%);
  pointer-events: none;
}

.onyx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 60% 40%, #000, transparent 78%);
  pointer-events: none;
}

.onyx-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.onyx-hero__lede {
  margin: 0 0 32px;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.74);
  max-width: 34rem;
}

.onyx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.onyx-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.onyx-specs li {
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--onyx-pill);
  font-family: "Inconsolata", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.onyx-hero__art {
  position: relative;
  display: flex;
  justify-content: center;
}

.onyx-hero__art img {
  width: min(100%, 460px);
  filter: drop-shadow(0 50px 70px rgba(0, 0, 0, 0.6));
  animation: onyx-float 7s ease-in-out infinite;
}

.onyx-hero__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 163, 242, 0.28), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}

@keyframes onyx-float {
  0%,
  100% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(10px);
  }
}

.onyx-cue {
  position: relative;
  z-index: 2;
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Inconsolata", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.onyx-cue::after {
  content: "";
  width: 44px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------------------------------
   Press strip
   -------------------------------------------------------------------------- */

.onyx-press {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 7vw, 88px);
  flex-wrap: wrap;
}

.onyx-press img {
  height: 30px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.25s var(--onyx-ease), filter 0.25s var(--onyx-ease);
}

.onyx-press img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */

.onyx-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.onyx-feature {
  position: relative;
  padding: 28px 24px 26px;
  background: var(--onyx-paper);
  border: 1px solid var(--onyx-line);
  border-radius: var(--onyx-radius);
  transition: transform 0.25s var(--onyx-ease), box-shadow 0.25s var(--onyx-ease),
    border-color 0.25s var(--onyx-ease);
}

.onyx-feature::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--onyx-sig-green), var(--onyx-sig-amber), var(--onyx-sig-coral));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--onyx-ease);
}

.onyx-feature:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--onyx-shadow);
}

.onyx-feature:hover::before {
  transform: scaleX(1);
}

.onyx-feature img {
  height: 42px;
  width: auto;
  margin-bottom: 20px;
  filter: invert(1);
}

.onyx-feature h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 600;
}

.onyx-feature p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--onyx-steel);
}

/* --------------------------------------------------------------------------
   Pods / modularity
   -------------------------------------------------------------------------- */

.onyx-pods__tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 40px;
  padding-bottom: 2px;
  overflow-x: auto;
  border-bottom: 1px solid var(--onyx-line-dark);
  scrollbar-width: none;
}

.onyx-pods__tabs::-webkit-scrollbar {
  display: none;
}

.onyx-podtab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 12px 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Inconsolata", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s var(--onyx-ease), border-color 0.2s var(--onyx-ease);
}

.onyx-podtab img {
  height: 24px;
  width: auto;
  opacity: 0.7;
}

.onyx-podtab:hover {
  color: #fff;
}

.onyx-podtab[aria-selected="true"] {
  color: #fff;
  border-bottom-color: var(--onyx-ice);
}

.onyx-podtab[aria-selected="true"] img {
  opacity: 1;
}

.onyx-podpane {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.onyx-podpane[hidden] {
  display: none;
}

.onyx-podpane h3 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.onyx-podpane p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 34rem;
}

.onyx-podpane img {
  width: min(100%, 340px);
  margin: 0 auto;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6));
}

.onyx-pod-meta {
  display: inline-flex;
  gap: 8px;
  margin-top: 6px;
  padding: 7px 14px;
  border: 1px solid var(--onyx-line-dark);
  border-radius: var(--onyx-pill);
  font-family: "Inconsolata", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* --------------------------------------------------------------------------
   Split feature rows
   -------------------------------------------------------------------------- */

.onyx-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.onyx-split + .onyx-split {
  margin-top: clamp(56px, 8vw, 104px);
}

.onyx-split__copy h2 {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.onyx-split__copy p {
  margin: 0 0 18px;
  color: var(--onyx-steel);
  max-width: 34rem;
}

.onyx-band--dark .onyx-split__copy p {
  color: rgba(255, 255, 255, 0.72);
}

.onyx-split__art {
  position: relative;
}

.onyx-split__art img {
  width: 100%;
  border-radius: var(--onyx-radius-lg);
  box-shadow: var(--onyx-shadow);
}

.onyx-split--flip .onyx-split__art {
  order: -1;
}

.onyx-split__art--plain img {
  box-shadow: none;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.28));
}

.onyx-led {
  position: relative;
  height: 62px;
  border-radius: var(--onyx-radius);
  background: #0b0c0e;
  border: 1px solid var(--onyx-line-dark);
  overflow: hidden;
  box-shadow: inset 0 0 46px rgba(0, 0, 0, 0.7);
}

.onyx-led__bar {
  position: absolute;
  inset: 15px 20px;
  border-radius: var(--onyx-pill);
  background: linear-gradient(90deg, var(--onyx-sig-green), var(--onyx-sig-amber) 55%, var(--onyx-sig-coral));
  box-shadow: 0 0 26px rgba(242, 193, 78, 0.4);
  overflow: hidden;
}

.onyx-led__bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: onyx-sweep 3.4s linear infinite;
}

@keyframes onyx-sweep {
  from {
    transform: translateX(-130%);
  }
  to {
    transform: translateX(560%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .onyx-led__bar::after {
    animation: none;
  }
}

.onyx-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 0;
  list-style: none;
}

.onyx-chip {
  padding: 8px 14px;
  border: 1px solid var(--onyx-line);
  border-radius: var(--onyx-pill);
  font-family: "Inconsolata", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--onyx-steel);
}

.onyx-band--dark .onyx-chip {
  border-color: var(--onyx-line-dark);
  color: rgba(255, 255, 255, 0.72);
}

/* --------------------------------------------------------------------------
   Social
   -------------------------------------------------------------------------- */

.onyx-social {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.onyx-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--onyx-ink);
  border-radius: 50%;
  background: var(--onyx-ink);
  transition: transform 0.22s var(--onyx-ease), border-color 0.22s var(--onyx-ease),
    background-color 0.22s var(--onyx-ease);
}

.onyx-social img {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

.onyx-social a:hover {
  transform: translateY(-3px);
  border-color: var(--onyx-ice);
  background: var(--onyx-ice);
}

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

.onyx-foot {
  background: var(--onyx-ink);
  color: rgba(255, 255, 255, 0.68);
  padding-top: clamp(56px, 7vw, 88px);
}

.onyx-foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.4fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 56px;
}

.onyx-foot__brand img {
  height: 26px;
  width: auto;
  margin-bottom: 18px;
}

.onyx-foot__brand p {
  margin: 0 0 20px;
  max-width: 24rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.onyx-foot h2 {
  margin: 0 0 16px;
  font-family: "Inconsolata", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

.onyx-foot__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.onyx-foot__links li {
  margin-bottom: 10px;
}

.onyx-foot__links a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s var(--onyx-ease);
}

.onyx-foot__links a:hover {
  color: var(--onyx-ice);
}

.onyx-signup p {
  margin: 0 0 14px;
  font-size: 0.95rem;
}

.onyx-signup ul {
  margin: 0 0 22px;
  padding-left: 18px;
  font-size: 0.95rem;
}

.onyx-signup li {
  margin-bottom: 6px;
}

.onyx-form {
  display: grid;
  gap: 12px;
}

.onyx-field label {
  display: block;
  margin-bottom: 6px;
  font-family: "Inconsolata", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.onyx-input,
.onyx-select,
.onyx-textarea {
  width: 100%;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--onyx-line-dark);
  border-radius: var(--onyx-radius);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.2s var(--onyx-ease), background-color 0.2s var(--onyx-ease);
}

.onyx-input::placeholder,
.onyx-textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.onyx-input:focus,
.onyx-select:focus,
.onyx-textarea:focus {
  outline: none;
  border-color: var(--onyx-ice);
  background: rgba(44, 163, 242, 0.08);
}

.onyx-textarea {
  min-height: 130px;
  resize: vertical;
}

.onyx-form__note {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.onyx-form__status {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: var(--onyx-radius);
  font-size: 0.92rem;
  display: none;
}

.onyx-form__status.is-ok {
  display: block;
  background: rgba(53, 208, 127, 0.14);
  border: 1px solid rgba(53, 208, 127, 0.4);
  color: #b9f4d6;
}

.onyx-form__status.is-bad {
  display: block;
  background: rgba(242, 101, 78, 0.14);
  border: 1px solid rgba(242, 101, 78, 0.4);
  color: #ffc9bf;
}

.onyx-foot__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--onyx-line-dark);
  font-size: 0.88rem;
}

.onyx-foot__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.onyx-foot__legal a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.onyx-foot__legal a:hover {
  color: var(--onyx-ice);
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.onyx-pagehead {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 116px) 0 clamp(56px, 7vw, 84px);
  background: var(--onyx-ink);
  color: #fff;
}

.onyx-pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle closest-side at 78% 30%, rgba(44, 163, 242, 0.2), transparent 70%);
  pointer-events: none;
}

.onyx-pagehead__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.onyx-pagehead h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.onyx-pagehead p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  max-width: 40rem;
}

.onyx-crumbs {
  margin-bottom: 22px;
  font-family: "Inconsolata", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.onyx-crumbs a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.onyx-crumbs a:hover {
  color: var(--onyx-ice);
}

.onyx-crumbs span {
  margin: 0 8px;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */

.onyx-faq__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
}

.onyx-faq__col {
  display: grid;
  gap: 14px;
  align-content: start;
}

.onyx-faq__item {
  border: 1px solid var(--onyx-line);
  border-radius: var(--onyx-radius);
  background: var(--onyx-paper);
  transition: border-color 0.2s var(--onyx-ease), box-shadow 0.2s var(--onyx-ease);
}

.onyx-faq__item[open] {
  border-color: var(--onyx-ice);
  box-shadow: var(--onyx-shadow-sm);
}

.onyx-faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

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

.onyx-faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--onyx-line);
  color: var(--onyx-steel);
  font-weight: 400;
  transition: transform 0.25s var(--onyx-ease), background-color 0.25s var(--onyx-ease),
    color 0.25s var(--onyx-ease);
}

.onyx-faq__item[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
  background: var(--onyx-ice);
  border-color: var(--onyx-ice);
  color: #fff;
}

.onyx-faq__a {
  padding: 0 22px 22px;
  margin: 0;
  color: var(--onyx-steel);
  font-size: 0.98rem;
  line-height: 1.75;
}

.onyx-faq__a p {
  margin: 0 0 12px;
}

.onyx-faq__a p:last-child {
  margin-bottom: 0;
}

.onyx-faq__a strong {
  display: block;
  margin: 14px 0 6px;
  color: var(--onyx-ink);
}

.onyx-faq__group {
  margin-top: clamp(40px, 5vw, 64px);
}

.onyx-faq__group h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.onyx-contact {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.onyx-card {
  padding: clamp(26px, 3vw, 40px);
  background: var(--onyx-paper);
  border: 1px solid var(--onyx-line);
  border-radius: var(--onyx-radius-lg);
  box-shadow: var(--onyx-shadow);
}

.onyx-card h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  font-weight: 700;
}

.onyx-card__sub {
  margin: 0 0 26px;
  color: var(--onyx-steel);
}

.onyx-contact .onyx-field label {
  color: var(--onyx-steel);
}

.onyx-contact .onyx-input,
.onyx-contact .onyx-select,
.onyx-contact .onyx-textarea {
  background: var(--onyx-mist);
  border-color: var(--onyx-line);
  color: var(--onyx-ink);
}

.onyx-contact .onyx-input::placeholder,
.onyx-contact .onyx-textarea::placeholder {
  color: var(--onyx-steel-soft);
}

.onyx-contact .onyx-input:focus,
.onyx-contact .onyx-select:focus,
.onyx-contact .onyx-textarea:focus {
  background: #fff;
  border-color: var(--onyx-ice);
}

.onyx-contact .onyx-form__note {
  color: var(--onyx-steel);
}

.onyx-contact .onyx-form__status.is-ok {
  color: #0f6b43;
}

.onyx-contact .onyx-form__status.is-bad {
  color: #a8321d;
}

.onyx-aside__block {
  padding: 26px 0;
  border-top: 1px solid var(--onyx-line);
}

.onyx-aside__block:first-child {
  border-top: 0;
  padding-top: 0;
}

.onyx-aside__block h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.onyx-aside__block p {
  margin: 0;
  color: var(--onyx-steel);
}

/* --------------------------------------------------------------------------
   Long form documents
   -------------------------------------------------------------------------- */

.onyx-doc {
  max-width: 840px;
}

.onyx-doc h2 {
  margin: 44px 0 14px;
  font-family: "Inconsolata", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--onyx-ice-deep);
}

.onyx-doc h2:first-child {
  margin-top: 0;
}

.onyx-doc h3 {
  margin: 26px 0 10px;
  font-size: 1.12rem;
  font-weight: 700;
}

.onyx-doc p {
  margin: 0 0 16px;
  color: #33383f;
  line-height: 1.8;
}

.onyx-doc ul,
.onyx-doc ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: #33383f;
}

.onyx-doc li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.onyx-doc__toc {
  margin: 0 0 40px;
  padding: 22px 24px;
  background: var(--onyx-mist);
  border-radius: var(--onyx-radius-lg);
}

.onyx-doc__toc p {
  margin: 0 0 10px;
  font-family: "Inconsolata", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--onyx-steel);
}

.onyx-doc__toc ul {
  columns: 2;
  margin: 0;
  padding-left: 18px;
}

/* --------------------------------------------------------------------------
   Simple content blocks
   -------------------------------------------------------------------------- */

.onyx-prose {
  max-width: 760px;
}

.onyx-prose p {
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #33383f;
}

.onyx-prose h2 {
  margin: 40px 0 16px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.onyx-prose h3 {
  margin: 28px 0 12px;
  font-size: 1.18rem;
  font-weight: 600;
}

.onyx-prose ul {
  margin: 0 0 20px;
  padding-left: 22px;
  color: #33383f;
}

.onyx-prose li {
  margin-bottom: 8px;
}

.onyx-readmore {
  margin-top: 48px;
  padding: 26px 30px;
  border: 1px solid var(--onyx-line);
  border-radius: var(--onyx-radius-lg);
  background: var(--onyx-mist);
}

.onyx-readmore h2 {
  margin: 0 0 14px;
  font-family: "Inconsolata", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--onyx-steel);
}

.onyx-readmore ul {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}

.onyx-readmore li {
  margin-bottom: 8px;
  break-inside: avoid;
}

@media screen and (max-width: 600px) {
  .onyx-readmore ul {
    columns: 1;
  }
}

.onyx-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.onyx-pillar {
  padding: 28px 24px;
  background: var(--onyx-mist);
  border-radius: var(--onyx-radius-lg);
}

.onyx-pillar h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 600;
}

.onyx-pillar p {
  margin: 0;
  color: var(--onyx-steel);
  font-size: 0.95rem;
}

.onyx-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.onyx-stat {
  padding: 22px 20px;
  border: 1px solid var(--onyx-line);
  border-radius: var(--onyx-radius);
}

.onyx-stat__num {
  font-family: "Inconsolata", ui-monospace, monospace;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--onyx-ink);
  letter-spacing: -0.02em;
}

.onyx-stat__label {
  font-size: 0.86rem;
  color: var(--onyx-steel);
}

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

.onyx-cta {
  position: relative;
  overflow: hidden;
  background: var(--onyx-ink);
  color: #fff;
  text-align: center;
}

.onyx-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle closest-side at 50% 40%, rgba(44, 163, 242, 0.2), transparent 72%);
}

.onyx-cta .onyx-wrap {
  position: relative;
  z-index: 2;
}

.onyx-cta h2 {
  margin: 0 auto 18px;
  max-width: 22ch;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.onyx-cta p {
  margin: 0 auto 32px;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.72);
}

.onyx-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

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

.onyx-figure {
  max-width: 760px;
  margin: 0 auto 56px;
  padding: 56px 32px;
  background: linear-gradient(180deg, #ffffff, var(--onyx-mist));
  border: 1px solid var(--onyx-line);
  border-radius: var(--onyx-radius-lg);
}

.onyx-figure img {
  width: 100%;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.onyx-404 {
  display: grid;
  place-items: center;
  min-height: 62vh;
  text-align: center;
}

.onyx-404__code {
  font-family: "Inconsolata", ui-monospace, monospace;
  font-size: clamp(4rem, 16vw, 9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--onyx-ice), var(--onyx-sig-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Reveal animation, honours reduced motion
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--onyx-ease), transform 0.7s var(--onyx-ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .onyx-hero__art img {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media screen and (max-width: 1023px) {
  .onyx-hero__grid {
    grid-template-columns: 1fr;
  }
  .onyx-hero__art {
    order: -1;
  }
  .onyx-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .onyx-foot__grid {
    grid-template-columns: 1fr 1fr;
  }
  .onyx-contact {
    grid-template-columns: 1fr;
  }
  .onyx-stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .onyx-pillars {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 900px) {
  .onyx-topbar {
    z-index: 130;
  }
  .onyx-burger {
    display: flex;
  }
  .onyx-menu {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 100px 24px 40px;
    background: var(--onyx-ink);
    overflow-y: auto;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.3s var(--onyx-ease), visibility 0.3s var(--onyx-ease);
  }
  .onyx-menu.is-open {
    transform: none;
    visibility: visible;
  }
  .onyx-menu__link {
    padding: 18px 0;
    border-bottom: 1px solid var(--onyx-line-dark);
    font-size: 20px;
    letter-spacing: 0.1em;
    color: #fff;
  }
  .onyx-menu__link::after {
    display: none;
  }
  .onyx-menu__link:hover,
  .onyx-menu__link[aria-current="page"] {
    color: var(--onyx-ice);
  }
  .onyx-topbar__cta {
    margin: 28px 0 0;
    width: 100%;
  }
  .onyx-split {
    grid-template-columns: 1fr;
  }
  .onyx-split--flip .onyx-split__art {
    order: 0;
  }
  .onyx-podpane {
    grid-template-columns: 1fr;
  }
  .onyx-podpane img {
    order: -1;
  }
  .onyx-faq__cols {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 600px) {
  body.onyx-shell {
    font-size: 16px;
  }
  .onyx-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }
  .onyx-features {
    grid-template-columns: 1fr;
  }
  .onyx-foot__grid {
    grid-template-columns: 1fr;
  }
  .onyx-stat-row {
    grid-template-columns: 1fr;
  }
  .onyx-pillars {
    grid-template-columns: 1fr;
  }
  .onyx-btn {
    width: 100%;
  }
  .onyx-hero__actions .onyx-btn,
  .onyx-cta__actions .onyx-btn {
    width: 100%;
  }
  .onyx-doc__toc ul {
    columns: 1;
  }
}

/* Bulma grid safety: keep gutters tight where the design calls for it. */
.onyx-shell .columns {
  margin-left: -12px;
  margin-right: -12px;
}

.onyx-shell .column {
  padding: 12px;
}
