/* AI Code Assistance — página do produto */
:root {
  --bg: #050608;
  --bg-elevated: #0c0e14;
  --bg-card: rgba(14, 17, 26, 0.55);
  --border: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(255, 90, 31, 0.45);
  --text: #f0f3fa;
  --muted: #8b95a8;
  --accent: #ff5a1f;
  --accent-2: #ffb020;
  --azure: #6ec4ff;
  --violet: #a78bfa;
  --green: #34d399;
  --radius: 20px;
  --radius-lg: 28px;
  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1240px;
  --glow: 0 0 80px rgba(255, 90, 31, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ── Aurora background ── */
.scene {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: var(--bg);
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite;
}
.orb-1 {
  width: 55vw; height: 55vw;
  top: -15%; left: -10%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.55), transparent 70%);
  animation-delay: 0s;
}
.orb-2 {
  width: 45vw; height: 45vw;
  top: 5%; right: -12%;
  background: radial-gradient(circle, rgba(110, 196, 255, 0.35), transparent 70%);
  animation-delay: -6s;
}
.orb-3 {
  width: 50vw; height: 50vw;
  bottom: -20%; left: 25%;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.3), transparent 70%);
  animation-delay: -12s;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, 3%) scale(1.05); }
  66% { transform: translate(-3%, 2%) scale(0.97); }
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  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: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 75%);
}

