/* ==========================================================================
   BYTARION — style.css
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset
   3.  Base
   4.  Layout
   5.  Components
       5.1 Header & navigation   5.2 Buttons   5.3 Cards   5.4 Tags
   6.  Sections
       6.1 Hero  6.2 Products  6.3 Services  6.4 Bento  6.5 Process
       6.6 Industries  6.7 Marquee  6.8 Stats  6.9 Testimonials
       6.10 Tiers  6.11 About  6.12 FAQ  6.13 CTA  6.14 Contact
       6.15 Footer  6.16 Privacy dialog
   7.  Utilities
   8.  Animations
   9.  Media queries (breakpoints: 640px, 960px, 1280px — mobile first)
   10. Reduced motion
   ========================================================================== */


/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Colour — dark theme (default) */
  --c-bg: #07080b;
  --c-bg-alt: #0a0c10;
  --c-surface: #0e1117;
  --c-surface-2: #141820;
  --c-text: #e8eaed;
  --c-text-muted: #8a8f98;
  --c-accent: #3cf2ff;
  --c-accent-2: #7b5cff;
  --c-accent-text: #3cf2ff;
  --c-btn-a: #3cf2ff;
  --c-btn-b: #8b70ff;
  --c-on-accent: #05070a;
  --c-live: #34e3a0;
  --c-beta: #ffb547;
  --c-border: rgba(255, 255, 255, 0.08);
  --c-border-strong: rgba(255, 255, 255, 0.16);
  --c-tint: rgba(60, 242, 255, 0.08);
  --c-tint-2: rgba(123, 92, 255, 0.12);
  --c-glow: rgba(60, 242, 255, 0.14);
  --c-glow-2: rgba(123, 92, 255, 0.16);
  --c-grid-line: rgba(255, 255, 255, 0.045);
  --c-header-bg: rgba(7, 8, 11, 0.72);
  --c-backdrop: rgba(3, 4, 6, 0.7);

  --grad-accent: linear-gradient(120deg, var(--c-accent), var(--c-accent-2));
  --grad-btn: linear-gradient(120deg, var(--c-btn-a), var(--c-btn-b));
  --grad-border: linear-gradient(135deg, rgba(60, 242, 255, 0.55), rgba(255, 255, 255, 0.06) 40%, rgba(123, 92, 255, 0.55));

  /* Shadows */
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 48px -32px rgba(0, 0, 0, 0.9);
  --shadow-hover: 0 30px 60px -30px rgba(60, 242, 255, 0.22), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  --shadow-dialog: 0 40px 120px -20px rgba(0, 0, 0, 0.8);

  /* Typography */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-lg: clamp(1.1875rem, 1.1rem + 0.45vw, 1.375rem);
  --fs-xl: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-3xl: clamp(2.5rem, 1.4rem + 4.8vw, 5rem);
  --fs-stat: clamp(2.5rem, 1.8rem + 3vw, 4rem);
  --lh-tight: 1.05;
  --lh-snug: 1.3;
  --lh-body: 1.65;
  --ls-tight: -0.035em;
  --ls-snug: -0.015em;
  --ls-wide: 0.14em;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-pad: clamp(4.5rem, 3rem + 6vw, 8rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --container: 82.5rem;
  --header-h: 4.25rem;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 150ms;
  --dur-2: 250ms;
  --dur-3: 500ms;
  --dur-4: 900ms;
}

/* Light theme tokens — applied by system preference unless the user forced dark… */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --c-bg: #f6f7f9;
    --c-bg-alt: #eef0f4;
    --c-surface: #ffffff;
    --c-surface-2: #f3f5f8;
    --c-text: #0b0d12;
    --c-text-muted: #525866;
    --c-accent: #00b2d1;
    --c-accent-2: #6a4cf0;
    --c-accent-text: #007a91;
    --c-btn-a: #007a91;
    --c-btn-b: #5b3fe0;
    --c-on-accent: #ffffff;
    --c-live: #0b7a54;
    --c-beta: #a35f00;
    --c-border: rgba(11, 13, 18, 0.1);
    --c-border-strong: rgba(11, 13, 18, 0.2);
    --c-tint: rgba(0, 122, 145, 0.07);
    --c-tint-2: rgba(91, 63, 224, 0.08);
    --c-glow: rgba(0, 178, 209, 0.14);
    --c-glow-2: rgba(106, 76, 240, 0.12);
    --c-grid-line: rgba(11, 13, 18, 0.055);
    --c-header-bg: rgba(246, 247, 249, 0.75);
    --c-backdrop: rgba(11, 13, 18, 0.45);
    --grad-border: linear-gradient(135deg, rgba(0, 178, 209, 0.6), rgba(11, 13, 18, 0.06) 40%, rgba(106, 76, 240, 0.6));
    --shadow-card: 0 1px 2px rgba(11, 13, 18, 0.04), 0 18px 40px -28px rgba(11, 13, 18, 0.25);
    --shadow-hover: 0 28px 56px -28px rgba(0, 122, 145, 0.3), 0 1px 2px rgba(11, 13, 18, 0.05);
    --shadow-dialog: 0 40px 120px -20px rgba(11, 13, 18, 0.35);
  }
}

