/* =========================================================
   MetaWorks — Main stylesheet
   Layout + components. Tokens live in variables.css
   ========================================================= */

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--body);
}

/* ---------- Noise overlay (carried over from skeleton) ---------- */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* =========================================================
   GRID MODEL
   .row  -> full viewport width, carries horizontal lines
   .safe -> centered 1400px box, carries vertical lines
   Horizontal lines bleed past the verticals into the side
   margins, so the lines cross.
   ========================================================= */
.row { width: 100%; border-bottom: 1px solid var(--color-line); }
.safe {
  max-width: var(--content-max);
  margin: 0 auto;
  border-left: 1px solid var(--color-line);
  border-right: 1px solid var(--color-line);
}
.section-pad { padding: var(--space-24) var(--gutter); }

/* Column grids inside the safe zone */
.cols { display: grid; }
.cols--2 { grid-template-columns: 1fr 2fr; }
.cols--3 { grid-template-columns: repeat(3, 1fr); }
.cols--4 { grid-template-columns: repeat(4, 1fr); }
.cell { border-right: 1px solid var(--color-line); }
.cell:last-child { border-right: none; }

/* =========================================================
   Typography helpers
   ========================================================= */
.h1, .h2, .h4, .h5 {
  font-family: var(--font-heading);
  letter-spacing: var(--heading-tracking);
  line-height: 1.2;
  color: var(--color-text);
}
.h1 { font-size: clamp(40px, 6vw, var(--h1)); }
.h2 { font-size: clamp(30px, 4vw, var(--h2)); }
.h4 { font-size: var(--h4); }
.h5 { font-size: var(--h5); line-height: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--label-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.eyebrow::before { content: "///"; color: var(--color-primary); }

.muted { color: var(--color-muted); }
.lead { font-size: var(--body-md); color: var(--color-muted); line-height: 1.4; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--label-sm);
  letter-spacing: 0.02em;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
/* Cyan pill — hero + CTA section */
.btn--primary {
  border-radius: 24px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
  box-shadow: 2px 2px 8px 0 rgba(55, 55, 55, 0.15),
              1px 1px 9px 0 rgba(255, 255, 255, 0.10) inset;
}
.btn--primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Cream pill — navbar CTA */
.btn--navbar {
  border-radius: 24px;
  background: var(--color-text); /* White/100 #E7EADD */
  color: var(--color-on-primary);
  border-color: var(--color-text);
  box-shadow: 2px 2px 8px 0 rgba(55, 55, 55, 0.15),
              1px 1px 9px 0 rgba(255, 255, 255, 0.10) inset;
}
.btn--navbar:hover { filter: brightness(0.96); transform: translateY(-1px); }

.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-primary);
}
.btn--ghost:hover { background-color: rgba(0, 255, 225, 0.08); }
.btn--block { width: 100%; }

/* Hover roll: label slides up and out, an identical copy rises from below.
   The label fills the button height so its twin sits a full button-height
   below (clipped) until hover. */
.btn { overflow: hidden; }
.btn__label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: transform 0.32s var(--ease);
}
.btn__label::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn:hover .btn__label,
.btn:focus-visible .btn__label { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) {
  .btn__label { transition: none; }
  .btn:hover .btn__label,
  .btn:focus-visible .btn__label { transform: none; }
}

/* =========================================================
   Navbar
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--nav-h);
  border-bottom: 1px solid var(--color-line);
  background-color: rgba(21, 21, 21, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.navbar__inner {
  max-width: var(--content-max);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  border-left: 1px solid var(--color-line);
  border-right: 1px solid var(--color-line);
}
/* Brand lockup: monogram mark + Manrope wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
}
.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
  background-color: currentColor;
  -webkit-mask: url("../assets/brand/logo-Nopadding.svg") center / contain no-repeat;
          mask: url("../assets/brand/logo-Nopadding.svg") center / contain no-repeat;
}
.brand__name {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.05em; /* = -6px at the 120px design size; scales to any size */
}
.brand:hover .brand__mark { background-color: var(--color-primary); }
.nav-links {
  display: flex;
  gap: var(--space-8);
  font-family: var(--font-mono);
  font-size: var(--label-sm);
}
.nav-links a { color: var(--color-muted); transition: color var(--transition); }
.nav-links a:hover { color: var(--color-text); }