/* ── Nav ── */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-wrap.scrolled {
  padding: 0.65rem 0;
  background: rgba(5, 6, 8, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand img { height: 34px; width: auto; }
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a {
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: width 0.25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-cta { display: inline-flex; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 1rem 1.25rem 1.5rem;
  background: rgba(5, 6, 8, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mobile-menu a {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}
.mobile-menu .btn { margin-top: 0.75rem; width: 100%; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.lang-switch button {
  border: 0; background: transparent;
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.lang-switch button.active {
  background: linear-gradient(135deg, rgba(255,90,31,0.25), rgba(255,176,32,0.15));
  color: var(--text);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0a0a0a;
  box-shadow: 0 4px 24px rgba(255, 90, 31, 0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 70%, 100% { transform: translateX(-100%); }
  85% { transform: translateX(100%); }
}
.btn-secondary {
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.18); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6.5rem 0 4rem;
  position: relative;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: 10%; left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  height: 400px;
  background: radial-gradient(ellipse, rgba(255, 90, 31, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}
.hero-content {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 0 0 1.25rem;
  color: #ffffff;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero h1 .line { display: block; }
.hero h1 .line-white {
  color: #ffffff;
  text-shadow: 0 2px 40px rgba(255, 255, 255, 0.12);
}
.hero h1 .line-accent {
  color: #ffb020;
  background: linear-gradient(135deg, #6ec4ff 0%, #ffb020 50%, #ff5a1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #ffb020;
  text-shadow: 0 0 48px rgba(255, 90, 31, 0.35);
}
@supports (-webkit-background-clip: text) {
  .hero h1 .line-accent {
    -webkit-text-fill-color: transparent;
  }
}
.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 2rem;
  line-height: 1.75;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.8s 0.3s ease both;
}
.install-row { animation: fadeUp 0.8s 0.4s ease both; }
.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 2.5rem;
  animation: fadeUp 0.8s 0.5s ease both;
}
.stat-item {
  padding: 1rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  min-width: 120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 90, 31, 0.3);
  background: rgba(255, 90, 31, 0.08);
  color: #ffb88a;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.8s ease both;
}
.eyebrow .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@keyframes gradShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff, var(--muted));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.35rem;
  font-weight: 500;
}

.install-row {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  overflow: hidden;
  animation: fadeUp 0.8s 0.4s ease both;
  max-width: fit-content;
}
.install-row code {
  padding: 0.75rem 1rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #c5cdd9;
}
.install-row button {
  border: 0;
  border-left: 1px solid var(--border);
  background: rgba(255, 90, 31, 0.12);
  color: var(--accent-2);
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s;
}
.install-row button:hover { background: rgba(255, 90, 31, 0.22); }

/* ── Code terminal ── */
.terminal-wrap {
  position: relative;
  width: min(720px, 100%);
  animation: fadeUp 0.9s 0.25s ease both, float 6s ease-in-out 1s infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.terminal-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at center, rgba(255, 90, 31, 0.15), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.terminal {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 16, 0.88);
  backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 32px 80px rgba(0,0,0,0.6),
    0 0 120px rgba(255, 90, 31, 0.12);
  overflow: hidden;
}
.terminal::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,90,31,0.5), rgba(110,196,255,0.3), rgba(255,176,32,0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}
.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
}
.dots { display: flex; gap: 0.45rem; }
.dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.dots span:nth-child(1) { background: #ff5f57; }
.dots span:nth-child(2) { background: #febc2e; }
.dots span:nth-child(3) { background: #28c840; }
.tab-row {
  display: flex;
  gap: 0.35rem;
  padding: 0.6rem 1rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.tab-row button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-row button.active {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-color: transparent;
}
.terminal pre {
  margin: 0;
  padding: 1.2rem 1.3rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.7;
  color: #b8c0cc;
  min-height: 220px;
}
.code-pane { display: none; }
.code-pane.active { display: block; }
.code-kw { color: #ff7b72; }
.code-fn { color: #d2a8ff; }
.code-str { color: #79c0ff; }
.code-num { color: #ffa657; }
.code-com { color: #6e7681; font-style: italic; }
.cursor-blink {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Floating badges */
.float-badge {
  position: absolute;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(14, 17, 26, 0.8);
  backdrop-filter: blur(12px);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: floatBadge 5s ease-in-out infinite;
  z-index: 3;
}
.float-badge.b1 { top: 8%; right: -8%; animation-delay: 0s; color: var(--azure); }
.float-badge.b2 { bottom: 18%; left: -6%; animation-delay: -2s; color: var(--accent-2); }
.float-badge.b3 { top: 45%; right: -4%; animation-delay: -4s; color: var(--violet); }
@keyframes floatBadge {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ── Sections ── */
section { padding: 6rem 0; position: relative; }
.section-head { margin-bottom: 3rem; }
.section-head.center { text-align: center; max-width: 680px; margin-inline: auto; margin-bottom: 3rem; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-kicker::before,
.section-kicker::after {
  content: "";
  width: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2));
}
.section-kicker::after {
  background: linear-gradient(90deg, var(--accent-2), transparent);
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  line-height: 1.1;
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* ── Bento grid ── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 1rem;
}
.bento-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  padding: 1.5rem;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,90,31,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.bento-card:hover {
  border-color: rgba(255, 90, 31, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(255,90,31,0.08);
}
.bento-card:hover::before { opacity: 1; }
.bento-card.span-6 { grid-column: span 6; }
.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-8 { grid-column: span 8; }
.bento-card.span-12 { grid-column: span 12; }
.bento-card.tall { grid-row: span 2; }
.bento-card.providers-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 140px;
  background: linear-gradient(135deg, rgba(255,90,31,0.08), rgba(110,196,255,0.04)), var(--bg-card);
}

.bento-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--accent-2);
  background: linear-gradient(135deg, rgba(255,90,31,0.2), rgba(255,176,32,0.1));
  border: 1px solid rgba(255,90,31,0.25);
}
.bento-icon svg { display: block; }
.bento-icon-sm {
  width: 36px; height: 36px;
  margin-bottom: 0.65rem;
}
.bento-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.bento-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.bento-card .big-num {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* ── Pipeline SVG ── */
.pipeline-visual {
  position: relative;
  padding: 1rem 0 2rem;
}
.pipeline-svg {
  width: 100%;
  height: auto;
  max-height: 220px;
  display: block;
}
.pipeline-mobile { display: none; }
.pipe-path-flow {
  animation: pipeFlow 2.5s linear infinite;
}
@keyframes pipeFlow {
  to { stroke-dashoffset: -40; }
}
.pipe-circle {
  fill: rgba(14, 17, 26, 0.95);
  stroke: rgba(255, 90, 31, 0.45);
  stroke-width: 2;
}
.pipe-circle-end { stroke: rgba(255, 176, 32, 0.6); }
.pipe-node-svg { transition: transform 0.3s; }
.pipe-node-svg:hover { transform: translate(var(--tx, 0), calc(var(--ty, 0) - 4px)); }
.pipe-num {
  fill: var(--accent-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}
.pipe-label {
  fill: #f0f3fa;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
}
.pipe-sub {
  fill: #8b95a8;
  font-family: var(--font);
  font-size: 11px;
}

/* ── Marquee ── */
.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  padding: 1rem 0;
}
.marquee {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 35s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.provider-chip {
  flex-shrink: 0;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s;
}
.provider-chip:hover {
  border-color: rgba(255,90,31,0.4);
  color: var(--text);
  background: rgba(255,90,31,0.08);
}

/* ── FAQ ── */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.faq-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-card.open { border-color: rgba(255,90,31,0.35); }
.faq-card button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.faq-card button .icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255,90,31,0.12);
  color: var(--accent-2);
  font-size: 1.1rem;
  transition: transform 0.25s;
}
.faq-card.open button .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0 1.25rem;
}
.faq-card.open .faq-answer {
  max-height: 200px;
  padding: 0 1.25rem 1.25rem;
}

/* ── CTA ── */
.cta-section {
  padding: 2rem 0 6rem;
}
.cta-mega {
  position: relative;
  border-radius: calc(var(--radius-lg) + 8px);
  padding: 4rem 3rem;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(255, 90, 31, 0.25);
}
.cta-mega-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(255,90,31,0.25), transparent),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(110,196,255,0.12), transparent),
    rgba(14, 17, 26, 0.6);
  z-index: 0;
}
.cta-mega > *:not(.cta-mega-bg) { position: relative; z-index: 1; }
.cta-mega h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}
.cta-mega p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 50ch;
  margin: 0 auto 2rem;
}
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ── Products ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.product-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.product-card-featured {
  border-color: rgba(110, 196, 255, 0.25);
  background: linear-gradient(145deg, rgba(110,196,255,0.06), var(--bg-card));
}
.product-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,90,31,0.3);
  background: rgba(255,90,31,0.08);
}
.product-badge-new {
  color: #6ec4ff;
  border-color: rgba(110,196,255,0.35);
  background: rgba(110,196,255,0.1);
}
.product-card h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}
.product-card p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.product-note {
  font-size: 0.85rem !important;
  color: var(--accent-2) !important;
  opacity: 0.9;
}
.product-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ── Assistant page ── */
.hero-compact { min-height: auto; padding: 7rem 0 3rem; }
.hero-compact .hero-inner { grid-template-columns: 1fr; }
.alert-section { padding: 0 0 2rem; }
.alert-banner {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 180, 32, 0.35);
  background: rgba(255, 180, 32, 0.06);
}
.alert-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  color: #ffb020;
  background: rgba(255, 180, 32, 0.15);
  border: 1px solid rgba(255, 180, 32, 0.35);
}
.alert-banner strong { display: block; margin-bottom: 0.5rem; font-size: 1.05rem; }
.alert-banner p { margin: 0 0 0.65rem; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.alert-banner p:last-child { margin-bottom: 0; }
.alert-fix { color: var(--text) !important; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.step-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.step-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-2);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(255,90,31,0.1);
  border: 1px solid rgba(255,90,31,0.25);
  margin-bottom: 0.85rem;
}
.step-card h3 { margin: 0 0 0.65rem; font-size: 1.15rem; }
.step-card p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.step-list {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}
.step-list li { margin-bottom: 0.35rem; }
.install-row-block {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.install-row-block code {
  white-space: pre-wrap;
  font-size: 0.78rem;
  line-height: 1.55;
  padding: 1rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .float-badge { display: none; }
  .bento-card.span-6, .bento-card.span-4, .bento-card.span-8, .bento-card.span-12 { grid-column: span 12; }
  .bento-card.tall { grid-row: span 1; }
  .pipeline-svg { display: none; }
  .pipeline-mobile { display: flex; flex-direction: column; gap: 0.65rem; }
  .pipe-step-m {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
  }
  .pipe-step-m > span {
    flex-shrink: 0;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 10px;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-2);
    background: rgba(255,90,31,0.12);
    border: 1px solid rgba(255,90,31,0.25);
  }
  .pipe-step-m strong { display: block; font-size: 0.95rem; }
  .pipe-step-m small { color: var(--muted); font-size: 0.82rem; }
  .faq-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .alert-banner { flex-direction: column; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}
@media (max-width: 720px) {
  .hero { min-height: auto; padding-top: 5.5rem; }
  .hero-stats { gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
  .stat-item { min-width: 100px; padding: 0.85rem 1rem; }
  .stat-num { font-size: 1.75rem; }
  section { padding: 4rem 0; }
  .cta-mega { padding: 2.5rem 1.5rem; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
}
@media (min-width: 901px) {
  .nav-links { display: flex; }
  .mobile-menu { display: none !important; }
}

/* ══════════════════════════════════════════════════════════════════
   Página do produto (/assistant/) — teclas, código inline, chips
   ══════════════════════════════════════════════════════════════════ */

/* Bloco de comandos com botão de copiar: em coluna, a borda é no topo. */
.install-row-block button {
  border-left: 0;
  border-top: 1px solid var(--border);
  width: 100%;
  text-align: center;
}

/* Teclas de atalho. */
kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.78em;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

/* Código inline dentro de texto corrido. */
.step-card code,
.faq-answer code,
.bento-card code,
.alert-banner code,
.section-head code,
.hero-lead code {
  padding: 0.1rem 0.38rem;
  border-radius: 5px;
  background: rgba(110, 196, 255, 0.1);
  color: var(--azure);
  font-family: var(--mono);
  font-size: 0.85em;
  white-space: nowrap;
}
/* Dentro de blocos de comando o code já tem estilo próprio — não sobrepor. */
.install-row code,
.install-row-block code {
  padding: 0.75rem 1rem;
  background: none;
  color: #c5cdd9;
  white-space: pre-wrap;
}
.install-row-block code { padding: 1rem; }

.step-card a,
.faq-answer a,
.alert-banner a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 176, 32, 0.35);
}
.step-card a:hover,
.faq-answer a:hover,
.alert-banner a:hover { border-bottom-color: var(--accent-2); }

/* Linha de confirmação ("o que você deve ver") e nota de rodapé do passo. */
.step-check {
  margin-top: 0.9rem !important;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--green) !important;
  font-size: 0.86rem !important;
}
.step-note {
  color: var(--muted) !important;
  font-size: 0.82rem !important;
  opacity: 0.85;
}

/* Grelha de chips estática (skills), fora do marquee. */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}
.chip-grid .provider-chip { font-family: var(--mono); font-size: 0.8rem; }

