/* ─── Tokens ─── */
:root {
  --bg: #050810;
  --bg-raised: #0a0f1c;
  --bg-card: #0d1322;
  --bg-card-hover: #111929;
  --ink: #dce4f0;
  --ink-soft: #6f819e;
  --ink-faint: #354260;
  --border: #151e35;
  --border-light: #22325a;
  --accent: #4a9eff;
  --accent-dim: rgba(74, 158, 255, 0.10);
  --accent-glow: rgba(74, 158, 255, 0.35);
  --slime: #36f0c8;
  --slime-dim: rgba(54, 240, 200, 0.10);
  --slime-glow: rgba(54, 240, 200, 0.35);
  --green: #7df552;
  --green-dim: rgba(125, 245, 82, 0.10);
  --cyan: #36f0c8;
  --cyan-dim: rgba(54, 240, 200, 0.08);
  --orange: #ff8a4c;
  --yellow: #ffd166;
  --radius: 6px;
  --radius-lg: 10px;
  --max-w: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --space-section: clamp(80px, 12vw, 140px);
  --space-inner: clamp(16px, 2.4vw, 28px);
}

/* ─── Loader ─── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 200px;
}

.loader-slime {
  width: 140px;
  height: 140px;
  background: url("assets/sleep/slime_sleep_sprite.png") no-repeat 0 0;
  background-size: 140px 840px;
  animation: slime-sleep 1.08s steps(6) infinite;
}

@keyframes slime-sleep {
  to { background-position: 0 -840px; }
}

.loader-bar {
  width: 120px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.loader-text {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-weight: 500;
}

.loader-dots::after {
  content: "";
  animation: loader-dots 1.4s steps(4, end) infinite;
}

@keyframes loader-dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: "Chakra Petch", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

/* ─── Noise texture ─── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* ─── Ambient background ─── */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(600px circle at var(--glow-x, 30%) var(--glow-y, 20%), rgba(54, 240, 200, 0.02), transparent 50%),
    radial-gradient(400px circle at 80% 80%, rgba(125, 245, 82, 0.012), transparent 50%);
  animation: ambient-drift 20s ease-in-out infinite alternate;
}

@keyframes ambient-drift {
  0% { --glow-x: 20%; --glow-y: 15%; }
  50% { --glow-x: 70%; --glow-y: 60%; }
  100% { --glow-x: 40%; --glow-y: 85%; }
}

/* Cursor glow (disabled — too many overlays) */
.cursor-glow { display: none; }

/* ─── Scanlines (disabled — too many overlays) ─── */
.scanlines { display: none; }

/* ─── Typography ─── */
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 700; }

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }

.label {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  font-weight: 600;
}

.section-header {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-header p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.kicker {
  margin: 0 0 20px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  font-weight: 600;
}

/* ─── Notch nav ─── */
.notch-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
}

.notch-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  background: linear-gradient(180deg, #0a0f1a 0%, #0d1325 100%);
  border: 1px solid var(--border-light);
  border-top: none;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  padding: 6px 6px 8px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 0 1px rgba(74, 158, 255, 0.15),
    inset 0 -1px 0 rgba(74, 158, 255, 0.05);
}

/* Subtle accent glow at bottom edge */
.notch-nav-inner::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.2), transparent);
  border-radius: 0 0 18px 18px;
}

.notch-row-top {
  display: flex;
  align-items: center;
  gap: 0;
}

/* XP bar row */
.notch-xp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 2px;
}

.notch-lv {
  font-family: "Martian Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  white-space: nowrap;
  min-width: 28px;
  transition: transform 200ms, color 200ms;
}

.notch-lv.level-up {
  animation: notch-level-pop 0.5s ease-out;
}

@keyframes notch-level-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.5); color: #fff; }
  100% { transform: scale(1); }
}

.notch-xp-bar {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 0;
  overflow: hidden;
  min-width: 80px;
}

.notch-xp-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 150ms ease, box-shadow 300ms ease;
}

.notch-xp-fill.xp-high {
  box-shadow: 0 0 6px var(--accent-glow);
}

.notch-xp-num {
  font-family: "Martian Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  white-space: nowrap;
  min-width: 32px;
  text-align: right;
}

/* Brand center */
.notch-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: "Martian Mono", monospace;
  white-space: nowrap;
  padding: 0 14px;
  margin: 0 2px;
}

