/* ===== ROOT & BASE ===== */
:root {
  --msl-primary: #0d6efd;
  --msl-ink: #0b1220;
  --msl-muted: #6b7280;
  --msl-hero: #0b1220;
  --msl-radius: 1rem;
  --msl-radius-lg: 1.5rem;
}
html {
  scroll-behavior: smooth;
}
body {
  color: var(--msl-ink);
  overflow-x: hidden;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== NAVBAR ===== */
.navbar {
  transition: all 0.3s ease;
}
.navbar.navbar-scrolled {
  background: rgba(11, 18, 32, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* ===== HERO ===== */
.bg-hero {
  background:
    radial-gradient(1200px 520px at 12% 18%, rgba(13, 110, 253, 0.2), transparent 60%),
    radial-gradient(900px 480px at 85% 10%, rgba(99, 102, 241, 0.2), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 55%, #0b1220 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-pad {
  padding: 5rem 0;
}

/* ===== COMPONENTS ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.12);
  border: 1px solid rgba(13, 110, 253, 0.25);
  color: var(--msl-primary);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}
.hero-badge {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}
.glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--msl-radius);
  backdrop-filter: blur(10px);
}
.shadow-soft {
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.18);
}
.muted {
  color: var(--msl-muted);
}
.card-soft {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--msl-radius);
}
.icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 110, 253, 0.12);
  border: 1px solid rgba(13, 110, 253, 0.25);
}
.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.18rem 0.42rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: #fff;
}
.check {
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 4px;
  background: rgba(25, 135, 84, 0.12);
  border: 1px solid rgba(25, 135, 84, 0.35);
  position: relative;
  top: 3px;
  margin-right: 0.5rem;
}
.check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid #198754;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ===== WHY SECTION ===== */
.risk-card {
  border-radius: var(--msl-radius);
  border: 1px solid rgba(220, 53, 69, 0.2);
  background: rgba(220, 53, 69, 0.05);
}
.value-card {
  border-radius: var(--msl-radius);
  border: 1px solid rgba(13, 110, 253, 0.18);
  background: rgba(13, 110, 253, 0.04);
}

/* ===== FEATURE SLIDES ===== */
.feature-slides-intro {
  padding: 5rem 0 3rem;
  text-align: center;
}
.feature-slide {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  padding: 5rem 0;
}
.feature-slide::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.feature-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.feature-slide > .container {
  position: relative;
  z-index: 1;
}
.feature-slide__num {
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.05;
  position: absolute;
  top: 2rem;
  left: 2rem;
  user-select: none;
}
.feature-slide__icon {
  width: 180px;
  height: 180px;
  border-radius: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  margin: 0 auto;
  position: relative;
}
.feature-slide__icon::after {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
  z-index: -1;
}
.feature-slide__icon svg {
  width: 80px;
  height: 80px;
}
/* Illustration (larger visual per slide) */
.feature-slide__illustration {
  max-width: 440px;
  margin: 0 auto;
  animation: msl-float 7s ease-in-out infinite;
  position: relative;
}
.feature-slide__illustration svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 48px rgba(0,0,0,0.25));
}
@keyframes msl-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.feature-slide__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
}
.feature-slide h2 {
  font-size: 2.5rem;
}
.feature-slide p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 540px;
}