/* …or applied manually via the header toggle (overrides the system preference). */
:root[data-theme="light"] {
  color-scheme: light;
  --c-bg: #f6f7f9;
  --c-bg-alt: #eef0f4;
  --c-surface: #ffffff;
  --c-surface-2: #f3f5f8;
  --c-text: #0b0d12;
  --c-text-muted: #525866;
  --c-accent: #00b2d1;
  --c-accent-2: #6a4cf0;
  --c-accent-text: #007a91;
  --c-btn-a: #007a91;
  --c-btn-b: #5b3fe0;
  --c-on-accent: #ffffff;
  --c-live: #0b7a54;
  --c-beta: #a35f00;
  --c-border: rgba(11, 13, 18, 0.1);
  --c-border-strong: rgba(11, 13, 18, 0.2);
  --c-tint: rgba(0, 122, 145, 0.07);
  --c-tint-2: rgba(91, 63, 224, 0.08);
  --c-glow: rgba(0, 178, 209, 0.14);
  --c-glow-2: rgba(106, 76, 240, 0.12);
  --c-grid-line: rgba(11, 13, 18, 0.055);
  --c-header-bg: rgba(246, 247, 249, 0.75);
  --c-backdrop: rgba(11, 13, 18, 0.45);
  --grad-border: linear-gradient(135deg, rgba(0, 178, 209, 0.6), rgba(11, 13, 18, 0.06) 40%, rgba(106, 76, 240, 0.6));
  --shadow-card: 0 1px 2px rgba(11, 13, 18, 0.04), 0 18px 40px -28px rgba(11, 13, 18, 0.25);
  --shadow-hover: 0 28px 56px -28px rgba(0, 122, 145, 0.3), 0 1px 2px rgba(11, 13, 18, 0.05);
  --shadow-dialog: 0 40px 120px -20px rgba(11, 13, 18, 0.35);
}


/* ==========================================================================
   2. RESET
   ========================================================================== */

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

* {
  margin: 0;
}

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

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  overflow-wrap: break-word;
}


/* ==========================================================================
   3. BASE
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Prevent horizontal scrollbars without breaking position: sticky */
@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

h1,
h2,
h3 {
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  font-weight: 650;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--c-accent);
  color: var(--c-on-accent);
}

:focus-visible {
  outline: 2px solid var(--c-accent-text);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

main:focus {
  outline: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: var(--r-xs);
  background: var(--c-surface-2);
}

/* Every <section> anchor clears the sticky header */
section[id] {
  scroll-margin-top: var(--header-h);
}


/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section--alt {
  background-color: var(--c-bg-alt);
}

.section--tight {
  padding-block: calc(var(--section-pad) * 0.7);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-4);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.eyebrow__num {
  color: var(--c-accent-text);
}

.section-title {
  font-size: var(--fs-2xl);
}

.section-lead {
  margin-top: var(--space-4);
  font-size: var(--fs-md);
  color: var(--c-text-muted);
}


/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* ---------- 5.1 Header & navigation ---------- */

.skip-link {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r-sm);
  background: var(--c-text);
  color: var(--c-bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur-2) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-2) ease, border-color var(--dur-2) ease;
}

/* Scrolled state (also the default when JS is unavailable) */
.site-header.is-scrolled,
.no-js .site-header,
.site-header.is-menu-open {
  background-color: var(--c-bg);
  border-bottom-color: var(--c-border);
}

/* Glassmorphism where supported; solid background above is the fallback */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled,
  .no-js .site-header {
    background-color: var(--c-header-bg);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
  }
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--c-text);
  margin-right: auto;
}

.brand__mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.brand__text {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.24em;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  transition: border-color var(--dur-1) ease, background-color var(--dur-1) ease;
}

.icon-btn:hover {
  border-color: var(--c-border-strong);
  background-color: var(--c-tint);
}

.icon-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Theme toggle: only meaningful with JS. Shows the icon for the theme you'd switch TO. */
.no-js .theme-toggle {
  display: none;
}

.theme-toggle__icon--moon {
  display: none;
}

:root[data-theme="light"] .theme-toggle__icon--sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle__icon--moon {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle__icon--sun {
    display: none;
  }

  :root:not([data-theme="dark"]) .theme-toggle__icon--moon {
    display: block;
  }
}

/* Hamburger */
.nav-toggle {
  display: none;
}

.js .nav-toggle {
  display: inline-grid;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.125rem;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1) ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  transform: translateY(-6px);
}