/* O <strong> de título do banner é block; dentro de parágrafo tem de voltar
   a ser inline, senão qualquer ênfase no meio da frase quebra a linha. */
.alert-banner p strong { display: inline; margin-bottom: 0; }

/* Quatro passos ficam melhor em 2×2 do que 3+1 órfão. */
.steps-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .steps-grid-2 { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════════
   Demonstração de roteamento (/assistant/#router)
   ══════════════════════════════════════════════════════════════════ */

.router-demo {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  padding: 1.75rem;
  max-width: 1080px;
  margin: 0 auto;
}

.router-bar {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}
.router-field {
  flex: 1 1 320px;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.router-field:focus {
  outline: none;
  border-color: var(--border-glow);
  background: rgba(255, 255, 255, 0.06);
}
.router-field::placeholder { color: var(--muted); }

.router-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.router-toggle input { accent-color: var(--accent); cursor: pointer; }
.router-toggle:hover { color: var(--text); }

.router-examples-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}
.router-examples-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.router-examples { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.router-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: 0.35rem 0.8rem;
  font-family: var(--font);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}
.router-chip:hover {
  border-color: rgba(255, 90, 31, 0.4);
  background: rgba(255, 90, 31, 0.08);
  color: var(--text);
}

.router-body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* ── A cascata de regras ── */
.router-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.router-flow::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--border);
}
.router-gate {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-radius: 12px;
  transition: background 0.25s, opacity 0.25s;
}
.router-gate-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.25s;
}
.router-gate-q { font-size: 0.92rem; color: var(--muted); transition: color 0.25s; }
.router-gate-state { text-align: center; font-size: 0.95rem; }

