/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Tema preto e branco */
  --site-bg: #0a0a0a;
  --site-bg-elevated: #0f0f0f;
  --site-bg-surface: #0a0a0a;
  --site-bg-card: #141414;
  --site-border: rgba(255, 255, 255, 0.08);
  --site-border-hover: rgba(255, 255, 255, 0.18);
  --site-text: rgba(255, 255, 255, 0.92);
  --site-text-muted: #a3a3a3;
  --site-text-subtle: #737373;
  --glow-soft: rgba(255, 255, 255, 0.04);
  --glass-bg: rgba(20, 20, 20, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Sobrescreve tokens de marca no site — apenas P&B */
  --as-color-primary: #fafafa;
  --as-color-primary-hover: #ffffff;
  --as-color-secondary: #a3a3a3;
  --as-gradient-brand: linear-gradient(180deg, #ffffff 0%, #a3a3a3 100%);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  color-scheme: dark;
}

body {
  font-family: var(--as-font-body);
  font-size: var(--as-text-base);
  color: var(--site-text);
  background: var(--site-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 72px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 100% 75% at 50% 0%, black 8%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 35% at 85% 8%, var(--glow-soft), transparent 55%),
    radial-gradient(ellipse 45% 30% at 8% 92%, var(--glow-soft), transparent 50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

main, .header, .footer {
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--as-space-6);
}

.container--narrow {
  max-width: 720px;
}

.container--wide {
  width: 100%;
  max-width: min(1320px, 100%);
  margin: 0 auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

/* ===== Accessibility ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--as-space-4);
  z-index: 200;
  padding: var(--as-space-3) var(--as-space-4);
  background: #fafafa;
  color: #0a0a0a;
  border-radius: var(--as-radius-sm);
  font-weight: 600;
  font-size: var(--as-text-sm);
}

.skip-link:focus {
  top: var(--as-space-4);
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .kinetic-band-track {
    animation: none !important;
  }
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.header--transparent:not(.is-scrolled) {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.header.is-scrolled {
  border-bottom-color: var(--site-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo img { height: 28px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--as-space-8);
}

.nav-links a:not(.btn) {
  font-size: var(--as-text-sm);
  font-weight: 500;
  color: var(--site-text-muted);
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).is-active {
  color: var(--site-text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--as-space-2);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--site-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--as-radius-md);
  font-family: var(--as-font-display);
  font-weight: 600;
  font-size: var(--as-text-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-sm { padding: 8px 18px; }
.btn-lg { padding: 16px 32px; font-size: var(--as-text-base); }

.btn-primary {
  background: #fafafa;
  color: #0a0a0a;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: #ffffff;
  box-shadow: 0 0 36px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--site-text);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--site-text);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--as-space-16) 0 var(--as-space-12);
  background: var(--site-bg);
  border-bottom: 1px solid var(--site-border);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-kinetic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--as-font-display);
  font-size: clamp(6rem, 22vw, 14rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  user-select: none;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: orb-float 12s ease-in-out infinite;
}

.hero-orb--blue {
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  top: -10%;
  right: -8%;
  background: rgba(255, 255, 255, 0.035);
}

.hero-orb--teal {
  width: min(400px, 55vw);
  height: min(400px, 55vw);
  bottom: -5%;
  left: -6%;
  background: rgba(255, 255, 255, 0.025);
  animation-delay: -4s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-16px, 12px) scale(1.05); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h1,
.hero .lead,
.hero-trust {
  text-align: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--as-space-3);
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--site-border);
  border-radius: 100px;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(8px);
  font-family: var(--as-font-mono);
  font-size: var(--as-text-xs);
  color: var(--site-text-muted);
  margin-bottom: var(--as-space-8);
}

.hero-mark {
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--as-font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: var(--as-space-6);
  color: var(--site-text);
}

.hero .lead {
  font-size: clamp(var(--as-text-base), 2vw, var(--as-text-xl));
  color: var(--site-text-muted);
  line-height: 1.75;
  margin: 0 auto var(--as-space-10);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--as-space-4);
  justify-content: center;
  margin-bottom: var(--as-space-10);
}

.hero-trust {
  font-size: var(--as-text-sm);
  color: var(--site-text-subtle);
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--as-space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.hero-scroll-hint:hover { opacity: 1; }

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ===== Marquee ===== */
.marquee-band {
  border-top: 1px solid var(--site-border);
  border-bottom: 1px solid var(--site-border);
  background: var(--site-bg-surface);
  padding: var(--as-space-4) 0;
  overflow: hidden;
}

.marquee-band--compact {
  margin-bottom: var(--as-space-8);
  border-radius: var(--as-radius-lg);
  border: 1px solid var(--site-border);
}

.marquee {
  overflow: hidden;
  user-select: none;
}

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

.marquee--reverse .marquee-inner {
  animation-direction: reverse;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: var(--as-space-8);
  flex-shrink: 0;
  padding-right: var(--as-space-8);
  font-family: var(--as-font-display);
  font-size: var(--as-text-sm);
  font-weight: 600;
  color: var(--site-text-muted);
  white-space: nowrap;
}

.marquee-dot {
  color: rgba(255, 255, 255, 0.35);
  font-size: var(--as-text-xs);
}

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

/* ===== Kinetic text ===== */
.kinetic-section {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--site-border);
  background: var(--site-bg);
}

.kinetic-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--glow-soft), transparent);
  pointer-events: none;
}