.brand-symbol {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  margin-right: 5px;
  animation: blink-cursor 1.2s step-end infinite;
}

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

.brand-name {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--ink);
  font-weight: 700;
}

/* Nav links */
.notch-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 150ms;
  cursor: pointer;
  position: relative;
}

.notch-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.notch-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
  flex-shrink: 0;
  transition: background 200ms, transform 200ms, box-shadow 200ms;
}

.notch-link:hover .notch-dot {
  background: var(--ink-soft);
}

.notch-link.active .notch-dot {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(74, 158, 255, 0.5);
  transform: scale(1.3);
}

.notch-label {
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  transition: color 150ms;
  white-space: nowrap;
  font-weight: 500;
}

.notch-link:hover .notch-label {
  color: var(--ink-soft);
}

.notch-link.active .notch-label {
  color: var(--accent);
}

/* ─── Mobile menu ─── */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 18px;
  right: var(--gutter);
  z-index: 201;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 200ms, opacity 200ms;
}

.mobile-menu-btn.active span:first-child {
  transform: rotate(45deg) translate(2px, 3px);
}

.mobile-menu-btn.active span:last-child {
  transform: rotate(-45deg) translate(2px, -3px);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(5, 8, 16, 0.96);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  padding: 14px 24px;
  transition: color 120ms;
  font-weight: 500;
}

.mobile-menu a:hover {
  color: var(--ink);
}

.mobile-menu-cta {
  margin-top: 12px;
  color: var(--accent) !important;
  border-bottom: 1px solid var(--accent);
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 100ms ease, background 100ms ease;
  white-space: nowrap;
  position: relative;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
}

.btn.primary:hover {
  box-shadow: 0 0 28px rgba(74, 158, 255, 0.3);
}

.btn.secondary {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--border-light);
}

.btn.secondary:hover {
  border-color: var(--ink-faint);
  color: var(--ink);
}

.btn.large {
  padding: 16px 34px;
  font-size: 0.78rem;
}

/* ─── HERO ─── */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-section) var(--gutter);
  padding-bottom: clamp(40px, 6vw, 80px);
  position: relative;
}

.hero::after { display: none; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  position: relative;
}

.hero-sub {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 46ch;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ─── VIDEO SLOT ─── */
.video-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.video-slot-wide {
  aspect-ratio: 16 / 9;
}

.video-slot-square {
  aspect-ratio: 1;
}

.video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  z-index: 2;
}

/* Placeholder visible cuando no hay video cargado */
.video-player[src=""],
.video-player:not([src]) {
  display: none;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 1;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(74, 158, 255, 0.015) 8px,
      rgba(74, 158, 255, 0.015) 9px
    ),
    var(--bg-card);
}

.video-placeholder-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 1px solid var(--border-light);
  color: var(--ink-faint);
  background: var(--bg-raised);
  transition: border-color 200ms, color 200ms;
}

.video-slot:hover .video-placeholder-icon {
  border-color: var(--accent);
  color: var(--accent);
}

.video-placeholder-icon svg {
  width: 20px;
  height: 20px;
}

.video-placeholder-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.video-placeholder-desc {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-faint);
  line-height: 1.5;
  max-width: 340px;
  text-align: center;
}

.video-placeholder-file {
  display: inline-block;
  margin-top: 4px;
  font-family: "Martian Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  opacity: 0.4;
  padding: 3px 8px;
  border-left: 2px solid var(--accent);
  background: rgba(74, 158, 255, 0.03);
}