/* In-menu CTA + blur backdrop are mobile-only (shown via the .is-open menu) */
.nav-cta { display: none; }
.nav-backdrop { display: none; }
/* Lock page scroll while the mobile menu is open */
body.nav-open { overflow: hidden; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  width: 18px; height: 1.5px;
  background-color: var(--color-text);
  transition: var(--transition);
}

/* Desktop: 3-column grid so nav-links stay centered in the bar
   regardless of the brand / CTA-button widths */
@media (min-width: 1025px) {
  .navbar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
  }
  .navbar__inner > .brand { justify-self: start; }
  .navbar__inner > .nav-links { justify-self: center; }
  .navbar__inner > .btn--navbar { justify-self: end; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { text-align: center; position: relative; overflow: hidden; }

/* ---------------------------------------------------------------
   Hero graphic styles — switchable A/B system.
   Set the variant on the <section class="row hero" data-hero="…">
   element in index.html. The cyan headline bloom is an independent
   toggle via data-glow="on|off".

     data-hero  : none | dots | grid | grid-pulse | glow | rings | cluster
     data-glow  : on | off

   The pattern lives on ::before, the bloom on ::after, so they
   layer independently and any combination is valid.
   --------------------------------------------------------------- */

/* Soft cyan bloom behind the headline (independent toggle) */
.hero[data-glow="on"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(720px, 82%);
  height: 380px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(0, 255, 225, 0.12), transparent 72%);
  z-index: 0;
  pointer-events: none;
}

