/* Nexo · Sitio público */

:root {
  --primary: #6366F1;
  --primary-dark: #4338CA;
  --primary-soft: #EEF0FE;

  --lumen-amber: #E89E2B;
  --lumen-amber-soft: #FFF4E0;
  --lumen-violet: #AA7BFF;

  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --warning-soft: #FEF6E0;
  --danger-soft: #FEE6E6;

  --bg: #FFFFFF;
  --surface: #F8F9FC;
  --card: #FFFFFF;
  --border: #E4E7EF;
  --divider: #EFF1F6;
  --text-strong: #0B1220;
  --text: #2A3144;
  --text-soft: #5B6678;
  --text-mute: #8A93A6;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.05);
  --shadow-md: 0 4px 12px rgba(11, 18, 32, 0.05), 0 1px 3px rgba(11, 18, 32, 0.03);
  --shadow-lg: 0 16px 40px rgba(11, 18, 32, 0.08);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable',
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Consolas, monospace;

  --max: 1080px;
  --max-narrow: 720px;
  --pad: 24px;
  --pad-sm: 20px;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0C12;
    --surface: #11141C;
    --card: #161A24;
    --border: #232936;
    --divider: #1A1F2A;
    --primary-soft: #1B1F3A;
    --text-strong: #F2F4F8;
    --text: #D5DAE5;
    --text-soft: #A3ADBE;
    --text-mute: #6B7385;
    --primary: #818CF8;
    --primary-dark: #6366F1;
    --lumen-amber-soft: #2A2014;
    --warning-soft: #2A2114;
    --danger-soft: #2A1414;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: 'kern' 1, 'liga' 1, 'cv11' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 0.4em;
  color: var(--text-strong);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

* + h2 { margin-top: 2.25rem; }
* + h3 { margin-top: 1.75rem; }

p { margin: 0 0 1em; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.15em 0.4em;
  background: var(--surface);
  border-radius: 4px;
  color: var(--text-strong);
}

pre {
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.55;
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow-x: auto;
  margin: 1.25rem 0;
}
pre code { padding: 0; background: transparent; }

hr { border: none; height: 1px; background: var(--divider); margin: 2rem 0; }

ul, ol { padding-left: 1.5rem; margin: 1rem 0; }
li { margin: 0.4rem 0; }
li::marker { color: var(--text-mute); }

blockquote {
  margin: 1.5rem 0;
  padding: 0.85rem 1.3rem;
  border-left: 3px solid var(--primary);
  background: var(--surface);
  color: var(--text-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

::selection { background: var(--primary); color: white; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--divider);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  z-index: -1;
  pointer-events: none;
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.brand:hover { color: var(--text-strong); text-decoration: none; }

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav a:hover { color: var(--text-strong); background: var(--surface); text-decoration: none; }
.nav a.active { color: var(--primary); background: var(--primary-soft); }

/* Selector con mayor especificidad para ganarle a .nav a:hover */
.nav a.nav-cta {
  background: var(--primary);
  color: white;
  padding: 7px 14px;
  margin-left: 6px;
  font-weight: 600;
  border-radius: 6px;
  font-size: 0.88rem;
}
.nav a.nav-cta:hover {
  background: var(--primary-dark);
  color: white;
}

@media (max-width: 959px) {
  .site-header-inner { padding: 12px var(--pad); gap: 12px; }
  .nav a { padding: 6px 10px; font-size: 0.86rem; }
  .nav-cta { display: none; }
}

/* Layout */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--pad) 64px;
}
main.narrow { max-width: var(--max-narrow); }

@media (max-width: 959px) {
  main { padding: 32px var(--pad) 48px; }
}

section { margin: 0 0 2.5rem; }
section:last-child { margin-bottom: 0; }

.page-title {
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  margin-bottom: 0.4em;
  color: var(--text-strong);
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-top: 0;
  margin-bottom: 1.5rem;
  max-width: 680px;
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2.25rem, 4vw + 1.5rem, 3.75rem);
  margin: 0 auto 0.5em;
  color: var(--text-strong);
  letter-spacing: -0.035em;
  line-height: 1.1;
  max-width: 760px;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--lumen-violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-foot {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-mute);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.1s var(--ease),
              box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 1px 2px rgba(99, 102, 241, 0.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background: var(--card);
  color: var(--text-strong);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lumen {
  background: var(--lumen-amber);
  color: white;
  box-shadow: 0 1px 2px rgba(232, 158, 43, 0.25);
}
.btn-lumen:hover {
  background: color-mix(in srgb, var(--lumen-amber) 85%, black);
  color: white;
  box-shadow: 0 6px 20px rgba(232, 158, 43, 0.3);
}

.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-meta { font-size: 0.78rem; font-weight: 500; opacity: 0.85; }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: var(--shadow-md);
}

a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover { text-decoration: none; }

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5em;
  color: var(--text-strong);
}