.video-placeholder-label {
  font-family: "Martian Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* Placeholder se oculta vía JS cuando el video tiene source con src */

/* ─── NOTCH PREVIEW ─── */
.section-notch {
  padding: 0 var(--gutter) clamp(40px, 6vw, 80px);
}

.section-notch-inner {
  max-width: 480px;
  margin: 0 auto;
}

/* Asset real (img o video) */
.notch-asset {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

/* Placeholder del notch */
.notch-preview-placeholder {
  width: 100%;
}

.notch-preview-frame {
  position: relative;
  background: linear-gradient(180deg, #080c16, #0c1220);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.notch-preview-notch {
  width: 140px;
  height: 22px;
  margin: 0 auto;
  background: #030508;
  border: 1px solid var(--border);
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.notch-preview-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px 48px;
  color: var(--ink-faint);
  font-family: "Martian Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.notch-preview-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  opacity: 0.5;
}

.notch-preview-hint {
  font-size: 0.62rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.notch-caption {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-family: "Martian Mono", monospace;
  letter-spacing: 0.04em;
}

/* ─── PILLARS ─── */
.section-pillars {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-section) var(--gutter);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-inner);
}

.pillar {
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 2px solid var(--accent);
  transition: border-color 250ms, background 250ms, transform 350ms ease;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}

.pillar:hover {
  border-color: var(--border-light);
  border-top-color: var(--accent);
  background: var(--bg-card-hover);
}

.pillar-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 18px;
}

.pillar-icon svg { width: 100%; height: 100%; }
.pillar h3 { margin-bottom: 10px; font-size: 1.1rem; }

.pillar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── SHOWCASE ─── */
.section-showcase {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-section) var(--gutter);
}

.showcase-inner {
  display: flex;
  flex-direction: column;
}

.section-showcase .section-header {
  margin-bottom: 32px;
}

/* ─── SKILLS ─── */
.section-skills {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-section) var(--gutter);
}

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-inner);
}

.skills-video {
  position: sticky;
  top: 80px;
}

.skill-card {
  padding: clamp(18px, 2.5vw, 26px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 250ms, transform 350ms ease;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0%;
  transition: height 350ms ease;
}

.skill-card:hover::before {
  height: 100%;
}

.skill-card:hover {
  border-color: var(--border-light);
}

.skill-card[data-element="fire"]::before { background: var(--orange); }
.skill-card[data-element="water"]::before { background: var(--cyan); }
.skill-card[data-element="electric"]::before { background: var(--yellow); }

.skill-card[data-element="fire"] { border-left: 3px solid var(--orange); }
.skill-card[data-element="water"] { border-left: 3px solid var(--cyan); }
.skill-card[data-element="electric"] { border-left: 3px solid var(--yellow); }

.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-name { font-size: 1.05rem; font-weight: 700; }

.skill-badge {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border: none;
  border-left: 1px solid var(--border-light);
  color: var(--ink-faint);
}

.skill-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ─── NEXO DIGITAL ─── */
.section-glitch {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-section) var(--gutter);
}

.glitch-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.glitch-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 138, 76, 0.03) 0%, transparent 40%),
    linear-gradient(315deg, rgba(54, 240, 200, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

/* Corner brackets (disabled) */

.glitch-text .label { color: var(--orange); border-color: var(--orange); }

/* Glitch title */
.glitch-title {
  position: relative;
  margin-bottom: 16px;
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.glitch-title::before {
  color: var(--accent);
  z-index: -1;
  animation: glitch-1 3.5s ease-in-out infinite;
}

.glitch-title::after {
  color: var(--orange);
  z-index: -1;
  animation: glitch-2 3.5s ease-in-out infinite;
}

@keyframes glitch-1 {
  0%, 88%, 92%, 100% { clip-path: inset(0); transform: none; opacity: 0; }
  89% { clip-path: inset(20% 0 60% 0); transform: translateX(-3px); opacity: 0.7; }
  91% { clip-path: inset(50% 0 10% 0); transform: translateX(2px); opacity: 0.5; }
}

@keyframes glitch-2 {
  0%, 86%, 94%, 100% { clip-path: inset(0); transform: none; opacity: 0; }
  90% { clip-path: inset(40% 0 20% 0); transform: translateX(3px); opacity: 0.6; }
  93% { clip-path: inset(10% 0 70% 0); transform: translateX(-2px); opacity: 0.4; }
}

.glitch-text > p {
  color: var(--ink-soft);
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 48ch;
}

.glitch-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.glitch-features li {
  position: relative;
  padding: 9px 0 9px 22px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}

.glitch-features li:last-child { border-bottom: none; }

.glitch-features li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}

/* ─── COLLECTION / WEB PROFILE ─── */
.section-collection {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-section) var(--gutter);
}

.collection-preview {
  margin-bottom: 32px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.col-card {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform 250ms, box-shadow 250ms;
}

.col-card:hover {
  transform: translateY(-4px);
}

.col-card.unlocked {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}

.col-card.unlocked:hover {
  box-shadow: 0 4px 20px rgba(54, 240, 200, 0.1);
  border-color: var(--slime);
}

.col-card.locked {
  background: var(--bg-raised);
  border: 1px dashed var(--border);
}

.col-card.founder-exclusive {
  border-color: var(--orange);
  border-style: dashed;
}

.col-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 10px 6px;
  gap: 4px;
}

.col-type {
  font-size: 0.54rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
}

.col-glitch { color: var(--orange); background: rgba(255, 138, 76, 0.12); }
.col-espectro { color: var(--slime); background: rgba(54, 240, 200, 0.12); }
.col-bestia { color: var(--green); background: rgba(125, 245, 82, 0.12); }

.col-art {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink-faint);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.col-art-img {
  width: 60%;
  max-height: 60%;
  object-fit: contain;
  margin: auto;
}

.col-mystery {
  color: var(--border-light);
  font-size: 2rem;
}

.col-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.col-element {
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  text-transform: uppercase;
  font-weight: 600;
}

.col-founder-tag {
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--orange);
  background: rgba(255, 138, 76, 0.1);
  padding: 2px 6px;
  border-radius: 2px;
}

