/* Layerbits — design tokens & responsive layout */
:root {
  /* Zynex (mezario) template palette — https://zynex.webflow.io/ */
  --z-lotion: #fafafa;
  --z-diamond: #c0e1ff;
  --z-lavender: #f0dfff;
  --z-linen: #fcecec;
  --z-eerie: #15161e;
  --z-border: rgba(59, 59, 59, 0.08);

  --color-primary: #235fff;
  --color-primary-hover: #1a4fe6;
  --color-primary-soft: rgba(35, 95, 255, 0.12);
  --color-dark: #15161e;
  --color-bg: var(--z-lotion);
  --color-surface: #ffffff;
  --color-text: #15161e;
  --color-text-muted: #000000;
  --color-border: var(--z-border);
  --gradient-hero: linear-gradient(135deg, #235fff 0%, #4f7cff 55%, #6366f1 100%);
  /* Header “island” — dark shell + cross-hatch (reuse across the site) */
  --island-base: #1c1c22;
  --island-gradient: linear-gradient(165deg, #2a2a32 0%, #15161a 45%, #121218 100%);
  --island-texture-a: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.028) 3px,
    rgba(255, 255, 255, 0.028) 4px
  );
  --island-texture-b: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.022) 3px,
    rgba(255, 255, 255, 0.022) 4px
  );
  --island-border: 1px solid rgba(255, 255, 255, 0.14);
  --island-shadow-elevated: 0 12px 40px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --island-shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  /* Strong page mesh — diamond + lavender + linen (clearly visible vs old blue-white) */
  --gradient-page-mesh:
    radial-gradient(ellipse 125% 95% at 92% -18%, #c0e1ff 0%, rgba(192, 225, 255, 0.65) 35%, transparent 58%),
    radial-gradient(ellipse 95% 80% at -12% 42%, #f0dfff 0%, rgba(240, 223, 255, 0.5) 40%, transparent 62%),
    radial-gradient(ellipse 85% 55% at 50% 102%, rgba(252, 236, 236, 0.75) 0%, transparent 55%),
    linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(35, 95, 255, 0.12), 0 2px 8px rgba(11, 18, 32, 0.06);
  --shadow-glass: 0 8px 32px rgba(11, 18, 32, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --space-unit: 8px;
  --section-y: clamp(3.5rem, 8vw, 7.5rem);
  /* Full sticky header stack (inset + island) — mobile overlay, docs offset, main overlap */
  --header-stack-h: 7rem;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --max-w: 72rem;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--z-lotion);
  background-image: var(--gradient-page-mesh);
  background-repeat: no-repeat;
  background-size: 100% 520px, 100% 480px, 100% 420px, 100% 100%;
  background-position: top right, top left, bottom center, center;
  background-attachment: scroll;
  min-height: 100dvh;
}

@media (max-width: 899px) {
  body:not(.page-coming-soon) {
    padding-bottom: 5.5rem;
  }
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(2rem, 5vw, 4rem);
}

/* Header — floating island (centered pill); inset from viewport so shadow reads */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: auto;
  min-height: 0;
  background: transparent;
  border: none;
  padding: clamp(1.35rem, 5vw, 2.35rem) clamp(0.75rem, 3vw, 1.5rem)
    clamp(0.65rem, 2vw, 1rem);
}

.site-header__shell {
  max-width: min(56rem, 100%);
  margin-inline: auto;
}

.site-header__island {
  border-radius: 999px;
  border: var(--island-border);
  background-color: var(--island-base);
  background-image: var(--island-texture-a), var(--island-texture-b), var(--island-gradient);
  box-shadow: var(--island-shadow-elevated);
  padding: 0.4rem 0.5rem 0.4rem clamp(0.65rem, 2vw, 1.1rem);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.85rem;
  gap: 0.75rem;
}