.card-body {
  color: var(--text-soft);
  font-size: 0.94rem;
  margin: 0;
  line-height: 1.6;
}

.card-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
}
.card-mark.lumen { background: var(--lumen-amber-soft); color: var(--lumen-amber); }

/* Banner Lumen */
.lumen-banner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse 80% 100% at 0% 0%, color-mix(in srgb, var(--lumen-violet) 14%, transparent), transparent 70%),
    radial-gradient(ellipse 80% 100% at 100% 100%, color-mix(in srgb, var(--lumen-amber) 12%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  margin: 2rem 0;
}

.lumen-banner img { width: 96px; height: 96px; flex-shrink: 0; }
.lumen-banner h3 { margin: 0 0 0.5em; font-size: 1.35rem; }
.lumen-banner p { margin: 0 0 1rem; color: var(--text-soft); }

@media (max-width: 640px) {
  .lumen-banner { flex-direction: column; text-align: center; padding: 28px 20px; gap: 16px; }
  .lumen-banner img { width: 80px; height: 80px; }
}

/* Notice */
.notice {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border-left: 3px solid var(--primary);
  background: var(--primary-soft);
  font-size: 0.93rem;
  color: var(--text);
  margin: 1.5rem 0;
}
.notice p { margin: 0; }
.notice.warning { border-left-color: var(--warning); background: var(--warning-soft); }
.notice.danger { border-left-color: var(--danger); background: var(--danger-soft); }

/* Tablas */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
}

table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }

th, td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--divider);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

th {
  font-weight: 600;
  background: var(--surface);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-mute);
}

td { color: var(--text); }

.file {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--text-strong);
  word-break: break-all;
}

.size {
  color: var(--text-mute);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sha {
  font-family: var(--mono);
  font-size: 0.76em;
  word-break: break-all;
  color: var(--text-mute);
  line-height: 1.4;
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--text-soft);
  letter-spacing: 0.02em;
}
.badge.warn { background: var(--warning-soft); color: var(--warning); }
.badge.ok { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }

td .btn { padding: 8px 14px; font-size: 0.84rem; }

@media (max-width: 959px) {
  th, td { padding: 12px 14px; }
}

/* ASCII diagram */
.ascii-diagram {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-soft);
}

/* FAQ */
.faq { margin: 1.5rem 0; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 12px;
  background: var(--card);
  transition: border-color 0.2s var(--ease);
}
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 22px;
  font-weight: 600;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--text-mute);
  font-weight: 400;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--primary); }
.faq .faq-body { padding: 0 22px 18px; color: var(--text); }
.faq .faq-body p:last-child { margin-bottom: 0; }

.faq-group h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  font-weight: 700;
}

/* Spec list */
.spec-list { list-style: none; padding: 0; margin: 1rem 0; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 0.93rem;
  color: var(--text-soft);
  gap: 16px;
}
.spec-list li:last-child { border-bottom: none; }
.spec-list li strong { color: var(--text-strong); font-weight: 600; }

/* CTA */
.cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 48px;
  text-align: center;
  margin: 3rem 0 0;
}
.cta h2 { margin-top: 0; margin-bottom: 0.5em; }
.cta p { color: var(--text-soft); margin-bottom: 1.5rem; }