.col-card[data-rarity="rare"] .col-name {
  color: var(--green);
}

/* Stats bar */
.collection-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.col-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 64px;
}

.col-stat-num {
  font-family: "Martian Mono", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slime);
}

.col-stat-label {
  font-family: "Martian Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.col-stat-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 0;
  overflow: hidden;
}

.col-stat-fill {
  height: 100%;
  background: var(--slime);
  transition: width 300ms ease;
}

/* Features */
.collection-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-top: 28px;
}

.col-feature {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.col-feature-icon {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Coming tag */
.collection-coming {
  margin-top: 28px;
  text-align: center;
}

.col-coming-tag {
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  padding: 6px 16px;
  border: 1px dashed var(--border-light);
  border-radius: 2px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .collection-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .collection-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── FOUNDER ─── */
.section-founder {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-section) var(--gutter);
}

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

.founder-card {
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.founder-card.immediate {
  border-top: 2px solid var(--accent);
  border-left: none;
}

.founder-card.timeline {
  border-top: 2px solid var(--orange);
  border-left: none;
}

.founder-card h3 {
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.founder-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.founder-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.founder-card li:last-child { border-bottom: none; }
.founder-card li strong { color: var(--ink); }

.timeline-entries {
  display: flex;
  flex-direction: column;
}

.tl-entry {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.tl-entry:last-child { border-bottom: none; }

.tl-date {
  font-family: "Martian Mono", monospace;
  font-size: 0.72rem;
  color: var(--orange);
  min-width: 80px;
  letter-spacing: 0.04em;
}

.tl-item { color: var(--ink-soft); font-size: 0.92rem; }

/* ─── STRETCH GOALS ─── */
.section-goals {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-section) var(--gutter);
}

.goals-console {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.console-controls {
  padding: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
}

.console-controls label {
  display: block;
  font-family: "Martian Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.console-input-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.range-slider {
  flex: 1;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--border);
  border-radius: 99px;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
  cursor: pointer;
  border: none;
  transform: rotate(45deg);
}

.num-input {
  width: 74px;
  padding: 7px 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--ink);
  font-family: "Martian Mono", monospace;
  font-size: 0.8rem;
  text-align: center;
}

.num-input:focus { outline: none; border-color: var(--accent); }

.console-bar {
  margin-top: 16px;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 0;
  overflow: hidden;
}

.console-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: 0;
  transition: width 200ms ease;
}

.console-stats {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  font-family: "Martian Mono", monospace;
  font-size: 0.7rem;
  color: var(--ink-soft);
}

/* Goal items */
.goals-list {
  max-height: 520px;
  overflow-y: auto;
}

.goals-list::-webkit-scrollbar { width: 5px; }
.goals-list::-webkit-scrollbar-track { background: var(--bg-card); }
.goals-list::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 99px; }

.goal-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 15px clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--border);
  transition: background 200ms;
}

.goal-item:last-child { border-bottom: none; }

.goal-num {
  font-family: "Martian Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-faint);
  min-width: 42px;
  transition: color 200ms;
}

.goal-desc {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
  transition: color 200ms;
}

.goal-desc strong { color: var(--ink); }