@media (min-width: 900px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.75rem;
  }

  .site-header__inner .logo {
    grid-column: 1;
    justify-self: start;
  }

  .site-header__inner .nav-wrap {
    display: contents;
  }

  .site-header__inner #primary-nav {
    grid-column: 2;
    justify-self: center;
  }

  .site-header__inner .nav {
    justify-content: center;
  }

  .site-header__inner .header-cta {
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
  }
}

/* Header logo: light mark on dark island */
.site-header .logo--header .logo__img {
  filter: brightness(0) invert(1);
  height: clamp(1.35rem, 4vw, 1.65rem);
  max-width: min(46vw, 9.5rem);
}

.site-header .logo--header:hover {
  opacity: 0.9;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.92;
}

.logo__img {
  display: block;
  height: clamp(1.65rem, 5vw, 2.15rem);
  width: auto;
  max-width: min(55vw, 15rem);
  object-fit: contain;
  object-position: left center;
}

.site-footer .logo--footer:hover {
  opacity: 1;
}

.site-footer .logo__img {
  max-width: min(78vw, 14.5rem);
  height: clamp(1.5rem, 4.25vw, 1.9rem);
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.site-footer .logo--footer:hover .logo__img {
  opacity: 1;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  color: var(--color-dark);
}

.nav-toggle__bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.2s var(--ease);
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}

.nav-toggle__bar::before {
  top: -6px;
}

.nav-toggle__bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 899px) {
  .nav-wrap {
    position: fixed;
    inset: var(--header-stack-h) 0 0 0;
    background: rgba(11, 18, 32, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), visibility 0.2s;
    pointer-events: none;
  }

  .nav-wrap.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav {
    position: absolute;
    top: 0;
    right: 0;
    width: min(20rem, 88vw);
    max-height: calc(100dvh - var(--header-stack-h));
    overflow-y: auto;
    padding: 1rem;
    background: var(--color-surface);
    border-radius: 0 0 0 var(--radius-md);
    box-shadow: var(--shadow-md);
    transform: translateX(100%);
    transition: transform 0.25s var(--ease);
  }

  .nav-wrap.is-open .nav {
    transform: translateX(0);
  }
}

@media (min-width: 900px) {
  .nav-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-end;
  }

  .site-header__inner .nav-wrap {
    flex: initial;
    justify-content: initial;
    gap: 0;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.125rem 1.25rem;
  }

  .site-header__inner .nav {
    justify-content: center;
  }
}

.nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav a:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
  text-decoration: none;
}

.nav a.is-active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.nav-mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 900px) {
  .nav-mobile-cta {
    display: none;
  }
}

.header-cta {
  display: none;
}

@media (min-width: 900px) {
  .header-cta {
    display: flex;
    gap: 0.5rem;
    margin-left: 0.5rem;
  }
}

/* Island header: desktop nav + CTA */
@media (min-width: 900px) {
  .site-header .nav a {
    color: rgba(255, 255, 255, 0.92);
  }

  .site-header .nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }

  .site-header .nav a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
  }
}

.site-header .nav-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
}

.site-header .nav-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn--header-pill {
  background: #fff !important;
  color: #15161e !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
  padding: 0.5rem 1.15rem !important;
  font-weight: 600 !important;
}

.btn--header-pill:hover {
  background: #f4f4f6 !important;
  color: #0d0e12 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.15s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: 0 4px 14px rgba(35, 95, 255, 0.35);
}

.btn--primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 20px rgba(35, 95, 255, 0.4);
  text-decoration: none;
  color: #fff;
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-dark);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
}

.btn--ghost:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
  text-decoration: none;
}

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

/* Hero — layered backdrop from index2.html (gradient mesh + grid + orbs), colors tuned to Layerbits */
.hero {
  position: relative;
  padding-block: clamp(2.25rem, 5vw, 4.25rem);
  min-height: min(56dvh, 36rem);
  overflow: hidden;
  background: var(--z-lotion);
}

