/* ==========================================================================
   CYPHER PRO — featured product block for saas.lifestyle
   Scoped, dark, and independent from the light corporate sections.
   ========================================================================== */

/* Product dropdown item */
.nav-cypher-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  border-radius: 0.3rem;
  object-fit: cover;
}

.nav-cypher-badge {
  flex: none;
  margin-left: auto;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f7cff, #25c8ff);
  color: #fff;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
}

.nav-cypher .nd-t {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Featured section */
.cypher-feature {
  --cf-bg: #050a14;
  --cf-ink: #f4f8ff;
  --cf-soft: #dbe7ff;
  --cf-muted: #93a4c1;
  --cf-dim: #63718b;
  --cf-line: rgba(156, 196, 255, 0.15);
  --cf-cyan: #5fd8ff;
  --cf-blue: #2f7cff;
  --cf-violet: #8f7bff;
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 2.5rem));
  margin: clamp(2rem, 4vw, 3.5rem) auto;
  padding: clamp(2rem, 4.5vw, 4rem);
  border: 1px solid var(--cf-line);
  border-radius: 2rem;
  background:
    radial-gradient(760px 460px at 88% -12%, rgba(47, 124, 255, 0.26), transparent 62%),
    radial-gradient(620px 420px at -8% 108%, rgba(143, 123, 255, 0.2), transparent 62%),
    linear-gradient(150deg, #070d19 0%, #050a14 46%, #060b18 100%);
  color: var(--cf-ink);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 40px 90px -50px rgba(15, 35, 80, 0.55);
}

.cypher-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 76%);
  pointer-events: none;
}

.cypher-feature::after {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(95, 216, 255, 0.55), rgba(143, 123, 255, 0.35), transparent);
  opacity: 0.8;
  pointer-events: none;
}

.cypher-feature__glow {
  position: absolute;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}

.cypher-feature__glow--a {
  top: -18rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(47, 124, 255, 0.32), transparent 68%);
}

.cypher-feature__glow--b {
  bottom: -22rem;
  left: -12rem;
  background: radial-gradient(circle, rgba(143, 123, 255, 0.24), transparent 68%);
}

.cypher-feature__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.cypher-feature__copy {
  min-width: 0;
}

.cypher-feature__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--cf-cyan);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cypher-feature__led {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--cf-cyan);
  box-shadow: 0 0 10px rgba(95, 216, 255, 0.9);
  animation: cypherPulse 2.4s ease-in-out infinite;
}