.kinetic-section--glow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(640px, 85vw);
  height: 140px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.06), transparent 70%);
  pointer-events: none;
  filter: blur(48px);
}

.kinetic-section--compact {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.kinetic-track {
  display: flex;
  flex-direction: column;
  gap: clamp(0.25rem, 1vw, 0.75rem);
  position: relative;
  z-index: 1;
}

.kinetic-line {
  font-family: var(--as-font-display);
  font-size: clamp(2.75rem, 9vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.06);
  transition: transform 0.1s linear, color 0.6s ease, text-shadow 0.6s ease;
  will-change: transform;
}

.kinetic-line.is-visible {
  color: rgba(255, 255, 255, 0.13);
  text-shadow: 0 0 80px rgba(255, 255, 255, 0.1);
}

.kinetic-line--left { padding-left: 3%; }
.kinetic-line--right {
  padding-right: 3%;
  text-align: right;
  align-self: flex-end;
}

.kinetic-line--center {
  text-align: center;
  align-self: center;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.1em;
}

.kinetic-accent {
  color: rgba(255, 255, 255, 0.92);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
  background: none;
  filter: none;
}

.kinetic-outline {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.kinetic-band {
  overflow: hidden;
  padding: var(--as-space-3) 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.kinetic-band + .kinetic-band {
  margin-top: var(--as-space-2);
}

.kinetic-band-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(2rem, 5vw, 3.5rem);
  animation: kinetic-band-scroll 28s linear infinite;
  will-change: transform;
}

.kinetic-band--reverse .kinetic-band-track {
  animation-direction: reverse;
  animation-duration: 34s;
}

.kinetic-band-group {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.kinetic-band-item {
  font-family: var(--as-font-display);
  font-size: clamp(1.25rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.07);
}

.kinetic-section.is-active .kinetic-band-item {
  color: rgba(255, 255, 255, 0.12);
}

.kinetic-band-sep {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1em;
  font-family: var(--as-font-mono);
  font-size: clamp(0.65rem, 1.5vw, 0.85rem);
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}

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

.future-divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--site-border-hover), rgba(255, 255, 255, 0.2), var(--site-border-hover), transparent);
  opacity: 0.55;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ===== Showcase ===== */
.showcase {
  padding-top: var(--as-space-16);
  text-align: center;
}

.showcase .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header--center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-header--center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.showcase .section-header--futuristic .eyebrow {
  justify-content: center;
}

.showcase .hero-panel {
  width: 100%;
  max-width: 720px;
  margin: var(--as-space-10) auto 0;
  align-items: center;
}

.showcase .hero-tabs {
  justify-content: center;
  margin-bottom: var(--as-space-6);
}

.showcase .hero-slider {
  width: 100%;
}

.showcase .slide {
  text-align: center;
}

.showcase .slide-list {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
}

.showcase .slider-controls {
  justify-content: center;
}

/* ===== Stack diagram ===== */
.stack-diagram {
  position: relative;
  width: min(640px, 100%);
  height: 420px;
  margin: var(--as-space-12) auto 0;
}

.stack-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--site-border-hover);
  border-radius: 50%;
  box-shadow: 0 0 48px rgba(255, 255, 255, 0.04);
  z-index: 2;
  animation: core-pulse 3s ease-in-out infinite;
}