/* ---- Variant: dots — drifting dot-matrix (animated) ---- */
.hero[data-hero="dots"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(var(--color-text) 1px, transparent 1.5px);
  background-size: 24px 24px;
  background-position: center;
  opacity: 0.14;
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 42%, transparent 0%, transparent 34%, #000 92%);
          mask-image: radial-gradient(ellipse 65% 60% at 50% 42%, transparent 0%, transparent 34%, #000 92%);
  animation: hero-dots 9s linear infinite;
  pointer-events: none;
}
@keyframes hero-dots {
  from { background-position: center 0; }
  to   { background-position: center 24px; }
}

/* ---- Variant: dots-pulse — dot-matrix that breathes in opacity (animated) ---- */
.hero[data-hero="dots-pulse"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(var(--color-text) 1px, transparent 1.5px);
  background-size: 24px 24px;
  background-position: center;
  opacity: 0.14;
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 42%, transparent 0%, transparent 34%, #000 92%);
          mask-image: radial-gradient(ellipse 65% 60% at 50% 42%, transparent 0%, transparent 34%, #000 92%);
  animation: hero-dots-pulse 6s var(--ease) infinite;
  pointer-events: none;
}
@keyframes hero-dots-pulse {
  0%, 100% { opacity: 0.07; }
  50%      { opacity: 0.18; }
}

/* ---- Variant: grid — static crosshatch matching the layout lines ---- */
.hero[data-hero="grid"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--color-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
  opacity: 0.7;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 42%, transparent 0%, transparent 30%, #000 90%);
          mask-image: radial-gradient(ellipse 70% 65% at 50% 42%, transparent 0%, transparent 30%, #000 90%);
  pointer-events: none;
}

/* ---- Variant: grid-pulse — cyan crosshatch that breathes (animated) ---- */
.hero[data-hero="grid-pulse"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--color-primary) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-primary) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
  opacity: 0.08;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 42%, transparent 0%, transparent 30%, #000 90%);
          mask-image: radial-gradient(ellipse 70% 65% at 50% 42%, transparent 0%, transparent 30%, #000 90%);
  animation: hero-grid-pulse 6s var(--ease) infinite;
  pointer-events: none;
}
@keyframes hero-grid-pulse {
  0%, 100% { opacity: 0.05; }
  50%      { opacity: 0.16; }
}

/* ---- Variant: glow — slow drifting cyan aurora (animated) ---- */
.hero[data-hero="glow"]::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  background:
    radial-gradient(40% 50% at 30% 40%, rgba(0, 255, 225, 0.18), transparent 70%),
    radial-gradient(45% 55% at 70% 55%, rgba(0, 255, 225, 0.10), transparent 70%);
  filter: blur(20px);
  animation: hero-glow 16s var(--ease) infinite alternate;
  pointer-events: none;
}
@keyframes hero-glow {
  from { transform: translate(-4%, -2%) scale(1); }
  to   { transform: translate(4%, 2%) scale(1.1); }
}

/* ---- Variant: rings — concentric ripples expanding outward (animated) ---- */
.hero[data-hero="rings"]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 900px;
  height: 900px;
  z-index: 0;
  background: repeating-radial-gradient(circle at center,
    rgba(0, 255, 225, 0.12) 0, rgba(0, 255, 225, 0.12) 1px,
    transparent 1px, transparent 64px);
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 62%);
          mask-image: radial-gradient(circle at center, #000 0%, transparent 62%);
  transform: translate(-50%, -50%);
  animation: hero-rings 7s linear infinite;
  pointer-events: none;
}
@keyframes hero-rings {
  from { transform: translate(-50%, -50%) scale(0.8); opacity: 0.9; }
  to   { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

/* ---- Variant: cluster — dot clusters anchored to opposite corners (static) ---- */
.hero[data-hero="cluster"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(var(--color-text) 1px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: 0.16;
  -webkit-mask-image:
    radial-gradient(ellipse 42% 62% at 0% 100%, #000, transparent 70%),
    radial-gradient(ellipse 42% 62% at 100% 0%, #000, transparent 70%);
          mask-image:
    radial-gradient(ellipse 42% 62% at 0% 100%, #000, transparent 70%),
    radial-gradient(ellipse 42% 62% at 100% 0%, #000, transparent 70%);
  pointer-events: none;
}

/* ---- Variant: cluster-pulse — corner dot clusters that breathe (animated) ---- */
.hero[data-hero="cluster-pulse"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(var(--color-text) 1px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: 0.16;
  -webkit-mask-image:
    radial-gradient(ellipse 42% 62% at 0% 100%, #000, transparent 70%),
    radial-gradient(ellipse 42% 62% at 100% 0%, #000, transparent 70%);
          mask-image:
    radial-gradient(ellipse 42% 62% at 0% 100%, #000, transparent 70%),
    radial-gradient(ellipse 42% 62% at 100% 0%, #000, transparent 70%);
  animation: hero-cluster-pulse 6s var(--ease) infinite;
  pointer-events: none;
}
@keyframes hero-cluster-pulse {
  0%, 100% { opacity: 0.08; }
  50%      { opacity: 0.22; }
}

/* Respect reduced-motion: freeze every animated variant */
@media (prefers-reduced-motion: reduce) {
  .hero[data-hero="dots"]::before,
  .hero[data-hero="dots-pulse"]::before,
  .hero[data-hero="grid-pulse"]::before,
  .hero[data-hero="glow"]::before,
  .hero[data-hero="rings"]::before,
  .hero[data-hero="cluster-pulse"]::before { animation: none; }
}

.hero .safe {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-28) var(--gutter);
}
.hero__title { max-width: 20ch; line-height: 85%;}
.hero__sub { max-width: 52ch; }

/* =========================================================
   Logos strip
   ========================================================= */
.logos .safe {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-8) var(--gutter);
  overflow: hidden;
}
.logos__label {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--label-sm);
  color: var(--color-muted);
  white-space: nowrap;
}
.logos__viewport {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  /* Fade out toward the left as logos loop offscreen */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 100%);
}
.logos__track {
  display: flex;
  align-items: center;
  gap: var(--space-24);
  width: max-content;
  opacity: 0.6;
  animation: logos-scroll 28s linear infinite;
}
.logos__viewport:hover .logos__track { animation-play-state: paused; }
.logos__track span {
  font-family: var(--font-heading);
  font-size: var(--h5);
  color: var(--color-muted);
  white-space: nowrap;
}
.logos__track img {
  height: 24px;
  width: auto;
  flex: none;
  display: block;
  object-fit: contain;
}

/* Two identical sets sit end-to-end; shifting by -50% loops seamlessly. */
@keyframes logos-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logos__track { animation: none; }
}

/* =========================================================
   Section header (eyebrow + title + lead)
   ========================================================= */
/* Keep anchored section headings clear of the sticky navbar */
section[id] { scroll-margin-top: calc(var(--nav-h) + var(--space-4)); }

.section-head { padding: var(--section-pad) var(--gutter) var(--space-12); }
.section-head__title { margin: var(--space-4) 0 var(--space-3); max-width: 62ch; }
.section-head__lead { max-width: 46ch; }

/* Bottom breathing room for content-heavy sections (top comes from the header) */
.benefits .safe,
.usecases .safe,
.process .safe,
.plans .safe,
.faq .safe { padding-bottom: var(--section-pad); }

/* =========================================================
   Benefits — 3 column
   ========================================================= */
.benefits .section-head,
.process .section-head,
.plans .section-head { text-align: center; }
.benefits .section-head .eyebrow,
.process .section-head .eyebrow,
.plans .section-head .eyebrow { justify-content: center; }
.benefits .section-head__title,
.benefits .section-head__lead,
.process .section-head__title,
.process .section-head__lead,
.plans .section-head__title,
.plans .section-head__lead { margin-left: auto; margin-right: auto; }

.benefits .cols {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.benefit {
  padding: var(--space-12) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.benefit__icon {
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.benefit__icon img { width: 48px; height: 48px; display: block; }

/* =========================================================
   Use Cases — tab list | text | visual  (Figma Component 11)
   ========================================================= */
.usecases__body {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  display: grid;
  grid-template-columns: 320px minmax(360px, 1fr) minmax(420px, 1.5fr);
}

.usecases .section-head__title {max-width: 20ch;}
.usecases .section-head__lead {max-width: 80ch;}

/* Left: tabs */
.uc-tabs { border-right: 1px solid var(--color-line); }
.uc-tab {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  text-align: left;
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--label-sm);
  text-transform: uppercase;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-line);
  opacity: 0.5;
  transition: var(--transition);
}
.uc-tab__dot {
  width: 6px; height: 6px;
  border-radius: 10px;
  background-color: var(--color-text);
  flex: none;
}
.uc-tab:hover { opacity: 0.8; }
.uc-tab[aria-selected="true"] {
  opacity: 1;
  background-color: var(--color-surface-2);
}
.uc-tab[aria-selected="true"] .uc-tab__dot { background-color: var(--color-primary); }

/* Middle: text */
.uc-text {
  border-right: 1px solid var(--color-line);
  padding: var(--space-6) var(--space-8);
  display: grid;
}
.uc-text .uc-panel { grid-area: 1 / 1; }
.uc-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition);
}
.uc-panel[data-active="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.uc-panel__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--label-sm);
  text-transform: uppercase;
  color: var(--color-primary);
}

/* Right: visual mock */
.uc-visual {
  background-color: var(--color-surface-3);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: var(--space-12);
  min-height: 360px;
  overflow: hidden;
}
.uc-mock {
  grid-area: 1 / 1;
  width: 100%;
  max-width: 506px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition);
}
.uc-mock[data-active="true"] { opacity: 1; visibility: visible; }
.uc-mock__search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background-color: var(--color-bg);
}
.uc-mock__search::before {
  content: "";
  width: 16px; height: 16px;
  margin-right: var(--space-3);
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23969696' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}
.uc-mock__q {
  flex: 1;
  font-family: var(--font-mono);
  font-size: var(--label-sm);
  color: var(--color-primary);
}
.uc-mock__enter { color: var(--color-muted); }
.uc-mock__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--label-sm);
  color: var(--color-muted);
}
.uc-mock__row--active {
  color: var(--color-primary);
  border-color: rgba(0, 255, 225, 0.4);
  background-color: rgba(0, 255, 225, 0.06);
  animation: uc-glow 2.4s var(--ease) infinite;
}
.uc-mock__status {
  color: var(--color-primary);
  animation: uc-dot 1.1s steps(1) infinite;
}

/* Blinking caret in the search query */
.uc-mock__q::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background-color: var(--color-primary);
  animation: uc-caret 1s steps(1) infinite;
}

/* Staggered entrance — replays each time a mock becomes active */
.uc-mock[data-active="true"] .uc-mock__search,
.uc-mock[data-active="true"] .uc-mock__row {
  animation: uc-row-in 0.45s var(--ease) both;
}
.uc-mock[data-active="true"] .uc-mock__row:nth-child(2) { animation-delay: 0.07s; }
.uc-mock[data-active="true"] .uc-mock__row:nth-child(3) { animation-delay: 0.14s; }
.uc-mock[data-active="true"] .uc-mock__row:nth-child(4) { animation-delay: 0.21s; }
.uc-mock[data-active="true"] .uc-mock__row:nth-child(5) { animation-delay: 0.28s; }
/* keep the active row's ambient glow after it slides in */
.uc-mock[data-active="true"] .uc-mock__row--active {
  animation: uc-row-in 0.45s var(--ease) both, uc-glow 2.4s var(--ease) 0.45s infinite;
}

@keyframes uc-row-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes uc-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 225, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(0, 255, 225, 0.10); }
}
@keyframes uc-dot { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.25; } }
@keyframes uc-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .uc-mock__row--active,
  .uc-mock__status,
  .uc-mock__q::after,
  .uc-mock[data-active="true"] .uc-mock__search,
  .uc-mock[data-active="true"] .uc-mock__row,
  .uc-mock[data-active="true"] .uc-mock__row--active { animation: none; }
}