/* First section sits under the header so the page mesh / “header row” isn’t visible behind the island */
main > .hero:first-child {
  margin-top: calc(-1 * var(--header-stack-h));
  padding-top: calc(var(--header-stack-h) + clamp(2.25rem, 5vw, 4.25rem));
}

.hero-banner {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Main gradient stack (index2 ::before equivalent) */
.hero-banner__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 20% 30%, rgba(177, 178, 248, 0.07), transparent 42%),
    radial-gradient(circle at 80% 38%, rgba(246, 164, 204, 0.055), transparent 46%),
    radial-gradient(circle at 50% 85%, rgba(145, 175, 255, 0.05), transparent 52%),
    linear-gradient(180deg, #ffffff 0%, #c0e1ff 42%, #e8f1fb 78%, #fafafa 100%);
}

/* Grid mask (index2 .grid) */
.hero-banner__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: linear-gradient(rgba(21, 22, 30, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 22, 30, 0.06) 1px, transparent 1px);
  background-size: clamp(48px, 8vw, 70px) clamp(48px, 8vw, 70px);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, rgb(0, 0, 0) 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, rgb(0, 0, 0) 25%, transparent 72%);
}

/* Glow blobs (index2 .orb) — brand-tinted */
.hero-banner__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  z-index: 2;
}

/* Pastel blobs (50% mix toward brand primaries); opacity scaled for further fade */
.hero-banner__orb--purple {
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  background: #b1b2f8;
  top: 5%;
  left: 5%;
}

.hero-banner__orb--pink {
  width: min(480px, 85vw);
  height: min(480px, 85vw);
  background: #f6a4cc;
  top: 45%;
  right: -5%;
}

.hero-banner__orb--blue {
  width: min(580px, 95vw);
  height: min(580px, 95vw);
  background: #91afff;
  bottom: -15%;
  left: 35%;
}

@media (max-width: 768px) {
  .hero-banner__orb {
    filter: blur(90px);
    opacity: 0.21;
  }

  .hero-banner__orb--blue {
    left: 20%;
  }
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.hero__intro {
  max-width: 42rem;
  margin-inline: auto;
}

.hero__mock {
  width: 100%;
  max-width: min(56rem, 100%);
  margin-inline: auto;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: var(--island-border);
  background-color: var(--island-base);
  background-image: var(--island-texture-a), var(--island-texture-b), var(--island-gradient);
  box-shadow: var(--island-shadow-soft);
}

h1,
.h1 {
  font-size: clamp(2rem, 5vw + 1rem, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--color-dark);
}

.hero__lead {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--color-text-muted);
  margin: 0 auto 1.75rem;
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Mock browser / inspector */
.mock-browser {
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md), var(--shadow-glass);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.mock-browser__chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: var(--island-base);
  background-image: var(--island-texture-a), var(--island-texture-b), var(--island-gradient);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mock-browser__dots {
  display: flex;
  gap: 0.35rem;
}

.mock-browser__dots span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #c5cbd8;
}

.mock-browser__dots span:first-child {
  background: #ff5f57;
}

.mock-browser__dots span:nth-child(2) {
  background: #febc2e;
}

.mock-browser__dots span:nth-child(3) {
  background: #28c840;
}