@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(255, 255, 255, 0.03); }
  50% { box-shadow: 0 0 56px rgba(255, 255, 255, 0.07); }
}

.stack-node {
  position: absolute;
  padding: 12px 18px;
  background: var(--site-bg-card);
  border: 1px solid var(--site-border);
  border-radius: var(--as-radius-md);
  font-family: var(--as-font-display);
  font-size: var(--as-text-sm);
  font-weight: 600;
  color: var(--site-text);
  z-index: 2;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.stack-node:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.stack-node--1 { top: 4%; left: 50%; transform: translateX(-50%); --node-i: 0; }
.stack-node--2 { top: 28%; right: 2%; --node-i: 1; }
.stack-node--3 { bottom: 28%; right: 2%; --node-i: 2; }
.stack-node--4 { bottom: 4%; left: 50%; transform: translateX(-50%); --node-i: 3; }
.stack-node--5 { bottom: 28%; left: 2%; --node-i: 4; }
.stack-node--6 { top: 28%; left: 2%; --node-i: 5; }

.stack-node--1:hover,
.stack-node--4:hover { transform: translateX(-50%) translateY(-2px); }

.stack-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.stack-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), transparent);
  transform-origin: top center;
  opacity: 0.35;
  animation: line-pulse 2.5s ease-in-out infinite;
}

.stack-line--1 { transform: translate(-50%, 0) rotate(0deg); }
.stack-line--2 { transform: translate(-50%, 0) rotate(60deg); animation-delay: 0.2s; }
.stack-line--3 { transform: translate(-50%, 0) rotate(120deg); animation-delay: 0.4s; }
.stack-line--4 { transform: translate(-50%, 0) rotate(180deg); animation-delay: 0.6s; }
.stack-line--5 { transform: translate(-50%, 0) rotate(240deg); animation-delay: 0.8s; }
.stack-line--6 { transform: translate(-50%, 0) rotate(300deg); animation-delay: 1s; }

@keyframes line-pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.55; }
}

.eyebrow {
  font-family: var(--as-font-mono);
  font-size: var(--as-text-xs);
  font-weight: 500;
  color: var(--site-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--as-space-4);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: var(--as-space-4);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.hero-tabs,
.service-tabs,
.tools-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--as-space-2);
  justify-content: center;
}

.hero-tab,
.service-tab,
.tools-tab {
  font-family: var(--as-font-body);
  font-size: var(--as-text-xs);
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--site-border);
  border-radius: 100px;
  background: var(--site-bg-card);
  color: var(--site-text-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.hero-tab:hover,
.service-tab:hover,
.tools-tab:hover {
  border-color: var(--site-border-hover);
  color: var(--site-text);
}

.hero-tab.is-active,
.service-tab.is-active,
.tools-tab.is-active {
  background: #fafafa;
  border-color: #fafafa;
  color: #0a0a0a;
}

.service-tabs {
  margin-bottom: var(--as-space-6);
  justify-content: center;
}

.services-slider {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

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

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Sliders ===== */
.hero-slider,
.services-slider {
  position: relative;
}

.slider--fade .slider-viewport {
  position: relative;
  min-height: 300px;
}

.slider--fade .slider-track {
  display: block;
  transition: none;
}

.slider--fade .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.55s;
  transform: translateY(8px);
}

.slider--fade .slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.slider-viewport {
  overflow: hidden;
  border-radius: var(--as-radius-xl);
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: var(--as-space-8);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--as-radius-xl);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.slide-label {
  font-family: var(--as-font-mono);
  font-size: var(--as-text-xs);
  color: var(--site-text-muted);
  font-weight: 500;
  margin-bottom: var(--as-space-4);
}

.slide h2,
.slide h3 {
  font-family: var(--as-font-display);
  font-size: var(--as-text-xl);
  font-weight: 700;
  margin-bottom: var(--as-space-3);
  color: var(--site-text);
}

.slide p {
  color: var(--site-text-muted);
  font-size: var(--as-text-sm);
  margin-bottom: var(--as-space-6);
  line-height: 1.7;
}

.slide-list li {
  font-size: var(--as-text-sm);
  color: var(--site-text-muted);
  padding: var(--as-space-2) 0;
  padding-left: var(--as-space-4);
  position: relative;
}

.slide-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--as-space-4);
  margin-top: var(--as-space-4);
}

