/* ============================================================
   Tutus® — Fideicomiso Digital Programable
   Premium dark-theme stylesheet
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  /* Palette — desaturated, refined */
  --color-bg:           #0a0e1a;
  --color-bg-elevated:  #111627;
  --color-bg-card:      rgba(17, 22, 39, 0.45);
  --color-bg-code:      #0d1117;
  --color-surface:      rgba(255, 255, 255, 0.04);
  --color-border:       rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(14, 165, 233, 0.3);
  --color-accent:       #0ea5e9;
  --color-accent-dim:   rgba(14, 165, 233, 0.12);
  --color-accent-glow:  rgba(14, 165, 233, 0.25);
  --color-teal:         #2dd4bf;
  --color-text:         #e8ecf4;
  --color-text-muted:   #8892a8;
  --color-text-dim:     #5a6478;
  --color-white:        #ffffff;
  --color-success:      #22c55e;
  --color-warning:      #f59e0b;
  --color-danger:       #ef4444;

  /* Typography — Satoshi, not Inter */
  --font-sans:  'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Satoshi', -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', monospace;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Shadows — no neon outer glow */
  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.45);

  /* Transitions */
  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout */
  --nav-height: 72px;
  --max-width:  1200px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-white); }
ul, ol { list-style: none; }

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

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Section Layout ---------- */
.section {
  padding: 5rem 0;
  position: relative;
}

/* Varying padding per section type */
.section--problema  { padding: 7rem 0; }
.section--solucion  { padding: 7rem 0; }
.section--flujo     { padding: 5rem 0; }
.section--arquitectura { padding: 5rem 0; }
.section--contract  { padding: 5rem 0; }
.section--regulatorio  { padding: 5rem 0; }
.section--impacto   { padding: 7rem 0; }

/* Subtle section separators */
.section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.section__title--accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 65ch;
  margin-inline: auto;
  line-height: 1.7;
}

/* ---------- Scroll-triggered animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition-base),
              box-shadow var(--transition-base),
              backdrop-filter var(--transition-base);
}

.nav--scrolled {
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
}

.nav__brand-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-teal));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--color-bg);
}

.nav__links {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
}

/* Sliding active indicator */
.nav__indicator {
  position: absolute;
  bottom: -4px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

/* Remove individual underlines — use shared indicator instead */
.nav__link::after {
  display: none;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-white);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav__toggle-bar {
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav__toggle--open .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle--open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle--open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(10, 14, 26, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-xl);
    gap: var(--space-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
    border-bottom: 1px solid var(--color-border);
  }

  .nav__links--open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__link { font-size: 1.05rem; }
}

/* ============================================================
   HERO — Ethereal Glass
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
  padding-bottom: 4rem;
  background-color: #050508;
}

/* ---------- Mesh Gradient Orbs ---------- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}

.hero__orb--1 {
  width: 45vw; height: 45vw;
  top: -10%; left: 8%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
  animation: orbDrift1 18s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.hero__orb--2 {
  width: 40vw; height: 40vw;
  bottom: -5%; right: 5%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.25) 0%, transparent 70%);
  animation: orbDrift2 22s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.hero__orb--3 {
  width: 38vw; height: 38vw;
  top: 45%; left: 45%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 70%);
  animation: orbDrift3 16s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.hero__orb--4 {
  width: 32vw; height: 32vw;
  top: 15%; right: 20%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, transparent 70%);
  animation: orbDrift4 20s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

@keyframes orbDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5vw, 3vw) scale(1.15); }
}
@keyframes orbDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-4vw, -5vw) scale(1.12); }
}
@keyframes orbDrift3 {
  0%   { transform: translate(0, 0) scale(0.9); }
  100% { transform: translate(-3vw, -4vw) scale(1.1); }
}
@keyframes orbDrift4 {
  0%   { transform: translate(0, 0) scale(1.05); }
  100% { transform: translate(3vw, 4vw) scale(0.92); }
}

/* Particle dust */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 15%, rgba(14, 165, 233, 0.35) 50%, transparent 50%),
    radial-gradient(1px 1px at 30% 45%, rgba(14, 165, 233, 0.18) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 55% 20%, rgba(45, 212, 191, 0.28) 50%, transparent 50%),
    radial-gradient(1px 1px at 75% 60%, rgba(14, 165, 233, 0.22) 50%, transparent 50%),
    radial-gradient(2px 2px at 90% 30%, rgba(14, 165, 233, 0.22) 50%, transparent 50%),
    radial-gradient(1px 1px at 20% 75%, rgba(99, 102, 241, 0.18) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 45% 85%, rgba(45, 212, 191, 0.22) 50%, transparent 50%),
    radial-gradient(1px 1px at 65% 40%, rgba(14, 165, 233, 0.15) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 85% 75%, rgba(99, 102, 241, 0.2) 50%, transparent 50%),
    radial-gradient(1px 1px at 40% 10%, rgba(14, 165, 233, 0.18) 50%, transparent 50%);
  animation: particleDrift 20s linear infinite;
}

