@charset "utf-8";
/* ============================================================
   ByteLab - Modern dark AI-tech
   Type: Inter (display + body) · JetBrains Mono (labels) · Fira Code (lang switcher)
   ============================================================ */

/* ---------- Self-hosted type ---------- */
@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* surfaces - purple-black */
  --bg:        #0F051A;
  --darker-bg: #0F051A;        /* legacy alias */
  --bg-2:      #130A20;
  --surface:   #190E28;
  --surface-2: #201433;
  --surface-3: #2A1A42;

  /* lines */
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --border-color: rgba(255, 255, 255, 0.08); /* legacy alias */

  /* text - slate ramp */
  --text:           #F4F7FB;
  --text-primary:   #F4F7FB;   /* legacy alias */
  --text-soft:      #CBD5E1;
  --text-muted:     #94A3B8;
  --text-secondary: #94A3B8;   /* legacy alias */
  --text-faint:     #8291A6;
  --scroll-cue:     #6B7A8D;

  /* accent - brand teal (#0891b2 / #0e7490) */
  --brand-teal:      #0891B2;
  --brand-teal-deep: #0E7490;
  --brand-teal-rgb:  8, 145, 178;
  --brand-teal-deep-rgb: 14, 116, 144;
  --cyan:   #22D3EE;
  --accent: #34C8E0;          /* legible teal accent on dark */
  --accent-cyan: #5EE7F2;
  --accent-cyan-rgb: 94, 231, 242;
  --accent-text: #2FCBE3;     /* single committed colour for accent/highlight text */
  --grad: linear-gradient(118deg, #0E7490 0%, #0891B2 46%, #22D3EE 100%);
  --grad-soft: linear-gradient(118deg, rgba(8,145,178,.18), rgba(34,211,238,.14));

  /* glow */
  --glow-indigo: rgba(8, 145, 178, 0.45);
  --glow-cyan:   rgba(34, 211, 238, 0.30);

  /* radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-pill: 999px;

  /* type */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-mono-alt: "Fira Code", "JetBrains Mono", ui-monospace, monospace;

  /* layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(5rem, 11vw, 9rem);

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 18px 40px -22px rgba(0,0,0,.85);
  --shadow-lg: 0 40px 90px -45px rgba(0,0,0,.9);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}
html.is-aligning-fragment { scroll-behavior: auto; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 200;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  padding: .65rem 1rem;
  border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

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

/* ============================================================
   Atmospheric background
   ============================================================ */
.bg-layers { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: .5;
}
.bg-mesh {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120vh;
  background:
    radial-gradient(40% 40% at 18% 12%, rgba(8,145,178,.30), transparent 70%),
    radial-gradient(38% 38% at 82% 8%, rgba(34,211,238,.18), transparent 70%),
    radial-gradient(45% 45% at 60% 38%, rgba(14,116,144,.16), transparent 72%);
  filter: blur(20px);
  animation: meshDrift 22s ease-in-out infinite alternate;
}
.bg-grain {
  position: absolute; inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
@keyframes meshDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-4%, 3%, 0) scale(1.08); }
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(15, 5, 26, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 74px;
}

/* ByteLab wordmark logo */
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  transition: transform .3s var(--ease);
}
.logo:hover { transform: scale(1.04); }
.logo-svg { height: 24px; width: auto; }
.logo-word {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .16em;
}
.logo-word span { color: var(--brand-teal); }

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
  font-size: .95rem;
  font-weight: 500;
}
.nav-links li { white-space: nowrap; }
.nav-links a {
  position: relative;
  color: var(--text-soft);
  padding: .35rem 0;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: .85rem; }

/* Language toggle */
.lang-switcher, .lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .25rem .35rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.02);
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono-alt);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-muted);
  min-width: 36px;
  min-height: 30px;
  padding: .3rem .55rem;
  border-radius: var(--r-pill);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { color: #07090F; background: var(--grad); }
.lang-btn[aria-current="page"] { cursor: default; }
.lang-separator { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -0.01em;
  padding: .85rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .2s var(--ease);
  will-change: transform;
}
.btn-sm { padding: .6rem 1.05rem; font-size: .9rem; }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary {
  color: #fff;
  background: linear-gradient(118deg, #0A6177 0%, #0E7490 100%);
  background-size: 200% 100%;
  background-position: 0 0;
  box-shadow: 0 10px 30px -12px var(--glow-indigo), inset 0 0 0 1px rgba(255,255,255,.12);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -14px var(--glow-indigo), 0 0 28px -6px var(--glow-cyan), inset 0 0 0 1px rgba(255,255,255,.2);
  background-position: 100% 0;
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost, .btn-secondary {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.02);
}
.btn-ghost:hover, .btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(52,200,224,.08);
  transform: translateY(-2px);
}

/* ---------- Mobile menu toggle + panel ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 74px 0 auto 0;
  z-index: 99;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--surface-2) 94%, transparent),
    color-mix(in srgb, var(--surface) 97%, transparent));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(var(--brand-teal-rgb), .3);
  box-shadow:
    0 24px 50px -24px rgba(0,0,0,.95),
    0 1px 0 rgba(var(--brand-teal-rgb), .12);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; }
@media (max-width: 1024px) {
  body::after {
    content: "";
    position: fixed;
    inset: 74px 0 0;
    z-index: 98;
    pointer-events: none;
    background: color-mix(in srgb, var(--bg) 46%, transparent);
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(7px) saturate(82%);
    -webkit-backdrop-filter: blur(7px) saturate(82%);
    transition: opacity .3s var(--ease), visibility 0s linear .3s;
  }
  body.mobile-menu-open::after {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
}
.mobile-nav {
  display: flex; flex-direction: column;
  gap: .25rem;
  padding: 1.25rem var(--gutter) 2rem;
}
.mobile-nav a:not(.btn) {
  font-size: 1.1rem; font-weight: 500;
  padding: .85rem .25rem;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
}
.mobile-cta { margin-top: 1rem; }

/* ============================================================
   Headings / eyebrow / sections
   ============================================================ */
.grad { color: var(--accent-text); }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.hero-headline, .section-title, .feature-card h3,
.audit-name, .step-content h3 { overflow-wrap: break-word; }
.section-subtitle {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: clamp(1rem, .97rem + .3vw, 1.15rem);
  max-width: 56ch;
}
.section-subtitle + .section-subtitle { margin-top: 1.1rem; }
.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 760px; }

