/* Compilemotion — dark only. Halo lives on body background, never z-index:-1
   (AP-vaultwarden-zindex-entierra-fondo). Reduced-motion freezes motion, it
   does not hide the effect. */

:root {
  --bg: #07080a;
  --card: #0c0e11;
  --fg: #f4f6f7;
  --muted: #8b959c;
  --border: rgb(255 255 255 / .08);
  --border-strong: rgb(255 255 255 / .14);
  --accent: #2ab9ad;
  --accent-ink: #041210;
  --danger: #ff8f8f;
  --halo: rgb(42 185 173 / .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 4.25rem;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(64rem 30rem at 16% -6rem, var(--halo), transparent 68%),
    radial-gradient(36rem 18rem at 92% 8%, rgb(42 185 173 / .05), transparent 55%),
    var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; }
button, input { font: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: .75rem;
  top: .75rem;
  z-index: 30;
  padding: .55rem .85rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: .5rem;
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  transform: translateY(-140%);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Header: full-bleed bar, inner wrap aligns with the column --- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: .85rem 0;
  background: rgb(7 8 10 / .55);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
html.scrolled header.site {
  background: var(--bg);
  border-bottom-color: var(--border);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.brand svg { width: 1.7rem; height: 1.7rem; }
.brand:hover { color: var(--accent); }

nav.menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
nav.menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 530;
  letter-spacing: -.01em;
  white-space: nowrap;
}
nav.menu a:hover,
nav.menu a[aria-current="true"] { color: var(--fg); }

.header-cta { margin-left: .25rem; }

@media (max-width: 52rem) {
  :root { --header-h: 7.25rem; }
  header.site .wrap { flex-wrap: wrap; }
  nav.menu {
    order: 3;
    flex: 1 0 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.15rem;
    margin: 0 -1.25rem;
    padding: .2rem 1.25rem 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  nav.menu::-webkit-scrollbar { display: none; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  height: 2.75rem;
  padding: 0 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .925rem;
  font-weight: 600;
  letter-spacing: -.015em;
  text-decoration: none;
  cursor: pointer;
  transition: filter .15s var(--ease), background .15s var(--ease),
              border-color .15s var(--ease), color .15s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: rgb(255 255 255 / .03);
  color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-strong);
  background: rgb(255 255 255 / .05);
}
.btn[disabled] { opacity: .55; cursor: default; filter: none; }

/* --- Type --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 .28rem rgb(42 185 173 / .18);
}

h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -.035em;
  max-width: 17ch;
}

.lede {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
  line-height: 1.55;
}

h2,
h2.section-title {
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 620;
}

section {
  padding: 5.5rem 0 0;
}

.kicker {
  margin: 0 0 .55rem;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* --- Hero --- */
.hero {
  padding: 4.25rem 0 1.5rem;
}
.hero-grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}
.hero-copy .actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 1.75rem 0 0;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .95rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: -.005em;
}
.facts li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.facts li::before {
  content: "";
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: .8;
}

@media (min-width: 64rem) {
  .hero { padding: 2.5rem 0 2rem; }
  .hero-grid {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 3.75rem;
    min-height: calc(100svh - 8rem);
  }
}

/* --- Terminal illustration (not a product screenshot) --- */
.term {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgb(255 255 255 / .045) inset,
    0 28px 70px -32px rgb(0 0 0 / .85);
}
.term .bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .72rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgb(255 255 255 / .015);
}
.term .bar i {
  width: .62rem;
  height: .62rem;
  border-radius: 50%;
}
.term .bar i:nth-child(1) { background: #ff5f57; }
.term .bar i:nth-child(2) { background: #febc2e; }
.term .bar i:nth-child(3) { background: #28c840; }
.term .bar b {
  margin-left: .45rem;
  font-weight: 500;
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .02em;
}
.term .live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.term .live::before {
  content: "";
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 .18rem rgb(42 185 173 / .22);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 .3rem rgb(42 185 173 / .08); opacity: .65; }
}
.term pre {
  margin: 0;
  padding: 1.15rem 1.2rem 1.4rem;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
  line-height: 1.8;
  color: var(--muted);
  tab-size: 2;
}
.term .u { color: var(--fg); }
.term .a { color: var(--accent); }
.term .ok { color: #7dcea0; }

.term .ln {
  display: block;
  animation: rise .55s var(--ease) both;
  animation-delay: calc(var(--i) * 95ms + .15s);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(.35rem); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 34rem) {
  .term pre { font-size: .74rem; }
}

/* --- Bento --- */
.bento {
  display: grid;
  gap: .9rem;
}
.tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.05rem;
  padding: 1.45rem 1.4rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  transition: border-color .2s var(--ease);
}
.tile:hover { border-color: var(--border-strong); }
.tile h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.tile p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}
.tile .tag {
  align-self: flex-start;
  margin-top: auto;
  padding-top: .7rem;
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.tile.lead {
  padding: 1.7rem 1.6rem 1.5rem;
  background:
    linear-gradient(180deg, rgb(42 185 173 / .07), transparent 42%),
    var(--card);
}
.tile.lead h3 { font-size: 1.35rem; }
.tile.lead p { font-size: 1rem; max-width: 46ch; }
.spec {
  margin: .55rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .4rem;
}
.spec li {
  color: var(--muted);
  font-size: .88rem;
  padding-left: 1rem;
  position: relative;
}
.spec li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--accent);
}