/* ---------------------------------------------------------------
   Use-case visual: Sales — vertical lead-qualification flow
   --------------------------------------------------------------- */
.uc-mock--flow { align-items: center; gap: 0; }
.uc-flow { display: flex; flex-direction: column; align-items: center; }
.uc-flow__node {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 18px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background-color: var(--color-bg);
  font-family: var(--font-mono);
  font-size: var(--label-sm);
  color: var(--color-text);
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.uc-flow__node svg { width: 16px; height: 16px; color: inherit; opacity: 0.65; flex: none; }
.uc-flow__arrow {
  width: 1px;
  height: 22px;
  background-color: var(--color-line);
  position: relative;
}
.uc-flow__arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 1px) rotate(45deg);
  width: 5px;
  height: 5px;
  border-right: 1px solid var(--color-muted);
  border-bottom: 1px solid var(--color-muted);
}
/* Sequential highlight cascading down the flow */
.uc-mock--flow[data-active="true"] .uc-flow__node {
  animation: uc-flow-pulse 4s var(--ease) infinite;
}
.uc-mock--flow[data-active="true"] .uc-flow__node:nth-of-type(1) { animation-delay: 0s; }
.uc-mock--flow[data-active="true"] .uc-flow__node:nth-of-type(2) { animation-delay: 0.5s; }
.uc-mock--flow[data-active="true"] .uc-flow__node:nth-of-type(3) { animation-delay: 1s; }
.uc-mock--flow[data-active="true"] .uc-flow__node:nth-of-type(4) { animation-delay: 1.5s; }
@keyframes uc-flow-pulse {
  0%, 100% { border-color: var(--color-line); color: var(--color-text); box-shadow: none; }
  10%      { border-color: rgba(0, 255, 225, 0.5); color: var(--color-primary); box-shadow: 0 0 0 3px rgba(0, 255, 225, 0.08); }
  22%      { border-color: var(--color-line); color: var(--color-text); box-shadow: none; }
}