.features, .about, .process, .pricing, .contact {
  padding-block: var(--section-y);
  position: relative;
}
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.015), transparent); }
.section-alt::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.features-container, .stats-container, .process-container,
.pricing-container, .contact-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(7rem, 12vh, 9.5rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  position: relative;
}
.hero-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hero-container > * { max-width: 920px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.hero-eyebrow .he-dot {
  flex: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px var(--glow-cyan);
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.1rem + 5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
.hero-lede {
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  max-width: 52ch;
  margin-bottom: 2.2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: .98rem;
  padding: .5rem .25rem;
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.hero-link::after { content: "→"; transition: transform .2s var(--ease); }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  margin-top: 2.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}
.hero-trust-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-trust-logos {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}
.hero-trust-logo {
  display: block;
  height: 26px;
  width: auto;
  color: rgba(255, 255, 255, .7);
}

.hero-link:hover { color: var(--accent-cyan); }
.hero-link:hover::after { transform: translateX(3px); }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 3vh, 2.5rem);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  color: var(--scroll-cue);
  transition: color .25s;
}
.scroll-cue:is(:hover, :focus-visible) { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .scroll-cue svg {
    animation: cueBounce 1.6s cubic-bezier(.5, 0, .3, 1) infinite;
  }
}

@keyframes cueBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

/* ============================================================
   Services / cards
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}
.feature-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.feature-card--audit {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1fr 360px;
  grid-template-areas:
    "head art"
    "copy art";
  align-items: stretch;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(60% 120% at 8% 0%, rgba(var(--brand-teal-rgb), .14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.feature-card--service {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.7rem 1.9rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .35s, border-color .35s, box-shadow .4s;
}
.feature-card--service:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow:
    0 18px 40px -22px rgba(0,0,0,.85),
    0 0 0 1px rgba(var(--brand-teal-rgb), .12),
    0 30px 60px -40px rgba(var(--brand-teal-rgb), .45);
}
.feature-card-dots,
.feature-card-wash {
  position: absolute;
  pointer-events: none;
}
.feature-card-dots {
  inset: 0;
  background-image: radial-gradient(rgba(var(--accent-cyan-rgb), .32) 1.3px, transparent 1.3px);
  background-size: 16px 16px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(120% 80% at 50% -10%, #000, transparent 62%);
  mask-image: radial-gradient(120% 80% at 50% -10%, #000, transparent 62%);
}
.feature-card-wash {
  inset: 0 0 auto;
  height: 60%;
  background: radial-gradient(120% 90% at 50% 0, rgba(var(--brand-teal-rgb), .26), transparent 70%);
}
.feature-card-content {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.feature-icon {
  align-self: center;
  display: grid;
  place-items: center;
  width: 96px;
  height: 84px;
  flex: none;
}
.service-icon {
  display: block;
  max-width: none;
  overflow: visible;
  filter: drop-shadow(0 14px 24px rgba(4,20,26,.5));
}
.service-icon--bytebot { width: 82px; height: 68px; }
.service-icon--byteflow { width: 84px; height: 70px; }
.service-icon--bytereport { width: 86px; height: 72px; }
.bb-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: bbBlink 5.4s ease-in-out infinite;
}
@keyframes bbBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  94.5%, 96% { transform: scaleY(.1); }
}
.feature-audit-head {
  grid-area: head;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .7rem;
  padding: 1.9rem 1.9rem 0;
}
.feature-audit-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
  padding: .7rem 1.9rem 1.9rem;
}
.feature-audit-art {
  grid-area: art;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0, rgba(var(--brand-teal-rgb), .35), rgba(19,10,32,.6));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 46%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 46%);
}
.feature-audit-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(94,231,242,.35) 1.3px, transparent 1.3px);
  background-size: 16px 16px;
  opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}
.feature-audit-icon {
  position: relative;
  display: block;
  width: 96px;
  height: 80px;
  overflow: visible;
  filter: drop-shadow(0 14px 22px rgba(4,20,26,.5));
}
.bytebot-mark { overflow: visible; }
.bytebot-mark__shell { fill: var(--text); }
.bytebot-mark__face { fill: var(--bg-2); }
.bytebot-mark__outline {
  stroke: var(--bg);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bytebot-mark__stop--cyan { stop-color: var(--cyan); }
.bytebot-mark__stop--teal { stop-color: var(--brand-teal); }
.bytebot-mark__eye {
  transform-box: fill-box;
  transform-origin: center;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.feature-card--audit h3 { font-size: 1.5rem; }
.feature-card--service h3 { margin-top: .5rem; font-size: 1.3rem; }
.feature-tagline {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--bg);
  background: var(--grad);
  padding: .32rem .7rem;
  border-radius: var(--r-pill);
}
.feature-kicker,
.feature-note {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 600;
  text-transform: uppercase;
}
.feature-kicker {
  margin-top: .5rem;
  color: var(--accent);
  letter-spacing: .16em;
}
.feature-copy { color: var(--text-muted); }
.feature-card--audit .feature-copy { max-width: 58ch; line-height: 1.55; }
.feature-card--service .feature-copy { margin-top: .6rem; font-size: .92rem; line-height: 1.5; }
.feature-note {
  margin-top: .9rem;
  color: var(--text-faint);
  letter-spacing: .12em;
}
.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: .95rem;
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.feature-cta::after { content: "→"; }
.feature-cta:hover { gap: .7rem; color: var(--accent-cyan); }
.feature-cta--bytebot { margin-top: .9rem; font-size: .9rem; }

/* ============================================================
   About + stats
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about-portrait { grid-column: 1; grid-row: 1; position: relative; }
.about-copy { grid-column: 2; grid-row: 1; }
.portrait-frame {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 50% 35%, rgba(8,145,178,.28), transparent 60%),
    linear-gradient(165deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.portrait-frame picture { display: block; width: 100%; height: 100%; }
.portrait-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Name plate overlaid on the bottom of the portrait */
.portrait-nameplate {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.4rem 1.2rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  background: linear-gradient(to top, rgba(15,5,26,.92) 8%, rgba(15,5,26,.55) 55%, transparent);
}
.portrait-who { flex: 1; min-width: 0; }
.portrait-name { font-weight: 700; font-size: 1.32rem; letter-spacing: -.02em; line-height: 1.1; }
.portrait-role { font-size: .82rem; color: var(--text-soft); margin-top: .25rem; }
.portrait-linkedin {
  flex: none;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(8,145,178,.18);
  border: 1px solid rgba(47,203,227,.45);
  color: var(--accent-text);
  backdrop-filter: blur(6px);
  transition: .18s;
}
.portrait-linkedin:hover {
  background: var(--grad);
  color: #04141a;
  border-color: transparent;
  transform: translateY(-2px);
}
.portrait-linkedin svg { width: 22px; height: 22px; }