.mock-browser__url {
  flex: 1;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mock-browser__body {
  display: grid;
  gap: 0;
  min-height: clamp(14rem, 40vw, 22rem);
}

@media (min-width: 520px) {
  .mock-browser__body {
    grid-template-columns: 1fr 1fr;
  }
}

.mock-browser__page {
  padding: 1rem;
  background: linear-gradient(145deg, #fafbff 0%, #f0f4ff 100%);
  position: relative;
}

.mock-browser__card {
  border-radius: var(--radius-md);
  background: #fff;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mock-browser__card.is-highlight {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.mock-browser__code {
  padding: 1rem;
  background: var(--color-dark);
  color: #e2e8f0;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
  font-size: clamp(0.65rem, 2vw, 0.75rem);
  line-height: 1.5;
  overflow: auto;
}

.mock-browser__code .tag {
  color: #7dd3fc;
}

.mock-browser__code .attr {
  color: #a5b4fc;
}

.mock-browser__code .val {
  color: #86efac;
}

/* Section titles */
.section-head {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

h2,
.h2 {
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--color-dark);
}

.section-head p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Trust bar — same island treatment as header */
.trust-bar {
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--island-base);
  background-image: var(--island-texture-a), var(--island-texture-b), var(--island-gradient);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding-block: clamp(1.25rem, 3vw, 2rem);
}

.trust-bar__label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.trust-bar__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.5rem);
}

.trust-bar__logo {
  font-weight: 700;
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: rgba(255, 255, 255, 0.42);
  opacity: 1;
}

/* Cards grid */
.card-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 600px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(35, 95, 255, 0.2);
}

.card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--island-base);
  background-image: var(--island-texture-a), var(--island-texture-b), var(--island-gradient);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--island-shadow-soft);
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
  color: var(--color-dark);
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* Feature deep rows */
.feature-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.feature-row {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .feature-row {
    grid-template-columns: auto 1fr;
    gap: 2rem;
  }
}

.feature-row__num {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background-color: var(--island-base);
  background-image: var(--island-texture-a), var(--island-texture-b), var(--island-gradient);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--island-shadow-soft);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