.nav-toggle__bars::after {
  transform: translateY(6px);
}

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

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

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

/* Mobile nav — without JS: a simple inline row of links */
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: var(--space-2) 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color var(--dur-1) ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--c-text);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}

.site-nav__link.is-active::after {
  transform: scaleX(1);
}

/* No-JS small screens: hide the text nav in the header bar to avoid crowding;
   the footer nav and section scrolling cover navigation. Shown from 640px. */
.no-js .site-nav {
  display: none;
}

/* Mobile nav — with JS: dropdown panel */
.js .site-nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: var(--space-4) var(--gutter) var(--space-6);
  background-color: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur-2) ease, transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
}

.js .site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur-2) ease, transform var(--dur-2) var(--ease-out), visibility 0s;
}

.js .site-nav__list {
  flex-direction: column;
  gap: 0;
}

.js .site-nav__link {
  display: block;
  padding: var(--space-3) 0;
  font-size: var(--fs-lg);
  border-bottom: 1px solid var(--c-border);
}

.js .site-nav__link::after {
  display: none;
}


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

.btn {
  --btn-pad-y: 0.875rem;
  --btn-pad-x: 1.375rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) ease, border-color var(--dur-2) ease, background-color var(--dur-2) ease;
}

.btn__icon {
  width: 1rem;
  height: 1rem;
  transition: transform var(--dur-2) var(--ease-out);
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}

.btn:focus-visible {
  border-radius: var(--r-pill);
}

.btn--primary {
  background-image: var(--grad-btn);
  color: var(--c-on-accent);
  box-shadow: 0 8px 24px -12px var(--c-btn-a);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -12px var(--c-btn-a);
}

.btn--ghost {
  border-color: var(--c-border-strong);
  color: var(--c-text);
}

.btn--ghost:hover {
  border-color: var(--c-accent-text);
  background-color: var(--c-tint);
}

.btn--sm {
  --btn-pad-y: 0.625rem;
  --btn-pad-x: 1.125rem;
}

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


/* ---------- 5.3 Cards ---------- */

/* Shared card: surface, hairline border and a gradient-edge overlay (::after). */
.card {
  position: relative;
  isolation: isolate;
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

/* Gradient hairline: masked to a 1px ring, fades in on hover */
.card--glow::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: var(--edge-opacity, 0.35);
  pointer-events: none;
  transition: opacity var(--dur-3) ease;
}

.card--glow:hover {
  --edge-opacity: 1;
}

/* Cursor-follow light (position set from JS via --mx / --my) */
[data-glow]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--c-glow), transparent 45%);
  opacity: 0;
  transition: opacity var(--dur-3) ease;
  pointer-events: none;
}

[data-glow]:hover::before {
  opacity: 1;
}


/* ---------- 5.4 Tags ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.3em 0.75em;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.tag__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tag--live {
  color: var(--c-live);
}

.tag--live .tag__dot {
  box-shadow: 0 0 0 0 var(--c-live);
  animation: pulse 2.4s ease-out infinite;
}

.tag--beta {
  color: var(--c-beta);
}


/* ==========================================================================
   6. SECTIONS
   ========================================================================== */

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

.hero {
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  min-height: min(100vh, 56rem);
  min-height: min(100svh, 56rem);
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + var(--space-8));
  padding-bottom: var(--space-9);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 80%);
}

.hero__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  width: min(1100px, 140vw);
  aspect-ratio: 1.6;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 35% 45%, var(--c-glow), transparent),
    radial-gradient(closest-side at 70% 55%, var(--c-glow-2), transparent);
  animation: drift 18s var(--ease-in-out) infinite alternate;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.hero__inner {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.hero__content {
  max-width: 46rem;
}

.hero__content > * {
  animation: rise var(--dur-4) var(--ease-out) both;
}

.hero__content > :nth-child(2) { animation-delay: 80ms; }
.hero__content > :nth-child(3) { animation-delay: 160ms; }
.hero__content > :nth-child(4) { animation-delay: 240ms; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.hero__eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--grad-accent);
}

.hero__title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.hero__lead {
  max-width: 36rem;
  margin-top: var(--space-5);
  font-size: var(--fs-md);
  color: var(--c-text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* Console panel linking to each product (desktop only) */
.hero__panel {
  display: none;
  padding: var(--space-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  background-color: var(--c-surface);
  background-color: color-mix(in srgb, var(--c-surface) 70%, transparent);
  box-shadow: var(--shadow-card);
  font-size: var(--fs-sm);
  animation: rise var(--dur-4) var(--ease-out) 320ms both;
}

.hero__panel-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--c-border);
}

.hero__panel-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-border-strong);
}