.about-copy .section-title { margin-bottom: 1.2rem; }
.about-copy .section-subtitle { color: var(--text-soft); max-width: 58ch; margin-top: 0; }
.about-copy .section-subtitle + .section-subtitle { margin-top: 1.1rem; }

/* Stat strip (Option A) - moved directly under the bio copy */
.stats-grid {
  display: flex;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.stat-item { flex: 1; padding-inline: 1.4rem; position: relative; }
.stat-item:first-child { padding-left: 0; }
.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0; top: .1rem; bottom: .1rem;
  width: 1px;
  background: var(--line);
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  line-height: 1;
  color: var(--accent-text);
}
.stat-label {
  display: block;
  margin-top: .4rem;
  font-size: .85rem;
  color: var(--text-muted);
  max-width: 18ch;
  line-height: 1.35;
}

/* ============================================================
   Process steps
   A stepper whose reveal runs as a chain: node 1 pops, its line draws
   to node 2, node 2 pops, and so on. Each <li> owns the line segment
   from its node to the next; the last one owns the dashed tail that
   ends under the "≈ 2 weeks" total. Chain state lives in custom
   properties on .process-stepper so the same rules drive the
   horizontal (desktop) and vertical (mobile) layouts.
   ============================================================ */
.process-stepper {
  position: relative;
  --chain-step: .5s;   /* node n -> node n+1 */
  --seg: 1; --pop: 1; --copy: 1; --tail: 1;
}
.process-total {
  position: absolute;
  top: -12px;
  right: 0;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
  opacity: var(--tail);
  transform: translateY(calc((1 - var(--tail)) * 6px));
  transition: opacity .4s var(--ease) var(--tail-d, 0s), transform .4s var(--ease) var(--tail-d, 0s);
}
.process-end {
  position: absolute;
  top: 18px;
  right: 0;
  width: 1px;
  height: 12px;
  background: rgba(var(--brand-teal-rgb), .7);
  opacity: var(--tail);
  transition: opacity .3s var(--ease) var(--tail-d, 0s);
}
.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.process-step:nth-child(1) { --step-d: 0s; }
.process-step:nth-child(2) { --step-d: calc(var(--chain-step) * 1); }
.process-step:nth-child(3) { --step-d: calc(var(--chain-step) * 2); }
.process-step:nth-child(4) { --step-d: calc(var(--chain-step) * 3); }
/* line segment from this node to the next */
.process-step::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 48px;
  width: calc(100% + 2rem - 48px);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--brand-teal));
  transform-origin: left center;
  transform: scaleX(var(--seg));
  transition: transform .55s var(--ease) calc(var(--step-d, 0s) + .2s);
}
.process-step:last-child::before {
  width: calc(100% - 48px);
  background: repeating-linear-gradient(90deg, rgba(var(--brand-teal-rgb), .55) 0 6px, transparent 6px 12px);
}
.step-number {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(var(--brand-teal-rgb), .6);
  border-radius: 50%;
  background:
    radial-gradient(70% 70% at 30% 25%, rgba(255,255,255,.06), transparent 60%),
    var(--bg-2);
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px rgba(var(--brand-teal-rgb), .18);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 700;
  opacity: var(--pop);
  transform: scale(calc(.5 + .5 * var(--pop)));
  transition:
    opacity .3s var(--ease) var(--step-d, 0s),
    transform .4s var(--ease) var(--step-d, 0s),
    border-color .35s var(--ease),
    box-shadow .35s var(--ease);
}
.process-step:first-child .step-number {
  border-color: transparent;
  background: var(--grad);
  color: var(--bg);
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px rgba(var(--brand-teal-rgb), .35), 0 10px 28px -8px rgba(var(--brand-teal-rgb), .7);
}
.process-step:not(:first-child):hover .step-number {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px rgba(var(--brand-teal-rgb), .45), 0 0 24px rgba(var(--accent-cyan-rgb), .22);
}
/* hairline from the node down to the duration label */
.step-stem {
  width: 2px;
  height: 26px;
  margin-left: 23px;
  margin-bottom: 4px;
  background: linear-gradient(180deg, rgba(var(--brand-teal-rgb), .8), rgba(var(--brand-teal-rgb), .15));
}
.step-stem,
.step-content {
  opacity: var(--copy);
  transform: translateY(calc((1 - var(--copy)) * 10px));
  transition:
    opacity .5s var(--ease) calc(var(--step-d, 0s) + .12s),
    transform .5s var(--ease) calc(var(--step-d, 0s) + .12s);
}
.step-content {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.step-duration {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--accent);
}
.step-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.step-content p { color: var(--text-muted); font-size: .9rem; line-height: 1.5; }
/* chain: hidden until the stepper's own reveal fires (JS only, like .reveal) */
html.js .process-stepper {
  --seg: 0; --pop: 0; --copy: 0; --tail: 0;
  --tail-d: calc(var(--chain-step) * 3 + .75s);
}
html.js .process-stepper.in-view { --seg: 1; --pop: 1; --copy: 1; --tail: 1; }

