/* ============================================================================
   Athrios — Corporate landing  ·  PAPER-led editorial, INK cinematic hero
   Tokens from colors_and_type.css. One signal (Ember), rationed.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--paper);
  color: var(--ink-mid);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ember); color: var(--text-on-ember); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
.mono { font-family: var(--font-mono); }
.em { color: var(--ember); }
@media (max-width: 720px){ .wrap { padding: 0 24px; } }

/* ── eyebrow / labels ──────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ember); font-weight: 500;
}
.eyebrow.on-paper { color: var(--ember-deep); }
.kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-lo); }

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-ui);
  font-weight: 600; font-size: 14.5px; padding: 13px 22px; border-radius: var(--r-md);
  cursor: pointer; border: 1px solid transparent; transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg, .btn i { width: 17px; height: 17px; }
.btn-primary { background: var(--ember); color: var(--text-on-ember); box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 24px -10px rgba(255,74,46,0.6); }
.btn-primary:hover { background: var(--ember-bright); transform: translateY(-1px); }
.btn-primary:active { background: var(--ember-deep); transform: translateY(0); }
.btn-ghost-d { background: transparent; color: var(--text-hi); border-color: var(--line-strong); }
.btn-ghost-d:hover { border-color: var(--text-lo); background: rgba(255,255,255,0.04); }
.btn-header { background: transparent; color: var(--text-hi); border-color: var(--line-strong); padding: 9px 17px; font-size: 13.5px; font-weight: 500; }
.btn-header:hover { color: var(--text-hi); border-color: var(--text-lo); background: rgba(255,255,255,0.04); }
.btn-ghost-l { background: transparent; color: var(--ink-hi); border-color: var(--line-paper-strong); }
.btn-ghost-l:hover { border-color: var(--ink-mid); background: var(--paper-sunken); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ============================================================================
   TOP NAV  (over the dark hero)
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: 64px;
  display: flex; align-items: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur);
  border-bottom: 1px solid transparent;
}
.nav .wrap { display: flex; align-items: center; gap: 32px; width: 100%; }
.nav.scrolled { background: rgba(7,9,15,0.78); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 27px; height: 27px; }
.brand .wm { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: var(--text-hi); }
.nav-links { display: flex; gap: 28px; margin-left: 8px; }
.nav-links a { font-size: 14px; color: var(--text-mid); transition: color var(--dur) var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--text-hi); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-right .briefing { font-size: 14px; color: var(--text-mid); }
.nav-right .briefing:hover { color: var(--text-hi); }
@media (max-width: 920px){ .nav-links { display: none; } }

/* light-nav variant for interior paper pages */
.nav.light .brand .wm { color: var(--ink-hi); }
.nav.light .nav-links a { color: var(--ink-mid); }
.nav.light .nav-links a:hover, .nav.light .nav-links a.active { color: var(--ink-hi); }
.nav.light .nav-right .briefing { color: var(--ink-mid); }
.nav.light .nav-right .briefing:hover { color: var(--ink-hi); }
.nav.light.scrolled { background: rgba(251,250,247,0.82); border-bottom-color: var(--line-paper); }

/* ============================================================================
   HERO — dark cinematic, 100vh, product window as protagonist
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; background: var(--ink-base);
  display: flex; flex-direction: column; overflow: hidden;
  padding-top: 64px;
}
.hero .wrap { max-width: 1380px; padding: 0 36px; }
.hero::before { /* engineered grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
}
.hero::after { /* ember bloom */
  content: ""; position: absolute; top: -14%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 560px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,74,46,0.16), transparent 72%);
  filter: blur(8px);
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; min-height: 0; }