@media (max-width: 640px) { .cta { padding: 32px 20px; } }

/* Footer */
.site-footer {
  border-top: 1px solid var(--divider);
  padding: 40px var(--pad) 24px;
  margin-top: 48px;
  background: var(--surface);
}
.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  margin: 0 0 12px;
  font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: var(--text-soft); font-size: 0.92rem; }
.site-footer a:hover { color: var(--text-strong); }
.footer-about p { font-size: 0.88rem; color: var(--text-mute); margin: 10px 0 0; max-width: 340px; }
.footer-bottom {
  max-width: var(--max);
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
  font-size: 0.82rem;
  color: var(--text-mute);
  text-align: center;
}

@media (max-width: 959px) {
  .site-footer { padding: 32px var(--pad) 20px; margin-top: 32px; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 20px; }
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* Accesibilidad */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Typewriter rotativo (hero) */

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--lumen-violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
  white-space: nowrap;
}

/* Caret que parpadea al lado de la frase rotativa. Es un pseudo-elemento
   con altura igual al text-cap para que no afecte al baseline. */
.hero-title em[data-typewriter]::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 0.92em;
  vertical-align: -0.12em;
  margin-left: 3px;
  background: var(--primary);
  border-radius: 1px;
  animation: blink 1s steps(1) infinite;
  -webkit-text-fill-color: var(--primary);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* En mobile el wrap permite que el caret no rompa la línea raro. */
@media (max-width: 520px) {
  .hero-title em { white-space: normal; }
}

/* Stagger items (hijos de .grid revelados secuencialmente) */

.stagger-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  will-change: opacity, transform;
}
.stagger-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ accordion con animación de altura */

.faq .faq-body {
  overflow: hidden;
  transition: height 0.3s var(--ease);
}

/* Si details está cerrado en HTML, .faq-body no se renderiza.
   Cuando el JS abre con details.open=true, la altura se anima desde 0. */

/* Toast (notificación de copia, etc) */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-strong);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
  max-width: calc(100vw - 32px);
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.toast-error {
  background: var(--danger);
  color: white;
}

/* SHA-256 clickeable (copiar al portapapeles) */

.sha {
  display: inline-block;
  padding: 2px 6px;
  margin: -2px -6px;
  border-radius: 4px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.sha:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.sha:active {
  transform: scale(0.99);
}

/* Logo de Lumen en banner — respiración sutil */

.lumen-banner img {
  animation: lumen-breathe 5s var(--ease-in-out, ease) infinite;
}

@keyframes lumen-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.03); }
}


/* Si está reduce-motion, sin animación de entrada. */
@media (prefers-reduced-motion: reduce) {
  .lumen-banner img { animation: none; }
  .stagger-item { opacity: 1; transform: none; transition: none; }
  .toast { transition: none; }
}

/* About: tarjeta del desarrollador */

.dev-card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin: 1rem 0 2.5rem;
}

.dev-avatar {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 18%, transparent);
}

.dev-name {
  margin: 0 0 0.25em;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.dev-role {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.dev-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.dev-meta li {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: 0.85rem;
}
.dev-meta li span {
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  margin-bottom: 2px;
}
.dev-meta li strong {
  color: var(--text-strong);
  font-weight: 600;
}

@media (max-width: 640px) {
  .dev-card { flex-direction: column; align-items: center; text-align: center; padding: 28px 20px; }
  .dev-meta { width: 100%; }
  .dev-meta li { align-items: center; }
}

/* About: dedicatoria */

.dedication {
  position: relative;
  padding: 56px 48px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse 80% 90% at 20% 20%, color-mix(in srgb, var(--lumen-violet) 14%, transparent), transparent 70%),
    radial-gradient(ellipse 70% 80% at 100% 100%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
  margin: 2rem 0;
}

.dedication-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lumen-violet), var(--primary));
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Georgia', serif;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--lumen-violet) 30%, transparent);
  animation: dedication-glow 4s ease-in-out infinite;
}