/* ============================================================
   Pricing / Współpraca
   ============================================================ */
/* C3 "Światło z góry": gradient frame brightest at top-left, fading to a
   faint hairline bottom-right, with a subtle cyan glow above the card. */
.audit-frame {
  position: relative;
  border-radius: var(--r-lg);
  padding: 1.5px;
  background: linear-gradient(150deg,
                rgba(94,231,242,.9) 0%,
                rgba(8,145,178,.45) 22%,
                rgba(255,255,255,.10) 48%,
                var(--line-strong) 100%);
  box-shadow: 0 30px 80px -45px rgba(0,0,0,.9),
              0 -10px 50px -34px var(--glow-cyan);
}
.audit-detail {
  --audit-detail-padding: clamp(1.8rem, 3vw, 2.6rem);
  position: relative;
  padding: var(--audit-detail-padding);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(28,33,50,.55), rgba(19,10,32,.6));
  overflow: hidden;
}
.audit-frame .audit-detail {
  border-radius: calc(var(--r-lg) - 1.5px);
}
.audit-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px 280px at 100% 0%, rgba(8,145,178,.34), transparent 60%);
  pointer-events: none;
}
.audit-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.6rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.audit-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  letter-spacing: -0.02em;
}
.audit-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .92rem;
  color: var(--text-muted);
}
.audit-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent-text);
  letter-spacing: -0.01em;
}
.audit-divider { color: var(--text-faint); }
.audit-body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
  margin-bottom: 1.8rem;
}
.audit-block h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.audit-block ul { display: grid; gap: .7rem; }
.audit-block li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-soft);
  font-size: .94rem;
  line-height: 1.45;
}
.audit-block li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid rgba(8,145,178,.4);
}
.audit-block li::after {
  content: "";
  position: absolute; left: 6px; top: 8px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--accent-cyan);
  border-bottom: 2px solid var(--accent-cyan);
  transform: rotate(-45deg);
}
.audit-strip {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.2rem 2rem;
  margin: 0 calc(-1 * var(--audit-detail-padding)) calc(-1 * var(--audit-detail-padding));
  padding: clamp(1.5rem, 2.4vw, 1.9rem) var(--audit-detail-padding);
  border-top: 1px solid var(--line);
  background: rgba(var(--brand-teal-rgb), .07);
}
.audit-strip h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .4rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.audit-strip p {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.5;
}
.audit-cta {
  position: relative;
  white-space: nowrap;
}
.post-audit {
  margin-top: 1.5rem;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.02);
}
.post-audit h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: .8rem;
  letter-spacing: -0.01em;
}
.post-audit p { color: var(--text-muted); font-size: .96rem; line-height: 1.55; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-copy .section-header { margin-bottom: 0; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255,255,255,.02);
  font-weight: 600;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.contact-info-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: rgba(52,200,224,.06);
}
.contact-info-item svg, .contact-info-icon {
  width: 22px; height: 22px;
  color: var(--accent-cyan);
  flex: none;
}