.hero__panel-bar em {
  margin-left: var(--space-2);
  font-style: normal;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

/* Each row is a link to the product; the negative margin keeps text aligned
   while giving the hover highlight some breathing room. */
.hero__panel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-inline: calc(var(--space-2) * -1);
  padding: var(--space-2);
  border-radius: var(--r-xs);
  color: var(--c-text);
  text-decoration: none;
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease;
}

.hero__panel-link:hover {
  background-color: var(--c-surface-2);
  color: var(--c-accent-text);
}

.hero__panel-name {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.hero__panel-link:hover .hero__panel-name {
  text-decoration: underline;
  text-decoration-color: var(--c-border-strong);
  text-underline-offset: 4px;
}

.hero__panel-ext {
  width: 0.875rem;
  height: 0.875rem;
  flex: none;
  color: var(--c-text-muted);
  transition: transform var(--dur-2) var(--ease-out), color var(--dur-1) ease;
}

.hero__panel-link:hover .hero__panel-ext {
  color: var(--c-accent-text);
  transform: translate(2px, -2px);
}

.hero__panel-list b {
  font-weight: 500;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__panel-list .is-live { color: var(--c-live); }
.hero__panel-list .is-beta { color: var(--c-beta); }

.hero__panel-prompt {
  margin-top: var(--space-4);
  color: var(--c-accent-text);
}

.hero__caret {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: text-bottom;
  background: var(--c-accent-text);
  animation: blink 1.1s steps(1) infinite;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 2.75rem;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-pill);
  transform: translateX(-50%);
}

.hero__scroll-line {
  width: 1px;
  height: 0.75rem;
  background: var(--c-accent-text);
  animation: scroll-cue 2s var(--ease-in-out) infinite;
}


/* ---------- 6.2 Products ---------- */

.product-grid {
  display: grid;
  gap: var(--space-5);
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) ease;
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.product-card__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--c-tint), var(--c-tint-2));
  border: 1px solid var(--c-border);
}

.product-card__icon svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: url(#g-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-card__name {
  font-size: var(--fs-xl);
}

.product-card__tagline {
  margin-top: var(--space-2);
  font-weight: 500;
  color: var(--c-accent-text);
  line-height: var(--lh-snug);
}

.product-card__desc {
  margin-top: var(--space-4);
  color: var(--c-text-muted);
  font-size: 0.9375rem;
}

.product-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
  margin-bottom: var(--space-6);
}

.product-card__features li {
  padding: 0.3em 0.7em;
  border-radius: var(--r-xs);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-text);
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: auto;
}

.product-card__alt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  text-decoration: none;
  padding-block: var(--space-2);
  transition: color var(--dur-1) ease;
}

.product-card__alt:hover {
  color: var(--c-text);
}

.product-card__alt svg {
  width: 0.875rem;
  height: 0.875rem;
}

.product-card__url {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--c-border);
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}


/* ---------- 6.3 Services: icon tile grid ---------- */

.service-grid {
  display: grid;
  gap: var(--space-4);
}

.service-tile {
  display: flex;
  flex-direction: column;
  min-height: 15rem;
  padding: var(--space-6);
  --edge-opacity: 0;
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) ease;
}

.service-tile:hover {
  --edge-opacity: 1;
  box-shadow: var(--shadow-hover);
}

.service-tile__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--space-6);
  border-radius: var(--r-md);
  background-color: var(--c-tint);
  color: var(--c-accent-text);
}

.service-tile__icon svg,
.pillar__icon svg {
  width: 1.375rem;
  height: 1.375rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-tile__title {
  font-size: var(--fs-lg);
  letter-spacing: var(--ls-snug);
}

.service-tile__desc {
  margin-top: var(--space-3);
  margin-bottom: var(--space-5);
  color: var(--c-text-muted);
  font-size: 0.9375rem;
}

.service-tile__arrow {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: auto;
  color: var(--c-text-muted);
  transition: transform var(--dur-2) var(--ease-out), color var(--dur-2) ease;
}

.service-tile:hover .service-tile__arrow {
  color: var(--c-accent-text);
  transform: translateX(6px);
}


/* ---------- 6.4 Why Bytarion: bento grid ---------- */

.bento {
  display: grid;
  gap: var(--space-4);
}

.bento__item {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  overflow: hidden;
  min-height: 12rem;
}

.bento__item > * {
  position: relative;
  z-index: 1;
}

.bento__item--large {
  min-height: 22rem;
  background-color: var(--c-surface);
}

/* Animated gradient mesh behind the large card (transform-only animation) */
.bento__mesh {
  position: absolute;
  inset: -40%;
  z-index: 0;
  background:
    radial-gradient(closest-side at 30% 30%, var(--c-glow), transparent 70%),
    radial-gradient(closest-side at 70% 60%, var(--c-glow-2), transparent 70%);
  animation: mesh 16s var(--ease-in-out) infinite alternate;
}

.bento__item--large::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--c-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.bento__kicker {
  margin-bottom: auto;
  padding-bottom: var(--space-6);
  font-size: var(--fs-xs);
  color: var(--c-accent-text);
  letter-spacing: 0.06em;
}

.bento__big {
  margin-bottom: auto;
  padding-bottom: var(--space-5);
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  background-image: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bento__title {
  font-size: var(--fs-lg);
  letter-spacing: var(--ls-snug);
}

.bento__title--lg {
  font-size: var(--fs-xl);
  max-width: 18ch;
}

.bento__text {
  margin-top: var(--space-2);
  color: var(--c-text-muted);
  font-size: 0.9375rem;
  max-width: 40ch;
}


/* ---------- 6.5 Process: timeline ---------- */

.process {
  --node: 3rem;
  position: relative;
}

.process__line {
  position: absolute;
  top: calc(var(--node) / 2);
  bottom: calc(var(--node) / 2);
  left: calc(var(--node) / 2);
  width: 1px;
  background-color: var(--c-border-strong);
}

.process__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--c-accent), var(--c-accent-2));
  transform-origin: top;
  transition: transform 1.6s var(--ease-out);
}

