/* ═══════════════════════════════════════════════════════
   EHS AI — Landing Contratistas · Style System v10
   Concepto: Hero dark (imagen) → scroll → blanco puro
   Copia fiel del diseño de landing empresas (style-index.css)
═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   INTRO ANIMATION — NODE NETWORK CONVERGENCE
   Red de nodos que convergen hacia el logo EHS AI,
   pulse final y fade-out premium.
═══════════════════════════════════════════════════════ */

/* ── Overlay principal ───────────────────────────────── */
#ehs-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050508;
  overflow: hidden;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
#ehs-intro.exit {
  opacity: 0;
  pointer-events: none;
}

/* ── Centro: logo + wordmark ─────────────────────────── */
#intro-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}

#intro-logo {
  width: 56px;
  height: 56px;
  opacity: 0;
  filter: drop-shadow(0 0 0px rgba(255,255,255,0));
  transition:
    opacity 0.6s cubic-bezier(0.16,1,0.3,1),
    filter  0.6s cubic-bezier(0.16,1,0.3,1);
}
#intro-logo.visible {
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.35));
}
#intro-logo.pulse {
  animation: logo-pulse 0.55s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes logo-pulse {
  0%   { transform: scale(1);    filter: drop-shadow(0 0 18px rgba(255,255,255,0.35)); }
  40%  { transform: scale(1.18); filter: drop-shadow(0 0 40px rgba(255,255,255,0.7)); }
  100% { transform: scale(1);    filter: drop-shadow(0 0 18px rgba(255,255,255,0.3)); }
}

#intro-wordmark {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s 0.1s cubic-bezier(0.16,1,0.3,1),
    transform 0.5s 0.1s cubic-bezier(0.16,1,0.3,1);
}
#intro-wordmark.visible {
  opacity: 1;
  transform: translateY(0);
}

#intro-sub {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.5s 0.22s cubic-bezier(0.16,1,0.3,1),
    transform 0.5s 0.22s cubic-bezier(0.16,1,0.3,1);
}
#intro-sub.visible {
  opacity: 1;
  transform: translateY(0);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;1,14..32,400&display=swap');

/* ─── TOKENS ────────────────────────────────────────── */
:root {
  /* Palette */
  --ink:        #0a0a0a;
  --ink-soft:   #3a3a3a;
  --ink-muted:  #6b6b6b;
  --ink-faint:  #9a9a9a;
  --canvas:     #ffffff;
  --canvas-off: #f5f5f5;
  --canvas-dim: #efefef;
  --border:     rgba(0,0,0,0.09);
  --border-md:  rgba(0,0,0,0.14);

  /* On-dark (hero) */
  --od-text:    rgba(255,255,255,0.95);
  --od-soft:    rgba(255,255,255,0.60);
  --od-faint:   rgba(255,255,255,0.35);
  --od-border:  rgba(255,255,255,0.14);

  /* Accent: blanco/negro puro */
  --accent:     #0a0a0a;
  --accent-inv: #ffffff;

  /* Nav */
  --nav-h: 64px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

  /* Radius */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 9999px;

  /* Hero: planta industrial nocturna */
  --hero-ambient: url('../images/hero-contratistas-bg.png');
}

/* ─── RESET ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, video { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ═══════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 40px;
  z-index: 900;
  background: transparent;
  border-bottom: 1px solid var(--od-border);
  transition:
    background 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

.nav.light {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  z-index: 2;
}
.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--od-text);
  transition: color 0.45s var(--ease-out);
}
.nav-logo-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--od-soft);
  transition: color 0.45s var(--ease-out);
}
.nav.light .nav-logo-name { color: var(--ink); }
.nav.light .nav-logo-sub  { color: var(--ink-muted); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--od-soft);
  letter-spacing: -0.1px;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.nav-links a:hover        { color: var(--od-text); }
.nav.light .nav-links a   { color: var(--ink-muted); }
.nav.light .nav-links a:hover { color: var(--ink); }

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.btn-nav-ghost {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--od-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--od-text);
  letter-spacing: -0.1px;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.45s var(--ease-out);
}
.btn-nav-ghost:hover { background: rgba(255,255,255,0.1); }
.nav.light .btn-nav-ghost { border-color: var(--border-md); color: var(--ink); }
.nav.light .btn-nav-ghost:hover { background: var(--canvas-off); }

.btn-nav-solid {
  padding: 7px 18px;
  border-radius: var(--r-pill);
  background: var(--od-text);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.1px;
  transition: background 0.25s ease, color 0.45s var(--ease-out), opacity 0.25s ease;
}
.btn-nav-solid:hover { opacity: 0.88; }
.nav.light .btn-nav-solid { background: var(--ink); color: var(--canvas); }

/* Mobile toggle */
.nav-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  color: var(--od-text);
  margin-left: auto;
  transition: color 0.45s var(--ease-out);
}
.nav.light .nav-mobile-toggle { color: var(--ink); }