.contact-form-wrapper { position: relative; }
.contact-form {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.006));
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text-soft); }
.form-group input, .form-group textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--r-sm);
  padding: .85rem 1rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  resize: vertical;
}
.form-group textarea { min-height: 130px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(52,200,224,.14);
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .87rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 6px;
  background: var(--bg-2);
  cursor: pointer;
  position: relative;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.form-consent input[type="checkbox"]:checked { background: var(--grad); border-color: transparent; }
.form-consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute; left: 6px; top: 2px;
  width: 6px; height: 11px;
  border-right: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: rotate(45deg);
}
.form-consent label { cursor: pointer; }
.form-consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-consent a:hover { color: var(--accent-cyan); }
.btn-submit { margin-top: .2rem; }
.hidden { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Form status panels */
.form-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .6rem;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.006));
}
.form-status-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  font-size: 1.6rem;
  margin-bottom: .4rem;
}
.form-success { border-color: rgba(8,145,178,.3); }
.form-success .form-status-icon { color: var(--bg); background: var(--grad); }
.form-error { border-color: rgba(239,68,68,.3); }
.form-error .form-status-icon { color: #fff; background: linear-gradient(135deg, #b91c3a, #ef4444); }
.form-status-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.form-status-text { color: var(--text-muted); max-width: 36ch; }
.form-status-btn { margin-top: .6rem; }

/* ============================================================
   ByteBot live product demo
   ============================================================ */
.bytebot {
  position: fixed;
  right: max(1.5rem, env(safe-area-inset-right));
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  z-index: 140;
  --bytebot-surface-top: #20293B;
  --bytebot-surface-bottom: #141C2A;
  --bytebot-assistant: #26324A;
  --bytebot-user-top: #0E5C72;
  --bytebot-user-bottom: #146E82;
  --bytebot-online: #22C55E;
  --bytebot-online-ring: #0E5566;
  --bytebot-label: #8FEFF9;
  --bytebot-message: #E7ECF4;
  --bytebot-spring: cubic-bezier(.34, 1.36, .5, 1);
  font-size: 1rem;
}
.bytebot-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: visible;
  padding: 0;
  border: 1px solid rgba(94, 231, 242, .5);
  border-radius: 50%;
  color: var(--text);
  background: var(--grad);
  box-shadow: 0 18px 50px -16px rgba(0, 0, 0, .95), 0 0 34px -4px rgba(var(--brand-teal-rgb), .55);
  transform-origin: bottom right;
  transition: transform .46s var(--bytebot-spring), opacity .46s var(--bytebot-spring), box-shadow .2s var(--ease), filter .2s var(--ease);
  animation: bbNudge 10s ease-in-out 10s infinite;
}
.bytebot-toggle:hover {
  filter: brightness(1.08);
  box-shadow: 0 18px 50px -16px rgba(0, 0, 0, .95), 0 0 42px -2px rgba(var(--brand-teal-rgb), .68);
}
.bytebot-toggle::before,
.bytebot-toggle::after {
  position: absolute;
  inset: -1px;
  border: 1.5px solid rgba(94, 231, 242, .45);
  border-radius: inherit;
  pointer-events: none;
  content: "";
  animation: bbPulse 10s ease-out 10s infinite;
}
.bytebot-toggle::after {
  border-color: rgba(34, 211, 238, .3);
  animation-name: bbPulse2;
}
.bytebot-toggle-icon,
.bytebot-identity {
  display: grid;
  place-items: center;
  flex: none;
}
.bytebot-toggle-icon {
  position: relative;
  z-index: 1;
}
.bytebot-toggle-icon .bytebot-mark--head { width: 36px; height: 30px; }
.bytebot-online-dot {
  position: absolute;
  z-index: 2;
  width: 13px;
  height: 13px;
  border: 2px solid var(--bytebot-online-ring);
  border-radius: 50%;
  background: var(--bytebot-online);
}
.bytebot-toggle > .bytebot-online-dot { right: 0; bottom: 2px; }
.bytebot--open .bytebot-toggle {
  opacity: 0;
  transform: scale(.85) translateY(6px);
  pointer-events: none;
  animation: none;
}
.bytebot--open .bytebot-toggle::before,
.bytebot--open .bytebot-toggle::after { opacity: 0; animation: none; }

.bytebot-panel {
  position: fixed;
  right: max(1.5rem, env(safe-area-inset-right));
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 3rem));
  height: min(640px, calc(100dvh - 3rem));
  max-height: calc(100vh - 3rem);
  overflow: hidden;
  border: 1.5px solid transparent;
  border-radius: 24px;
  background:
    radial-gradient(360px 280px at 100% 0%, rgba(var(--brand-teal-rgb), .24), transparent 60%) padding-box,
    linear-gradient(165deg, var(--bytebot-surface-top), var(--bytebot-surface-bottom)) padding-box,
    linear-gradient(150deg, rgba(94, 231, 242, .9) 0%, rgba(var(--brand-teal-rgb), .45) 22%, rgba(255, 255, 255, .1) 48%, rgba(255, 255, 255, .16) 100%) border-box;
  box-shadow: 0 30px 70px -26px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .08);
  opacity: 0;
  transform: scale(.34);
  transform-origin: bottom right;
  pointer-events: none;
  transition: transform .46s var(--bytebot-spring), opacity .46s var(--bytebot-spring);
}
.bytebot--open .bytebot-panel { opacity: 1; transform: none; pointer-events: auto; }
.bytebot-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  padding: .75rem 1.15rem;
  border-bottom: 1px solid rgba(var(--brand-teal-rgb), .35);
  background: linear-gradient(118deg, rgba(var(--brand-teal-rgb), .22), rgba(34, 211, 238, .14));
}
.bytebot-identity {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
  background: var(--grad);
  box-shadow: 0 10px 26px rgba(var(--brand-teal-rgb), .4);
}
.bytebot-identity .bytebot-mark--head {
  width: 34px;
  height: 29px;
}
.bytebot-identity > .bytebot-online-dot { right: -2px; bottom: -1px; }

@keyframes bbNudge {
  0%, 12%, 100% { transform: scale(1) rotate(0); }
  2% { transform: scale(1.05) rotate(-5deg); }
  5% { transform: scale(1.04) rotate(5deg); }
  8% { transform: scale(1.04) rotate(-3deg); }
  11% { transform: scale(1) rotate(0); }
}
@keyframes bbPulse {
  0% { opacity: 0; transform: scale(1); }
  1% { opacity: .4; }
  13% { opacity: 0; transform: scale(1.32); }
  100% { opacity: 0; transform: scale(1.32); }
}
@keyframes bbPulse2 {
  0%, 3% { opacity: 0; transform: scale(1); }
  4% { opacity: .26; }
  17% { opacity: 0; transform: scale(1.4); }
  100% { opacity: 0; transform: scale(1.4); }
}