.goal-item.unlocked { background: rgba(74, 158, 255, 0.03); }
.goal-item.unlocked .goal-num { color: var(--accent); }
.goal-item.unlocked .goal-desc { color: var(--ink); }

.goal-item.just-unlocked {
  animation: goal-pop 0.35s ease-out;
}

@keyframes goal-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.02); background: rgba(74, 158, 255, 0.08); }
  100% { transform: scale(1); }
}

.goal-item.next-goal { background: var(--cyan-dim); }
.goal-item.next-goal .goal-num { color: var(--cyan); }

.goals-note {
  margin-top: 24px;
  padding: 24px clamp(20px, 3vw, 32px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--green);
  border-radius: var(--radius);
}

.goals-note p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.goals-note p:last-child { margin-bottom: 0; }
.goals-note strong { color: var(--ink); }

/* ─── FAQ ─── */
.section-faq {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-section) var(--gutter);
}

.faq-list { max-width: 680px; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 150ms;
}

.faq-item summary:hover { color: var(--accent); }

.faq-item summary::after {
  content: "+";
  font-size: 1rem;
  color: var(--ink-faint);
  transition: transform 200ms, color 200ms;
  flex-shrink: 0;
  font-weight: 300;
}

.faq-item[open] summary::after {
  content: "−";
  transform: none;
  color: var(--accent);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
  padding-right: 40px;
}

/* ─── CTA ─── */
.section-cta {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-section) var(--gutter);
}

.cta-content {
  text-align: center;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 56px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

/* CTA grid pattern (disabled) */

.cta-content h2 { position: relative; }

.cta-content p {
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 48ch;
  line-height: 1.65;
  position: relative;
}

.cta-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px var(--gutter);
  margin-top: 20px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.footer-brand {
  font-family: "Martian Mono", monospace;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 1px solid var(--border-light);
  transition: color 150ms, border-color 150ms;
}

.footer-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ─── Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 240ms; }

/* ─── Section dividers (disabled) ─── */

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }

  .pillars { grid-template-columns: 1fr; }

  .skills-layout {
    grid-template-columns: 1fr;
  }

  .skills-video {
    position: static;
    max-width: 500px;
  }

  .glitch-content { grid-template-columns: 1fr; }

  .glitch-visual {
    order: -1;
    max-width: 360px;
  }

  .founder-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .notch-nav { display: none; }

  .mobile-menu-btn {
    display: flex;
  }

  .hero::after { display: none; }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .console-input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .num-input { width: 100%; }

  .video-slot { aspect-ratio: 4 / 3; }
  .video-slot-square { aspect-ratio: 4 / 3; }

  .lore-body { padding: 0 0; }
  .lore-block { padding-left: 0; }
  .lore-block::before { display: none; }
}

/* ─── LORE: NEXO DIGITAL ─── */
.section-lore {
  padding: var(--space-section) var(--gutter);
  position: relative;
  overflow: hidden;
}

.section-lore::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(54, 240, 200, 0.015) 0%, transparent 30%, transparent 70%, rgba(125, 245, 82, 0.01) 100%);
  pointer-events: none;
}

.lore-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.lore-header {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.lore-header h2 {
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 12px 0 0;
}

.lore-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--border);
}

.lore-block {
  padding: 20px 0 20px 24px;
  position: relative;
}

.lore-block::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 28px;
  width: 5px;
  height: 5px;
  border-radius: 0;
  background: var(--border-light);
  transform: translateX(-50%) rotate(45deg);
  transition: background 0.4s;
}

.lore-block.visible::before {
  background: var(--accent);
}

