:root {
  color-scheme: dark;
  --void: #000000;
  --abyss: #050607;
  --obsidian: #0f1011;
  --graphite: #242526;
  --steel: #3f4041;
  --cloud: #f5f5f7;
  --ash: #a7adb7;
  --blue-deep: #013078;
  --blue: #0154d4;
  --blue-soft: #8fbbff;
  --signal: #8fbb4f;
  --max: 1200px;
  --pad: clamp(1rem, 4vw, 3rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
  background: var(--obsidian);
}

body {
  margin: 0;
  color: var(--cloud);
  background: var(--obsidian);
}

body.no-scroll-timeline {
  --hero-progress: 0;
}

body.no-scroll-timeline .hero-reference {
  opacity: calc(1 - var(--hero-progress) * .55);
  transform:
    translate3d(0, calc(var(--hero-progress) * -8dvh), 0)
    scale(calc(1 + var(--hero-progress) * .08));
}

body.no-scroll-timeline .scroll-cue {
  opacity: calc(1 - var(--hero-progress) * 2);
}

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

img {
  display: block;
  max-inline-size: 100%;
}

.micro {
  margin: 0;
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.topbar {
  position: fixed;
  z-index: 20;
  inset-block-start: 0;
  inset-inline: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.5rem var(--pad);
  color: white;
  mix-blend-mode: difference;
}

.brand-link {
  justify-self: start;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.primary-action {
  min-block-size: 2.75rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / .24);
  border-radius: .5rem;
  padding-inline: 1rem;
  font-size: .88rem;
  background: rgb(255 255 255 / .08);
  backdrop-filter: blur(24px);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.scroll-cue:focus-visible,
.primary-action:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.mark {
  display: grid;
  grid-template-columns: repeat(2, .9rem);
  gap: .18rem;
}

.mark span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
}

.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero {
  block-size: 185dvh;
  background: var(--blue-deep);
}

.hero-stage {
  position: sticky;
  inset-block-start: 0;
  overflow: clip;
  isolation: isolate;
  block-size: 100dvh;
  min-block-size: 42rem;
  display: grid;
  place-items: center;
  background:
    linear-gradient(to bottom, #001327 0%, #013078 43%, #0154d4 100%);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .68;
  background:
    radial-gradient(circle, rgb(255 255 255 / .2) 0 1px, transparent 1.2px) 0 0 / 4px 4px,
    radial-gradient(circle, rgb(255 255 255 / .12) 0 1px, transparent 1.2px) 2px 2px / 5px 5px,
    linear-gradient(to bottom, rgb(0 0 0 / .52), transparent 62%);
  background-blend-mode: soft-light;
}

.hero-reference {
  inline-size: min(84vw, 76rem);
  block-size: auto;
  opacity: 1;
  transform-origin: center;
  mix-blend-mode: screen;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 4%, #000 97%, transparent),
    linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 4%, #000 97%, transparent),
    linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent);
  mask-composite: intersect;
}

.hero-center {
  display: grid;
  justify-items: center;
  gap: clamp(1.4rem, 3vw, 2.25rem);
}

.scroll-cue {
  inline-size: clamp(3rem, 5vw, 4rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / .38);
  border-radius: 50%;
  color: white;
  background: rgb(255 255 255 / .08);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08);
  animation: cue-float 1.7s ease-in-out infinite;
}

.scroll-cue svg {
  inline-size: 52%;
  block-size: 52%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-cue:hover {
  background: white;
  color: var(--blue-deep);
}

@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  .hero-reference {
    animation: hero-poster linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 62dvh;
  }

  .scroll-cue {
    animation: cue-float 1.7s ease-in-out infinite, fade-out linear both;
    animation-timeline: auto, scroll(root block);
    animation-range: normal, 0 32dvh;
  }
}

@keyframes hero-poster {
  to {
    opacity: .45;
    transform: translate3d(0, -8dvh, 0) scale(1.08);
  }
}

@keyframes fade-out {
  to { opacity: 0; }
}

@keyframes cue-float {
  50% { transform: translateY(.45rem); }
}

.intro,
.feature-grid,
.flow,
.pantallas,
.closing {
  inline-size: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.intro {
  padding-block: clamp(5rem, 12vw, 9rem);
}

.eyebrow {
  color: var(--ash);
  margin-block-end: 1rem;
}

h2,
h3,
p {
  text-wrap: pretty;
}

h2,
h3 {
  margin: 0;
  font-weight: 300;
  letter-spacing: 0;
}

.intro h2,
.closing h2 {
  max-inline-size: 13ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: .9;
}

.intro > p:last-child,
.pantallas p:not(.micro) {
  max-inline-size: 43rem;
  color: var(--ash);
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  line-height: 1.5;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  padding-block-end: clamp(5rem, 10vw, 8rem);
}

.feature-grid > h2 {
  grid-column: 1 / -1;
  max-inline-size: 22ch;
  margin-block-end: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: .95;
}

.feature-card {
  min-block-size: 25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--graphite);
}

.feature-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: .95;
}