@keyframes particleDrift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-30px); }
}

/* Grid lines — visible but subtle */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
}

/* ---------- Split layout ---------- */
.hero__split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: var(--space-3xl);
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: left;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-accent-dim);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero__badge-dot {
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}

/* Title — larger with proper ® sizing */
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: var(--space-md);
  text-shadow: 0 0 80px rgba(14, 165, 233, 0.15);
}

.hero__title-reg {
  font-size: 0.45em;
  vertical-align: super;
  line-height: 0;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Backwards-compat alias */
.hero__title-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
}

/* Thin accent separator */
.hero__separator {
  width: 60px;
  height: 1px;
  background: rgba(14, 165, 233, 0.3);
  margin-bottom: var(--space-lg);
}

.hero__tagline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
}

.hero__tagline strong {
  color: var(--color-accent);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Button-in-Button icon circle */
.btn__icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 0.85em;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn--primary .btn__icon-circle {
  background: rgba(0, 0, 0, 0.18);
}

.btn--outline .btn__icon-circle {
  background: var(--color-accent-dim);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.btn:hover .btn__icon-circle {
  transform: translateX(2px);
}

/* ============================================================
   VAULT — The Centerpiece Visual
   ============================================================ */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
}

/* Layer 1 — Outer glow */
.vault__glow {
  position: absolute;
  width: 420px; height: 420px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(14, 165, 233, 0.22) 0%,
    rgba(45, 212, 191, 0.08) 40%,
    transparent 70%);
  filter: blur(60px);
  animation: vaultGlow 6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
  will-change: transform, opacity;
}

@keyframes vaultGlow {
  0%   { opacity: 0.65; transform: translate(-50%, -50%) scale(0.95); }
  100% { opacity: 1;    transform: translate(-50%, -50%) scale(1.12); }
}

/* Layer 2 — Premium vault rings */
.vault__ring {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
}

/* Outer ring — dashed double-bezel */
.vault__ring--outer {
  width: 340px; height: 340px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(14, 165, 233, 0.12);
  box-shadow:
    inset 0 0 40px rgba(14, 165, 233, 0.04),
    0 0 20px rgba(14, 165, 233, 0.03);
  animation: ringCW 30s linear infinite;
}

.vault__ring--outer::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(14, 165, 233, 0.07);
}

/* Middle ring — counter-rotating */
.vault__ring--middle {
  width: 240px; height: 240px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(45, 212, 191, 0.18);
  box-shadow:
    inset 0 0 30px rgba(45, 212, 191, 0.05),
    0 0 15px rgba(45, 212, 191, 0.04);
  animation: ringCCW 22s linear infinite;
}

/* Inner ring — brightest, filled */
.vault__ring--inner {
  width: 160px; height: 160px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(14, 165, 233, 0.25);
  background: rgba(14, 165, 233, 0.04);
  box-shadow:
    inset 0 0 50px rgba(14, 165, 233, 0.06),
    0 0 25px rgba(14, 165, 233, 0.05);
  animation: ringCW 15s linear infinite;
}