.router-gate.is-open { opacity: 0.45; }
.router-gate.is-open .router-gate-state::after { content: "·"; color: var(--muted); }

.router-gate.is-passed .router-gate-state::after { content: "✕"; color: var(--muted); }
.router-gate.is-passed .router-gate-q { color: var(--muted); opacity: 0.7; }

.router-gate.is-match {
  background: linear-gradient(90deg, rgba(255, 90, 31, 0.14), transparent);
}
.router-gate.is-match .router-gate-num {
  border-color: var(--accent);
  color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.12), 0 0 24px rgba(255, 90, 31, 0.35);
}
.router-gate.is-match .router-gate-q { color: var(--text); font-weight: 600; }
.router-gate.is-match .router-gate-state::after { content: "✓"; color: var(--green); }

/* ── Os roles ── */
.router-roles { display: flex; flex-direction: column; gap: 0.6rem; }
.router-role {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.7rem 0.9rem;
  opacity: 0.5;
  transition: all 0.3s;
}
.router-role strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.router-role span { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.router-role.is-active {
  opacity: 1;
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.14), rgba(255, 176, 32, 0.06));
  box-shadow: var(--glow);
  transform: translateX(-4px);
}
.router-role.is-active strong { color: var(--accent-2); }

.router-verdict {
  margin: 1.35rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 1rem;
  color: var(--muted);
}
.router-verdict strong { color: var(--accent-2); font-family: var(--mono); }
.router-kw {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 5px;
  background: rgba(52, 211, 153, 0.14);
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.85em;
}
.router-note {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.85;
}

