/* Hero animado — "pipeline" de partículas para landing de software.
   Un solo archivo (index.html) + fonts/. Sin dependencias. 60 fps, loop de 8 s. */
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #0b0f14;
  --bone: #e6e1d6;
  --amber: #ffb000;
  --mist: #9aa4b5;
  --line: rgba(230, 225, 214, 0.14);
}
* { box-sizing: border-box; margin: 0; }
html, body { background: var(--ink); color: var(--bone); font-family: "Switzer", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

.hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 80% at 70% 40%, rgba(255, 176, 0, 0.05), transparent 60%),
    var(--ink);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.grain {
  position: absolute; inset: -64px; z-index: 3; pointer-events: none; opacity: 0.36;
  background-repeat: repeat; will-change: transform;
}
.vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(90% 70% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* marco editorial */
.frame { position: absolute; inset: 24px 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); z-index: 4; pointer-events: none; }
.topbar {
  position: absolute; top: 28px; left: 32px; right: 32px; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font: 400 12px/1 "JetBrains Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist);
}
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--bone); font: 500 14px/1 "Switzer", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; }
.wordmark svg { width: 18px; height: 18px; color: var(--amber); }
.topbar .fig { display: flex; gap: 18px; }
.topbar .fig b { color: var(--bone); font-weight: 400; }

.copy {
  position: absolute; z-index: 5; left: 32px; top: 120px; width: min(560px, calc(100% - 64px));
  display: grid; gap: 22px;
}
.kicker { font: 300 12px/1 "JetBrains Mono", monospace; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--amber); }
h1 { font: 300 clamp(44px, 5.6vw, 84px)/0.98 "Switzer", sans-serif; letter-spacing: -0.025em; }
h1 em { font-style: normal; color: var(--mist); }
.sub { font: 300 18px/1.5 "Switzer", sans-serif; color: var(--mist); max-width: 46ch; }
.cta {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--bone); color: var(--ink); font: 500 15px/1 "Switzer", sans-serif; text-decoration: none; letter-spacing: 0.01em;
  transition: transform 180ms ease, background 180ms ease;
}
.cta:hover { transform: translateY(-1px); background: #fff; }
.cta:active { transform: translateY(0); }
.cta span { font-family: "JetBrains Mono", monospace; font-weight: 400; font-size: 13px; }
.cta:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.status { margin-top: 6px; font: 300 12px/1.4 "JetBrains Mono", monospace; color: var(--mist); letter-spacing: 0.04em; display: flex; align-items: center; gap: 10px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px rgba(255,176,0,.7); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .status i { animation: none; } }

/* anotaciones que persiguen al escáner */
.ann {
  position: absolute; z-index: 5; width: 300px; pointer-events: none; opacity: 0; transform: translateY(6px);
  transition: opacity 260ms ease, transform 320ms cubic-bezier(.2,.7,.2,1);
  font: 300 13px/1.45 "JetBrains Mono", monospace; color: var(--bone); letter-spacing: 0.01em;
}
.ann.right { text-align: left; } .ann.left { text-align: right; }
.ann.on { opacity: 1; transform: translateY(0); }
.ann .n { color: var(--amber); font-weight: 400; letter-spacing: 0.1em; }
.ann .t { margin-top: 4px; font: 500 16px/1.2 "Switzer", sans-serif; letter-spacing: -0.01em; }
.ann .d { margin-top: 4px; color: #a9b2c0; font-size: 12px; }

.foot {
  position: absolute; z-index: 5; left: 32px; right: 32px; bottom: 30px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font: 300 12px/1.4 "JetBrains Mono", monospace; color: var(--mist); letter-spacing: 0.06em; text-transform: uppercase;
}
.foot b { color: var(--bone); font-weight: 400; }
.meta { position: absolute; z-index: 5; left: 32px; bottom: 78px; display: flex; gap: 22px; font: 300 12px/1 "JetBrains Mono", monospace; color: var(--mist); letter-spacing: 0.06em; text-transform: uppercase; }
.meta span { display: flex; align-items: center; gap: 8px; } .meta span::before { content: ""; width: 5px; height: 5px; border: 1px solid var(--amber); border-radius: 50%; }

@media (max-width: 760px) {
  .frame { inset: 16px 18px; }
  .topbar { top: 20px; left: 22px; right: 22px; font-size: 10px; } .topbar .fig span { display: none; }
  .copy { top: 88px; left: 22px; width: calc(100% - 44px); gap: 16px; }
  h1 { font-size: clamp(38px, 10.5vw, 52px); } .sub { font-size: 15px; }
  .ann { font-size: 10.5px; } .ann .t { font-size: 13px; } .ann .d { font-size: 10px; }
  .foot { left: 22px; right: 22px; bottom: 22px; font-size: 10px; } .foot span:last-child { display: none; }
  .meta { left: 22px; bottom: 60px; gap: 14px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .ann { transition: none; } }