.feature-card p:not(.micro) {
  color: rgb(255 255 255 / .78);
  line-height: 1.5;
}

.feature-card.blue {
  background: var(--blue);
}

.feature-card.light {
  color: black;
  background: var(--blue-soft);
}

.feature-card.light p:not(.micro) {
  color: rgb(0 0 0 / .72);
}

.flow {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(18rem, .9fr);
  gap: clamp(2rem, 7vw, 6rem);
  padding-block: clamp(4rem, 9vw, 8rem);
}

.flow-visual {
  position: sticky;
  inset-block-start: 6rem;
  align-self: start;
}

.device-shell {
  min-block-size: 35rem;
  position: relative;
  overflow: clip;
  border-radius: 1rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: linear-gradient(135deg, rgb(43 43 44), rgb(12 13 14));
  border: 1px solid rgb(255 255 255 / .08);
}

.device-shell::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgb(255 255 255 / .08);
  border-radius: .75rem;
  pointer-events: none;
}

.screen {
  position: absolute;
  inset: clamp(2rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: .75rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  opacity: 0;
  transform: translateY(1.5rem);
  background: var(--void);
  transition: opacity .45s ease, transform .45s ease;
}

.screen.active {
  opacity: 1;
  transform: translateY(0);
}

.screen h3 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: .9;
}

dl {
  display: grid;
  gap: .75rem;
  margin: 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-block-start: 1px solid rgb(255 255 255 / .12);
  padding-block-start: .75rem;
}

dt {
  color: var(--ash);
}

dd {
  margin: 0;
}

.bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: .75rem;
  block-size: 11rem;
}

.bars span {
  border-radius: .5rem .5rem 0 0;
  background: var(--blue);
}

.bars span:nth-child(1) { block-size: 42%; }
.bars span:nth-child(2) { block-size: 70%; background: var(--blue-soft); }
.bars span:nth-child(3) { block-size: 55%; }
.bars span:nth-child(4) { block-size: 88%; background: var(--signal); }

.flow-copy {
  display: grid;
  gap: 26dvh;
  padding-block: 8dvh 18dvh;
}

.step {
  min-block-size: 58dvh;
  display: grid;
  align-content: center;
  opacity: .42;
  transition: opacity .3s ease;
}

.step.active {
  opacity: 1;
}

.step h2 {
  max-inline-size: 10ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: .9;
}

.step p:last-child {
  max-inline-size: 31rem;
  color: var(--ash);
  font-size: 1.08rem;
  line-height: 1.55;
}

.pantallas {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding-block: clamp(4rem, 9vw, 8rem);
}

/* marco tipo notebook: bisel + sombra, la captura va adentro */
.pantallas figure {
  margin: 0;
  max-inline-size: 46rem;
  padding: clamp(.5rem, 1.2vw, .9rem);
  border-radius: clamp(1rem, 2vw, 1.6rem);
  background: var(--graphite);
  box-shadow: 0 2rem 4rem rgb(0 0 0 / .5), inset 0 0 0 1px var(--steel);
}