/* Collapsed until the timeline scrolls into view (JS only) */
.js .process:not(.is-active) .process__fill {
  transform: scaleY(0);
}

.process__list {
  display: grid;
  gap: var(--space-6);
}

.process__step {
  position: relative;
  display: grid;
  grid-template-columns: var(--node) 1fr;
  column-gap: var(--space-5);
  align-items: start;
}

.process__node {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  border: 1px solid var(--c-accent-text);
  background-color: var(--c-bg-alt);
  color: var(--c-accent-text);
  font-size: var(--fs-sm);
  box-shadow: 0 0 0 6px var(--c-bg-alt), 0 0 24px -4px var(--c-glow);
  transition: border-color var(--dur-3) ease, color var(--dur-3) ease, box-shadow var(--dur-3) ease;
  transition-delay: calc(var(--i, 0) * 280ms);
}

.js .process:not(.is-active) .process__node {
  border-color: var(--c-border-strong);
  color: var(--c-text-muted);
  box-shadow: 0 0 0 6px var(--c-bg-alt);
}

.process__step:nth-child(2) { --i: 1; }
.process__step:nth-child(3) { --i: 2; }
.process__step:nth-child(4) { --i: 3; }
.process__step:nth-child(5) { --i: 4; }

/* Mobile: hide the line tail below the last node */
.process__step:last-child::after {
  content: "";
  position: absolute;
  top: var(--node);
  bottom: 0;
  left: 0;
  width: var(--node);
  background-color: var(--c-bg-alt);
}

.process__title {
  padding-top: 0.6rem;
  font-size: var(--fs-lg);
  letter-spacing: var(--ls-snug);
}

.process__text {
  margin-top: var(--space-2);
  color: var(--c-text-muted);
  font-size: 0.9375rem;
}


/* ---------- 6.6 Industries: pill cloud ---------- */

.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  max-width: 52rem;
  margin-inline: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.7rem 1.15rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border);
  background-color: var(--c-surface);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background-color var(--dur-2) ease, border-color var(--dur-2) ease, transform var(--dur-2) var(--ease-out);
}

.pill:hover {
  background-color: var(--c-tint);
  border-color: var(--c-accent-text);
  transform: translateY(-2px);
}

.pill__icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--c-accent-text);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ---------- 6.7 Tech stack: marquee ---------- */

.marquee {
  display: grid;
  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);
}

.marquee__row {
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee__row--reverse .marquee__track {
  animation-direction: reverse;
  animation-duration: 46s;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__list {
  display: flex;
  gap: var(--space-3);
  padding-right: var(--space-3);
}

.tech-tag {
  padding: 0.6rem 1.1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  background-color: var(--c-surface);
  font-size: var(--fs-sm);
  white-space: nowrap;
  color: var(--c-text);
}


/* ---------- 6.8 Impact stats strip ---------- */

.stats {
  padding-block: var(--space-8);
  background-color: var(--c-surface);
  border-block: 1px solid var(--c-border);
}

.stats__label {
  margin-bottom: var(--space-6);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-4);
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-2);
}

.stat__value {
  font-size: var(--fs-stat);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-text-muted);
}


/* ---------- 6.9 Testimonials: carousel ---------- */

.placeholder-note {
  display: inline-block;
  margin-top: var(--space-4);
  padding: 0.35em 0.75em;
  border: 1px dashed var(--c-beta);
  border-radius: var(--r-xs);
  color: var(--c-beta);
  font-size: var(--fs-xs);
}

/* Mobile: horizontal scroll-snap carousel (works without JS via touch/trackpad) */
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: var(--space-4);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--space-2);
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  scroll-snap-align: start;
  display: flex;
}