@keyframes ringCW {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ringCCW {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Orbiting dots — positioned on ring borders */
.vault__dot {
  position: absolute;
  width: 5px; height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.7), 0 0 4px rgba(14, 165, 233, 0.4);
}

.vault__ring--outer .vault__dot:nth-child(1) { top: 0; left: 50%; transform: translate(-50%, -50%); }
.vault__ring--outer .vault__dot:nth-child(2) { bottom: 12%; right: 0; transform: translate(50%, 0); }
.vault__ring--middle .vault__dot:nth-child(1) { top: 10%; right: 8%; }
.vault__ring--middle .vault__dot:nth-child(2) { bottom: 0; left: 50%; transform: translate(-50%, 50%); }
.vault__ring--inner .vault__dot:nth-child(1)  { top: 50%; right: 0; transform: translate(50%, -50%); }

/* Layer 3 — Center shield icon */
.vault__center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: vaultPulse 4s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.vault__shield {
  width: 80px; height: 96px;
  color: var(--color-accent);
}

.vault__center-dot {
  width: 4px; height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-top: 10px;
  box-shadow:
    0 0 12px rgba(14, 165, 233, 0.9),
    0 0 28px rgba(14, 165, 233, 0.45);
}

@keyframes vaultPulse {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.88; }
  100% { transform: translate(-50%, -50%) scale(1.03); opacity: 1; }
}

/* Layer 4 — Floating data particles */
.vault__particle {
  position: absolute;
  padding: 3px 10px;
  background: rgba(5, 5, 8, 0.75);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  will-change: transform, opacity;
}

/* Positions — scattered at different distances */
.vault__particle--1 { top: 2%;  right: 2%;  }
.vault__particle--2 { top: 20%; left: -8%;  }
.vault__particle--3 { bottom: 18%; right: -10%; }
.vault__particle--4 { bottom: 5%; left: 5%;  }
.vault__particle--5 { top: 45%; right: -14%; }
.vault__particle--6 { top: 68%; left: -12%;  }
.vault__particle--7 { top: -4%; left: 18%;   }
.vault__particle--8 { bottom: -3%; right: 22%; }

/* Staggered entrance + float animation per particle */
.vault__particle--1 {
  animation: pAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.50s both,
             pFloat  8s  cubic-bezier(0.45, 0, 0.55, 1) 2.10s infinite alternate;
  --fx: 5px; --fy: -8px;
}
.vault__particle--2 {
  animation: pAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.70s both,
             pFloat  9s  cubic-bezier(0.45, 0, 0.55, 1) 2.30s infinite alternate;
  --fx: -7px; --fy: 6px;
}
.vault__particle--3 {
  animation: pAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.90s both,
             pFloat  7s  cubic-bezier(0.45, 0, 0.55, 1) 2.50s infinite alternate;
  --fx: 8px; --fy: 5px;
}
.vault__particle--4 {
  animation: pAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) 2.10s both,
             pFloat  10s cubic-bezier(0.45, 0, 0.55, 1) 2.70s infinite alternate;
  --fx: -4px; --fy: -9px;
}
.vault__particle--5 {
  animation: pAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) 2.30s both,
             pFloat  8s  cubic-bezier(0.45, 0, 0.55, 1) 2.90s infinite alternate;
  --fx: 6px; --fy: -5px;
}
.vault__particle--6 {
  animation: pAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) 2.50s both,
             pFloat  9s  cubic-bezier(0.45, 0, 0.55, 1) 3.10s infinite alternate;
  --fx: -8px; --fy: 7px;
}
.vault__particle--7 {
  animation: pAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) 2.70s both,
             pFloat  7s  cubic-bezier(0.45, 0, 0.55, 1) 3.30s infinite alternate;
  --fx: 4px; --fy: 8px;
}
.vault__particle--8 {
  animation: pAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) 2.90s both,
             pFloat  10s cubic-bezier(0.45, 0, 0.55, 1) 3.50s infinite alternate;
  --fx: -6px; --fy: -6px;
}