/* ---------------------------------------------------------------
   Use-case visual: Workflows — integrations feeding an AI engine
   --------------------------------------------------------------- */
.uc-mock--hub { align-items: center; gap: 0; max-width: 460px; }
.uc-hub { width: 100%; display: flex; flex-direction: column; align-items: center; }
.uc-hub__logos {
  width: 360px;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
}
.uc-hub__logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background-color: var(--color-bg);
}
.uc-hub__logo img { width: 22px; height: 22px; object-fit: contain; display: block; }
.uc-mock--hub[data-active="true"] .uc-hub__logo { animation: uc-hub-logo 5s var(--ease) infinite; }
.uc-mock--hub[data-active="true"] .uc-hub__logo:nth-child(1) { animation-delay: 0s; }
.uc-mock--hub[data-active="true"] .uc-hub__logo:nth-child(2) { animation-delay: 0.4s; }
.uc-mock--hub[data-active="true"] .uc-hub__logo:nth-child(3) { animation-delay: 0.8s; }
.uc-mock--hub[data-active="true"] .uc-hub__logo:nth-child(4) { animation-delay: 1.2s; }
.uc-mock--hub[data-active="true"] .uc-hub__logo:nth-child(5) { animation-delay: 1.6s; }
@keyframes uc-hub-logo {
  0%, 100% { border-color: var(--color-line); }
  50%      { border-color: rgba(0, 255, 225, 0.45); }
}
/* Connector: one line from each logo converging into the engine pill */
.uc-hub__connector {
  width: 360px;
  max-width: 100%;
  height: 40px;
  display: block;
}
.uc-hub__connector-flow path {
  stroke-dasharray: 14 150;
  stroke-dashoffset: 164;
  opacity: 0.9;
}
.uc-mock--hub[data-active="true"] .uc-hub__connector-flow path {
  animation: uc-hub-flow 2.4s linear infinite;
}
.uc-mock--hub[data-active="true"] .uc-hub__connector-flow path:nth-child(2) { animation-delay: 0.3s; }
.uc-mock--hub[data-active="true"] .uc-hub__connector-flow path:nth-child(3) { animation-delay: 0.6s; }
.uc-mock--hub[data-active="true"] .uc-hub__connector-flow path:nth-child(4) { animation-delay: 0.9s; }
.uc-mock--hub[data-active="true"] .uc-hub__connector-flow path:nth-child(5) { animation-delay: 1.2s; }
@keyframes uc-hub-flow {
  from { stroke-dashoffset: 164; }
  to   { stroke-dashoffset: 0; }
}
.uc-hub__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background-color: var(--color-surface-1);
  font-family: var(--font-mono);
  font-size: var(--label-sm);
  color: var(--color-text);
}
.uc-hub__spark { color: #ffcf6b; }
.uc-mock--hub[data-active="true"] .uc-hub__engine { animation: uc-glow 2.6s var(--ease) infinite; }
.uc-hub__radar {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background-color: var(--color-bg);
}
.uc-hub__core {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-color: var(--color-surface-1);
  border: 1px solid var(--color-line);
  font-family: var(--font-mono);
  font-size: var(--label-sm);
  color: var(--color-text);
  z-index: 3;
}
.uc-hub__ring {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 225, 0.25);
  transform: translate(-50%, 50%);
  animation: uc-radar 3s linear infinite;
}
.uc-hub__ring:nth-child(2) { animation-delay: 1s; }
.uc-hub__ring:nth-child(3) { animation-delay: 2s; }
@keyframes uc-radar {
  from { width: 40px; height: 40px; opacity: 0.55; }
  to   { width: 280px; height: 280px; opacity: 0; }
}
.uc-hub__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background-color: var(--color-surface-1);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-muted);
  z-index: 2;
}
.uc-hub__chip--left  { left: 6%;  top: 48%; animation: uc-float 4s var(--ease) infinite; }
.uc-hub__chip--right { right: 6%; top: 28%; animation: uc-float 4s var(--ease) 0.9s infinite; }
@keyframes uc-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ---------------------------------------------------------------
   Use-case visual: Reports — scrolling field of capabilities
   --------------------------------------------------------------- */