.slider-controls-inline {
  margin-top: 0;
}

.slider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--site-border);
  border-radius: var(--as-radius-md);
  background: var(--site-bg-card);
  color: var(--site-text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.slider-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--site-text);
}

.slider-dots {
  display: flex;
  gap: var(--as-space-2);
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-dot.is-active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

/* ===== Sections ===== */
.section {
  padding: clamp(4rem, 10vh, 7rem) 0;
}

.section.reveal > .container {
  width: 100%;
}

.section-index {
  display: block;
  font-family: var(--as-font-mono);
  font-size: var(--as-text-xs);
  font-weight: 500;
  color: var(--site-text-subtle);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: var(--as-space-4);
}

.section-alt {
  background: var(--site-bg-elevated);
  border-top: 1px solid var(--site-border);
  border-bottom: 1px solid var(--site-border);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header--wide {
  max-width: 900px;
}

.section-header-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  gap: var(--as-space-6);
  text-align: center;
}

.section-header-row .slider-controls-inline {
  margin-top: var(--as-space-2);
}

.section-header h2,
.diff-content h2,
.cta-card h2 {
  font-family: var(--as-font-display);
  font-size: clamp(1.75rem, 3vw, var(--as-text-3xl));
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--site-text);
}

.section-header--futuristic .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--as-space-2);
}

.section-header--futuristic .eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: #ffffff;
}

.section-desc {
  margin-top: var(--as-space-4);
  color: var(--site-text-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

/* ===== About — layout editorial ===== */
.section-about {
  overflow: hidden;
  border-top: 1px solid var(--site-border);
}

.about-editorial {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5.5rem);
}

.about-editorial__header {
  display: grid;
  grid-template-columns: minmax(3rem, 5rem) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--site-border);
}

.about-editorial__header .section-index {
  margin-bottom: 0;
  padding-bottom: 0.35em;
}

.about-editorial__titles {
  display: flex;
  flex-direction: column;
  gap: var(--as-space-4);
}

.about-editorial__titles h2 {
  font-family: var(--as-font-display);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--site-text);
  text-wrap: balance;
  max-width: 20ch;
}

.about-editorial__content {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.about-editorial__lead {
  grid-column: 1 / span 5;
  color: var(--site-text);
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  line-height: 1.65;
  letter-spacing: 0.005em;
  font-weight: 500;
}

.about-editorial__text {
  grid-column: 6 / -1;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding-left: clamp(1.5rem, 4vw, 3.5rem);
  border-left: 1px solid var(--site-border);
}

.about-editorial__text p {
  color: var(--site-text-muted);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.85;
  letter-spacing: 0.015em;
  margin: 0;
}

.about-editorial__values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.value-tile {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--as-radius-xl);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 100%;
}

.value-tile:hover {
  border-color: var(--site-border-hover);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.04);
}

.value-tile__label {
  display: block;
  font-family: var(--as-font-mono);
  font-size: var(--as-text-xs);
  font-weight: 500;
  color: var(--site-text);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0;
}

.value-tile p {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--site-text-muted);
  line-height: 1.8;
  letter-spacing: 0.015em;
  margin: 0;
}

/* ===== Services slider ===== */
.services-track .service-slide {
  flex: 0 0 calc(33.333% - 16px);
  min-width: calc(33.333% - 16px);
  margin-right: var(--as-space-6);
}

.service-slide-inner {
  height: 100%;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--as-radius-lg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-slide-inner:hover {
  border-color: var(--site-border-hover);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.1);
}

.service-num {
  font-family: var(--as-font-mono);
  font-size: var(--as-text-xs);
  color: var(--site-text-muted);
  font-weight: 500;
}

.service-slide h3 {
  font-family: var(--as-font-display);
  font-size: var(--as-text-xl);
  font-weight: 700;
  margin: var(--as-space-3) 0 var(--as-space-6);
  color: var(--site-text);
}

.service-slide ul li {
  font-size: var(--as-text-sm);
  color: var(--site-text-muted);
  padding: 6px 0;
  padding-left: var(--as-space-4);
  position: relative;
}

