:root {
  --ink: #080b23;
  --slate: #4e5566;
  --stone: #e8e8ec;
  --surface: #f5f5f7;
  --off: #fafafc;
  --indigo: #4f46e5;
  --indigo-hover: #4338ca;
  --violet: #a78bfa;
  --text-on-dark: #d8dae4;
  --muted-on-dark: #b9bcc9;
  --border-on-dark: #3a3e52;
  --border-strong: #d5d5dc;
  --ghost-border: #5c6175;
  --menu-border: #565b70;
  --font: Inter, system-ui, sans-serif;
  --fs-label: 0.75rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.1875rem;
  --fs-display: clamp(2.75rem, 6vw, 4.75rem);
  --fs-heading: clamp(2.05rem, 4.2vw, 3.35rem);
  --fs-metric: clamp(5.5rem, 12vw, 8rem);
  --track-display: -0.05em;
  --track-label: 0.15em;
  --radius: 8px;
  --pad: max(28px, calc((100vw - 1280px) / 2));
  --header-h: 80px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--off);
  color: var(--ink);
  font: var(--fs-body)/1.55 var(--font);
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 30;
  padding: 8px 12px;
  background: var(--indigo);
  color: white;
  border-radius: var(--radius);
}

.skip:focus { top: 12px; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: white;
}

header nav { position: relative; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand strong {
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.mark {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
}

header nav,
.foot-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.875rem;
  color: var(--text-on-dark);
}

header nav a:hover,
.foot-nav a:hover { color: white; }

.menu { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  background: var(--indigo);
  border: 1px solid var(--indigo);
  border-radius: var(--radius);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover { background: var(--indigo-hover); border-color: var(--indigo-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn:focus-visible,
.menu:focus-visible,
.form input:focus-visible,
.form textarea:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ghost {
  background: transparent;
  border-color: var(--ghost-border);
  color: white;
}

.ghost:hover {
  background: transparent;
  border-color: white;
  color: white;
}

section {
  padding: 72px var(--pad);
}

section[id] { scroll-margin-top: var(--header-h); }

.dark { background: var(--ink); color: white; }
.surface { background: var(--surface); }

small {
  display: block;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  font-weight: 600;
  font-size: var(--fs-label);
  color: var(--slate);
}

.dark small { color: var(--muted-on-dark); }

h1, h2 {
  margin: 14px 0 20px;
  font-weight: 500;
  letter-spacing: var(--track-display);
  line-height: 1.06;
}

h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-heading); }
h3 { margin: 8px 0 10px; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; }

em { font-style: normal; color: var(--indigo); }
.dark em { color: var(--violet); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 48px 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero-copy { max-width: 46rem; }

.hero-lead {
  color: var(--text-on-dark);
  font-size: var(--fs-lead);
  margin: 0 0 28px;
  line-height: 1.55;
}

.hero-path {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-path li {
  position: relative;
  margin: 0;
  padding: 16px 0 16px 32px;
  border-left: 1px solid var(--border-on-dark);
  color: var(--text-on-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
  max-width: 16rem;
}

.hero-path li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 24px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--violet);
  background: var(--ink);
  transform: rotate(45deg);
}

.hero-path li:last-child { border-left-color: transparent; }

.hero-path .is-end {
  color: var(--violet);
  letter-spacing: 0.08em;
}

.hero-path .is-end::before {
  background: var(--violet);
  border-color: var(--violet);
}

#problemas { padding-top: 56px; padding-bottom: 56px; }

.problems {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 32px;
  margin-top: 32px;
}

.problems article { max-width: 20rem; }

.problems b {
  display: block;
  margin-bottom: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
}

.problems h3 { margin: 0 0 8px; }

.problems p {
  margin: 0;
  color: var(--slate);
}

.system {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 0.95fr) 1fr;
  grid-template-areas:
    "tech core ai"
    "product core dx";
  gap: 1px;
  margin-top: 36px;
  background: var(--border-strong);
  border: 1px solid var(--border-strong);
}

.system > * {
  background: var(--surface);
  padding: 28px 26px;
}

.system article:nth-child(1) { grid-area: tech; }
.system article:nth-child(3) { grid-area: ai; }
.system article:nth-child(4) { grid-area: product; }
.system article:nth-child(5) { grid-area: dx; }

.system span {
  display: block;
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  color: var(--indigo);
  font-weight: 600;
}

.system h3 { margin: 10px 0 8px; }

.system p {
  margin: 0;
  color: var(--slate);
  max-width: 22rem;
}

.cap-ai { background: #eef0f8; }

.system-core {
  grid-area: core;
  background: var(--ink);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 32px;
}

.system-core small {
  color: var(--violet);
  margin-bottom: 10px;
}

.system-core strong {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.system-core p {
  margin: 14px 0 0;
  color: var(--text-on-dark);
  max-width: 22rem;
}

.ai-role {
  margin: 28px 0 0;
  max-width: 46rem;
  color: var(--slate);
  padding-left: 16px;
  border-left: 2px solid var(--indigo);
}

.cycle {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: none;
}

.cycle li {
  position: relative;
  padding: 0 28px 8px 0;
  max-width: 18rem;
}

.cycle li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: 2.4rem;
  right: 12px;
  height: 1px;
  background: var(--indigo);
  opacity: 0.35;
}

.cycle b {
  display: inline-block;
  margin-bottom: 14px;
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  color: var(--indigo);
}

.cycle h3 { margin: 0 0 8px; }

.cycle p {
  margin: 0;
  color: var(--slate);
}

.cycle-return {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--stone);
  color: var(--slate);
  font-size: 0.98rem;
  max-width: 46rem;
}

.cycle-return::before {
  content: "↺";
  color: var(--indigo);
  font-size: 1.35rem;
  line-height: 1;
  flex: none;
}

#resultados { padding-top: 80px; padding-bottom: 80px; }

.case-main {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px 56px;
  align-items: center;
  margin-top: 40px;
}

.metric strong {
  display: block;
  font-size: var(--fs-metric);
  color: var(--violet);
  letter-spacing: -0.08em;
  line-height: 0.85;
  font-weight: 500;
}

.metric p {
  margin: 16px 0 0;
  color: var(--text-on-dark);
  font-size: var(--fs-lead);
}

.case-copy h3 {
  margin: 0 0 24px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  max-width: 24rem;
}

.case-copy dl {
  margin: 0;
  display: grid;
  gap: 18px;
  max-width: 36rem;
}

.case-copy dt {
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--violet);
  margin-bottom: 4px;
}

.case-copy dd {
  margin: 0;
  color: var(--text-on-dark);
}

.cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-on-dark);
}