@keyframes dedication-glow {
  0%, 100% {
    box-shadow: 0 8px 24px color-mix(in srgb, var(--lumen-violet) 30%, transparent);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 12px 32px color-mix(in srgb, var(--lumen-violet) 45%, transparent);
    transform: scale(1.04);
  }
}

.dedication-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  margin: 0 0 1.5rem;
  font-weight: 700;
}

.dedication-body {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 540px;
  margin: 0 auto 1.5rem;
  font-style: italic;
}

.dedication-body strong {
  background: linear-gradient(135deg, var(--lumen-violet), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-style: normal;
}

.dedication-sign {
  font-size: 0.92rem;
  color: var(--text-mute);
  margin: 0;
  font-weight: 500;
}

@media (max-width: 640px) {
  .dedication { padding: 40px 24px; }
  .dedication-body { font-size: 1.05rem; }
}


/* Mobile side drawer */

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background 0.25s var(--ease);
  z-index: 2;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.mobile-menu-btn:hover { background: var(--surface); }

/* Animated menu bars */
.mobile-menu-btn .menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-strong);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background-color 0.3s var(--ease);
}
.mobile-menu-btn.open .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.open .menu-bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.open .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu-btn.open {
  z-index: 70;
  background: none;
}
.mobile-menu-btn.open .menu-bar {
  background-color: #FFFFFF;
}
.mobile-menu-btn.open:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Overlay backdrop */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 55;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.nav-overlay.show {
  display: block;
  opacity: 1;
}