.uc-mock--grid { max-width: 100%; gap: var(--space-4); }
.uc-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.uc-grid__row { overflow: hidden; }
.uc-grid__track {
  display: flex;
  gap: var(--space-3);
  width: max-content;
  animation: uc-grid-scroll 28s linear infinite;
}
.uc-grid__row--rev .uc-grid__track { animation-direction: reverse; }
@keyframes uc-grid-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.uc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 9px 16px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background-color: var(--color-bg);
  font-family: var(--font-mono);
  font-size: var(--label-sm);
  color: var(--color-muted);
}
.uc-chip__ic {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

/* Hidden inline icon sprite */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .uc-mock--flow[data-active="true"] .uc-flow__node,
  .uc-mock--hub[data-active="true"] .uc-hub__logo,
  .uc-mock--hub[data-active="true"] .uc-hub__engine,
  .uc-mock--hub[data-active="true"] .uc-hub__connector-flow path,
  .uc-hub__ring,
  .uc-hub__chip,
  .uc-grid__track { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .uc-hub__connector-flow path { stroke-dashoffset: 0; stroke-dasharray: none; opacity: 0.5; }
}

/* =========================================================
   Process — numbered steps
   ========================================================= */
.process .cols {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.process-step {
  padding: var(--space-12) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.process-step__num {
  font-family: var(--font-mono);
  font-size: var(--label-sm);
  color: var(--color-primary);
}

/* =========================================================
   Plans — pricing cards
   ========================================================= */
.plans__grid {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.plan {
  border-right: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
}
.plan:last-child { border-right: none; }
.plan--popular { background-color: var(--color-surface-2); }

/* Name region */
.plan__name {
  padding: var(--space-6) var(--space-4);
  font-size: var(--body-sm);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-line);
}

/* Price region */
.plan__price-block {
  padding: var(--space-6) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border-bottom: 1px solid var(--color-line);
  position: relative;
  overflow: hidden;
}
.plan__price-block--image {
  background-image:
    linear-gradient(to right, var(--color-surface-2) 0%, rgba(23, 23, 23, 0.55) 45%, rgba(23, 23, 23, 0.2) 100%),
    url("../assets/images/pricing-popular-bg.png");
  background-size: cover;
  background-position: center;
}
.plan__price {
  font-family: var(--font-heading);
  font-size: var(--h2);
  line-height: 1.2;
  letter-spacing: var(--heading-tracking);
  color: var(--color-text);
}
.plan__term { font-size: var(--body-sm); color: var(--color-muted); }

/* Button region — edge to edge */
.plan__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--body-sm);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-line);
  transition: var(--transition);
}
.plan__cta:hover { background-color: rgba(231, 234, 221, 0.06); }
.plan__cta--light {
  background-color: var(--color-text);
  color: var(--color-surface-1);
}
.plan__cta--light:hover { filter: brightness(0.96); background-color: var(--color-text); }