.cypher-feature h2 {
  margin: 0;
  color: var(--cf-ink);
  font-family: "Outfit", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.cypher-feature h2 span {
  background: linear-gradient(100deg, #c9f2ff 0%, #7fb7ff 46%, #b49bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cypher-feature__lead {
  margin-top: 1rem;
  color: var(--cf-soft);
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.cypher-feature__desc {
  max-width: 31rem;
  margin-top: 0.8rem;
  color: var(--cf-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.cypher-feature__list {
  display: grid;
  gap: 0.55rem;
  margin: 1.5rem 0 1.7rem;
  padding: 0;
  list-style: none;
}

.cypher-feature__list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cf-muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.cypher-feature__list li > span {
  min-width: 2.1rem;
  padding: 0.22rem 0.42rem;
  border: 1px solid rgba(95, 216, 255, 0.22);
  border-radius: 0.45rem;
  background: rgba(95, 216, 255, 0.07);
  color: var(--cf-cyan);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
}

.cypher-feature__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
}

.cypher-feature__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.92rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f7cff, #25c8ff);
  box-shadow: 0 18px 40px -18px rgba(47, 124, 255, 0.9);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 250ms ease, box-shadow 250ms ease, filter 250ms ease;
}

.cypher-feature__cta svg {
  width: 1rem;
  height: 1rem;
  transition: transform 250ms ease;
}

.cypher-feature__cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 24px 50px -18px rgba(47, 124, 255, 1);
}

.cypher-feature__cta:hover svg {
  transform: translateX(3px);
}

.cypher-feature__link {
  color: var(--cf-soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(219, 231, 255, 0.28);
  padding-bottom: 0.12rem;
  transition: color 200ms, border-color 200ms;
}

.cypher-feature__link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.cypher-feature__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 1.6rem;
  color: var(--cf-dim);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cypher-feature__meta span {
  position: relative;
}

.cypher-feature__meta span + span::before {
  content: "·";
  position: absolute;
  left: -0.62rem;
  color: rgba(147, 164, 193, 0.5);
}

/* Launcher visual */
.cypher-feature__visual {
  position: relative;
  min-width: 0;
}

.cypher-feature__visual::before {
  content: "";
  position: absolute;
  inset: 8% 4% -8% 8%;
  z-index: -1;
  border-radius: 2rem;
  background: radial-gradient(ellipse at 55% 50%, rgba(47, 124, 255, 0.32), transparent 70%);
  filter: blur(38px);
  pointer-events: none;
}

.cypher-feature__frame {
  position: relative;
  border: 1px solid rgba(156, 196, 255, 0.2);
  border-radius: 1.35rem;
  background: #070d18;
  box-shadow:
    0 40px 80px -36px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
  transition: transform 500ms cubic-bezier(0.22, 0.61, 0.36, 1), border-color 300ms;
}

.cypher-feature__frame:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg) translateY(-3px);
  border-color: rgba(95, 216, 255, 0.35);
}

.cypher-feature__frame-bar {
  display: flex;
  align-items: center;
  gap: 0.34rem;
  height: 2.05rem;
  padding: 0 0.8rem;
  border-bottom: 1px solid rgba(156, 196, 255, 0.12);
  background: rgba(13, 22, 38, 0.92);
}

.cypher-feature__frame-bar > span {
  width: 0.42rem;
  height: 0.42rem;
  flex: none;
  border-radius: 50%;
  background: rgba(147, 164, 193, 0.35);
}

.cypher-feature__frame-bar > span:first-child { background: #ff6b8a; }
.cypher-feature__frame-bar > span:nth-child(2) { background: #ffc46b; }
.cypher-feature__frame-bar > span:nth-child(3) { background: #4be3a8; }

.cypher-feature__frame-bar b {
  margin-left: 0.45rem;
  color: #dbe7ff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.cypher-feature__frame-bar em {
  margin-left: auto;
  color: #63718b;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 600;
}

.cypher-feature__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.cypher-feature__chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.52rem 0.72rem;
  border: 1px solid rgba(156, 196, 255, 0.2);
  border-radius: 0.75rem;
  background: rgba(10, 18, 32, 0.78);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.9);
  color: #dbe7ff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: cypherFloat 6s ease-in-out infinite;
}

.cypher-feature__chip .dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #4be3a8;
  box-shadow: 0 0 8px rgba(75, 227, 168, 0.8);
}

.cypher-feature__chip--a {
  top: -0.9rem;
  right: 1.2rem;
}

.cypher-feature__chip--b {
  bottom: -0.9rem;
  left: -0.9rem;
  animation-delay: -3s;
}

.portafolio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  color: var(--azul-fuerte, #4f46e5);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.12rem;
  transition: color 200ms, gap 200ms;
}

.portafolio-link:hover {
  gap: 0.55rem;
  color: #2563eb;
}

@keyframes cypherPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

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

@media (max-width: 1080px) {
  .cypher-feature__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2rem;
  }

  .cypher-feature__frame {
    transform: none;
  }
}

@media (max-width: 900px) {
  .cypher-feature {
    width: calc(100% - 1.5rem);
    padding: 2rem 1.35rem;
    border-radius: 1.5rem;
  }

  .cypher-feature__inner {
    grid-template-columns: 1fr;
  }

  .cypher-feature__visual {
    margin-top: 0.25rem;
  }

  .cypher-feature__chip {
    display: none;
  }

  .cypher-feature__frame {
    transform: none;
  }
}

@media (max-width: 560px) {
  .cypher-feature {
    width: calc(100% - 1rem);
    padding: 1.6rem 1.1rem;
  }

  .cypher-feature h2 {
    font-size: clamp(2.3rem, 13vw, 3.1rem);
  }

  .cypher-feature__actions {
    align-items: stretch;
  }

  .cypher-feature__cta {
    justify-content: center;
    width: 100%;
  }

  .cypher-feature__frame-bar em {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cypher-feature__led,
  .cypher-feature__chip {
    animation: none;
  }
}

/* Nav responsive: keep the full desktop menu inside the glass capsule */
.nav-mobile-only { display: none !important; }

@media (max-width: 1320px) {
  .navbar-inner {
    gap: 0.6rem;
    padding: 0.55rem 0.8rem;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links > li > a,
  .nav-links > li > button {
    padding: 0.42rem 0.48rem;
    font-size: 0.82rem;
  }

  .logo-txt .marca {
    font-size: 0.92rem;
  }

  .nav-acciones {
    gap: 0.35rem;
  }

  .nav-acciones .btn-glass {
    padding: 0.5rem 0.65rem;
    font-size: 0.8rem;
  }

  .navbar .nav-acciones .nav-cta {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 900px) {
  .nav-mobile-only {
    display: block !important;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .navbar .logo-txt {
    display: none;
  }

  .navbar .logo {
    gap: 0;
  }
}

@media (min-width: 901px) and (max-width: 1000px) {
  .nav-hide-md {
    display: none;
  }
}