/* Mobile drawer */
.nav-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 850;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-mobile-backdrop.open { opacity: 1; }
.nav-mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 90vw);
  background: var(--canvas);
  z-index: 860;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}
.nav-mobile-drawer.open { transform: translateX(0); }
.nav-mobile-links { display: flex; flex-direction: column; gap: 4px; margin-top: 48px; }
.nav-mobile-links a {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--r-sm);
  transition: background 0.2s ease;
}
.nav-mobile-links a:hover { background: var(--canvas-off); }
.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.btn-ghost--block, .btn-solid--block {
  display: block;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.btn-ghost--block { border: 1px solid var(--border-md); color: var(--ink); }
.btn-solid--block { background: var(--ink); color: var(--canvas); }

/* ═══════════════════════════════════════════════════════
   HERO — ambiente + copy
═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  background-color: #060606;
}

.hero-ambient {
  position: absolute;
  inset: -12px;
  z-index: 0;
  background-color: #060606;
  background-image: var(--hero-ambient);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  filter: blur(4px);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 45%,
    rgba(0,0,0,0.72) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-foreground {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 12px) 24px max(24px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0;
  max-width: 860px;
  width: 100%;
  flex-shrink: 0;
}

/* Badge */
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--od-border);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--od-soft);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.06);
}

/* Title */
.hero-title {
  font-size: clamp(38px, 6.5vw, 72px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -2px;
  color: var(--od-text);
  position: relative;
  margin-top: -56px;
  margin-bottom: 8px;
  transform: translateY(-clamp(28px, 5.5vh, 72px));
}

.hero-title-shine {
  background: none;
  color: #888888;
  -webkit-text-fill-color: #888888;
}

.shine-char {
  display: inline-block;
  white-space: pre;
  color: #888888;
  -webkit-text-fill-color: #888888;
}

.hero-title-shine.shimmer-active .shine-char {
  animation: char-shimmer 2s ease-in-out infinite;
}

@keyframes char-shimmer {
  0%,100% { color: #888888; -webkit-text-fill-color: #888888; }
  50%      { color: #ffffff; -webkit-text-fill-color: #ffffff; }
}

.hero-title em {
  font-style: normal;
  font-weight: 300;
  letter-spacing: -2px;
  color: var(--od-text);
  -webkit-text-fill-color: var(--od-text);
}

/* Subtitle */
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--od-soft);
  max-width: 580px;
  margin: 0 auto 36px;
}

/* CTA row */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out);
}
.btn-hero-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--od-border);
  color: var(--od-text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
}

/* ═══════════════════════════════════════════════════════
   TRUST BAR
═══════════════════════════════════════════════════════ */
.trust-bar {
  padding: 40px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}
.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
}

/* ═══════════════════════════════════════════════════════
   SECTIONS — blanco puro
═══════════════════════════════════════════════════════ */
.section {
  padding: 96px 40px;
  max-width: 1160px;
  margin: 0 auto;
}
.section-full {
  padding: 96px 40px;
  width: 100%;
}
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.section-header { margin-bottom: 0; }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 14px;
  max-width: 720px;
}
.section-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 540px;
  margin-bottom: 60px;
}
.section-header-center { text-align: center; }
.section-header-center .section-title,
.section-header-center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════════════════
   FEATURES GRID
═══════════════════════════════════════════════════════ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.feat-item {
  background: var(--canvas);
  padding: 36px 32px;
  transition: background 0.2s ease;
}
.feat-item:hover { background: var(--canvas-off); }

