/* L&A Sistemas V2 — HTML estático */

:root {
  --bg: #ffffff;
  --ink: #12141a;
  --muted: #5c6470;
  --surface: #f5f6f8;
  --line: #e6e8ec;
  --brand: #2f2a6b;
  --brand-deep: #242056;
  --brand-soft: #eceaf7;
  --accent: #e25b3a;
  --ai: #0f766e;
  --ai-soft: #e7f4f2;
  --radius: 1rem;
  --max: 72rem;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Manrope", "Source Sans 3", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: color-mix(in srgb, var(--brand) 18%, white);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

@media (min-width: 640px) {
  .container {
    width: min(100% - 3rem, var(--max));
  }
}

main {
  flex: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(18, 20, 26, 0.04);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.brand:focus-visible,
.nav a:focus-visible,
.btn:focus-visible,
.icon-btn:focus-visible,
.chat-suggestion:focus-visible,
.chat-form button:focus-visible,
.form button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.logo-mark {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav-desktop a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-cta {
  display: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 1rem 0 1.25rem;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
}

.nav-mobile .btn {
  width: 100%;
  margin-top: 0.75rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .icon-btn {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-on-brand {
  background: #fff;
  color: var(--brand);
}

.btn-on-brand:hover {
  background: var(--surface);
}

.btn-ghost-on-brand {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost-on-brand:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .btn-row {
    flex-direction: row;
    align-items: center;
  }
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-brand {
  background: var(--brand);
  color: #fff;
}

.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ai);
}

.section-brand .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.section-head {
  max-width: 36rem;
}

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

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.section-head p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-brand .section-head p {
  color: rgba(255, 255, 255, 0.75);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0 4rem;
}

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

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(64px);
  animation: float-glow 10s ease-in-out infinite;
}

.hero-glow-1 {
  left: -6rem;
  top: 2.5rem;
  width: 18rem;
  height: 18rem;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.hero-glow-2 {
  right: -4rem;
  bottom: 0;
  width: 20rem;
  height: 20rem;
  background: color-mix(in srgb, var(--ai) 12%, transparent);
  animation-delay: -4s;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero {
    padding: 5rem 0 6rem;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }
}

.hero-brand {
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}

.hero h1 {
  max-width: 20ch;
  font-size: clamp(2.15rem, 5vw, 3.25rem);
}

.hero-lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.hero-actions {
  margin-top: 2rem;
}

.hero-visual {
  position: relative;
  border-radius: 2rem;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--brand) 6%, white),
    white 45%,
    color-mix(in srgb, var(--ai) 7%, white)
  );
  padding: 1.5rem 0.5rem 0.75rem;
}

.hero-visual svg {
  width: 100%;
  height: auto;
}

.flow-path {
  stroke-dasharray: 8 10;
  animation: dash-flow 18s linear infinite;
}

.hero-node {
  animation: node-pulse 4.5s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

/* Cards & grids */
.grid-3 {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.grid-4 {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.grid-5 {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.grid-2 {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .grid-split {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .grid-split-start {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

a.card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  box-shadow: 0 12px 40px -24px rgba(47, 42, 107, 0.45);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--brand);
}

.card h3 {
  margin-top: 1.25rem;
  font-size: 1.1rem;
}

.card p {
  margin-top: 0.5rem;
  flex: 1;
  color: var(--muted);
  font-size: 0.9rem;
}

.card-link {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}

.ai-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  transition:
    border-color 0.2s,
    background 0.2s;
}

.ai-card:hover {
  border-color: color-mix(in srgb, var(--ai) 35%, var(--line));
  background: #fff;
}

.ai-card .bar {
  width: 2rem;
  height: 0.25rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: var(--ai);
}

.ai-card h3 {
  font-size: 1rem;
}

.ai-card p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.step-card,
.problem-card,
.tech-card {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
}

.step-card {
  padding: 1.25rem;
}

.step-card .num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ai);
}

.step-card h3 {
  margin-top: 0.75rem;
  font-size: 1rem;
}

.step-card p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.problem-card {
  padding: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.tech-card {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s;
}

.tech-card:hover {
  border-color: color-mix(in srgb, var(--brand) 25%, var(--line));
}

.tech-card.is-ai {
  border-color: color-mix(in srgb, var(--ai) 30%, var(--line));
  background: var(--ai-soft);
  color: var(--ai);
}

.quote {
  margin-top: 2.5rem;
  max-width: 48rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
}

.quote-ai {
  border-color: color-mix(in srgb, var(--ai) 20%, var(--line));
  background: var(--ai-soft);
  font-size: 1rem;
}

.panel {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

@media (min-width: 640px) {
  .panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.panel h3 {
  font-size: 1.25rem;
}

.panel p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Clients */
.client-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .client-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.client-box {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}

.client-box img {
  max-height: 2.5rem;
  width: auto;
  opacity: 0.85;
  object-fit: contain;
}

/* CTA */
.cta {
  padding: 3rem 1.5rem;
  border-radius: 1.75rem;
  text-align: center;
}

.cta-light {
  border: 1px solid var(--line);
  background: var(--surface);
}

.cta-brand {
  background: var(--brand);
  color: #fff;
}

.cta h2 {
  max-width: 22ch;
  margin-inline: auto;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.cta p {
  margin: 1rem auto 0;
  max-width: 36rem;
  color: var(--muted);
}

.cta-brand p {
  color: rgba(255, 255, 255, 0.8);
}

.cta .btn-row {
  justify-content: center;
  margin-top: 2rem;
}

/* Chat */
.chat {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 24px 60px -40px rgba(47, 42, 107, 0.5);
  color: var(--ink);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.chat-status {
  position: relative;
  width: 0.65rem;
  height: 0.65rem;
}

.chat-status span,
.chat-status i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--ai);
}

.chat-status i {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  animation: ping-soft 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.chat-head strong {
  display: block;
  font-size: 0.9rem;
}

.chat-head small {
  color: var(--muted);
  font-size: 0.75rem;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 22rem;
  overflow-y: auto;
  padding: 1rem;
}

.bubble {
  max-width: 90%;
  padding: 0.65rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.bubble-assistant {
  background: var(--surface);
}

.bubble-user {
  margin-left: auto;
  background: var(--brand);
  color: #fff;
}

.bubble-typing {
  width: fit-content;
  color: var(--muted);
}

.chat-foot {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--line);
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.chat-suggestion {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.chat-suggestion:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--ai) 40%, var(--line));
  color: var(--ink);
}

.chat-suggestion:disabled,
.chat-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-form {
  display: flex;
  gap: 0.5rem;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}

.chat-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}

.chat-form button {
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 0.65rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.chat-form button:hover:not(:disabled) {
  background: var(--brand-deep);
}

/* Form */
.form {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

@media (min-width: 640px) {
  .form {
    padding: 2rem;
  }
}

.form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
}

.form input,
.form textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}

.form textarea {
  resize: vertical;
  min-height: 8rem;
}

.form button {
  justify-self: start;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 0.65rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.form button:hover {
  background: var(--brand-deep);
}

.form .hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.form .hint a {
  color: var(--brand);
  font-weight: 600;
}

.detail-block {
  scroll-margin-top: 6rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

.detail-block + .detail-block {
  margin-top: 1.5rem;
}

.detail-block h2 {
  font-size: 1.5rem;
}

.detail-block > p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.detail-block ul {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.detail-block li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.detail-block li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: var(--brand);
  flex-shrink: 0;
}

.detail-block .btn {
  margin-top: 1.5rem;
}

.info-block {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.info-block h2,
.info-block h3 {
  font-size: 1.1rem;
}

.info-block p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.muted {
  color: var(--muted);
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-14 {
  margin-top: 3.5rem;
}

.mb-0 {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 0;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-grid .label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-grid .brand + p {
  margin-top: 1rem;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-mail:hover {
  color: var(--brand);
}

.footer-mail {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes float-glow {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(12px, -10px);
  }
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -120;
  }
}

@keyframes node-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.72;
  }
}

@keyframes ping-soft {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-glow,
  .flow-path,
  .hero-node,
  .chat-status i {
    animation: none !important;
  }
}
