@media screen {
  :root { --paper: #f8f8f5; --radius: 11px; --header-size: 72px; }
  html { scroll-padding-top: calc(var(--header-size) + 22px); }
  .site-header { position: sticky; top: 0; height: var(--header-size); background: #030413f7; z-index: 5; }
  .header-inner { min-height: 100%; }
  .reading-progress { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; pointer-events: none; }
  .reading-progress i { display: block; height: 100%; background: var(--rose); transform: scaleX(0); transform-origin: left; }
  .button { border-radius: 5px; }
  .hero .button-primary { background: #f7f8fc; color: #101835; }
  .hero .button-primary:hover { background: #dce6ff; }
  .hero .button-dark-outline:hover { background: #ffffff20; }

  .hero { position: relative; isolation: isolate; overflow: clip; background: #02050c; }
  .hero-image { position: absolute; z-index: -2; inset: 0 0 0 24%; overflow: hidden; }
  .hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.025); }
  .hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #02050c 6%, #02050cf4 24%, #02050c80 49%, #02050c00 78%), linear-gradient(0deg, #02050c 0%, #02050c00 29%); }
  .hero-inner { display: grid; min-height: clamp(500px, 70vh, 780px); align-items: center; padding-block: 75px 86px; }
  .hero-copy { max-width: 790px; }
  .hero .eyebrow { margin-bottom: 23px; color: #b8cfff; }
  .hero h1 { font-size: clamp(5rem, 9.6vw, 8.6rem); font-weight: 690; letter-spacing: -.07em; line-height: .89; }
  .hero h1 em { color: #a8bfff; font-style: normal; }
  .hero-lede { max-width: 42ch; margin: 31px 0 28px; color: #e1e7f6; font-size: clamp(1.07rem, 1.45vw, 1.25rem); }
  .hero .button { min-height: 53px; }
  .hero-domains { display: grid; grid-template-columns: 1.18fr .85fr 1fr; gap: 20px; margin-block: 0; padding: 16px 0 21px; border-top: 1px solid #b4c0ef58; list-style: none; color: #dce4f8; font-size: .94rem; font-weight: 650; }
  .hero-domains li { position: relative; display: flex; align-items: center; gap: 10px; }
  .hero-domains li::before { content: ''; flex: none; width: 5px; height: 5px; border: 1px solid var(--rose); }

  .split-intro { align-items: end; }
  .section-intro h2, .contact h2 { font-weight: 680; letter-spacing: -.055em; }
  .workflow-body { display: grid; gap: clamp(28px, 6vw, 90px); }
  .workflow-stage { display: none; }
  .workflow-live .workflow-body { grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); align-items: start; }
  .workflow-live .workflow-stage { position: sticky; top: calc(var(--header-size) + 24px); display: block; overflow: hidden; color: white; background: #080d24; border: 1px solid #18234a; }
  .stage-nav { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 16px; border-bottom: 1px solid #a8b9f238; }
  .stage-nav a { position: relative; display: grid; min-height: 52px; align-content: center; text-align: center; text-decoration: none; font-size: .95rem; font-weight: 690; color: #c4cfeb; }
  .stage-nav a:hover, .stage-nav a[aria-current] { color: white; }
  .stage-nav a[aria-current]::after { content: ''; position: absolute; right: 14%; bottom: -1px; left: 14%; height: 2px; background: var(--rose); }
  .stage-canvas { position: relative; min-height: clamp(272px, 35vw, 378px); isolation: isolate; background: radial-gradient(ellipse at center, #15285d 4%, #0b1432 67%, #080d24); }
  .stage-canvas::after { content: ''; position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(0deg, #b4c6fd12 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, #b4c6fd12 0 1px, transparent 1px 28px); mask-image: radial-gradient(ellipse at center, black, transparent 85%); }
  .stage-scene { visibility: hidden; opacity: 0; position: absolute; inset: 0; padding: 24px; transform: translateY(11px); transition: opacity .32s ease, transform .37s ease, visibility .32s; }
  [data-scene="validar"] .scene-validation, [data-scene="comparar"] .scene-match, [data-scene="revisar"] .scene-review { visibility: visible; opacity: 1; transform: none; }
  .scene-validation { display: grid; grid-template-columns: minmax(0, .95fr) minmax(10px, .25fr) minmax(0, 1.05fr); align-items: center; }
  .stage-sheet { min-width: 0; display: grid; background: #0d193c; border: 1px solid #b2c2f66b; }
  .stage-sheet b, .stage-sheet span { display: flex; align-items: center; min-height: 34px; padding: 6px 9px; overflow-wrap: anywhere; font-size: clamp(.79rem, 1.2vw, .95rem); }
  .stage-sheet b { color: #eff3ff; border-bottom: 1px solid #8bace579; background: #1c326e; }
  .stage-sheet span { color: #d2def6; }
  .stage-sheet span + span { border-top: 1px solid #a8b9f22e; }
  .stage-rules { border-color: #759bff; transform: translateY(14px); }
  .stage-connector { display: flex; align-items: center; height: 1px; background: #8cafed; }
  .stage-connector i { width: 6px; height: 6px; background: var(--rose); box-shadow: 0 0 15px #fc7397a0; }
  [data-scene="validar"] .stage-connector i { animation: connector-pass 1.9s ease-in-out 2; }
  @keyframes connector-pass { from { transform: translateX(0); } 50% { transform: translateX(19px); } to { transform: translateX(0); } }
  .scene-match { display: flex; flex-direction: column; justify-content: center; align-items: center; }
  .match-docs { display: grid; width: 100%; max-width: 394px; grid-template-columns: 1fr 1fr; gap: 12px; }
  .match-docs .stage-sheet { text-align: center; }
  .match-docs b, .match-docs span { justify-content: center; }
  .match-branches { display: flex; width: 52%; max-width: 204px; height: 25px; }
  .match-branches i { width: 50%; border: 1px solid #759bff; border-width: 0 0 1px 1px; }
  .match-branches i + i { border-width: 0 1px 1px 0; }
  .stage-node { position: relative; margin-top: 13px; padding: 8px 16px; background: #1e3b79; border: 1px solid #9ab4ff; font-size: .91rem; font-weight: 720; text-align: center; }
  .stage-node::before { content: ''; position: absolute; bottom: 100%; left: 50%; height: 14px; border-left: 1px solid #759bff; }
  .match-caption { margin-top: 11px; color: #becded; text-align: center; font-size: .85rem; }
  .scene-review { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(12px, 3vw, 35px); }
  .review-flow { display: grid; gap: 13px; min-width: 0; }
  .review-flow span { display: flex; align-items: center; gap: 7px; min-height: 38px; color: #e5eafe; font-size: .9rem; }
  .review-flow span::before { content: ''; width: 6px; height: 6px; flex: none; background: #8baeff; }
  .review-flow span:first-child::before { background: var(--rose); }
  .review-sheet { box-shadow: 5px 5px 0 #24488596, 10px 10px 0 #24488560; }
  .stage-caption { padding: 9px 17px; border-top: 1px solid #a8b9f238; color: #d1d9ef; font-size: .85rem; }
  .workflow-step { display: grid; align-content: center; position: relative; min-height: 150px; padding: 28px 0 28px 24px; border-top: 1px solid #b9c2d1; }
  .workflow-live .workflow-step { min-height: clamp(245px, 38vh, 395px); }
  .workflow-step:last-child { border-bottom: 1px solid #b9c2d1; }
  .workflow-step::before { position: absolute; left: 0; top: 31px; width: 2px; height: calc(100% - 62px); background: transparent; content: ''; transition: background-color .24s; }
  .workflow-step.is-current::before { background: var(--azure); }
  .workflow-step h3 { max-width: 19ch; margin-bottom: 10px; font-size: clamp(1.78rem, 3.2vw, 2.75rem); font-weight: 680; letter-spacing: -.048em; }
  .workflow-step p { max-width: 41ch; color: var(--muted); font-size: 1.06rem; }

  .segments { background: #ebeef5; border-top: 1px solid #d8dfe9; }
  .segment-tabs { display: flex; width: 100%; gap: 1px; padding-bottom: 1px; background: #b5c3de; }
  .segment-tabs a { display: flex; align-items: center; justify-content: center; flex: 1 1 0; min-height: 62px; margin: 0; padding: 9px 12px; text-align: center; text-decoration: none; background: #f4f6fb; font-weight: 710; }
  .segment-tabs a:hover { background: #e0e9fb; }
  .segment-tabs a[aria-selected="true"] { color: #fff; background: var(--azure); }
  .segment-panel { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); align-items: center; gap: clamp(25px, 6vw, 70px); padding: clamp(26px, 5.5vw, 78px); min-height: 345px; color: #f9fbff; background: #091333; overflow: hidden; }
  .segment-panel + .segment-panel { margin-top: 1px; }
  .segment-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(0deg, #c6d1f014 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, #c6d1f014 0 1px, transparent 1px 28px); mask-image: linear-gradient(90deg, #0000 25%, #000 78%); }
  .segment-prev { background: linear-gradient(110deg, #090e22 22%, #102868 100%); }
  .segment-seg { background: linear-gradient(110deg, #0b1025 22%, #2b244d 100%); }
  .segment-fin { background: linear-gradient(110deg, #081022 22%, #0c3658 100%); }
  .segment-panel h3 { max-width: 21ch; font-size: clamp(1.9rem, 3.65vw, 3.45rem); line-height: 1.02; font-weight: 680; letter-spacing: -.055em; }
  .segment-panel p { max-width: 45ch; margin-top: 15px; color: #dce5f7; font-size: 1.06rem; }
  .segment-route { display: grid; justify-items: start; gap: 15px; }
  .segment-route span { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 7px 10px; min-height: 37px; border: 1px solid #a6bafb78; background: #101835; color: #eef3ff; font-size: .94rem; }
  .segment-route span::before { content: ''; flex: none; width: 6px; height: 6px; background: #87a9fa; }
  .segment-route span + span::after { position: absolute; bottom: 100%; left: 12px; height: 16px; border-left: 1px solid #9dbaff; content: ''; }
  .segment-route span:last-child::before { background: var(--rose); }
  .segment-motion .segment-copy, .segment-motion .segment-route span { animation: editorial-enter .42s both; }
  .segment-motion .segment-route span:nth-child(2) { animation-delay: .055s; }
  .segment-motion .segment-route span:nth-child(3) { animation-delay: .11s; }
  .editorial-enter { animation: editorial-enter .64s both; }
  @keyframes editorial-enter { from { opacity: .55; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

  .demo { background: linear-gradient(115deg, #030413 16%, #101f54 100%); }
  .demo-surface { border-radius: 9px; }
  .faq { background: var(--paper); }
  .contact { background: #070c21; }
  .contact-form { background: #0d1734; }

  @media (max-width: 860px) {
    .hero-image { left: 16%; }
    .hero h1 { font-size: clamp(4.25rem, 12vw, 7rem); }
    .workflow-live .workflow-body { gap: 22px; }
    .stage-scene { padding: 14px; }
  }
  @media (max-width: 760px) {
    :root { --header-size: 65px; }
    .split-intro, .faq-inner, .contact-inner { grid-template-columns: 1fr; }
    .hero-inner { min-height: 0; padding-block: 65px 150px; }
    .hero-image { inset: 27% 0 0 0; }
    .hero-image img { object-position: 51% 68%; }
    .hero::after { background: linear-gradient(180deg, #02050c 22%, #02050cc9 44%, #02050c25 73%, #02050ce3 100%); }
    .hero h1 { font-size: clamp(3.9rem, 12.1vw, 6.2rem); }
    .hero .button { min-height: 46px; padding-inline: 13px; }
    .hero .eyebrow { margin-bottom: 16px; }
    .hero-lede { margin-block: 23px; }
    .hero-domains { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-block: 11px 14px; font-size: .86rem; }
    .workflow-live .workflow-body { grid-template-columns: 1fr; gap: 0; }
    .workflow-live .workflow-stage { z-index: 2; top: var(--header-size); }
    .stage-nav a { min-height: 42px; }
    .stage-canvas { min-height: 174px; }
    .stage-caption { padding-block: 4px; }
    .stage-sheet b, .stage-sheet span { min-height: 29px; padding: 3px 7px; }
    .workflow-live .workflow-step { min-height: clamp(220px, 42vh, 355px); scroll-margin-top: 241px; }
    .segment-panel { grid-template-columns: 1fr; padding-inline: clamp(20px, 5.5vw, 45px); }
    .segment-panel::before { mask-image: linear-gradient(140deg, #0000 15%, #000 90%); }
    .segment-tabs a { min-height: 54px; padding-inline: 5px; font-size: .88rem; }
  }
  @media (max-width: 380px) {
    .hero h1 { font-size: clamp(3.3rem, 13vw, 4.25rem); }
    .hero-inner { padding-bottom: 122px; }
    .stage-nav { padding-inline: 5px; }
  }
  @media (max-height: 510px) {
    .workflow-live .workflow-stage { position: relative; top: auto; }
    .workflow-live .workflow-step { scroll-margin-top: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .editorial-enter, .segment-motion *, [data-scene="validar"] .stage-connector i { animation: none; }
  }
}