.service-slide ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.services-slider .slider-dots {
  justify-content: center;
  margin-top: var(--as-space-6);
}

/* ===== Differential ===== */
.diff-editorial {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.diff-editorial__header {
  max-width: 52ch;
  margin: 0 auto;
  text-align: center;
}

.diff-editorial__header h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.diff-editorial__header p {
  color: var(--site-text-muted);
  margin-top: var(--as-space-5);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.diff-editorial__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

.diff-grid {
  display: contents;
}

.diff-content {
  text-align: left;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--as-space-4);
  margin-top: 0;
  text-align: left;
}

.pillar {
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.5rem, 3vw, 2rem);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--as-radius-md);
  border: 1px solid var(--glass-border);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  font: inherit;
  color: inherit;
}

.pillar:hover {
  border-color: var(--site-border-hover);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.pillar.is-active {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--site-border-hover);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.12);
}

.pillar-title {
  display: block;
  font-family: var(--as-font-display);
  font-weight: 700;
  font-size: var(--as-text-sm);
  color: var(--site-text);
  margin-bottom: 2px;
}

.pillar-desc {
  font-size: var(--as-text-xs);
  color: var(--site-text-muted);
}

.audience-block {
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--site-text);
  border-radius: var(--as-radius-xl);
  max-width: none;
  margin: 0;
  width: 100%;
  text-align: left;
  height: 100%;
}

.audience-block h3 {
  font-family: var(--as-font-display);
  font-size: var(--as-text-lg);
  font-weight: 700;
  margin-bottom: var(--as-space-6);
}

.audience-list li {
  font-size: var(--as-text-sm);
  color: var(--as-color-slate-light);
  padding: var(--as-space-2) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.audience-list li:last-child { border-bottom: none; }

/* ===== Tools ===== */
.tools-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--as-space-4);
  margin-bottom: var(--as-space-8);
}

.tools-search-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--as-space-3);
}

.tools-search {
  width: 220px;
  padding: 10px 14px;
  border: 1px solid var(--site-border);
  border-radius: var(--as-radius-md);
  font-family: var(--as-font-body);
  font-size: var(--as-text-sm);
  color: var(--site-text);
  background: var(--site-bg-card);
}

.tools-search::placeholder {
  color: var(--site-text-subtle);
}

.tools-search:focus {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 0;
  border-color: transparent;
}

.tools-count {
  font-family: var(--as-font-mono);
  font-size: var(--as-text-xs);
  color: var(--site-text-muted);
  white-space: nowrap;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--as-space-6);
  max-width: 800px;
  margin: 0 auto;
}

.tool-group {
  padding: var(--as-space-6);
  background: var(--site-bg-card);
  border: 1px solid var(--site-border);
  border-radius: var(--as-radius-lg);
}

.tool-group h3 {
  font-family: var(--as-font-display);
  font-size: var(--as-text-sm);
  font-weight: 700;
  color: var(--site-text);
  margin-bottom: var(--as-space-4);
  padding-bottom: var(--as-space-3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
}

.tool-group ul li {
  font-size: var(--as-text-sm);
  color: var(--site-text-muted);
  padding: 4px 0;
  font-family: var(--as-font-mono);
  transition: opacity 0.2s ease;
}

.tool-group.is-hidden,
[data-tool].is-hidden {
  display: none;
}

/* ===== Properties ===== */
.properties-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  max-width: none;
  margin: 0;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--as-space-4);
  width: 100%;
}

.property-card {
  padding: var(--as-space-6);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--as-radius-lg);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
}

.property-card:hover {
  border-color: var(--site-border-hover);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.08);
}

.property-card.is-active {
  border-color: var(--site-border-hover);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.12);
}

.property-panel {
  padding: var(--as-space-8);
  background: var(--site-bg-card);
  border: 1px solid var(--site-border);
  color: var(--site-text);
  border-radius: var(--as-radius-xl);
  position: static;
  text-align: center;
  box-shadow: none;
}

.property-panel-label {
  font-family: var(--as-font-mono);
  font-size: var(--as-text-xs);
  color: var(--site-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--as-space-3);
}

.property-panel-title {
  font-family: var(--as-font-display);
  font-size: var(--as-text-xl);
  font-weight: 700;
  margin-bottom: var(--as-space-4);
}

.property-panel-body {
  font-size: var(--as-text-sm);
  color: var(--site-text-muted);
  line-height: 1.8;
}