/* Demo section */
.demo-panel {
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.demo-panel__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--island-base);
  background-image: var(--island-texture-a), var(--island-texture-b), var(--island-gradient);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tab {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.tab.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.demo-panel__top .badge {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.demo-stage {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

@media (min-width: 700px) {
  .demo-stage {
    grid-template-columns: 1fr 1fr;
  }
}

.demo-canvas {
  min-height: 200px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, #e8edff 0%, #f8faff 100%);
  border: 1px dashed rgba(35, 95, 255, 0.25);
  padding: 1rem;
  position: relative;
}

.demo-el {
  position: absolute;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}

.demo-el:hover {
  transform: scale(1.02);
}

.demo-el.is-selected {
  box-shadow: 0 0 0 3px var(--color-primary);
}

.demo-el--a {
  width: 45%;
  height: 40%;
  top: 12%;
  left: 8%;
  background: var(--color-primary);
  opacity: 0.9;
}

.demo-el--b {
  width: 35%;
  height: 28%;
  bottom: 18%;
  right: 12%;
  background: #6366f1;
  opacity: 0.85;
}

.demo-output {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  line-height: 1.55;
  background: var(--color-dark);
  color: #e2e8f0;
  padding: 1rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  min-height: 200px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Workflow */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

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

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

.step {
  position: relative;
  padding: 1.25rem;
  padding-top: 2.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--color-surface);
  color: var(--color-dark);
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--color-dark);
}

.step p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Use cases pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.pill {
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

/* Vision callout — diamond + lavender (Zynex-style) */
.callout {
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, rgba(192, 225, 255, 0.65) 0%, rgba(240, 223, 255, 0.55) 100%);
  border: 1px solid rgba(59, 59, 59, 0.1);
}

.callout h2 {
  margin-top: 0;
}

.callout ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.callout li {
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  gap: 1rem;
}

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

.testimonial {
  position: relative;
  padding: 1.5rem;
  padding-top: calc(1.5rem + 3px);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(28, 28, 34, 0.1);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.testimonial::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--island-base);
  background-image: var(--island-texture-a), var(--island-texture-b), var(--island-gradient);
}

.testimonial p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.testimonial footer {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
}

/* Pricing teaser */
.pricing-row {
  display: grid;
  gap: 1rem;
}

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

.price-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.price-card--featured {
  border-color: var(--color-primary);
  box-shadow: 0 8px 32px rgba(35, 95, 255, 0.15);
}

.price-card--featured::before {
  content: "Popular";
  position: absolute;
  top: 1rem;
  right: -2rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.35rem 2.5rem;
  transform: rotate(45deg);
}

.price-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.price-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.price-card ul {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.price-card li {
  margin-bottom: 0.35rem;
}

/* CTA band — island shell (matches header) */
.cta-band {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: var(--radius-lg);
  border: var(--island-border);
  background-color: var(--island-base);
  background-image: var(--island-texture-a), var(--island-texture-b), var(--island-gradient);
  box-shadow: var(--island-shadow-elevated);
  color: rgba(255, 255, 255, 0.92);
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 0.75rem;
}

.cta-band p {
  margin: 0 0 1.5rem;
  opacity: 0.88;
  max-width: 32rem;
  margin-inline: auto;
}

.cta-band .btn--primary {
  background: #fff !important;
  color: var(--color-dark) !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25) !important;
}

.cta-band .btn--primary:hover {
  background: #f4f4f6 !important;
  color: #0d0e12 !important;
}

.cta-band .btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.cta-band .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Footer — island shell (same family as header) */
.site-footer {
  background-color: var(--island-base);
  background-image: var(--island-texture-a), var(--island-texture-b), var(--island-gradient);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

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

.footer-brand p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  max-width: 18rem;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e2e8f0;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-col a {
  font-size: 0.9375rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  text-align: center;
}

/* Page hero — diamond → lotion (inner pages) */
.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(180deg, #b6d9ff 0%, #c8e2ff 28%, #dceeff 55%, #f2f6fa 82%, #fafafa 100%);
  border-bottom: 1px solid var(--z-border);
  overflow: hidden;
}

main > .page-hero:first-child {
  margin-top: calc(-1 * var(--header-stack-h));
  padding-top: calc(var(--header-stack-h) + clamp(2.5rem, 5vw, 4rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 65% at 15% -15%, rgba(255, 255, 255, 0.75), transparent 55%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.page-hero .lead {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 36rem;
}

/* Tables — responsive */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

table.compare {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.compare th,
.compare td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.compare th {
  background: #dceeff;
  font-weight: 600;
  color: var(--color-dark);
}

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

/* FAQ */
.faq {
  max-width: 40rem;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  background: none;
  border: none;
  color: var(--color-dark);
  cursor: pointer;
}

.faq-item button::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--color-primary);
  transition: transform 0.2s;
}

.faq-item.is-open button::after {
  content: "−";
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s var(--ease);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel > div {
  overflow: hidden;
}

.faq-panel p {
  margin: 0 0 1.125rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Forms */
.form {
  max-width: 28rem;
}

.form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-dark);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  background: var(--color-surface);
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* Docs layout */
.docs-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .docs-layout {
    grid-template-columns: 14rem 1fr;
    align-items: start;
  }
}

.docs-nav {
  position: sticky;
  top: calc(var(--header-stack-h) + 1rem);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: var(--island-border);
  background-color: var(--island-base);
  background-image: var(--island-texture-a), var(--island-texture-b), var(--island-gradient);
  box-shadow: var(--island-shadow-soft);
}

.docs-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-nav a {
  display: block;
  padding: 0.4rem 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
}

.docs-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.doc-article h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

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

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

.doc-article code,
.card code {
  font-family: ui-monospace, monospace;
  font-size: 0.84em;
  background: var(--color-primary-soft);
  color: var(--color-dark);
  padding: 0.12em 0.35em;
  border-radius: 4px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 6px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

/* Sticky mobile CTA — island bar */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background-color: var(--island-base);
  background-image: var(--island-texture-a), var(--island-texture-b), var(--island-gradient);
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
}

@media (min-width: 900px) {
  .sticky-cta {
    display: none;
  }
}

.sticky-cta .btn {
  width: 100%;
  max-width: 24rem;
}

.sticky-cta .btn--primary {
  background: #fff;
  color: var(--color-dark);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.sticky-cta .btn--primary:hover {
  background: #f4f4f6;
  color: #0d0e12;
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

/* Alternating section wash — Zynex linen */
.bg-surface {
  background: var(--z-linen);
}

/* Homepage: hero-style soft mesh on lavender + linen (“pink”) sections */
.page-home .trust-bar,
.page-home .section.bg-surface {
  position: relative;
  overflow: hidden;
}

.page-home .section.bg-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Trust bar: solid dark strip — no pastel mesh */
.page-home .trust-bar::before {
  display: none;
}

/* Linen sections — blush base + rotated mesh for variety */
.page-home .section.bg-surface::before {
  background:
    radial-gradient(circle at 12% 30%, rgba(199, 210, 254, 0.38), transparent 48%),
    radial-gradient(circle at 88% 65%, rgba(252, 231, 243, 0.52), transparent 52%),
    radial-gradient(circle at 50% -5%, rgba(240, 223, 255, 0.45), transparent 42%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.5) 0%, rgba(252, 236, 236, 0.25) 55%, transparent 100%);
}

.page-home .trust-bar > *,
.page-home .section.bg-surface > * {
  position: relative;
  z-index: 1;
}

/* Full demo page playground */
.demo-page__layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .demo-page__layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.demo-page__frame {
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-height: 280px;
}

.demo-page__browser-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background-color: var(--island-base);
  background-image: var(--island-texture-a), var(--island-texture-b), var(--island-gradient);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
}

.demo-page__canvas {
  padding: 1rem;
  min-height: 220px;
  background: linear-gradient(180deg, #f4f6fc 0%, #fff 100%);
  position: relative;
}

.demo-page__block--hero {
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: var(--gradient-hero);
  color: #fff;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}

.demo-page__block--hero:hover {
  transform: translateY(-1px);
}

.demo-page__block--card {
  border-radius: var(--radius-md);
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.demo-page__block--cta {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

.demo-page__frame [data-select].is-selected {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.demo-page__code-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-dark);
  padding: 1rem;
  min-height: 200px;
}

.demo-page__code {
  margin: 0;
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Coming soon (temporary root landing) */
.page-coming-soon {
  margin: 0;
  min-height: 100dvh;
}

.coming-soon__skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: #fff;
  color: var(--color-dark);
  z-index: 200;
}

.coming-soon__skip:focus {
  left: 0.75rem;
  top: 0.75rem;
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.coming-soon {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  overflow: hidden;
}

.coming-soon__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.coming-soon__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
}

.coming-soon__orb--a {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  background: #b1b2f8;
  top: -8%;
  right: -5%;
}

.coming-soon__orb--b {
  width: min(380px, 65vw);
  height: min(380px, 65vw);
  background: #f6a4cc;
  bottom: 5%;
  left: -10%;
}

.coming-soon__orb--c {
  width: min(480px, 80vw);
  height: min(480px, 80vw);
  background: #91afff;
  top: 40%;
  left: 35%;
  opacity: 0.14;
}

.coming-soon__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.coming-soon__card {
  width: 100%;
  padding: clamp(2rem, 6vw, 2.75rem) clamp(1.5rem, 5vw, 2.25rem);
  border-radius: var(--radius-lg);
  border: var(--island-border);
  background-color: var(--island-base);
  background-image: var(--island-texture-a), var(--island-texture-b), var(--island-gradient);
  box-shadow: var(--island-shadow-elevated);
  text-align: center;
}

.coming-soon__logo {
  display: block;
  margin: 0 auto 1.25rem;
  height: clamp(1.5rem, 5vw, 1.85rem);
  width: auto;
  max-width: min(85%, 11rem);
  filter: brightness(0) invert(1);
}

.coming-soon__eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.coming-soon__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 4vw + 0.5rem, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.coming-soon__lead {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.coming-soon__legal {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.75;
}