.quote-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: var(--space-6);
}

.quote-card__glyph {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-5);
  color: var(--c-accent-text);
}

.quote-card__text {
  flex: 1;
  font-size: var(--fs-md);
  line-height: 1.6;
}

.quote-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--c-border);
}

.quote-card__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #05070a;
}

.quote-card__avatar--a { background: linear-gradient(135deg, #3cf2ff, #4fa8ff); }
.quote-card__avatar--b { background: linear-gradient(135deg, #a28bff, #7b5cff); color: #ffffff; }
.quote-card__avatar--c { background: linear-gradient(135deg, #34e3a0, #3cf2ff); }

.quote-card__name {
  display: block;
  font-weight: 600;
}

.quote-card__role {
  display: block;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

.carousel__controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.js .carousel__controls {
  display: flex;
}

.carousel__btn--prev svg {
  transform: scaleX(-1);
}

.carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel__dots {
  display: flex;
  gap: var(--space-1);
}

.carousel__dot {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
}

.carousel__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--c-border-strong);
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2) ease;
}

.carousel__dot[aria-current="true"]::before {
  background-color: var(--c-accent-text);
  transform: scale(1.3);
}


/* ---------- 6.10 Engagement models: tiers ---------- */

.tiers {
  display: grid;
  gap: var(--space-5);
  align-items: stretch;
}

.tier {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  --edge-opacity: 0;
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) ease;
}

.tier:hover {
  box-shadow: var(--shadow-hover);
}

.tier--featured {
  --edge-opacity: 1;
  background-image: linear-gradient(180deg, var(--c-tint), transparent 40%);
  box-shadow: var(--shadow-hover);
}

.tier__badge {
  align-self: flex-start;
  margin-bottom: var(--space-4);
  padding: 0.3em 0.75em;
  border-radius: var(--r-pill);
  background-image: var(--grad-btn);
  color: var(--c-on-accent);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier__title {
  font-size: var(--fs-xl);
}

.tier__summary {
  margin-top: var(--space-3);
  color: var(--c-text-muted);
  font-size: 0.9375rem;
}

.tier__price {
  margin-block: var(--space-5);
  padding-block: var(--space-4);
  border-block: 1px solid var(--c-border);
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent-text);
}

.checklist {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  font-size: 0.9375rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.checklist__icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  padding: 3px;
  border-radius: 50%;
  background-color: var(--c-tint);
  color: var(--c-accent-text);
}

.tier .btn {
  margin-top: auto;
}


/* ---------- 6.11 About ---------- */

.about {
  display: grid;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.about__head {
  margin-bottom: 0;
}

.about__text {
  display: grid;
  gap: var(--space-4);
  font-size: var(--fs-md);
  color: var(--c-text-muted);
}

.about__text p:first-child {
  color: var(--c-text);
}

.pillars {
  display: grid;
  gap: var(--space-6);
  padding-top: var(--space-7);
  border-top: 1px solid var(--c-border);
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  border: 1px solid var(--c-border-strong);
  color: var(--c-accent-text);
}

.pillar__title {
  font-size: var(--fs-lg);
  letter-spacing: var(--ls-snug);
}

.pillar__text {
  margin-top: var(--space-2);
  color: var(--c-text-muted);
  font-size: 0.9375rem;
}

.stat-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-8);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.stat-line span:not([aria-hidden]) {
  color: var(--c-text);
}

.stat-line span[aria-hidden] {
  color: var(--c-accent-text);
}


/* ---------- 6.12 FAQ: accordion ---------- */

.faq {
  display: grid;
  column-gap: var(--space-7);
}

.faq__col {
  border-top: 1px solid var(--c-border);
}

/* Second column continues the first on mobile; no double border */
.faq__col + .faq__col {
  border-top: 0;
}

.faq__item {
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: var(--ls-snug);
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-1) ease;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q:hover {
  color: var(--c-accent-text);
}

.faq__q:focus-visible {
  outline-offset: -2px;
}

/* Plus icon: two bars, the vertical one rotates flat when open */
.faq__icon {
  position: relative;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid var(--c-border-strong);
  transition: transform var(--dur-3) var(--ease-out), border-color var(--dur-2) ease;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  margin: -0.75px 0 0 -5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform var(--dur-3) var(--ease-out);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item[open] .faq__icon {
  transform: rotate(180deg);
  border-color: var(--c-accent-text);
}

.faq__item[open] .faq__icon::after {
  transform: rotate(0deg);
}

.faq__a {
  padding-bottom: var(--space-5);
  padding-right: var(--space-7);
  color: var(--c-text-muted);
}


/* ---------- 6.13 CTA banner ---------- */

.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 2rem + 5vw, 6rem) clamp(1.5rem, 1rem + 4vw, 5rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border-strong);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--c-glow), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, var(--c-glow-2), transparent 55%),
    var(--c-surface);
  text-align: center;
}