.feat-item-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ink-faint);
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.feat-item-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--ink);
}
.feat-item-icon .material-symbols-outlined { font-size: 22px; }
.feat-item-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}
.feat-item-desc {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ═══════════════════════════════════════════════════════
   PORTAL — Qué es (premium cards)
═══════════════════════════════════════════════════════ */
.section-portal {
  padding-top: 88px;
  padding-bottom: 104px;
}

.portal-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.portal-intro-title {
  max-width: 640px;
  margin-bottom: 18px;
}

.portal-intro-lead {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 560px;
}

.portal-intro-aside {
  display: flex;
  align-items: flex-end;
  padding-bottom: 4px;
}

.portal-intro-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, var(--canvas-off) 0%, var(--canvas) 100%);
  min-width: 168px;
}

.portal-intro-stat-value {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.portal-intro-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: right;
  max-width: 120px;
  line-height: 1.4;
}

.portal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 36px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--canvas);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.25s ease;
}

.portal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    165deg,
    rgba(0, 0, 0, 0.03) 0%,
    transparent 42%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.portal-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.02),
    0 20px 48px rgba(0, 0, 0, 0.08);
  border-color: var(--border-md);
}

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

.portal-card-featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--canvas);
}

.portal-card-featured::before {
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 50%
  );
  opacity: 1;
}

.portal-card-featured:hover {
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.12),
    0 24px 56px rgba(0, 0, 0, 0.22);
  border-color: #1a1a1a;
}

.portal-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.portal-card-step {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.portal-card-featured .portal-card-step {
  color: rgba(255, 255, 255, 0.4);
}

.portal-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--canvas-off);
  border: 1px solid var(--border);
  color: var(--ink);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.portal-card-icon .material-symbols-outlined {
  font-size: 22px;
}

.portal-card-featured .portal-card-icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--canvas);
}

.portal-card-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
}

.portal-card-featured .portal-card-title {
  color: var(--canvas);
}

.portal-card-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-muted);
  flex: 1;
}

.portal-card-desc strong {
  font-weight: 600;
  color: var(--ink-soft);
}

.portal-card-featured .portal-card-desc {
  color: rgba(255, 255, 255, 0.55);
}

.portal-card-featured .portal-card-desc strong {
  color: rgba(255, 255, 255, 0.92);
}

/* ═══════════════════════════════════════════════════════
   STEPS
═══════════════════════════════════════════════════════ */
.steps-wrap {
  max-width: 680px;
  margin: 0 auto;
}
.steps-header {
  text-align: center;
  margin-bottom: 56px;
}
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.step-item:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-top: 2px;
}
.step-body { flex: 1; }
.step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
  line-height: 1.3;
}
.step-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-muted);
}
.btn-steps-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--canvas);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: opacity 0.2s ease;
}
.btn-steps-cta:hover { opacity: 0.82; }

/* ═══════════════════════════════════════════════════════
   TRUST CARDS
═══════════════════════════════════════════════════════ */
.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trust-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  background: var(--canvas);
  transition: box-shadow 0.25s ease, transform 0.25s var(--ease-out);
}
.trust-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.trust-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas-off);
  border-radius: var(--r-sm);
  margin-bottom: 18px;
  color: var(--ink);
}
.trust-card-icon .material-symbols-outlined { font-size: 20px; }
.trust-card-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}
.trust-card-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ═══════════════════════════════════════════════════════
   CTA BAND
═══════════════════════════════════════════════════════ */
.cta-band-wrap {
  padding: 0 40px 96px;
}
.cta-band {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: 72px 64px;
  text-align: center;
}
.cta-band-title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: var(--canvas);
  margin-bottom: 14px;
}
.cta-band-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.cta-band-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-cta-primary {
  padding: 13px 26px;
  border-radius: var(--r-pill);
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: opacity 0.2s ease;
}
.btn-cta-primary:hover { opacity: 0.88; }
.btn-cta-ghost {
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-cta-ghost:hover { border-color: rgba(255,255,255,0.38); color: #fff; }

/* ═══════════════════════════════════════════════════════
   DIVIDER
═══════════════════════════════════════════════════════ */
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 0 40px;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.4);
  padding: 64px 40px 32px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand { display: flex; flex-direction: column; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo img {
  width: 26px; height: 26px;
  border-radius: 6px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
.footer-logo span {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  letter-spacing: -0.3px;
}
.footer-tagline {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.35);
  max-width: 240px;
  margin-bottom: 20px;
}
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge {
  padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.38);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col { display: flex; flex-direction: column; }
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.32);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: rgba(255,255,255,0.72); }
.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════
   MODAL AUTH