.hero-copy {
  display: grid; grid-template-columns: 1.45fr 1fr; gap: 44px; align-items: end;
  padding: 2px 0 4px;
}
.hero-head .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.hero-head .eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--ember); }
.hero-head h1 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em;
  font-size: clamp(27px, 2.8vw, 43px); line-height: 1.0; color: var(--text-hi);
  margin: 8px 0 0; max-width: 18ch;
}
.hero-head h1 .em { color: var(--ember); }
.hero-head p {
  font-size: clamp(14px, 1.05vw, 15.5px); line-height: 1.5; color: var(--text-mid);
  margin: 10px 0 0; max-width: 52ch;
}
.hero-head .hero-cta { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.hero-copy { padding-bottom: 2px; }

/* right proof rail — system-status overlay, fused with the hero (not a card) */
.proof-line { display: flex; flex-direction: column; gap: 11px; align-items: stretch; padding: 11px 14px; border-radius: var(--r-lg); background: rgba(255,255,255,0.006); border: 1px solid rgba(255,255,255,0.05); }
.proof-status { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.proof-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 3px var(--ember-tint); flex-shrink: 0; }
.proof-status::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.05); }
.pchip { display: flex; align-items: baseline; gap: 11px; }
.pchip .pl-tick { width: 14px; height: 2px; background: var(--ember); border-radius: 2px; flex-shrink: 0; transform: translateY(-3px); }
.pchip b { font-family: var(--font-display); font-weight: 700; font-size: clamp(13px, 1.05vw, 15px); color: var(--text-hi); letter-spacing: -0.01em; white-space: nowrap; }
.pchip .ps { font-family: var(--font-mono); font-size: 11px; color: var(--text-mid); letter-spacing: 0.01em; white-space: nowrap; margin-left: auto; }

@media (max-width: 960px){
  .hero-copy { grid-template-columns: 1fr; gap: 18px; align-items: start; }
}

/* product window mount fills the remaining hero space */
.hero-stage { flex: 1; min-height: clamp(584px, 61vh, 724px); display: flex; align-items: stretch; padding-bottom: 4px; margin-top: -4px; }
#valueos-root { width: 100%; display: flex; align-items: stretch; }

/* flow ribbon under hero */
.hero-flow {
  display: flex; align-items: center; gap: 14px; padding: 0 0 16px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--text-lo);
  flex-wrap: wrap;
}
.hero-flow .step { color: var(--text-mid); }
.hero-flow .arrow { color: var(--ember); }
.hero-flow .lead { color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.14em; font-size: 10.5px; margin-right: 4px; }

/* ============================================================================
   PAPER SECTIONS
   ========================================================================== */
section.band { padding: clamp(80px, 9vw, 132px) 0; position: relative; }
.band.paper { background: var(--paper); }
.band.paper-2 { background: var(--paper-tint); border-top: 1px solid var(--line-paper); border-bottom: 1px solid var(--line-paper); }
.sec-head { max-width: 760px; }
.sec-head h2 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(30px, 4vw, 50px); line-height: 1.04; color: var(--ink-hi); margin-top: 18px;
  text-wrap: balance;
}
.sec-head p { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-mid); margin-top: 22px; max-width: 60ch; }

/* the gap — editorial statement */
.gap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 8px; }
.gap-state { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.025em; color: var(--ink-hi); text-wrap: balance; }
.gap-state .em { color: var(--ember-deep); }
.gap-vis { position: relative; aspect-ratio: 1.1 / 1; }
@media (max-width: 860px){ .gap-grid { grid-template-columns: 1fr; gap: 36px; } }