.property-card h3 {
  font-family: var(--as-font-display);
  font-size: var(--as-text-sm);
  font-weight: 700;
  color: var(--site-text);
}

.property-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--site-text-muted);
  margin-bottom: var(--as-space-3);
}

.property-icon svg { width: 20px; height: 20px; }

/* ===== Contact form ===== */
.contact-form {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--as-space-4);
}

.form-field {
  margin-bottom: var(--as-space-4);
}

.form-field label {
  display: block;
  font-size: var(--as-text-sm);
  font-weight: 500;
  margin-bottom: var(--as-space-2);
  color: var(--site-text-muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--site-border);
  border-radius: var(--as-radius-md);
  background: var(--site-bg-elevated);
  color: var(--site-text);
  font-family: var(--as-font-body);
  font-size: var(--as-text-sm);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--site-text-subtle);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 0;
  border-color: transparent;
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--as-color-error);
}

.field-error {
  display: block;
  font-size: var(--as-text-xs);
  color: #fca5a5;
  margin-top: var(--as-space-1);
  min-height: 1rem;
}

.form-feedback {
  margin-top: var(--as-space-4);
  font-size: var(--as-text-sm);
  text-align: center;
  min-height: 1.25rem;
}

.form-feedback.is-success { color: var(--site-text); }
.form-feedback.is-error { color: #fca5a5; }

.contact-form .btn-primary {
  width: 100%;
  margin-top: var(--as-space-2);
}

/* ===== CTA ===== */
.cta-section { padding-bottom: var(--as-space-16); }

.cta-card {
  text-align: center;
  padding: var(--as-space-16) var(--as-space-8);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--site-text);
  border-radius: var(--as-radius-xl);
  box-shadow: 0 0 80px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  width: 120%;
  height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.cta-card h2 { color: var(--site-text); margin-bottom: var(--as-space-4); }

.cta-card > p {
  color: var(--site-text-muted);
  max-width: 520px;
  margin: 0 auto var(--as-space-8);
  line-height: 1.7;
}

.cta-card .btn-primary {
  background: #fafafa;
  color: #0a0a0a;
}

.cta-card .btn-primary:hover {
  background: #ffffff;
}

.cta-note {
  margin-top: var(--as-space-4);
  font-size: var(--as-text-sm);
  color: var(--site-text-subtle);
}

/* ===== Footer ===== */
.footer {
  background: var(--site-bg-surface);
  border-top: 1px solid var(--site-border);
  color: var(--site-text);
  padding: clamp(3rem, 6vw, 5rem) 0 var(--as-space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--site-border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--as-space-4);
  max-width: 320px;
}

.footer-logo {
  display: inline-block;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

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

.footer-tagline {
  font-size: var(--as-text-sm);
  color: var(--site-text-muted);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.footer-col__title {
  font-family: var(--as-font-mono);
  font-size: var(--as-text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--site-text-subtle);
  margin-bottom: var(--as-space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--as-space-3);
}

.footer-links a {
  font-size: var(--as-text-sm);
  color: var(--site-text-muted);
  transition: color 0.2s ease;
  width: fit-content;
}

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

.footer-social-list {
  display: flex;
  flex-direction: column;
  gap: var(--as-space-2);
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: var(--as-space-3);
  padding: var(--as-space-3);
  margin: calc(var(--as-space-3) * -1);
  border-radius: var(--as-radius-md);
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.footer-social-link:hover .footer-social-name {
  color: var(--site-text);
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--site-border);
  border-radius: var(--as-radius-md);
  background: var(--glass-bg);
  color: var(--site-text);
}

.footer-social-icon svg {
  width: 18px;
  height: 18px;
}

.footer-social-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.footer-social-name {
  font-size: var(--as-text-sm);
  font-weight: 600;
  color: var(--site-text-muted);
  transition: color 0.2s ease;
}

.footer-social-handle {
  font-size: var(--as-text-xs);
  color: var(--site-text-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--as-space-4);
  flex-wrap: wrap;
  padding-top: var(--as-space-6);
}

.footer-copy,
.footer-meta {
  font-size: var(--as-text-xs);
  color: var(--site-text-subtle);
  letter-spacing: 0.02em;
}

.footer-meta {
  font-family: var(--as-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== Assistente virtual ===== */
.assistant-widget {
  position: fixed;
  bottom: var(--as-space-6);
  left: var(--as-space-6);
  z-index: 150;
}

.assistant-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  color: var(--site-text);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.assistant-toggle--bubble {
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.assistant-toggle--bubble:hover {
  transform: translateY(-3px);
}

.assistant-toggle--bubble:active {
  transform: translateY(-1px);
}

.assistant-bubble {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  background: var(--site-bg-card);
  border: 1px solid var(--site-border-hover);
  border-radius: 20px 20px 20px 6px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.assistant-bubble::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 14px;
  width: 14px;
  height: 14px;
  background: var(--site-bg-card);
  border-right: 1px solid var(--site-border-hover);
  border-bottom: 1px solid var(--site-border-hover);
  border-radius: 0 0 4px 0;
  transform: rotate(45deg);
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
}

.assistant-bubble__photo {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
}

.assistant-toggle-avatar {
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center 20%;
}

.assistant-toggle-label {
  display: none;
}

.assistant-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.assistant-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.assistant-widget.is-open .assistant-backdrop {
  opacity: 1;
  pointer-events: all;
  z-index: 149;
}

.assistant-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(400px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--site-bg-elevated);
  border-right: 1px solid var(--site-border);
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.4);
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 151;
}

.assistant-widget.is-open .assistant-panel {
  transform: translateX(0);
}

body.assistant-open {
  overflow: hidden;
}

.assistant-header {
  flex-shrink: 0;
  border-bottom: 1px solid var(--site-border);
  background: var(--site-bg-surface);
}

.assistant-header-banner {
  position: relative;
  height: 120px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a 0%, #141414 50%, rgba(255, 255, 255, 0.04) 100%);
}

.assistant-header-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--site-bg-surface) 0%, transparent 60%);
}

.assistant-header-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  opacity: 0.92;
}