═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--canvas);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 420px;
  padding: 36px 32px;
  position: relative;
  transform: translateY(14px);
  transition: transform 0.35s var(--ease-out);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--ink-muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-close:hover { background: var(--canvas-off); color: var(--ink); }

.modal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.modal-logo-box {
  width: 32px; height: 32px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--canvas-off);
  display: flex; align-items: center; justify-content: center;
}
.modal-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.modal-logo-name { font-size: 15px; font-weight: 600; letter-spacing: -0.3px; color: var(--ink); }

.modal-switch {
  display: flex;
  gap: 4px;
  background: var(--canvas-off);
  border-radius: var(--r-pill);
  padding: 4px;
  position: relative;
  margin-bottom: 28px;
}
.modal-tab-pill {
  position: absolute;
  top: 4px; bottom: 4px;
  border-radius: var(--r-pill);
  background: var(--canvas);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: left 0.3s var(--ease-out), width 0.3s var(--ease-out);
  pointer-events: none;
}
.modal-tab {
  flex: 1;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  position: relative;
  z-index: 1;
  transition: color 0.2s ease;
}
.modal-tab.active { color: var(--ink); }

.modal-alert {
  font-size: 13px;
  line-height: 1.5;
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  display: none;
}
.modal-alert.error   { background: #fff0f0; color: #c00; display: block; }
.modal-alert.success { background: #f0fff4; color: #080; display: block; }

.auth-panels-viewport { overflow: hidden; }
.auth-panels-track {
  display: flex;
  transition: transform 0.4s var(--ease-out);
}
.auth-panel { flex-shrink: 0; width: 100%; }

.modal-form { display: flex; flex-direction: column; gap: 16px; }
.form-group  { display: flex; flex-direction: column; gap: 6px; }
.form-label  { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.form-input-wrap { position: relative; }
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--canvas);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10,10,10,0.06);
}
.form-input.has-eye { padding-right: 42px; }
.eye-btn {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  display: flex; align-items: center;
  transition: color 0.2s ease;
}
.eye-btn:hover { color: var(--ink); }
.eye-btn .material-symbols-outlined { font-size: 18px; }

.form-submit {
  padding: 13px 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--canvas);
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
  transition: opacity 0.2s ease;
}
.form-submit:hover { opacity: 0.82; }

.modal-footer-link {
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 20px;
}
.modal-footer-link a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes panelInLeft {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes panelInRight {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ═══════════════════════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .hero-ambient {
    filter: none;
    transform: none;
    inset: 0;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-intro { grid-template-columns: 1fr; gap: 32px; }
  .portal-intro-aside { justify-content: flex-start; }
  .portal-intro-stat { align-items: flex-start; }
  .portal-intro-stat-label { text-align: left; }
  .trust-cards { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .nav { padding: 0 20px; }
  .nav-links   { display: none; }
  .nav-actions { display: none; }
  .nav-mobile-toggle { display: flex; }

  .hero-foreground {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  .section { padding: 72px 20px; }
  .section-full { padding: 72px 20px; }
  .portal-cards { grid-template-columns: 1fr; gap: 14px; }
  .portal-card { padding: 28px 24px 32px; }
  .feat-grid { grid-template-columns: 1fr; }
  .trust-cards { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 24px; }
  .cta-band-wrap { padding: 0 20px 72px; }
  .trust-bar { padding: 32px 20px; gap: 24px; }
  .section-divider { margin: 0 20px; }
  .footer { padding: 48px 20px 24px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: -1px;
    margin-top: -36px;
    transform: translateY(-clamp(20px, 3.5vh, 48px));
  }
  .hero-actions { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
  .btn-hero-primary, .btn-hero-ghost { width: 100%; justify-content: center; }
  .footer-links { grid-template-columns: 1fr; }
  .cta-band-actions { flex-direction: column; }
  .btn-cta-primary, .btn-cta-ghost { width: 100%; }
}