@keyframes bytebotBlink {
  0%, 42%, 58%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(.12); }
}
@keyframes bytebotIdleBlink {
  0%, 3%, 6%, 58%, 61%, 64%, 100% { transform: scaleY(1); }
  1.5%, 59.5%, 62.5% { transform: scaleY(.12); }
}
@keyframes bytebotThinking {
  0%, 100% { opacity: .62; }
  50% { opacity: 1; }
}
.bytebot:not(.bytebot--open) .bytebot-toggle .bytebot-mark__eye {
  animation: bytebotIdleBlink 6.8s ease-in-out .18s infinite;
}
.bytebot:not(.bytebot--open) .bytebot-toggle:is(:hover, :focus-visible) .bytebot-mark__eye {
  animation: bytebotBlink .42s ease-in-out 1;
}
.bytebot--open .bytebot-identity .bytebot-mark__eye {
  animation: bytebotIdleBlink 6.8s ease-in-out .18s infinite;
}
.bytebot--open .bytebot-identity:hover .bytebot-mark__eye {
  animation: bytebotBlink .42s ease-in-out 1;
}
.bytebot--thinking .bytebot-identity .bytebot-mark__face-accent {
  animation: bytebotThinking .9s ease-in-out infinite;
}
.bytebot-heading { min-width: 0; }
.bytebot-product-label {
  display: block;
  margin-bottom: .06rem;
  color: var(--bytebot-label);
  font-family: var(--font-mono);
  font-size: .55rem;
  line-height: 1.2;
  letter-spacing: .12em;
}
.bytebot-heading h2 { margin: 0; color: #FFF; font-size: 1.02rem; font-weight: 700; line-height: 1.15; }
.bytebot-heading p {
  margin-top: .04rem;
  color: var(--text-soft);
  font-size: .72rem;
  line-height: 1.3;
}
.bytebot-header-actions { display: flex; }
.bytebot-icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--text-muted);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.bytebot-icon-button:hover { color: var(--text); background: rgba(255,255,255,.06); }
.bytebot-icon-button svg { width: 18px; height: 18px; }
#bytebot-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
}
#bytebot-close:hover {
  color: #FFF;
  background: transparent;
}
#bytebot-close svg { width: 28px; height: 28px; }