@keyframes pAppear {
  from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes pFloat {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(var(--fx, 5px), var(--fy, -5px)); }
}

/* ---------- Cinematic Entrance Stagger ---------- */
.hero__stagger {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__stagger[data-stagger="0"] { animation-delay: 0.15s; }
.hero__stagger[data-stagger="1"] { animation-delay: 0.35s; }
.hero__stagger[data-stagger="2"] { animation-delay: 0.55s; }
.hero__stagger[data-stagger="3"] { animation-delay: 0.75s; }
.hero__stagger[data-stagger="4"] { animation-delay: 0.95s; }

/* Vault visual fades in LAST — scale instead of translateY */
.hero__stagger[data-stagger="5"] {
  transform: scale(0.9);
  animation-name: heroRevealVault;
  animation-delay: 1.15s;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroRevealVault {
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-base),
              border-color var(--transition-base),
              background var(--transition-base),
              color var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-teal));
  color: var(--color-bg);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.2);
  color: var(--color-bg);
}

.btn--primary:active {
  transform: scale(0.98) translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-dim);
}

.btn--outline:active {
  transform: scale(0.98);
}

/* Scroll indicator — minimal chevron */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  opacity: 0;
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.4s forwards,
             scrollChevron 2s cubic-bezier(0.45, 0, 0.55, 1) 2.3s infinite;
}

.hero__scroll-chevron {
  width: 20px; height: 12px;
  opacity: 0.45;
  transition: opacity 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__scroll:hover .hero__scroll-chevron { opacity: 0.8; }

@keyframes scrollChevron {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* Hero mobile */
@media (max-width: 768px) {
  .hero__split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }
  .hero__content { text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__tagline { margin-inline: auto; max-width: none; }
  .hero__separator { margin-inline: auto; }
  .hero__visual { min-height: 260px; order: -1; }
  .vault__ring--outer  { width: 220px; height: 220px; }
  .vault__ring--middle { width: 160px; height: 160px; }
  .vault__ring--inner  { width: 110px; height: 110px; }
  .vault__glow { width: 260px; height: 260px; }
  .vault__shield { width: 56px; height: 68px; }
  .vault__particle { display: none; }
}

/* ============================================================
   CARDS (Glassmorphism)
   ============================================================ */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-card),
              inset 0 1px 0 rgba(255, 255, 255, 0.06),
              inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: transform var(--transition-base),
              border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Top accent line — always visible, brighter on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.3;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-hover);
}

.card:hover::before { opacity: 1; }

.card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: var(--color-accent-dim);
  border-radius: var(--radius-md);
  color: var(--color-accent);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.card__text {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 65ch;
}

/* Bento grid layouts */
.bento {
  display: grid;
  gap: var(--space-xl);
}

/* Problem: first card tall left, 2 + 3 stacked right, 4 spans bottom */
.bento--problem {
  grid-template-columns: 1.3fr 1fr;
}

.bento--problem .card--featured {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento--problem .card:last-child {
  grid-column: 1 / -1;
}

/* Solution: first card wide, 2 + 3 side by side */
.bento--solution {
  grid-template-columns: 1fr 1fr;
}

.bento--solution .card--wide {
  grid-column: 1 / -1;
}

/* Standard grid layouts */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .bento--problem { grid-template-columns: 1fr 1fr; }
  .bento--problem .card--featured { grid-row: auto; }
  .bento--problem .card:last-child { grid-column: auto; }
}

@media (max-width: 640px) {
  .grid--4,
  .grid--3,
  .grid--2 { grid-template-columns: 1fr; }
  .bento--problem,
  .bento--solution { grid-template-columns: 1fr; }
  .bento--solution .card--wide { grid-column: auto; }
}

/* ============================================================
   PROBLEMA SECTION
   ============================================================ */
.section--problema { background: var(--color-bg); }

/* ============================================================
   SOLUCION SECTION
   ============================================================ */