/* operating model rail */
.rail { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 0; align-items: stretch; border: 1px solid var(--line-paper); border-radius: var(--r-lg); overflow: hidden; background: var(--paper-raised); }
.rail-step { flex: 1 1 0; min-width: 150px; padding: 26px 22px; border-right: 1px solid var(--line-paper); position: relative; transition: background var(--dur) var(--ease); }
.rail-step:last-child { border-right: 0; }
.rail-step:hover { background: var(--paper-sunken); }
.rail-step .rn { font-family: var(--font-mono); font-size: 11px; color: var(--ink-lo); letter-spacing: 0.08em; }
.rail-step .rt { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink-hi); margin-top: 14px; letter-spacing: -0.01em; line-height: 1.15; }
.rail-step .rd { font-size: 12.5px; color: var(--ink-mid); margin-top: 7px; line-height: 1.4; }
.rail-step.terminal { background: var(--ink-base); }
.rail-step.terminal .rn { color: var(--ember); }
.rail-step.terminal .rt { color: var(--text-hi); }
.rail-step.terminal .rd { color: var(--text-mid); }
@media (max-width: 860px){ .rail-step { flex: 1 1 45%; border-bottom: 1px solid var(--line-paper); } }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.pillar { background: var(--paper-raised); border: 1px solid var(--line-paper); border-radius: var(--r-lg); padding: 30px 26px 34px; transition: border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease); }
.pillar:hover { border-color: var(--line-paper-strong); transform: translateY(-3px); box-shadow: var(--shadow-paper-md); }
.pillar .pi { width: 44px; height: 44px; border-radius: var(--r-md); border: 1px solid var(--line-paper); display: flex; align-items: center; justify-content: center; color: var(--ember-deep); }
.pillar .pi svg { width: 22px; height: 22px; stroke-width: 1.5; }
.pillar .pn { font-family: var(--font-mono); font-size: 11px; color: var(--ink-lo); margin-top: 22px; letter-spacing: 0.06em; }
.pillar .ph { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink-hi); margin-top: 8px; letter-spacing: -0.015em; line-height: 1.12; }
.pillar .pp { font-size: 14px; color: var(--ink-mid); margin-top: 12px; line-height: 1.5; }
@media (max-width: 980px){ .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .pillars { grid-template-columns: 1fr; } }

/* ============================================================================
   INK PROOF BAND
   ========================================================================== */
.band.ink { background: var(--ink-base); color: var(--text-mid); position: relative; overflow: hidden; }
.band.ink::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 80%); pointer-events: none; }
.band.ink .sec-head h2 { color: var(--text-hi); }
.band.ink .sec-head p { color: var(--text-mid); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; position: relative; }
.metric { padding-top: 22px; border-top: 2px solid var(--ember); }
.metric .mv { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5vw, 64px); color: var(--text-hi); letter-spacing: -0.03em; line-height: 1; }
.metric .mv .u { font-size: 0.5em; color: var(--ember); margin-left: 2px; }
.metric .ml { font-size: 14px; color: var(--text-mid); margin-top: 14px; line-height: 1.45; max-width: 24ch; }
.metric .mt { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-top: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 880px){ .metrics { grid-template-columns: 1fr 1fr; gap: 36px 28px; } }

/* sample disclaimer */
.disclaimer { margin-top: 40px; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.02em; }

/* ============================================================================
   PRODUCTS TEASER (Xavio first expression)
   ========================================================================== */
.prod-teaser { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; margin-top: 8px; }
.prod-copy .eyebrow { color: var(--ember-deep); }
.prod-copy h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; color: var(--ink-hi); margin-top: 16px; }
.prod-copy p { font-size: 17px; line-height: 1.6; color: var(--ink-mid); margin-top: 20px; max-width: 46ch; }
.prod-copy .prod-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.lockup-line { margin-top: 24px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-lo); letter-spacing: 0.03em; }
@media (max-width: 920px){ .prod-teaser { grid-template-columns: 1fr; gap: 32px; } }

/* mini xavio product frame */
.xframe { background: var(--ink-raised); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-paper-lg); }
.xframe .xtop { height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.xframe .xdot { width: 10px; height: 10px; border-radius: 50%; }
.xframe .xtitle { margin-left: 8px; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--text-hi); letter-spacing: -0.01em; }
.xframe .xstatus { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--fn-green); display: flex; align-items: center; gap: 6px; }
.xframe .xstatus .d { width: 6px; height: 6px; border-radius: 50%; background: var(--fn-green); box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }
.xbody { padding: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: var(--ink-base); }
.xkpi { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; background: var(--ink-card); }
.xkpi .kl { font-family: var(--font-mono); font-size: 10px; color: var(--text-lo); letter-spacing: 0.06em; text-transform: uppercase; }
.xkpi .kv { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--text-hi); margin-top: 8px; letter-spacing: -0.02em; }
.xkpi .kv .u { font-size: 14px; color: var(--ember); }
.xrow { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ink-card); }
.xrow .xname { font-size: 13px; font-weight: 600; color: var(--text-hi); }
.xrow .xtag { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--fn-green); }
.xbar { flex: 1; height: 6px; border-radius: 3px; background: var(--ink-elevated); overflow: hidden; max-width: 160px; }
.xbar .f { height: 100%; background: var(--ember); border-radius: 3px; }