.lore-block p {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.lore-block p:last-child {
  margin-bottom: 0;
}

.lore-block strong {
  color: var(--ink);
  font-weight: 600;
}

.lore-block em {
  color: var(--accent);
  font-style: normal;
}

.lore-highlight {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  padding: 24px 24px 24px 24px;
  margin-left: 0;
}

.lore-highlight p:first-child {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  color: var(--ink);
  font-weight: 600;
}

.lore-type {
  font-size: 0.82em;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.lore-glitch {
  background: rgba(255, 138, 76, 0.12);
  color: var(--orange);
}

.lore-espectro {
  background: rgba(54, 240, 200, 0.12);
  color: var(--slime);
}

.lore-bestia {
  background: rgba(125, 245, 82, 0.12);
  color: var(--green);
}

.lore-aside {
  font-size: clamp(0.82rem, 1.3vw, 0.88rem) !important;
  color: var(--ink-faint) !important;
  font-style: italic;
  margin-top: 4px;
}

.lore-closing {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-top: 8px;
}

.lore-final {
  font-size: clamp(1rem, 1.7vw, 1.15rem) !important;
  color: var(--ink) !important;
  font-weight: 500;
  margin-top: 12px;
  line-height: 1.65;
}

/* Notch glow state when max level */
.notch-nav.maxed .notch-nav-inner {
  border-color: rgba(74, 158, 255, 0.25);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 0 12px rgba(74, 158, 255, 0.12),
    inset 0 -1px 0 rgba(74, 158, 255, 0.1);
}

.notch-nav.maxed .notch-nav-inner::after {
  background: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.4), transparent);
}

/* ─── Language toggle ─── */
.lang-toggle {
  font-family: "Martian Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--ink-faint);
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2px 6px;
  cursor: pointer;
  transition: color 150ms, border-color 150ms;
  margin-left: 4px;
  line-height: 1.4;
}

.lang-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.lang-toggle-mobile {
  margin-top: 20px;
  font-size: 0.72rem;
  padding: 8px 18px;
  border-color: var(--border-light);
}

/* ─── NOTIFY BUTTON (Tally popup trigger) ─── */
.hero-secondary {
  margin: clamp(18px, 3vw, 28px) 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-sep {
  color: var(--border-light);
  font-size: 0.7rem;
  user-select: none;
}

.cta-notify {
  margin: clamp(20px, 3vw, 32px) 0 0;
}

.btn-notify {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  background: none;
  border: none;
  border-bottom: 1px dashed var(--border-light);
  padding: 4px 0;
  cursor: pointer;
  transition: color 200ms, border-color 200ms;
  font-weight: 500;
}

.btn-notify:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-notify::before {
  content: ">";
  color: var(--accent);
  font-weight: 700;
  opacity: 0;
  transition: opacity 150ms;
}

.btn-notify:hover::before {
  opacity: 1;
}

.btn-notify.disabled {
  pointer-events: none;
  opacity: 0.45;
  border-style: dotted;
}

.btn-notify.disabled::before {
  display: none;
}

/* ─── EXPEDICIÓN CERO (BETA) ─── */
.section-beta {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-section) var(--gutter);
}

.beta-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 32px);
  margin-top: clamp(32px, 5vw, 56px);
}

.beta-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(24px, 3vw, 40px);
  transition: border-color 300ms;
}

.beta-card:hover {
  border-color: var(--accent);
}

.beta-card h3 {
  font-family: var(--heading);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.beta-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.beta-card li {
  font-size: clamp(0.82rem, 1.2vw, 0.92rem);
  color: var(--text-mid);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.beta-card li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.beta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: clamp(32px, 5vw, 48px);
}

@media (max-width: 768px) {
  .beta-cards { grid-template-columns: 1fr; }
  .beta-actions { flex-direction: column; align-items: center; }
}

/* ─── FAB: Beta tester ─── */
.fab-beta {
  position: fixed;
  bottom: clamp(20px, 4vw, 32px);
  right: clamp(20px, 4vw, 32px);
  z-index: 190;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 2px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(74, 158, 255, 0.12);
  cursor: pointer;
  transition: transform 150ms, box-shadow 150ms, opacity 300ms;
  text-decoration: none;
}

.fab-beta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(74, 158, 255, 0.2);
}

.fab-beta.hidden {
  opacity: 0;
  pointer-events: none;
}

.fab-beta-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: fab-pulse 2s ease-in-out infinite;
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 158, 255, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(74, 158, 255, 0); }
}

.fab-beta-label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .fab-beta {
    padding: 10px 16px;
    bottom: 16px;
    right: 16px;
  }
  .fab-beta-label {
    font-size: 0.6rem;
  }
}

/* Konami flash */
@keyframes konami-flash {
  0% { filter: none; }
  15% { filter: brightness(2) hue-rotate(40deg); }
  30% { filter: brightness(0.8) hue-rotate(-20deg); }
  50% { filter: brightness(1.5) hue-rotate(20deg); }
  100% { filter: none; }
}