@media (min-width: 52rem) {
  .bento {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: auto auto;
  }
  .tile.lead { grid-row: 1 / span 2; }
}

/* --- Chain of command --- */
.rail {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}
.rail li {
  position: relative;
  padding: 1.25rem 1.2rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
}
.rail .n {
  display: block;
  margin-bottom: .55rem;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
}
.rail h3 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
  letter-spacing: -.015em;
}
.rail p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
.rail p b { color: var(--fg); font-weight: 620; }

.grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: 1fr;
}
@media (min-width: 46rem) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 56rem) {
  .rail {
    grid-template-columns: repeat(4, 1fr);
    gap: .85rem;
  }
}

/* --- Signal split --- */
.split {
  display: grid;
  gap: .9rem;
}
.split article {
  padding: 1.5rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.05rem;
}
.split h3 { margin: 0 0 .5rem; font-size: 1.1rem; letter-spacing: -.015em; }
.split p { margin: 0; color: var(--muted); }
.split .fail { border-top: 2px solid rgb(255 143 143 / .55); }
.split .win  { border-top: 2px solid var(--accent); }
.note {
  margin: .9rem 0 0;
  padding: 1rem 1.2rem;
  border: 1px dashed var(--border);
  border-radius: .85rem;
  color: var(--muted);
  font-size: .95rem;
}
.note b { color: var(--fg); font-weight: 600; }

@media (min-width: 48rem) {
  .split { grid-template-columns: 1fr 1fr; }
}

/* --- Economics as rows --- */
.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.rows li {
  display: grid;
  gap: .35rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
}
.rows h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -.015em;
}
.rows p { margin: 0; color: var(--muted); }

@media (min-width: 46rem) {
  .rows li { grid-template-columns: 14rem 1fr; align-items: baseline; }
}

/* --- Principles --- */
.principles {
  display: grid;
  gap: .9rem;
}
.principles article {
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 1.05rem;
  background: rgb(255 255 255 / .015);
}
.principles svg {
  width: 1.35rem;
  height: 1.35rem;
  margin-bottom: .85rem;
  color: var(--accent);
}
.principles h3 { margin: 0 0 .4rem; font-size: 1.05rem; letter-spacing: -.015em; }
.principles p { margin: 0; color: var(--muted); font-size: .95rem; }

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

/* --- Audience --- */
.audience {
  max-width: 64ch;
}
.audience p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
  line-height: 1.55;
}

/* --- Early access --- */
.early-band {
  margin-top: 0;
  padding: 3.25rem 0 3.5rem;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-content: center;
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgb(42 185 173 / .07), transparent 55%),
    rgb(255 255 255 / .015);
}
.early {
  max-width: 36rem;
}
.early .t {
  margin: 0 0 1.35rem;
  color: var(--muted);
  max-width: 42ch;
}
.early form {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.early input[type="email"] {
  flex: 1 1 16rem;
  min-width: 0;
  height: 2.9rem;
  min-height: 2.9rem;
  max-height: 2.9rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-size: 1rem;
}
.early input[type="email"]:focus-visible { outline-offset: 1px; }
.early input[aria-invalid="true"] { border-color: var(--danger); }
.early button { height: 2.9rem; padding: 0 1.35rem; flex: 0 0 auto; }
@media (max-width: 34rem) {
  .early form { flex-direction: column; align-items: stretch; }
  .early input[type="email"] { flex: 0 0 2.9rem; width: 100%; }
  .early button { width: 100%; }
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.aviso {
  margin: .9rem 0 0;
  font-size: .9rem;
  min-height: 1.3em;
}
.aviso.ok { color: var(--accent); }
.aviso.ko { color: var(--danger); }
.letra {
  margin: 1rem 0 0;
  font-size: .78rem;
  color: var(--muted);
}

/* --- Footer --- */
footer.site {
  padding: 2rem 0 2.75rem;
  color: var(--muted);
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
footer.site a {
  color: var(--accent);
  text-decoration: none;
}
footer.site a:hover { text-decoration: underline; }

/* --- Gate / acceso --- */
body.gate {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(42rem 24rem at 50% -8rem, var(--halo), transparent 70%),
    var(--bg);
}
.gate-card {
  width: 100%;
  max-width: 26rem;
  padding: 2.15rem 1.7rem 1.7rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 30px 70px -40px rgb(0 0 0 / .9);
  text-align: center;
}
.gate-card .brand {
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--fg);
}
.gate-card h1 {
  max-width: none;
  margin: 0 0 .4rem;
  font-size: 2rem;
  letter-spacing: -.03em;
}
.gate-card .sub {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: .95rem;
}
.gate-card label {
  display: block;
  margin-bottom: .5rem;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}
.gate-card input {
  width: 100%;
  height: 3.1rem;
  padding: 0 1rem;
  border-radius: .85rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-size: 1.35rem;
  letter-spacing: .28em;
  text-align: center;
}
.gate-card input[aria-invalid="true"] { border-color: var(--danger); }
.gate-card button {
  width: 100%;
  margin-top: .75rem;
  height: 2.9rem;
}
.gate-card .err {
  margin: 1rem 0 0;
  font-size: .88rem;
  color: var(--danger);
}
.gate-card .hint {
  margin: 1.35rem 0 0;
  font-size: .75rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .term .ln {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .term .live::before { animation: none; }
  header.site,
  .tile,
  .btn { transition: none; }
}