.pantallas img {
  aspect-ratio: 10 / 7;  /* ratio nativo de las capturas (2000x1400): no recorta */
  object-fit: cover;
  object-position: top center;
  border-radius: clamp(.5rem, 1vw, .8rem);
  background: white;
}

.pantallas h2 {
  max-inline-size: 22ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: .95;
  margin-block-end: 1.25rem;
}

.pantallas-shots {
  display: flex;
  align-items: flex-end;
  gap: clamp(.75rem, 2vw, 1.5rem);
  min-inline-size: 0;  /* grid item: sin esto el ancho mínimo de la captura scrollea la página */
}

.pantallas-media,
.pantallas-panels,
.pantallas-phone {
  display: grid;
}

.pantallas-media {
  flex: 1;
  min-inline-size: 0;
}

/* mismo bisel que el notebook, en formato teléfono. Los dos anchos están en
   proporción (387/758) / (10/7) = 0.357 para que las capturas queden de la
   misma altura: grow mientras el notebook crece, max cuando toca sus 46rem. */
figure.pantallas-phone {
  flex: 0.357;
  max-inline-size: 16.4rem;
  border-radius: clamp(1.2rem, 2.4vw, 2rem);
}

.pantallas-phone img {
  inline-size: 100%;  /* con el ancho definido, aspect-ratio reserva la altura antes de cargar */
  aspect-ratio: 387 / 758;  /* ratio nativo de las capturas mobile */
  border-radius: clamp(.9rem, 1.8vw, 1.5rem);
}

.pantallas [data-pantalla] {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s, visibility .35s;
}

.pantallas:has(#pantalla-0:checked) [data-pantalla="0"],
.pantallas:has(#pantalla-1:checked) [data-pantalla="1"],
.pantallas:has(#pantalla-2:checked) [data-pantalla="2"] {
  visibility: visible;
  opacity: 1;
}

.pantallas-tabs {
  display: flex;
  gap: .5rem;
  margin-block-start: 2rem;
}

.pantallas-tabs label {
  position: relative;
  cursor: pointer;
  padding: .6rem 1rem;
  border: 1px solid var(--steel);
  border-radius: 999px;
  color: var(--ash);
  transition: color .2s, border-color .2s;
}

.pantallas-tabs label:hover {
  color: var(--cloud);
}

/* el radio cubre el tab entero: el foco cae sobre algo ya visible, sin saltar el scroll */
.pantallas-tabs input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.pantallas-tabs label:has(:checked) {
  color: var(--void);
  background: var(--cloud);
  border-color: var(--cloud);
}

.pantallas-tabs label:has(:focus-visible) {
  outline: 2px solid var(--blue-soft);
  outline-offset: 3px;
}

.closing {
  min-block-size: 82dvh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 1.5rem;
}

.primary-action {
  color: black;
  background: white;
  border-color: white;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--blue-soft);
  border-color: var(--blue-soft);
}

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

  .hero-reference,
  .scroll-cue {
    animation: none !important;
  }

  .screen,
  .step,
  .pantallas [data-pantalla] {
    transition: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .mark {
    grid-column: 2;
    grid-row: 1;
  }

  .hero-stage {
    min-block-size: 36rem;
  }

  .feature-grid,
  .flow {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-block-size: 18rem;
  }

  /* ponytail: en una columna el mockup no puede quedar sticky al lado del texto,
     así que el efecto no existe: se muestra la pantalla 1 y nunca cambia. Fuera. */
  .flow-visual {
    display: none;
  }

  .flow-copy {
    gap: 4rem;
    padding-block: 0;
  }

  .step {
    min-block-size: auto;
    opacity: 1;
  }

  .pantallas {
    padding-block-start: 0;
  }

  /* ponytail: la captura de escritorio no entra legible en 390px; ahí manda la del celular */
  .pantallas-media {
    display: none;
  }

  figure.pantallas-phone {
    flex: 1;
    max-inline-size: 24rem;
    margin-inline: auto;
  }
}