/* Selector de idioma na barra de navegação. */
.nav-actions { gap: 0.75rem; }

@media (max-width: 900px) {
  .router-body { grid-template-columns: 1fr; }
  .router-demo { padding: 1.25rem; }
  .router-role.is-active { transform: none; }
}

/* Marca do produto na barra de navegação (substitui o logotipo do framework). */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { display: block; }
.brand-name {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}
.brand-name span { color: var(--accent); }
@media (max-width: 420px) { .brand-name span { display: none; } }

/* ── Contraste: o cinza secundário estava a apagar-se no fundo escuro ──
   Os links da navegação e o parágrafo do herói passam a branco; o cinza
   restante sobe de tom para continuar a marcar hierarquia sem desaparecer. */
:root { --muted: #b9c2d0; }

.nav-links a { color: var(--text); }
.hero-lead { color: var(--text); }
.section-head p { color: var(--text); opacity: 0.9; }

/* ══════════════════════════════════════════════════════════════════════
   AGENTES & ORQUESTRAÇÃO (#agentes)
   ══════════════════════════════════════════════════════════════════════ */
.af-map {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  padding: 1.25rem 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;
}
.af-map svg { width: 100%; min-width: 720px; height: auto; display: block; }
.af-svg-box {
  fill: rgba(255, 255, 255, 0.025);
  stroke: var(--border);
  stroke-width: 1;
}
.af-svg-box.is-accent { stroke: var(--border-glow); fill: rgba(255, 90, 31, 0.07); }
.af-svg-box.is-green { stroke: rgba(52, 211, 153, 0.45); fill: rgba(52, 211, 153, 0.06); }
.af-svg-t {
  fill: var(--text);
  font: 600 12.5px "JetBrains Mono", ui-monospace, monospace;
}
.af-svg-s {
  fill: var(--muted);
  font: 400 10px "JetBrains Mono", ui-monospace, monospace;
}
.af-svg-s.is-dim { fill: rgba(139, 149, 168, 0.65); }
.af-svg-icon { fill: var(--accent-2); font: 600 15px "JetBrains Mono", ui-monospace, monospace; }
.af-svg-wire { stroke: url(#afWire); stroke-width: 1.4; fill: none; }
.af-svg-wire.is-dash { stroke-dasharray: 3 3; opacity: 0.7; }
.af-svg-agent rect { transition: stroke 0.25s, fill 0.25s; }
.af-svg-agent:hover rect { stroke: var(--border-glow); fill: rgba(255, 90, 31, 0.06); }

.af-panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  padding: 1.5rem;
}
.af-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.af-head h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.af-head p { color: var(--muted); font-size: 0.9rem; max-width: 54ch; }
.af-run { white-space: nowrap; }
.af-run:disabled { opacity: 0.5; cursor: default; }

.af-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.af-chip {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.af-chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.18); }
.af-chip.is-active {
  color: var(--text);
  border-color: var(--border-glow);
  background: rgba(255, 90, 31, 0.09);
}

.af-waves {
  font: 400 0.8rem "JetBrains Mono", ui-monospace, monospace;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.af-dag { display: flex; gap: 3.4rem; align-items: stretch; overflow-x: auto; padding-bottom: 0.35rem; }
.af-wave {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 236px;
  flex: 1;
  position: relative;
}
.af-wave + .af-wave { padding-left: 0; }
.af-wave-label {
  font: 600 0.68rem "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.75;
}

.af-node {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.8rem 0.85rem;
  transition: border-color 0.3s, background 0.3s, opacity 0.3s, transform 0.3s;
}
.af-node header { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.45rem; }
.af-node-icon { color: var(--accent-2); font-family: "JetBrains Mono", monospace; }
.af-node header strong {
  font: 600 0.86rem "JetBrains Mono", ui-monospace, monospace;
  color: var(--text);
}
.af-node-num {
  margin-left: auto;
  font: 400 0.7rem "JetBrains Mono", ui-monospace, monospace;
  color: var(--muted);
}
.af-node-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.45; margin-bottom: 0.55rem; }
.af-node-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  align-items: center;
  margin-bottom: 0.55rem;
}
.af-node-meta code {
  font-size: 0.7rem;
  color: var(--accent-2);
  background: rgba(255, 176, 32, 0.08);
  border-radius: 5px;
  padding: 0.1rem 0.35rem;
}
.af-node-dep { font-size: 0.7rem; color: var(--muted); opacity: 0.85; }
.af-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.af-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.af-node-state {
  margin-top: 0.45rem;
  font: 400 0.7rem "JetBrains Mono", ui-monospace, monospace;
  color: var(--muted);
}