/* Slide 1: Monitoring (Blue) */
.feature-slide--1 {
  background: linear-gradient(160deg, #0a1628 0%, #0d2040 50%, #091428 100%);
}
.feature-slide--1::before {
  background: #3b82f6;
  top: -15%;
  right: -5%;
}
.feature-slide--1 .feature-slide__icon::after { background: #3b82f6; }
.feature-slide--1 .feature-slide__icon svg,
.feature-slide--1 .feature-slide__illustration svg { stroke: #60a5fa; color: #60a5fa; }

/* Slide 2: Custody (Emerald) */
.feature-slide--2 {
  background: linear-gradient(160deg, #071a16 0%, #0a2922 50%, #071a16 100%);
}
.feature-slide--2::before {
  background: #10b981;
  bottom: -15%;
  left: -5%;
}
.feature-slide--2 .feature-slide__icon::after { background: #10b981; }
.feature-slide--2 .feature-slide__icon svg,
.feature-slide--2 .feature-slide__illustration svg { stroke: #34d399; color: #34d399; }

/* Slide 3: Assessments (Violet) */
.feature-slide--3 {
  background: linear-gradient(160deg, #150b28 0%, #1e1145 50%, #150b28 100%);
}
.feature-slide--3::before {
  background: #8b5cf6;
  top: -10%;
  left: 10%;
}
.feature-slide--3 .feature-slide__icon::after { background: #8b5cf6; }
.feature-slide--3 .feature-slide__icon svg,
.feature-slide--3 .feature-slide__illustration svg { stroke: #a78bfa; color: #a78bfa; }

/* Slide 4: Domain Intel (Cyan) */
.feature-slide--4 {
  background: linear-gradient(160deg, #071e2e 0%, #0d2a40 50%, #071e2e 100%);
}
.feature-slide--4::before {
  background: #06b6d4;
  bottom: -10%;
  right: 5%;
}
.feature-slide--4 .feature-slide__icon::after { background: #06b6d4; }
.feature-slide--4 .feature-slide__icon svg,
.feature-slide--4 .feature-slide__illustration svg { stroke: #22d3ee; color: #22d3ee; }

/* Slide 5: Let's Encrypt (Green) */
.feature-slide--5 {
  background: linear-gradient(160deg, #0a1e10 0%, #0d2a18 50%, #0a1e10 100%);
}
.feature-slide--5::before {
  background: #22c55e;
  top: -5%;
  right: -10%;
}
.feature-slide--5 .feature-slide__icon::after { background: #22c55e; }
.feature-slide--5 .feature-slide__icon svg,
.feature-slide--5 .feature-slide__illustration svg { stroke: #4ade80; color: #4ade80; }

/* Slide 6: Reports (Amber) */
.feature-slide--6 {
  background: linear-gradient(160deg, #1a1508 0%, #2a220d 50%, #1a1508 100%);
}
.feature-slide--6::before {
  background: #f59e0b;
  bottom: -15%;
  left: 10%;
}
.feature-slide--6 .feature-slide__icon::after { background: #f59e0b; }
.feature-slide--6 .feature-slide__icon svg,
.feature-slide--6 .feature-slide__illustration svg { stroke: #fbbf24; color: #fbbf24; }

/* Feature slide inner reveal */
.feature-slide .reveal-inner {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-slide.revealed .reveal-inner {
  opacity: 1;
  transform: translateY(0);
}
.feature-slide .reveal-inner:nth-child(2) { transition-delay: 0.15s; }
.feature-slide .reveal-inner:nth-child(3) { transition-delay: 0.25s; }

/* ===== MORE FEATURES ===== */
.feature-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--msl-radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.12);
}

/* ===== PRICING ===== */
.pricing-card {
  border-radius: var(--msl-radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.1);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
}
.pricing-card.featured {
  border: 2px solid rgba(13, 110, 253, 0.4);
  box-shadow: 0 22px 55px rgba(13, 110, 253, 0.15);
}

/* ===== FOOTER ===== */
.footer {
  background: #0b1220;
  color: rgba(255, 255, 255, 0.85);
}
.link-soft {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.link-soft:hover {
  color: #fff;
  text-decoration: underline;
}

/* ===== i18n ===== */
[data-i18n], [data-i18n-block] { display: none; }
html[data-lang="es"] [data-i18n="es"] { display: initial; }
html[data-lang="en"] [data-i18n="en"] { display: initial; }
html[data-lang="es"] [data-i18n-block="es"] { display: block; }
html[data-lang="en"] [data-i18n-block="en"] { display: block; }

/* ===== LANGUAGE SWITCHER ===== */
@media (min-width: 992px) {
  .lang-desktop { display: flex !important; }
}
@media (max-width: 991.98px) {
  .lang-desktop { display: none !important; }
}

/* ===== BACK TO TOP ===== */
.btn-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.85);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.btn-back-to-top:hover {
  background: #0d6efd;
  transform: translateY(-8px) scale(1.05);
  color: white;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.btn-back-to-top svg {
  transition: transform 0.3s ease;
}
.btn-back-to-top:hover svg {
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .navbar {
    background: rgba(11, 18, 32, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .navbar-collapse { margin-top: 1rem; padding-bottom: 1rem; }
  .navbar-nav { text-align: center; }
  .nav-item { padding: 0.5rem 0; }
  .navbar-collapse.show {
    background: rgba(11, 18, 32, 0.95);
    margin: 0 -1rem;
    padding: 1rem;
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  .section-pad { padding: 3.5rem 0; }
  .bg-hero .container { padding-top: 5.5rem !important; }
  .display-5 { font-size: 2.5rem; }

  .feature-slide {
    min-height: auto;
    padding: 4rem 0;
  }
  .feature-slide h2 { font-size: 1.75rem; }
  .feature-slide__icon {
    width: 120px;
    height: 120px;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
  }
  .feature-slide__icon svg {
    width: 56px;
    height: 56px;
  }
  .feature-slide__illustration {
    max-width: 320px;
    margin-bottom: 2rem;
  }
  .feature-slide__num {
    font-size: 4rem;
    top: 1rem;
    left: 1rem;
  }
  .feature-slide p { max-width: 100%; }
}
@media (max-width: 575.98px) {
  .bg-hero .container { padding-top: 5rem !important; }
  .display-5 { font-size: 2rem; }
  .navbar-brand img { height: 40px; }
  .feature-slide { padding: 3rem 0; }
  .feature-slide h2 { font-size: 1.5rem; }
  .feature-slide__icon {
    width: 100px;
    height: 100px;
  }
  .feature-slide__icon svg {
    width: 48px;
    height: 48px;
  }
}
@media (max-width: 767.98px) {
  .btn-back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
  }
}
