/* ============================================================
   REVOLTEO — landing v1
   Palette:  Carbón #181D23 · Papel #F2F1EB · Ámbar #DE9A1B
             Acero #7E8890 · Línea oscura #2A323B
   Type:     Archivo (display, expanded) · Archivo (body)
             IBM Plex Mono (utility / schematic labels)
   ============================================================ */

:root {
  --carbon: #181D23;
  --paper: #F2F1EB;
  --amber: #DE9A1B;
  --steel: #7E8890;
  --line-dark: #2A323B;
  --line-light: #D8D5CC;
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Archivo', system-ui, sans-serif;
  background: var(--paper);
  color: var(--carbon);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

a { color: inherit; }

/* ---------- top bar ---------- */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  max-width: var(--max);
  margin: 0 auto;
  right: 0; left: 0;
}
.topbar .brand img { height: 26px; display: block; }
.lang { display: flex; gap: 4px; }
.lang a {
  color: var(--steel);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid transparent;
}
.lang a:hover { color: var(--paper); }
.lang a[aria-current="true"] {
  color: var(--amber);
  border-color: var(--line-dark);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--carbon);
  color: var(--paper);
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero .wrap { width: 100%; padding-top: 96px; padding-bottom: 72px; }
.hero .eyebrow { color: var(--amber); margin-bottom: 28px; }
.hero h1 {
  font-family: 'Archivo Expanded', 'Archivo', sans-serif;
  font-stretch: expanded;
  font-weight: 800;
  font-size: clamp(2.6rem, 7.5vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 12ch;
}
.hero h1 .amber { color: var(--amber); }
.hero .sub {
  margin-top: 30px;
  max-width: 52ch;
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  color: #C9CDD2;
}
.hero .cta-row { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border: 1px solid var(--amber);
}
.btn-solid { background: var(--amber); color: var(--carbon); font-weight: 600; }
.btn-solid:hover { background: #F0AC2B; }
.btn-ghost { color: var(--amber); }
.btn-ghost:hover { background: rgba(222,154,27,0.08); }

/* current line — the signature, an energized conductor under the headline */
.current {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  width: 100%;
  display: block;
}
.current path.wire { stroke: var(--line-dark); stroke-width: 1.5; fill: none; }
.current path.flow {
  stroke: var(--amber);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 34 620;
  animation: flow 5.5s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -654; } }

/* ---------- schematic spine + pillars ---------- */
.pillars { padding: 96px 0 80px; }
.section-eyebrow { color: var(--steel); margin-bottom: 14px; }
.section-title {
  font-family: 'Archivo Expanded', 'Archivo', sans-serif;
  font-stretch: expanded;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
  margin-bottom: 56px;
  max-width: 24ch;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
/* the single-line diagram: one conductor through all three nodes */
.grid3::before {
  content: "";
  position: absolute;
  top: 5px; left: 0; right: 0;
  height: 1.5px;
  background: var(--line-light);
}
.node { position: relative; padding-top: 34px; }
.node::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--amber);
}
.node .tag { color: var(--amber); display: block; margin-bottom: 12px; }
.node h3 {
  font-family: 'Archivo Expanded', 'Archivo', sans-serif;
  font-stretch: expanded;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.node p { color: #3A4148; font-size: 0.98rem; }

/* ---------- doctrine ---------- */
.doctrine {
  background: var(--carbon);
  color: var(--paper);
  padding: 96px 0;
}
.doctrine blockquote {
  font-family: 'Archivo Expanded', 'Archivo', sans-serif;
  font-stretch: expanded;
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.35;
  max-width: 30ch;
}
.doctrine blockquote em { color: var(--amber); font-style: normal; }
.doctrine .who { margin-top: 28px; color: var(--steel); }

/* ---------- field ---------- */
.field { padding: 96px 0 80px; }
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 8px; }
.figs figure { margin: 0; }
.figs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--line-light);
  filter: saturate(0.92);
}
.figs figcaption {
  margin-top: 12px;
  color: var(--steel);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.field .claim {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1.5px solid var(--line-light);
  max-width: 56ch;
  font-size: 1.05rem;
}

/* ---------- contact ---------- */
.contact {
  background: var(--carbon);
  color: var(--paper);
  padding: 96px 0;
}
.contact .section-eyebrow { color: var(--amber); }
.contact .section-title { color: var(--paper); margin-bottom: 36px; }
.contact .emails { display: flex; flex-direction: column; gap: 10px; }
.contact .emails a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(0.95rem, 2.4vw, 1.25rem);
  letter-spacing: 0.02em;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  width: fit-content;
  padding-bottom: 6px;
}
.contact .emails a:hover { color: var(--amber); border-color: var(--amber); }

/* ---------- footer ---------- */
footer {
  background: var(--carbon);
  color: var(--steel);
  border-top: 1px solid var(--line-dark);
  padding: 28px 0;
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--steel); text-decoration: none; }
footer a:hover { color: var(--paper); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

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

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .grid3 { grid-template-columns: 1fr; gap: 48px; }
  .grid3::before { top: 5px; bottom: 5px; left: 5px; right: auto; width: 1.5px; height: auto; }
  .figs { grid-template-columns: 1fr; }
  .hero { min-height: 76vh; }
}