/* ============================================================================
   FUTURE EXPANSION STRIP
   ========================================================================== */
.domains { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.domain { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border: 1px solid var(--line-paper); border-radius: var(--r-md); background: var(--paper-raised); flex: 1 1 220px; transition: border-color var(--dur), background var(--dur); }
.domain:hover { border-color: var(--line-paper-strong); background: var(--paper-sunken); }
.domain.live { border-color: var(--ember-line); background: var(--ember-tint); }
.domain .dn { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink-hi); letter-spacing: -0.01em; }
.domain .ds { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-lo); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.domain.live .ds { color: var(--ember-deep); }
.domain .dstat { margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-lo); border: 1px solid var(--line-paper); border-radius: var(--r-full); padding: 4px 10px; }
.domain.live .dstat { color: var(--ember); border-color: var(--ember-line); }

/* ============================================================================
   CLOSING CTA (ink)
   ========================================================================== */
.closing { text-align: center; }
.closing h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; font-size: clamp(34px, 5vw, 68px); line-height: 1.02; color: var(--text-hi); max-width: 18ch; margin: 0 auto; text-wrap: balance; }
.closing h2 .em { color: var(--ember); }
.closing p { font-size: 18px; color: var(--text-mid); margin: 26px auto 0; max-width: 54ch; line-height: 1.55; }
.closing .ccta { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.value-line { width: 64px; height: 3px; background: var(--ember); margin: 0 auto 0; border-radius: 2px; }

/* ============================================================================
   FOOTER
   ========================================================================== */
footer { background: var(--ink-sunken); border-top: 1px solid var(--line); padding: 64px 0 56px; color: var(--text-lo); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .brand .wm { color: var(--text-hi); }
.foot-brand p { font-size: 14px; color: var(--text-lo); margin-top: 18px; max-width: 34ch; line-height: 1.55; }
.foot-col h4 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.foot-col a { display: block; font-size: 14px; color: var(--text-mid); margin-bottom: 11px; transition: color var(--dur); }
.foot-col a:hover { color: var(--text-hi); }
.foot-bottom { display: flex; align-items: center; gap: 16px; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line); }
.foot-bottom .lock { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-lo); letter-spacing: 0.03em; }
.foot-bottom .r { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
@media (max-width: 820px){ .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

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

/* ============================================================================
   Mobile nav menu (hamburger) — Phase 1 mobile. Mantiene los enlaces del nav
   accesibles en móvil/tablet (donde .nav-links se oculta).
   ========================================================================== */
.nav-toggle{ display: none; }
@media (max-width: 920px){
  .nav-toggle{
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; flex-shrink: 0; margin-left: 4px; padding: 0; cursor: pointer;
    background: transparent; border: 1px solid var(--line); border-radius: 10px;
  }
  .nav-toggle span{ display: block; width: 18px; height: 2px; margin: 0 auto; border-radius: 2px;
    background: var(--text-hi); transition: transform .25s var(--ease), opacity .2s var(--ease); }
  .nav.menu-open .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2){ opacity: 0; }
  .nav.menu-open .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

  .nav-links{
    display: flex !important; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 6px 24px 14px;
    background: var(--ink-base, #0a0d14); border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 50px -26px rgba(0,0,0,0.7);
    opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav.menu-open .nav-links{ opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a{ padding: 13px 2px; font-size: 16px; color: var(--text-mid); border-bottom: 1px solid var(--line); }
  .nav-links a:last-child{ border-bottom: 0; }
  .nav-links a:hover, .nav-links a.active{ color: var(--text-hi); }
}
