/* Kurogo — landing. Tokens desde kuro-visual-spec.md (Rams, tsk_a10777f577c2). */

:root {
  --ink: #0B0B0B;
  --graphite: #202020;
  --paper: #F8F3EA;
  --white: #FFFFFF;
  --eclipse: #D9A85F;
  --halo: #F1D7A6;
  --accent-on-paper: #906422; /* 4.71:1 sobre Paper, AA */

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;

  /* escala tipográfica propia de la landing (desktop) */
  --kuro-display: 72px;
  --kuro-heading: 40px;
  --kuro-title: 22px;
  --kuro-body: 18px;
  --kuro-caption: 14px;
  --kuro-tagline: 28px;
}

@media (max-width: 600px) {
  :root {
    --kuro-display: 40px;
    --kuro-heading: 28px;
    --kuro-title: 20px;
    --kuro-body: 16px;
    --kuro-caption: 13px;
    --kuro-tagline: 22px;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--kuro-body);
  line-height: 1.5;
}

h1, h2, h3, p { margin: 0; }

.section-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-8);
}

@media (max-width: 600px) {
  .section-inner { padding: var(--space-12) var(--space-4); }
}

/* ── focus-visible, obligatorio incluso en marketing ── */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.hero :focus-visible,
.cta-final :focus-visible,
.nav :focus-visible,
.caso :focus-visible,
.footer :focus-visible {
  outline-color: var(--eclipse); /* sobre Ink/Graphite, 7.5-9.1:1 AAA — Ink por defecto es casi invisible ahí */
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-6);
  background: rgba(11, 11, 11, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--white);
}

.mark-icon { display: inline-flex; line-height: 0; }

.nav-word {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--white);
}

@media (max-width: 600px) {
  .nav { padding: var(--space-2) var(--space-4); }
}

/* ── botones ── */
.btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 100ms ease-out;
}

.btn-primary {
  background: var(--eclipse);
  color: var(--ink); /* 9.11:1 sobre Eclipse, AAA */
  padding: 12px 24px;
  font-size: 16px;
}

.btn-primary.is-pressed { transform: scale(0.97); }

.btn-small {
  padding: 8px 16px;
  font-size: 13px;
}

/* ── HERO ── */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  text-align: center;
  padding: var(--space-16) var(--space-6) calc(var(--space-16) + var(--space-8));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 640px;
}

.hero-halo {
  position: absolute;
  inset: -20% -20% auto -20%;
  top: 8%;
  height: 90%;
  margin: 0 auto;
  max-width: 900px;
  background: radial-gradient(circle, var(--halo) 0%, rgba(241, 215, 166, 0.25) 45%, rgba(241, 215, 166, 0) 72%);
  opacity: 0;
  animation:
    kuro-ignite 750ms ease-out 200ms forwards,
    kuro-breathe 5s ease-in-out 950ms infinite;
  pointer-events: none;
}

@keyframes kuro-ignite {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 0.5; transform: scale(1); }
}

@keyframes kuro-breathe {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 0.6;  transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-halo, .hero-halo--small {
    animation: none !important;
    opacity: 0.5;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  opacity: 0;
  animation: kuro-reveal 500ms ease-out forwards;
}

@keyframes kuro-reveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content { animation: none; opacity: 1; }
}

.hero-mark { line-height: 0; margin-bottom: var(--space-2); }

.hero-headline {
  font-size: var(--kuro-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--white);
  text-wrap: balance;
}

.hero-tagline {
  font-family: 'Noto Serif', Georgia, serif;
  font-style: italic;
  font-size: var(--kuro-tagline);
  color: var(--halo);
}

.hero-sub {
  font-size: var(--kuro-body);
  color: var(--paper);
  max-width: 480px;
}

/* ── seam / orbit-eclipse entre hero y roles ── */
.seam {
  position: relative;
  background: var(--ink);
  height: 1px;
}

.seam-mark {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  display: inline-flex;
  background: var(--paper);
  border-radius: 50%;
  padding: var(--space-2);
  line-height: 0;
}

/* ── ROLES (Paper) ── */
.roles { background: var(--paper); }

.eyebrow {
  font-size: var(--kuro-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-on-paper); /* 4.71:1 AA sobre Paper */
  margin-bottom: var(--space-2);
}