.section--solucion {
  background:
    linear-gradient(180deg, rgba(17, 22, 39, 0.5) 0%, var(--color-bg) 100%);
}

.card--solucion .card__icon {
  background: linear-gradient(135deg, var(--color-accent-dim), rgba(45, 212, 191, 0.1));
}

/* ============================================================
   FLUJO / COMO FUNCIONA
   ============================================================ */
.section--flujo { background: var(--color-bg); }

.timeline {
  display: flex;
  gap: var(--space-lg);
  position: relative;
  padding: var(--space-xl) 0;
}

/* Connecting line — more visible */
.timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-accent) 10%,
    var(--color-accent) 90%,
    transparent 100%
  );
  opacity: 0.5;
  transform: translateY(-50%);
}

.timeline__step {
  flex: 1;
  position: relative;
  text-align: center;
  z-index: 1;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform var(--transition-base),
              border-color var(--transition-base);
}

.timeline__step:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-hover);
}

.timeline__number {
  width: 48px; height: 48px;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-accent);
  margin: 0 auto var(--space-md);
  position: relative;
  z-index: 2;
  transition: background var(--transition-base),
              color var(--transition-base);
}

.timeline__step:hover .timeline__number {
  background: var(--color-accent);
  color: var(--color-bg);
}

.timeline__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.timeline__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.timeline__state {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.timeline__state--locked {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.timeline__state--released {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Circular connectors between steps (desktop) */
.timeline__arrow {
  display: none;
}

@media (min-width: 769px) {
  .timeline__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-size: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }
}

/* Callout */
.callout {
  margin-top: var(--space-2xl);
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.06), rgba(14, 165, 233, 0.04));
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.callout__icon {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .timeline {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .timeline::before {
    top: 0; bottom: 0;
    left: 23px; right: auto;
    width: 2px; height: auto;
    transform: none;
    background: linear-gradient(180deg,
      transparent 0%,
      var(--color-accent) 10%,
      var(--color-accent) 90%,
      transparent 100%
    );
  }

  .timeline__step {
    text-align: left;
    padding-left: 72px;
  }

  .timeline__number {
    position: absolute;
    left: -24px; top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }
}

/* ============================================================
   ARQUITECTURA TÉCNICA
   ============================================================ */
.section--arquitectura {
  background: linear-gradient(180deg, var(--color-bg-elevated) 0%, rgba(17, 22, 39, 0.8) 100%);
}

/* Architecture diagram */
.arch-diagram {
  max-width: 900px;
  margin: 0 auto var(--space-3xl);
  position: relative;
}

.arch-diagram__flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 120px;
  text-align: center;
  transition: transform var(--transition-base),
              border-color var(--transition-base);
}

.arch-node:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.arch-node--vault {
  border-color: rgba(14, 165, 233, 0.3);
  background: rgba(14, 165, 233, 0.06);
  padding: var(--space-xl);
  min-width: 180px;
}

.arch-node__icon {
  font-size: 1.8rem;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-node__label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
}

.arch-node__sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.arch-arrow {
  color: var(--color-accent);
  opacity: 0.5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Architecture mobile */
@media (max-width: 640px) {
  .arch-diagram__flow {
    flex-direction: column;
    gap: var(--space-md);
  }
  .arch-arrow {
    transform: rotate(90deg);
  }
  .arch-node { min-width: 100%; }
}

/* State machine */
.state-machine {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl) var(--space-2xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  max-width: 900px;
  margin-inline: auto;
  overflow-x: auto;
}

.state-machine__title {
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-dim);
  margin-bottom: var(--space-md);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.state-badge {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  animation: badgeBreathe 3s ease-in-out infinite;
}

@keyframes badgeBreathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

.state-badge--locked {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.state-badge--disputed {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.state-badge--released {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.state-arrow {
  color: var(--color-text-dim);
  font-size: 1.2rem;
}

/* Vertical path for disputed branch */
.state-machine__paths {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
}

.state-machine__path {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: nowrap;
  white-space: nowrap;
}

.state-machine__path-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-dim);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

/* ============================================================
   SMART CONTRACT
   ============================================================ */
.section--contract {
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(17, 22, 39, 0.4) 100%);
}

.code-block {
  background: var(--color-bg-code);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
  transition: border-color var(--transition-base);
}

.code-block:hover {
  border-color: var(--color-border-hover);
}

.code-block__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--color-border);
}

.code-block__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.code-block__dot--red    { background: #ff5f57; }
.code-block__dot--yellow { background: #febc2e; }
.code-block__dot--green  { background: #28c840; }

.code-block__filename {
  margin-left: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.code-block__body {
  padding: var(--space-xl);
  padding-left: 0;
  overflow-x: auto;
  counter-reset: line;
}

/* Custom thin scrollbar */
.code-block__body::-webkit-scrollbar {
  height: 4px;
}
.code-block__body::-webkit-scrollbar-track {
  background: transparent;
}
.code-block__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.code-block__body pre {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--color-text);
  white-space: pre;
  tab-size: 4;
  padding-left: 3.5rem;
  position: relative;
}

/* CSS counter-based line numbers */
.code-block__body pre code {
  counter-reset: codeline;
}

.code-block__body pre code > span:first-child,
.code-block__body pre code > .syn-comment:first-child {
  counter-increment: codeline;
}

/* Line number gutter via pseudo-elements on each line */
.code-line {
  display: block;
  counter-increment: codeline;
  position: relative;
}

.code-line::before {
  content: counter(codeline);
  position: absolute;
  left: -3rem;
  width: 2rem;
  text-align: right;
  color: var(--color-text-dim);
  font-size: 0.75rem;
  opacity: 0.5;
  user-select: none;
}

/* Syntax colors */
.syn-keyword { color: #c678dd; }
.syn-func    { color: #61afef; }
.syn-param   { color: #e5c07b; }
.syn-type    { color: #98c379; }
.syn-comment { color: #6a7389; font-style: italic; }
.syn-arrow   { color: #56b6c2; }
.syn-event   { color: #e06c75; }

/* Security badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  border: 1px solid;
}

.badge svg {
  flex-shrink: 0;
  vertical-align: middle;
}

.badge--green {
  color: var(--color-success);
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
}

.badge--blue {
  color: var(--color-accent);
  border-color: rgba(14, 165, 233, 0.3);
  background: var(--color-accent-dim);
}

.badge--purple {
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.08);
}

/* ============================================================
   MARCO REGULATORIO
   ============================================================ */
.section--regulatorio {
  background: linear-gradient(180deg, var(--color-bg-elevated) 0%, var(--color-bg) 100%);
}

.card--regulatorio .card__icon {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(14, 165, 233, 0.08));
}

/* ============================================================
   IMPACTO
   ============================================================ */
.section--impacto {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 100%);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.stat {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform var(--transition-base),
              border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Radial glow behind stat */
.stat::after {
  content: '';
  position: absolute;
  top: 20%; left: 50%;
  width: 120px; height: 120px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.stat:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.stat:hover::after {
  opacity: 0.6;
}

/* Scale pop when counter finishes */
.stat--complete .stat__value {
  animation: statPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes statPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.stat__value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-accent), var(--color-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.stat__label {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.stat__compare {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  margin-top: var(--space-xs);
  font-style: italic;
  position: relative;
  z-index: 1;
}

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

.quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-2xl);
  position: relative;
}

.quote__text {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.8;
  position: relative;
}

.quote__text::before {
  content: '"';
  font-size: 4rem;
  color: var(--color-accent);
  opacity: 0.3;
  position: absolute;
  top: -1.5rem;
  left: -1rem;
  font-family: serif;
  line-height: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.footer__brand-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 420px;
  line-height: 1.7;
}

.footer__links-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__link:hover { color: var(--color-accent); }

.footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

.footer__tags {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  letter-spacing: 0.03em;
}

@media (max-width: 640px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-teal));
  border-radius: var(--radius-full);
  margin: var(--space-lg) auto;
}