/* Features region */
.plan__features {
  padding: var(--space-6) var(--space-4) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.plan__features-label {
  font-family: var(--font-mono);
  font-size: var(--label-sm);
  color: var(--color-text);
  text-transform: uppercase;
}
.plan__features ul { display: flex; flex-direction: column; gap: var(--space-4); }
.plan__feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--body-sm);
  color: var(--color-text);
}
.plan__feature::before {
  content: "";
  flex: none;
  width: 4px; height: 4px;
  border-radius: 4px;
  background-color: var(--color-primary);
}

/* =========================================================
   FAQ — accordion
   ========================================================= */
.faq .safe { display: grid; grid-template-columns: 2fr 3fr; }
.faq__intro { padding: var(--section-pad) var(--space-12) var(--space-20) var(--gutter); }
.faq__list {
  /* border-left: 1px solid var(--color-line); */
  padding: var(--section-pad) var(--space-12) var(--space-20) var(--gutter); 
  display: flex;
  flex-direction: column;
}
.faq-item { border-bottom: 1px solid var(--color-line); }
/* .faq-item:first-child { border-top: 1px solid var(--color-line); } */
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  text-align: left;
  padding: var(--space-6) 0;
  font-family: var(--font-heading);
  font-size: var(--h5);
  color: var(--color-text);
}
.faq-item__icon {
  flex: none;
  width: 20px; height: 20px;
  position: relative;
  transition: transform var(--transition);
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.5px;
  background-color: var(--color-primary);
  transform: translate(-50%, -50%);
}
.faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[aria-expanded="true"] .faq-item__icon::after { opacity: 0; }
.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition);
}
.faq-item[aria-expanded="true"] .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a > div { overflow: hidden; }
.faq-item__a p {
  padding-bottom: var(--space-6);
  color: var(--color-muted);
  max-width: 60ch;
}

/* =========================================================
   CTA
   ========================================================= */
.cta .safe {
  background-color: var(--color-surface-3);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../assets/images/CTA-bg.png");
  background-size: cover;
  background-position: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-24) var(--gutter);
}
.cta__title { max-width: 20ch; }
.cta__sub { max-width: 52ch; }

/* =========================================================
   Footer
   ========================================================= */
.footer .safe { padding: var(--space-16) var(--gutter) var(--space-8); }
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
}
.footer__brand .brand { margin-bottom: var(--space-3); }
.footer__tagline { color: var(--color-muted); font-size: var(--body-sm); max-width: 28ch; }
.footer__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-3);
  color: var(--color-muted);
  font-size: var(--body-sm);
}
.footer__location-ic {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--color-primary);
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: var(--label-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}
.footer__col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col a { font-size: var(--body-sm); color: var(--color-text); transition: color var(--transition); }
.footer__col a:hover { color: var(--color-primary); }
.footer__bottom {
  border-top: 1px solid var(--color-line);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--body-sm);
  color: var(--color-muted);
}
.back-to-top {
  font-family: var(--font-mono);
  font-size: var(--label-sm);
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--transition);
}
.back-to-top:hover { color: var(--color-primary); }

/* =========================================================
   Scroll & entrance animations  (desktop only, motion-safe)
   Gated by html.js-reveal (set from <head> when motion is allowed)
   and a min-width media query so mobile/tablet are untouched.
   ========================================================= */