.assistant-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--as-space-4);
  padding: var(--as-space-3) var(--as-space-5) var(--as-space-4);
  margin-top: -28px;
  position: relative;
  z-index: 1;
}

.assistant-header-info {
  display: flex;
  align-items: center;
  gap: var(--as-space-3);
  min-width: 0;
}

.assistant-header-avatar {
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--site-bg-surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  object-position: center 20%;
}

.assistant-title {
  font-family: var(--as-font-display);
  font-size: var(--as-text-base);
  font-weight: 700;
  color: var(--site-text);
  line-height: 1.2;
}

.assistant-subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--as-text-xs);
  color: var(--site-text-muted);
  margin-top: 2px;
}

.assistant-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--site-border);
  border-radius: var(--as-radius-sm);
  background: transparent;
  color: var(--site-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.assistant-close:hover {
  color: var(--site-text);
  border-color: var(--site-border-hover);
  background: rgba(255, 255, 255, 0.08);
}

.assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--as-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--as-space-4);
  scroll-behavior: smooth;
}

.assistant-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.assistant-msg--bot {
  align-self: flex-start;
}

.assistant-msg--user {
  align-self: flex-end;
}

.assistant-msg-bubble {
  padding: var(--as-space-3) var(--as-space-4);
  border-radius: var(--as-radius-lg);
  font-size: var(--as-text-sm);
  line-height: 1.55;
  word-break: break-word;
}

.assistant-msg--bot .assistant-msg-bubble {
  background: var(--site-bg-card);
  border: 1px solid var(--site-border);
  color: var(--site-text);
  border-bottom-left-radius: var(--as-radius-sm);
}

.assistant-msg--user .assistant-msg-bubble {
  background: rgba(255, 255, 255, 0.85);
  color: var(--as-color-white);
  border-bottom-right-radius: var(--as-radius-sm);
}

.assistant-msg-time {
  font-size: 0.65rem;
  color: var(--site-text-subtle);
  margin-top: 4px;
  padding: 0 var(--as-space-1);
}

.assistant-msg--user .assistant-msg-time {
  text-align: right;
}

.assistant-typing .assistant-msg-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: var(--as-space-4);
}

.assistant-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--site-text-muted);
  animation: assistant-typing 1.2s ease-in-out infinite;
}