@media (max-width: 959px) {
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; margin-left: auto; }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    z-index: 60;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border-right: 1px solid var(--border);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    gap: 0;
    scrollbar-width: thin;
  }
  .nav::-webkit-scrollbar { width: 4px; }
  .nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

  .nav.nav-open {
    transform: translateX(0);
  }

  /* Drawer header with brand + close */
  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--divider);
    flex-shrink: 0;
  }
  .nav-drawer-header .brand {
    font-size: 1rem;
  }
  .nav-close-btn {
    display: none;
  }

  /* Links inside drawer */
  .nav-links-wrapper {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 2px;
    flex: 1;
  }
  .nav a {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    margin: 0;
    border-radius: var(--r-sm);
    font-size: 0.95rem;
    white-space: normal;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
  }
  .nav a:hover {
    background: var(--surface);
  }
  .nav a.active {
    background: var(--primary-soft);
  }
  .nav a.nav-cta {
    display: flex;
    margin-top: auto;
    margin-bottom: 8px;
    justify-content: center;
  }

  .site-header-inner { flex-wrap: nowrap; }

  /* Lock body scroll when drawer is open */
  body.nav-drawer-open {
    overflow: hidden;
  }

  /* ── Mobile spacing ── */
  main { padding: 32px var(--pad) 48px; }
  .hero { padding: 32px 0; margin-bottom: 2rem; }
  .hero-title { font-size: clamp(1.75rem, 5vw + 0.5rem, 2.5rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  section { margin-bottom: 2rem; }
  .card { padding: 24px; }
  .lumen-banner { flex-direction: column; text-align: center; padding: 32px var(--pad); gap: 16px; }
  .lumen-banner img { width: 64px; height: 64px; }
  .cta { padding: 32px var(--pad); }
  .cta h2 { font-size: 1.25rem; }
  * + h2 { margin-top: 1.5rem; }
  .page-subtitle { margin-bottom: 1.5rem; }
}

/* Hide drawer-only elements on desktop */
@media (min-width: 960px) {
  .nav-drawer-header { display: none; }
  .nav-links-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .nav-overlay { display: none !important; }
}

/* Nexo UI Mockup (CSS Pure) */
.nexo-mockup {
  background: #11141C;
  border: 1px solid #232936;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  height: 380px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.mockup-header {
  background: #161A24;
  border-bottom: 1px solid #232936;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mockup-dots {
  display: flex;
  gap: 6px;
}
.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
}
.mockup-dots span:nth-child(2) { background: #F59E0B; }
.mockup-dots span:nth-child(3) { background: #10B981; }
.mockup-title {
  font-size: 0.72rem;
  color: #8A93A6;
  font-family: var(--mono);
  margin-left: auto;
  margin-right: auto;
}
.mockup-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.mockup-sidebar {
  width: 110px;
  background: #11141C;
  border-right: 1px solid #232936;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mockup-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #F2F4F8;
}
.mockup-brand img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}
.mockup-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mockup-nav span {
  font-size: 0.7rem;
  color: #A3ADBE;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.mockup-nav span.active {
  background: #1B1F3A;
  color: #818CF8;
  font-weight: 600;
}
.mockup-content {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  background: #0A0C12;
}
.mockup-tabs {
  display: flex;
  background: #11141C;
  border: 1px solid #232936;
  border-radius: 6px;
  padding: 2px;
}
.mockup-tabs span {
  flex: 1;
  text-align: center;
  font-size: 0.68rem;
  color: #A3ADBE;
  padding: 4px 0;
  border-radius: 4px;
  cursor: pointer;
}
.mockup-tabs span.active {
  background: #161A24;
  color: #818CF8;
  font-weight: 600;
}
.mockup-dashboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mockup-card {
  background: #161A24;
  border: 1px solid #232936;
  border-radius: 10px;
  padding: 10px 12px;
}
.mockup-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mockup-card-header h4 {
  font-size: 0.75rem;
  margin: 0;
  color: #F2F4F8;
  font-weight: 600;
}
.mockup-card-header p {
  font-size: 0.65rem;
  margin: 0;
  color: #A3ADBE;
}
.mockup-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}
.mockup-icon.sigma { background: #EEF0FE; color: #6366F1; }
.mockup-icon.intranet { background: #FFF4E0; color: #E89E2B; }

.mockup-chat {
  background: #1B1F3A;
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: #AA7BFF;
  font-weight: 600;
}
.chat-header img {
  width: 14px;
  height: 14px;
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.msg {
  font-size: 0.68rem;
  padding: 6px 10px;
  border-radius: 8px;
  max-width: 90%;
  line-height: 1.35;
}
.msg.user {
  background: #232936;
  color: #D5DAE5;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.msg.lumen {
  background: rgba(170, 123, 255, 0.15);
  color: #D5DAE5;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

/* Material 3 Adaptive Layout — Compact <600 · Medium 600 · Expanded 960 · Large 1280 · XL 1600 */

/* ── Base Split-Pane Mobile Styles ── */
.split-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.split-sidebar {
  width: 100%;
  margin-bottom: 0 !important;
}
.split-sidebar > *:last-child {
  margin-bottom: 0 !important;
}
.split-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  min-width: 0; /* Prevents overflow issues */
}
.split-content section {
  margin-bottom: 0;
}

/* ── Section Header Split Defaults (Mobile) ── */
.section-header-split {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.25rem;
}
.section-header-split p {
  margin-bottom: 0;
}

/* ── Hero Visual Defaults (Mobile) ── */
.hero-visual {
  display: none;
}

/* ── Medium — 600px (Tablets portrait) ───────────────────────── */
@media (min-width: 600px) {
  :root {
    --pad: 32px;
  }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .grid { gap: 18px; }
  .split-layout { gap: 40px; }
  .split-content { gap: 40px; }
}

/* ── Expanded — 960px (Desktop) ─────────────────────────────── */
@media (min-width: 960px) {
  :root {
    --pad: 48px;
    --max: 1180px;
    --max-narrow: 880px;
    --content-max: 760px;
  }

  /* Split Layout Grid */
  main.split-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: start;
    max-width: var(--max) !important;
    padding-top: 32px;
    padding-bottom: 48px;
  }
  .split-sidebar {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding-right: 16px;
    scrollbar-width: none;
  }
  .split-sidebar::-webkit-scrollbar {
    display: none;
  }
  .split-content {
    gap: 32px;
    min-width: 0; /* Flexbox/Grid shrink fix */
  }

  /* Prose readability — limit line length to ~80ch */
  .split-content p,
  .split-content ol,
  .split-content ul,
  .split-content .faq,
  .split-content .faq-group,
  .split-content .notice {
    max-width: var(--content-max);
  }

  /* Exceptions that should take full width in content pane */
  .split-content .grid,
  .split-content .table-wrap,
  .split-content .lumen-banner,
  .split-content .cta,
  .split-content .ascii-diagram,
  .split-content .dev-card,
  .split-content .dedication {
    max-width: 100%;
  }

  /* Hero split */
  .hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center;
    text-align: left;
    padding: 40px 0;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-actions {
    justify-content: flex-start;
  }
  .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Section Header Split */
  .section-header-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    align-items: start;
    margin-bottom: 2rem;
  }
  .section-header-split h2 {
    margin-top: 0;
  }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid { gap: 24px; }
  .card { padding: 32px; }

  /* Desktop card elevation on hover */
  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }

  /* Header breathes more */
  .site-header-inner {
    padding: 16px var(--pad);
    gap: 28px;
  }
  .nav { gap: 6px; }
  .nav a { padding: 8px 16px; }

  /* Lumen banner — more spacious */
  .lumen-banner { padding: 44px 48px; gap: 36px; }
  .lumen-banner img { width: 104px; height: 104px; }
  .lumen-banner h3 { font-size: 1.4rem; }

  /* CTA — wider feel */
  .cta { padding: 56px var(--pad); max-width: 680px; width: 100%; margin: 3rem auto 0; }
  .cta .hero-actions { justify-content: center; }

  /* Dev card info shrink fix */
  .dev-info {
    min-width: 0;
  }
}