.bytebot-conversation {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  padding: 1rem 1.1rem .3rem;
}
.bytebot-messages {
  display: flex;
  flex: 1;
  min-height: 120px;
  flex-direction: column;
  gap: .8rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .16) transparent;
  padding: 0 .15rem .45rem 0;
}
.bytebot-message {
  --bytebot-message-opacity: 1;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  max-width: 90%;
}
.bytebot-message--user { align-self: flex-end; align-items: flex-end; }
.bytebot-message--entering.bytebot-message--assistant {
  animation: bytebotAssistantMessageIn .34s var(--ease) both;
  transform-origin: bottom left;
}
.bytebot-message--entering.bytebot-message--user {
  animation: bytebotUserMessageIn .3s var(--ease) both;
  transform-origin: bottom right;
}
@keyframes bytebotAssistantMessageIn {
  from { opacity: 0; transform: translateY(9px) scale(.985); }
  to { opacity: var(--bytebot-message-opacity); transform: none; }
}
@keyframes bytebotUserMessageIn {
  from { opacity: 0; transform: translateY(10px) scale(.965); }
  to { opacity: var(--bytebot-message-opacity); transform: none; }
}
.bytebot-message--resolving {
  position: relative;
  transition: width .34s var(--ease), height .34s var(--ease);
  will-change: width, height;
}
.bytebot-message--resolving .bytebot-thinking {
  position: absolute;
  z-index: 1;
  opacity: 1;
  transform-origin: bottom left;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.bytebot-message--resolving.bytebot-message--answer-visible .bytebot-thinking {
  opacity: 0;
  transform: translateY(-4px) scale(.985);
}
.bytebot-answer--revealing {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .24s var(--ease) .06s, transform .24s var(--ease) .06s;
}
.bytebot-answer--revealing.bytebot-answer--visible {
  opacity: 1;
  transform: none;
}
.bytebot-message-author {
  margin: 0 0 .25rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.bytebot-message p,
.bytebot-thinking {
  padding: .72rem .9rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  color: var(--bytebot-message);
  background: var(--bytebot-assistant);
  font-size: .86rem;
  line-height: 1.52;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.bytebot-message--user p {
  border-color: rgba(var(--brand-teal-rgb), .5);
  border-radius: 14px;
  color: var(--text);
  background: linear-gradient(118deg, var(--bytebot-user-top), var(--bytebot-user-bottom));
}
.bytebot-message--pending { --bytebot-message-opacity: .76; opacity: .76; }
.bytebot-thinking {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: min(14.5rem, 100%);
  min-height: 48px;
  background: var(--bytebot-assistant);
}
.bytebot-thinking-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}
.bytebot-thinking-glyph i {
  width: 3px;
  height: 15px;
  border-radius: var(--r-pill);
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--brand-teal-rgb), .22);
  animation: bytebotThinkingWave 1.05s ease-in-out infinite;
}
.bytebot-thinking-glyph i:nth-child(2) { animation-delay: .1s; }
.bytebot-thinking-glyph i:nth-child(3) { animation-delay: .2s; }
.bytebot-thinking-glyph i:nth-child(4) { animation-delay: .3s; }
.bytebot-thinking--verification {
  border-color: rgba(var(--brand-teal-rgb), .32);
  background: rgba(var(--brand-teal-rgb), .08);
}
.bytebot-thinking--verification .bytebot-thinking-glyph i {
  opacity: .48;
  animation: none;
  transform: scaleY(.55);
}
.bytebot-thinking-text {
  min-width: 0;
  color: var(--text-soft);
  font-size: .78rem;
  line-height: 1.35;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.bytebot-thinking-text::after {
  color: var(--accent);
  content: '…';
}
.bytebot-thinking-text--changing { opacity: 0; transform: translateY(4px); }
@keyframes bytebotThinkingWave {
  0%, 100% { opacity: .3; transform: scaleY(.35); }
  45% { opacity: 1; transform: scaleY(1); }
}
.bytebot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  max-height: var(--bytebot-suggestions-height, 10rem);
  overflow: hidden;
  padding-top: .45rem;
  opacity: 1;
  transition: max-height .22s var(--ease), padding-top .22s var(--ease), opacity .18s var(--ease);
}
.bytebot-suggestion {
  padding: .5rem .7rem;
  border: 1px solid rgba(var(--brand-teal-rgb), .4);
  border-radius: var(--r-pill);
  color: var(--text-soft);
  background: var(--grad-soft);
  font-size: .72rem;
  line-height: 1.25;
  text-align: left;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), opacity .18s var(--ease), transform .22s var(--ease);
}
.bytebot-suggestion:hover { color: #FFF; border-color: var(--accent); }
.bytebot-suggestions--leaving {
  max-height: 0;
  padding-top: 0;
  opacity: 0;
  pointer-events: none;
}
.bytebot-suggestions--preparing { transition: none; }
.bytebot-suggestions--leaving .bytebot-suggestion {
  opacity: 0;
  transform: translateY(-5px) scale(.96);
}
.bytebot-suggestions--leaving .bytebot-suggestion--selected {
  color: #FFF;
  border-color: var(--accent);
  background: rgba(var(--brand-teal-rgb), .2);
  transform: translateY(-9px) scale(.98);
}
.bytebot-suggestions--returning { animation: bytebotSuggestionsReturn .25s var(--ease) both; }
@keyframes bytebotSuggestionsReturn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.bytebot-status,
.bytebot-error {
  margin-top: .5rem;
  padding: .48rem .6rem;
  border-radius: var(--r-xs);
  font-size: .71rem;
  line-height: 1.4;
}
.bytebot-status {
  color: var(--text-soft);
  background: transparent;
  font-family: var(--font-body);
}
.bytebot-status:not(.bytebot-status--screenreader) {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.bytebot-status:not(.bytebot-status--screenreader)::before {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--brand-teal-rgb), .12);
  content: '';
}
.bytebot-status--screenreader {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}
.bytebot-error { color: #fecdd3; background: rgba(190, 24, 93, .14); border: 1px solid rgba(244, 63, 94, .22); }
.bytebot-verification {
  width: 100%;
  height: 0;
  min-height: 0;
}
.bytebot-verification--visible {
  height: auto;
  margin-top: .55rem;
  padding: .55rem;
  border: 1px solid rgba(var(--brand-teal-rgb), .3);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(var(--brand-teal-rgb), .1), rgba(var(--brand-teal-rgb), .025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  animation: bytebotVerificationIn .3s var(--ease) both;
  transform-origin: bottom left;
}
.bytebot-verification--visible .bytebot-status {
  margin: 0;
  padding: .16rem .2rem .52rem;
  border-radius: 0;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.005em;
}
@keyframes bytebotVerificationIn {
  from { opacity: 0; transform: translateY(9px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.bytebot-verification--visible.bytebot-verification--leaving {
  pointer-events: none;
  animation: bytebotVerificationOut .22s var(--ease) both;
}
@keyframes bytebotVerificationOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(6px) scale(.985); }
}
.bytebot-turnstile {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 4.5rem;
  margin-top: .55rem;
}
.bytebot-turnstile[aria-hidden="true"] {
  height: 0;
  min-height: 0;
  margin-top: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.bytebot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .55rem;
  margin: .7rem 1.1rem;
  padding: .55rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(15, 10, 32, .6);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.bytebot-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--brand-teal-rgb), .12); }
.bytebot-form textarea {
  width: 100%;
  min-height: 38px;
  max-height: 112px;
  padding: .45rem .4rem;
  resize: none;
  overflow-y: auto;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  /* iOS Safari zooms focused form controls whose text is smaller than 16px. */
  font-size: 1rem;
  line-height: 1.45;
}
.bytebot-form textarea::placeholder { color: var(--text-faint); }
.bytebot-send {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-faint);
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), opacity .2s var(--ease);
}
.bytebot-send--ready {
  color: var(--bg);
  border-color: rgba(var(--brand-teal-rgb), .75);
  background: var(--grad);
  box-shadow: 0 8px 22px -10px var(--glow-indigo), inset 0 1px 0 rgba(255,255,255,.18);
}
.bytebot-send:hover:not(:disabled) { transform: translateY(-1px) scale(1.03); }
.bytebot-send:active:not(:disabled) { transform: scale(.96); }
.bytebot-send:disabled { cursor: default; opacity: .72; }
.bytebot-suggestion:disabled { cursor: not-allowed; opacity: .5; }
.bytebot-send svg { width: 18px; height: 18px; }
.bytebot-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .2rem 1.1rem max(.9rem, env(safe-area-inset-bottom));
  color: var(--text-muted);
  font-size: .6rem;
  line-height: 1.4;
}
.bytebot-footer p { white-space: nowrap; }
.bytebot-footer p a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.bytebot-powered {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  flex: none;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: .58rem;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bytebot-powered-logo { width: auto; height: 7px; color: var(--text-soft); }
.bytebot-powered-logo__accent { fill: var(--brand-teal); }
.bytebot-strings { display: none; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(180deg, transparent, rgba(8,145,178,.04));
  margin-top: var(--section-y);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-tag { color: var(--text-muted); max-width: 34ch; font-size: .95rem; }
.footer-col-title {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: .65rem; align-items: flex-start; }
.footer-nav a, .footer-contact a {
  color: var(--text-muted);
  font-size: .95rem;
  transition: color .2s var(--ease);
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--text); }
.footer-meta a { color: var(--text-muted); transition: color .2s var(--ease); }
.footer-meta a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }

/* ============================================================
   Legal page (privacy)
   ============================================================ */
.legal-page {
  padding-top: clamp(8rem, 14vh, 11rem);
  padding-bottom: var(--section-y);
}
.legal-container {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.legal-container .section-title { margin-bottom: 2rem; }
.legal-container h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-top: 2rem;
  margin-bottom: .6rem;
}
.legal-container p { color: var(--text-soft); margin-bottom: .6rem; line-height: 1.65; }
.legal-container a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-container a:hover { color: var(--accent-cyan); }
.legal-back { margin-top: 2.5rem; font-weight: 600; }

/* ============================================================
   Reveal animations
   ============================================================ */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
html.js .reveal.in-view {
  opacity: 1;
  transform: none;
  transition-delay: var(--d, 0s);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-cta.btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .process-total, .process-end { display: none; }
  .process-timeline {
    display: flex;
    flex-direction: column;
    gap: 26px;
  }
  .process-step {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 16px;
  }
  .process-step::before {
    top: 40px;
    left: 19px;
    width: 2px;
    height: calc(100% + 26px - 40px);
    background: linear-gradient(180deg, var(--cyan), var(--brand-teal));
    transform-origin: top center;
    transform: scaleY(var(--seg));
  }
  .process-step:last-child::before {
    width: 2px;
    height: calc(100% - 40px);
    background: repeating-linear-gradient(180deg, rgba(var(--brand-teal-rgb), .55) 0 6px, transparent 6px 12px);
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
    mask-image: linear-gradient(180deg, #000 40%, transparent);
  }
  .step-number {
    width: 40px;
    height: 40px;
    font-size: .82rem;
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgba(var(--brand-teal-rgb), .18);
  }
  .process-step:first-child .step-number {
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgba(var(--brand-teal-rgb), .35), 0 8px 24px -8px rgba(var(--brand-teal-rgb), .7);
  }
  .process-step:not(:first-child):hover .step-number {
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgba(var(--brand-teal-rgb), .45), 0 0 24px rgba(var(--accent-cyan-rgb), .22);
  }
  .step-stem { display: none; }
  .step-content { gap: .3rem; }
  .step-duration { font-size: .62rem; letter-spacing: .12em; }
  .step-content h3 { font-size: 1.05rem; }
  .step-content p { font-size: .88rem; }
}

/* About: collapse the two-column layout to a single column */
@media (max-width: 820px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-portrait { grid-column: 1; grid-row: 1; width: 100%; max-width: 380px; margin-inline: auto; }
  .about-copy { grid-column: 1; grid-row: 2; }
  .audit-strip {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .audit-cta { width: 100%; }
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .feature-card { grid-column: span 12; }
  .feature-card--audit {
    grid-template-columns: 1fr;
    grid-template-areas:
      "stack"
      "copy";
  }
  .feature-audit-head {
    grid-area: stack;
    position: relative;
    z-index: 1;
    align-self: center;
    padding: 1.4rem;
  }
  .feature-audit-art {
    grid-area: stack;
    min-height: 100%;
    justify-items: end;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 46%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 46%);
  }
  .feature-audit-icon {
    width: 78px;
    height: 65px;
    justify-self: end;
    margin-right: 1.3rem;
  }
  .feature-audit-copy { padding: 1rem 1.4rem 1.4rem; }
  .audit-body { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .audit-header { flex-direction: column; }
  .hero-actions .btn-primary { width: 100%; }
  .bytebot {
    right: max(.8rem, env(safe-area-inset-right));
    bottom: max(.8rem, env(safe-area-inset-bottom));
  }
  .bytebot-toggle { min-height: 48px; }
  .bytebot-panel {
    right: max(.5rem, env(safe-area-inset-right));
    bottom: max(.5rem, env(safe-area-inset-bottom));
    left: max(.5rem, env(safe-area-inset-left));
    width: auto;
    height: min(720px, calc(100dvh - 1rem));
    max-height: calc(100vh - 1rem);
    border-radius: var(--r) var(--r) var(--r-sm) var(--r-sm);
    transform-origin: bottom center;
  }
  .bytebot-header { padding: .85rem; }
  .bytebot-heading p { max-width: 26ch; }
  .bytebot-conversation { padding-inline: .85rem; }
  .bytebot-form { margin-inline: .85rem; }
  .bytebot-footer { padding-inline: .85rem; }
}

/* Stat strip stacks vertically on the narrowest screens */
@media (max-width: 520px) {
  .stats-grid { flex-direction: column; gap: 1.2rem; }
  .stat-item { padding-inline: 0; }
  .stat-item + .stat-item::before { display: none; }
}

@media (max-width: 384px) {
  .feature-audit-head .feature-tagline {
    padding-inline: .55rem;
    font-size: .64rem;
    letter-spacing: .08em;
  }
  .feature-audit-icon {
    width: 68px;
    height: 57px;
    margin-right: -.25rem;
  }
}

/* ============================================================
   Reduced motion / battery
   ============================================================ */
body.anim-paused .bg-mesh,
body.anim-paused .scroll-cue svg { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* process chain shows its resting state at once; delays would otherwise outlive the duration override */
  html.js .process-stepper { --seg: 1; --pop: 1; --copy: 1; --tail: 1; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  .bytebot-toggle,
  .bytebot-toggle::before,
  .bytebot-toggle::after { animation: none !important; }
  .bytebot-panel,
  .bytebot--open .bytebot-panel { transform: none !important; }
  .feature-card--service:hover { transform: none; }
  .bb-eye,
  .bytebot-mark__eye,
  .bytebot-mark__face-accent {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