.assistant-typing span:nth-child(2) { animation-delay: 0.15s; }
.assistant-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes assistant-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.assistant-quick {
  display: flex;
  flex-wrap: wrap;
  gap: var(--as-space-2);
  padding: 0 var(--as-space-5) var(--as-space-3);
  flex-shrink: 0;
}

.assistant-quick-btn {
  padding: 6px 12px;
  font-size: var(--as-text-xs);
  font-weight: 500;
  font-family: inherit;
  color: var(--site-text-muted);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.assistant-quick-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.assistant-form {
  display: flex;
  align-items: center;
  gap: var(--as-space-2);
  padding: var(--as-space-4) var(--as-space-5);
  border-top: 1px solid var(--site-border);
  background: var(--site-bg-surface);
  flex-shrink: 0;
}

.assistant-input {
  flex: 1;
  min-width: 0;
  padding: var(--as-space-3) var(--as-space-4);
  font-family: inherit;
  font-size: var(--as-text-sm);
  color: var(--site-text);
  background: var(--site-bg-card);
  border: 1px solid var(--site-border);
  border-radius: var(--as-radius-md);
  outline: none;
  transition: border-color 0.2s ease;
}

.assistant-input::placeholder {
  color: var(--site-text-subtle);
}

.assistant-input:focus {
  border-color: rgba(255, 255, 255, 0.25);
}

.assistant-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: #fafafa;
  color: #0a0a0a;
  border: none;
  border-radius: var(--as-radius-md);
  cursor: pointer;
  transition: background 0.2s ease;
}

.assistant-send:hover {
  background: #ffffff;
}

.assistant-widget.is-open .assistant-toggle {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85) translateY(8px);
}

@media (max-width: 640px) {
  .assistant-widget {
    bottom: var(--as-space-4);
    left: var(--as-space-4);
  }

  .assistant-bubble__photo {
    width: 52px;
    height: 52px;
  }

  .assistant-panel {
    width: 100vw;
  }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .about-editorial__header {
    grid-template-columns: 1fr;
    gap: var(--as-space-4);
  }

  .about-editorial__titles h2 {
    max-width: none;
  }

  .about-editorial__content {
    grid-template-columns: 1fr;
    gap: var(--as-space-8);
  }

  .about-editorial__lead,
  .about-editorial__text {
    grid-column: 1 / -1;
  }

  .about-editorial__text {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--site-border);
    padding-top: var(--as-space-8);
  }

  .about-editorial__values {
    grid-template-columns: 1fr;
  }

  .diff-editorial__grid {
    grid-template-columns: 1fr;
  }

  .diff-grid {
    grid-template-columns: 1fr;
  }

  .stack-diagram {
    height: 360px;
    transform: scale(0.92);
    transform-origin: top center;
  }

  .tools-grid,
  .properties-layout {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .properties-grid {
    grid-template-columns: 1fr;
  }

  .property-panel {
    position: static;
  }

  .services-track .service-slide {
    flex: 0 0 calc(50% - 12px);
    min-width: calc(50% - 12px);
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--as-space-8);
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--site-bg-surface);
    border-bottom: 1px solid var(--site-border);
    padding: var(--as-space-4);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li { padding: var(--as-space-2) 0; }
  .nav-links .btn { width: 100%; margin-top: var(--as-space-2); }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero { padding-top: var(--as-space-12); min-height: auto; padding-bottom: var(--as-space-16); }

  .hero-scroll-hint { display: none; }

  .pillars {
    grid-template-columns: 1fr;
  }

  .about-editorial__values {
    grid-template-columns: 1fr;
    gap: var(--as-space-5);
  }

  .value-tile p {
    max-width: none;
  }

  .kinetic-line {
    font-size: clamp(1.75rem, 10vw, 2.75rem);
  }

  .stack-diagram {
    height: 320px;
    transform: scale(0.85);
  }

  .stack-node {
    font-size: var(--as-text-xs);
    padding: 8px 12px;
  }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .tools-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .tools-search-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .tools-search { width: 100%; }

  .form-row {
    grid-template-columns: 1fr;
  }

  .tools-grid,
  .properties-grid {
    grid-template-columns: 1fr;
  }

  .services-track .service-slide {
    flex: 0 0 100%;
    min-width: 100%;
    margin-right: 0;
  }

  .cta-card { padding: var(--as-space-12) var(--as-space-6); }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--as-space-8);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--as-space-2);
  }
}