/* ── Large — 1280px (Large desktop) ─────────────────────────── */
@media (min-width: 1280px) {
  :root {
    --pad: 64px;
    --max: 1280px;
  }
  main.split-layout {
    gap: 40px;
  }
}

/* ── Extra-Large — 1600px (Widescreen) ─────────────────────── */
@media (min-width: 1600px) {
  :root {
    --pad: 72px;
    --max: 1360px;
  }
  main.split-layout {
    gap: 48px;
  }
}

/* Lumen Interactive Showcase (Sidebar) */

.lumen-orb-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lumen-orb-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lumen-amber) 0%, var(--lumen-violet) 70%, transparent 100%);
  filter: blur(16px);
  opacity: 0.6;
  animation: lumen-glow-pulse 4s ease-in-out infinite alternate;
  z-index: 1;
}
.lumen-orb-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--lumen-amber), var(--lumen-violet));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: lumen-ring-rotate 8s linear infinite;
  z-index: 2;
}
.lumen-orb-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  z-index: 3;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: var(--card);
  animation: lumen-float 6s ease-in-out infinite;
  padding: 10px;
  object-fit: contain;
}

.lumen-chat-preview {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  font-size: 0.86rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 960px) {
  .lumen-orb-container {
    margin: 24px auto 32px auto;
  }
  .lumen-chat-preview {
    margin-left: 0;
  }
}

.chat-preview-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-mute);
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chat-preview-status {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--success);
  animation: status-blink 1.5s infinite alternate;
}
.chat-preview-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-preview-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.4;
  max-width: 90%;
}
.chat-preview-bubble.user {
  background: var(--border);
  color: var(--text-strong);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.chat-preview-bubble.lumen {
  background: var(--primary-soft);
  color: var(--primary-dark);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

@media (prefers-color-scheme: dark) {
  .chat-preview-bubble.user {
    background: #232936;
    color: #D5DAE5;
  }
  .chat-preview-bubble.lumen {
    background: rgba(170, 123, 255, 0.15);
    color: #D5DAE5;
  }
}

@keyframes lumen-glow-pulse {
  0% { transform: scale(0.9); opacity: 0.4; }
  100% { transform: scale(1.1); opacity: 0.7; }
}
@keyframes lumen-ring-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes lumen-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes status-blink {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