.af-node.is-pending { opacity: 0.55; }
.af-node.is-running {
  border-color: var(--border-glow);
  background: rgba(255, 90, 31, 0.06);
  opacity: 1;
}
.af-node.is-running .af-node-state { color: var(--accent-2); }
.af-node.is-done {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.05);
  opacity: 1;
}
.af-node.is-done .af-node-state { color: var(--green); }
.af-node.is-done .af-bar i { background: var(--green); }

.af-answer {
  margin-top: 1.1rem;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-left-width: 3px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.05);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s;
}
.af-answer.is-in { opacity: 1; transform: none; }
.af-note { margin-top: 1rem; font-size: 0.78rem; color: var(--muted); opacity: 0.8; line-height: 1.5; }

@media (max-width: 720px) {
  .af-dag { flex-direction: column; }
  .af-wave { min-width: 0; }
  .af-wave + .af-wave { padding-left: 0; border-left: 0; padding-top: 0.9rem; border-top: 1px dashed var(--border); }
  .af-run { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .af-node, .af-answer, .af-bar i { transition: none; }
}

/* As setas do DAG. O container passa a ser o referencial das posições medidas. */
.af-dag { position: relative; }
.af-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.af-edge-wire {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.6;
  transition: stroke 0.35s;
}
.af-edge-head { fill: var(--border); transition: fill 0.35s; }
.af-edge.is-live .af-edge-wire { stroke: var(--accent); stroke-width: 2; }
.af-edge.is-live .af-edge-head { fill: var(--accent); }
@media (max-width: 720px) { .af-edges { display: none; } }