@media (min-width: 1025px) {

  /* ---- Hero: staggered entrance on page load ---- */
  html.js-reveal .hero__title,
  html.js-reveal .hero__sub,
  html.js-reveal .hero .btn {
    opacity: 0;
    transform: translateY(18px);
    animation: reveal-enter 0.7s var(--ease) forwards;
  }
  html.js-reveal .hero__title { animation-delay: 0.10s; }
  html.js-reveal .hero__sub   { animation-delay: 0.25s; }
  html.js-reveal .hero .btn   { animation-delay: 0.40s; }

  /* ---- Reveal on scroll: containers whose children fade-rise ---- */
  html.js-reveal .section-head > *,
  html.js-reveal .benefits .cols > *,
  html.js-reveal .process .cols > *,
  html.js-reveal .plans__grid > *,
  html.js-reveal .usecases__body,
  html.js-reveal .cta .safe > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  html.js-reveal .section-head.reveal-in > *,
  html.js-reveal .benefits .cols.reveal-in > *,
  html.js-reveal .process .cols.reveal-in > *,
  html.js-reveal .plans__grid.reveal-in > *,
  html.js-reveal .usecases__body.reveal-in,
  html.js-reveal .cta .safe.reveal-in > * {
    opacity: 1;
    transform: none;
  }

  /* Staggered cascade for the children of any revealed container */
  html.js-reveal .reveal-in > *:nth-child(2) { transition-delay: 0.07s; }
  html.js-reveal .reveal-in > *:nth-child(3) { transition-delay: 0.14s; }
  html.js-reveal .reveal-in > *:nth-child(4) { transition-delay: 0.21s; }

  /* ---- Signature: crossing-grid lines drawing in ---- */
  /* Hide the static framing on the grid containers + their items, then
     redraw each line with a scale transition keyed off .reveal-in. */
  html.js-reveal .benefits .cols,
  html.js-reveal .process .cols,
  html.js-reveal .plans__grid {
    position: relative;
    border-color: transparent;
  }
  html.js-reveal .benefits .cols::before,
  html.js-reveal .benefits .cols::after,
  html.js-reveal .process .cols::before,
  html.js-reveal .process .cols::after,
  html.js-reveal .plans__grid::before,
  html.js-reveal .plans__grid::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-line);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.8s var(--ease);
  }
  html.js-reveal .benefits .cols::before,
  html.js-reveal .process .cols::before,
  html.js-reveal .plans__grid::before { top: 0; }
  html.js-reveal .benefits .cols::after,
  html.js-reveal .process .cols::after,
  html.js-reveal .plans__grid::after { bottom: 0; }
  html.js-reveal .benefits .cols.reveal-in::before,
  html.js-reveal .benefits .cols.reveal-in::after,
  html.js-reveal .process .cols.reveal-in::before,
  html.js-reveal .process .cols.reveal-in::after,
  html.js-reveal .plans__grid.reveal-in::before,
  html.js-reveal .plans__grid.reveal-in::after {
    transform: scaleX(1);
  }

  /* Vertical column dividers draw downward */
  html.js-reveal .benefits .benefit,
  html.js-reveal .process .process-step,
  html.js-reveal .plans__grid .plan {
    position: relative;
  }
  html.js-reveal .benefits .benefit:not(:last-child),
  html.js-reveal .process .process-step:not(:last-child),
  html.js-reveal .plans__grid .plan:not(:last-child) {
    border-right-color: transparent;
  }
  html.js-reveal .benefits .benefit:not(:last-child)::after,
  html.js-reveal .process .process-step:not(:last-child)::after,
  html.js-reveal .plans__grid .plan:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -1px;
    width: 1px;
    background: var(--color-line);
    transform: scaleY(0);
    transform-origin: center top;
    transition: transform 0.8s var(--ease) 0.15s;
  }
  html.js-reveal .benefits .cols.reveal-in .benefit::after,
  html.js-reveal .process .cols.reveal-in .process-step::after,
  html.js-reveal .plans__grid.reveal-in .plan::after {
    transform: scaleY(1);
  }
}

@keyframes reveal-enter {
  to { opacity: 1; transform: none; }
}

/* Belt-and-suspenders: never animate for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .hero__title,
  html.js-reveal .hero__sub,
  html.js-reveal .hero .btn,
  html.js-reveal .section-head > *,
  html.js-reveal .benefits .cols > *,
  html.js-reveal .process .cols > *,
  html.js-reveal .plans__grid > *,
  html.js-reveal .usecases__body,
  html.js-reveal .cta .safe > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