/* Grid texture slowly translating (transform-only) */
.cta-panel__grid {
  position: absolute;
  inset: -64px;
  z-index: -1;
  background-image:
    linear-gradient(var(--c-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  animation: grid-pan 12s linear infinite;
}

.cta-panel__title {
  max-width: 22ch;
  margin-inline: auto;
  font-size: var(--fs-2xl);
}

.cta-panel__text {
  max-width: 36rem;
  margin: var(--space-4) auto var(--space-6);
  font-size: var(--fs-md);
  color: var(--c-text-muted);
}


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

.contact__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 100%;
  padding-bottom: var(--space-2);
  font-size: clamp(1.5rem, 0.9rem + 3.6vw, 3.5rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  text-decoration: none;
  border-bottom: 1px solid var(--c-border-strong);
  transition: border-color var(--dur-2) ease;
}

.contact__mail span {
  overflow-wrap: anywhere;
}

.contact__mail svg {
  flex: none;
  width: 0.7em;
  height: 0.7em;
  color: var(--c-accent-text);
  transition: transform var(--dur-2) var(--ease-out);
}

.contact__mail:hover {
  border-bottom-color: var(--c-accent-text);
}

.contact__mail:hover svg {
  transform: translateX(6px);
}

.contact__meta {
  margin-top: var(--space-5);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-text-muted);
}


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

.site-footer {
  padding-block: var(--space-8) var(--space-6);
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

.site-footer__top {
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--c-border);
}

.site-footer__tagline {
  margin-top: var(--space-3);
}

.site-footer__nav ul,
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.site-footer a {
  text-decoration: none;
  transition: color var(--dur-1) ease;
}

.site-footer a:hover {
  color: var(--c-text);
}

.site-footer__nav a,
.site-footer__links a {
  display: inline-block;
  padding-block: var(--space-1);
}

.site-footer__bottom {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-6);
}

.site-footer__legal {
  max-width: 60rem;
  font-size: var(--fs-xs);
  line-height: 1.6;
}

.site-footer__links {
  margin-top: var(--space-2);
}

.site-footer__links a {
  color: var(--c-text);
  text-decoration: underline;
  text-decoration-color: var(--c-border-strong);
  text-underline-offset: 4px;
}


/* ---------- 6.16 Privacy dialog ---------- */

.privacy {
  width: min(42rem, calc(100% - 2rem));
  max-height: min(85vh, 52rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-lg);
  background-color: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--shadow-dialog);
  overflow: auto;
  overscroll-behavior: contain;
}

.privacy::backdrop {
  background-color: var(--c-backdrop);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.privacy[open] {
  animation: dialog-in var(--dur-3) var(--ease-out);
}

.privacy__inner {
  padding: var(--space-6);
}

.privacy__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin: calc(var(--space-6) * -1) calc(var(--space-6) * -1) 0;
  padding: var(--space-5) var(--space-6);
  background-color: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}

.privacy__title {
  font-size: var(--fs-xl);
}

.privacy__close {
  font-size: 1.5rem;
  line-height: 1;
}

.privacy__body {
  padding-top: var(--space-5);
  font-size: 0.9375rem;
  color: var(--c-text-muted);
}

.privacy__body h3 {
  margin: var(--space-5) 0 var(--space-2);
  font-size: var(--fs-base);
  letter-spacing: 0;
  color: var(--c-text);
}

.privacy__body a {
  color: var(--c-accent-text);
  text-underline-offset: 3px;
}