.eyebrow-on-dark { color: var(--eclipse); } /* 9.11:1 AAA sobre Ink */

.section-heading {
  font-size: var(--kuro-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 640px;
  margin-bottom: var(--space-8);
}

.section-heading-on-dark { color: var(--white); }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  overflow: hidden;
}

.card-num {
  position: relative;
  display: inline-block;
  font-size: var(--kuro-caption);
  font-weight: 700;
  color: var(--accent-on-paper);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}

.card-num::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--halo) 0%, rgba(241, 215, 166, 0) 70%);
  opacity: 0;
  transition: opacity 150ms ease-out;
  z-index: -1;
}

.card:hover .card-num::before,
.card:focus-within .card-num::before {
  opacity: 0.55;
  transition: opacity 150ms ease-out;
}

.card-title {
  font-size: var(--kuro-title);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.card-text {
  font-size: var(--kuro-caption);
  line-height: 1.55;
  color: var(--graphite);
}

/* ── CASO REAL (Graphite) ── */
.caso { background: var(--graphite); }

.proof-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  color: var(--ink);
}

@media (max-width: 600px) {
  .proof-card { padding: var(--space-6); }
}

.proof-title {
  font-size: var(--kuro-title);
  font-weight: 600;
  line-height: 1.35;
  max-width: 560px;
  margin-bottom: var(--space-6);
}

.bars { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-4); }

.bar-row {
  display: grid;
  grid-template-columns: 150px 1fr 110px;
  align-items: center;
  gap: var(--space-4);
}

@media (max-width: 600px) {
  .bar-row { grid-template-columns: 84px 1fr 76px; gap: var(--space-2); }
}

.bar-label { font-size: var(--kuro-caption); color: var(--graphite); }
.bar-track { background: rgba(11, 11, 11, 0.08); border-radius: 999px; height: 10px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; }
.bar-fill.reported { width: 24%; background: #9a9188; }
.bar-fill.real { width: 100%; background: linear-gradient(90deg, var(--eclipse), #906422); }
.bar-value { font-size: var(--kuro-caption); font-weight: 600; text-align: right; }

.proof-delta {
  font-size: var(--kuro-body);
  font-weight: 600;
  color: var(--accent-on-paper);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(11, 11, 11, 0.08);
}

.proof-context {
  font-size: var(--kuro-caption);
  color: #7a7368;
  margin-top: var(--space-2);
}

.proof-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(11, 11, 11, 0.08);
}

@media (max-width: 600px) {
  .proof-chips { grid-template-columns: 1fr; gap: var(--space-4); }
}

.chip-label {
  font-size: var(--kuro-caption);
  font-weight: 700;
  color: var(--accent-on-paper);
  margin-bottom: var(--space-1);
}

.chip-text { font-size: var(--kuro-caption); line-height: 1.55; color: var(--graphite); }

.scale-strip {
  text-align: center;
  font-size: var(--kuro-caption);
  color: var(--paper);
  opacity: 0.8;
  margin-top: var(--space-8);
}

.scale-strip strong { color: var(--white); font-weight: 700; opacity: 1; }

/* ── PRICING (Paper) ── */
.pricing { background: var(--paper); }

.pricing-text {
  font-size: var(--kuro-body);
  color: var(--graphite);
  max-width: 620px;
  margin-bottom: var(--space-6);
}

.link-accent {
  color: var(--accent-on-paper);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--kuro-body);
}

.link-accent:hover { text-decoration: underline; }

/* ── CTA FINAL (Ink) ── */
.cta-final {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  overflow: hidden;
}

.hero-halo--small {
  max-width: 600px;
  height: 70%;
  top: 10%;
}

.cta-final .section-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.cta-final-headline {
  font-size: var(--kuro-heading);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.cta-final-sub {
  font-size: var(--kuro-body);
  color: var(--paper);
  max-width: 460px;
}

.cta-final-note {
  font-size: var(--kuro-caption);
  color: var(--paper);
  opacity: 0.7;
}

/* ── FOOTER (Graphite) ── */
.footer { background: var(--graphite); color: var(--paper); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.footer .nav-brand { color: var(--white); }

.footer-contact { font-size: var(--kuro-caption); color: var(--paper); }

.footer-legal { font-size: var(--kuro-caption); color: var(--paper); opacity: 0.6; }