.cases article { max-width: 34rem; }

.cases h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.cases p {
  margin: 0 0 10px;
  color: var(--text-on-dark);
}

.cases p:last-child { margin-bottom: 0; }

.cases b { color: white; font-weight: 600; }

#sobre { padding-top: 56px; padding-bottom: 56px; }

.diffs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 40px;
  margin-top: 32px;
}

.diffs article { max-width: 22rem; }

.diffs h3 { margin-top: 0; }

.diffs p {
  margin: 0;
  color: var(--slate);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  align-items: start;
  padding-top: 72px;
  padding-bottom: 72px;
}

.contact h2 { margin-bottom: 18px; }

.contact-copy p {
  margin: 0 0 14px;
  color: var(--slate);
  max-width: 32rem;
}

.contact-copy p:last-child { margin-bottom: 0; }

[hidden] { display: none !important; }

.form {
  display: grid;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: white;
  font: inherit;
  color: var(--ink);
}

.form textarea { resize: vertical; min-height: 120px; }

.form .btn { width: fit-content; margin-top: 8px; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  color: #b42318;
}

.form-success {
  padding: 8px 0;
}

.form-success p {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: var(--fs-lead);
}

.form-alt {
  margin: 24px 0 0;
  color: var(--slate);
  font-size: 0.95rem;
}

.form-alt a { text-decoration: underline; text-underline-offset: 3px; }

footer {
  padding: 45px var(--pad);
  background: var(--ink);
  color: var(--muted-on-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

footer .brand { color: white; }

.foot-nav {
  display: flex;
  gap: 20px;
  color: var(--muted-on-dark);
}

@media (max-width: 1100px) {
  .problems { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .hero,
  .system,
  .case-main,
  .cases,
  .diffs,
  .contact {
    grid-template-columns: 1fr;
  }

  .cycle { grid-template-columns: 1fr 1fr; gap: 24px 32px; }

  .system {
    grid-template-areas:
      "core"
      "ai"
      "tech"
      "product"
      "dx";
  }

  .system-core { grid-row: auto; }

  .cycle li:not(:last-child) {
    padding-bottom: 20px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--stone);
  }

  .cycle li:not(:last-child)::after { display: none; }
}

@media (max-width: 850px) {
  :root { --header-h: 68px; }

  header { height: var(--header-h); padding: 0 20px; }

  .menu {
    display: block;
    background: none;
    color: white;
    border: 1px solid var(--menu-border);
    border-radius: 6px;
    padding: 8px 12px;
    font: inherit;
    cursor: pointer;
  }

  header nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 21;
    padding: 24px;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  header nav.open {
    display: flex;
    min-height: calc(100dvh - var(--header-h));
  }

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

  section { padding: 52px 24px; }

  .hero {
    padding-top: 40px;
    padding-bottom: 48px;
    gap: 32px;
  }

  .hero-path {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .hero-path li {
    border-left: 0;
    border-top: 1px solid var(--border-on-dark);
    padding: 14px 0 14px 28px;
  }

  .hero-path li::before { top: 18px; }

  footer {
    padding: 38px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(2.35rem, 11vw, 3rem); }
  .hero-lead { font-size: 1.05rem; }
  .problems,
  .hero-path { grid-template-columns: 1fr; }
  .metric strong { font-size: 4.5rem; }
}