.privacy__updated {
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* "Back to site" is only needed when the notice is shown inline without JS */
.privacy__back {
  display: none;
}

/* No-JS fallback: show the notice inline when its anchor is targeted */
.no-js .privacy:target {
  position: static;
  display: block;
  margin: 0 auto var(--space-8);
}

.no-js .privacy__close-form {
  display: none;
}

.no-js .privacy__back {
  display: inline-block;
  margin-top: var(--space-5);
}


/* ==========================================================================
   7. UTILITIES
   ========================================================================== */

.visually-hidden {
  position: absolute !important; /* justified: must never be overridden by component styles */
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.stop-a { stop-color: var(--c-accent); }
.stop-b { stop-color: var(--c-accent-2); }

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

.gradient-text {
  background-image: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Light theme: gradient text needs darker stops to keep contrast */
:root[data-theme="light"] .gradient-text,
:root[data-theme="light"] .bento__big {
  background-image: var(--grad-btn);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .gradient-text,
  :root:not([data-theme="dark"]) .bento__big {
    background-image: var(--grad-btn);
  }
}


/* ==========================================================================
   8. ANIMATIONS
   ========================================================================== */

/* Scroll reveal: hidden only when JS is present; JS adds .is-visible.
   Uses the individual `translate` property so it never fights hover `transform`. */
.js [data-reveal] {
  opacity: 0;
}

.js [data-reveal].is-visible {
  animation: reveal 0.8s var(--ease-out) var(--reveal-delay, 0ms) both;
}

@keyframes reveal {
  from { opacity: 0; translate: 0 20px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
  from { transform: translateX(-50%) rotate(0deg) scale(1); }
  to   { transform: translateX(-46%) rotate(8deg) scale(1.08); }
}

@keyframes mesh {
  from { transform: translate(-6%, -4%) rotate(0deg); }
  to   { transform: translate(6%, 5%) rotate(25deg); }
}

@keyframes grid-pan {
  from { transform: translate(0, 0); }
  to   { transform: translate(32px, 32px); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); }
  70%  { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes scroll-cue {
  0%   { opacity: 0; transform: translateY(-6px); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(8px); }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}


/* ==========================================================================
   9. MEDIA QUERIES
   ========================================================================== */

/* ---------- ≥ 640px ---------- */
@media (min-width: 640px) {
  .no-js .site-nav {
    display: block;
  }

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

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

  /* An odd last product card spans the row while the grid has two columns */
  .product-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

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

  .bento__item--large,
  .bento__item--wide {
    grid-column: span 2;
  }

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

  .stat + .stat {
    padding-left: var(--space-5);
    border-left: 1px solid var(--c-border);
  }

  .carousel__track {
    grid-auto-columns: calc(50% - var(--space-2));
  }

  .site-footer__top {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

/* ---------- ≥ 960px ---------- */
@media (min-width: 960px) {
  /* Desktop nav: inline links, no dropdown */
  .js .nav-toggle {
    display: none;
  }

  .js .site-nav,
  .js .site-nav.is-open {
    position: static;
    padding: 0;
    background: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .js .site-nav__list,
  .site-nav__list {
    flex-direction: row;
    gap: var(--space-6);
  }

  .js .site-nav__link {
    display: inline-block;
    padding: var(--space-2) 0;
    font-size: var(--fs-sm);
    border-bottom: 0;
  }

  .js .site-nav__link::after {
    display: block;
  }

  .site-nav {
    margin-right: var(--space-4);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  }

  .hero__panel {
    display: block;
  }

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

  .service-tile:hover {
    transform: translateY(-3px);
  }

  /* Bento: 6-column grid, large card is half width and two rows tall */
  .bento {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(13rem, auto);
  }

  .bento__item--large {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
  }

  .bento__item--wide {
    grid-column: span 2;
  }

  .bento__item--small {
    grid-column: span 1;
  }

  /* Process: horizontal timeline */
  .process__line {
    top: calc(var(--node) / 2);
    bottom: auto;
    left: 10%;
    right: 10%;
    width: auto;
    height: 1px;
  }

  .process__fill {
    background: var(--grad-accent);
    transform-origin: left;
  }

  .js .process:not(.is-active) .process__fill {
    transform: scaleX(0);
  }

  .process__list {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-5);
  }

  .process__step {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .process__node {
    grid-row: auto;
    margin-bottom: var(--space-5);
  }

  .process__title {
    padding-top: 0;
  }

  .process__step:last-child::after {
    display: none;
  }

  /* Testimonials: three-column grid, no carousel */
  .carousel__track {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }

  .js .carousel__controls {
    display: none;
  }

  .tiers {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }

  .tier {
    min-height: 34rem;
  }

  .tier--featured {
    min-height: 37rem;
  }

  .tier:not(.tier--featured):hover {
    transform: translateY(-4px);
  }

  .about {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--space-8);
    align-items: start;
  }

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

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

  .faq__col + .faq__col {
    border-top: 1px solid var(--c-border);
  }
}

/* ---------- ≥ 1280px ---------- */
@media (min-width: 1280px) {
  /* All four products in one row */
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-grid > :last-child:nth-child(odd) {
    grid-column: auto;
  }

  .product-card {
    padding: var(--space-7) var(--space-5);
  }

  .product-card__name {
    font-size: var(--fs-lg);
  }

  .hero__inner {
    gap: var(--space-9);
  }
}


/* ==========================================================================
   10. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important; /* justified: global motion kill-switch */
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
  }

  /* Marquee becomes a static wrapped grid */
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
    padding-inline: var(--gutter);
  }

  .marquee__track {
    width: auto;
    animation: none;
    justify-content: center;
  }

  .marquee__list {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
  }

  .marquee__list[aria-hidden="true"] {
    display: none;
  }

  .hero__glow,
  .bento__mesh,
  .cta-panel__grid,
  .hero__caret,
  .hero__scroll-line,
  .tag--live .tag__dot {
    animation: none !important; /* justified: stop decorative loops entirely */
  }
}
