/* signiqo.css — REDESIGN v2.4 — Final Polish & Refinements */

:root {
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --bg: #05060A;
  --bg-alt: #0D0F15;
  --text: #F0F2F8;
  --text-muted: #949EAE;
  --brand: #7C5CFF;
  --brand-light: #9A80FF;
  --brand-glow: rgba(124, 92, 255, 0.25);
  --accent: #00D4FF;
  --accent-glow: rgba(0, 212, 255, 0.2);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --card-bg: rgba(13, 15, 21, 0.5);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

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

.has-grid-pattern {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--brand-glow), transparent),
    radial-gradient(ellipse 50% 40% at 10% 100%, var(--accent-glow), transparent),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

main {
  padding-top: 84px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em 0;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
}

p {
  margin: 0;
  color: var(--text-muted);
}

.lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 65ch;
}

.grad {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  width: min(1280px, 90%);
  margin-inline: auto;
}

/* --- NAVBAR --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding-block: 1rem;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5, 6, 10, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand__logo {
  width: 32px;
  height: 32px;
  color: var(--brand);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__thin {
  font-weight: 400;
  font-size: 0.8em;
  color: var(--text-muted);
  opacity: 0.9;
}

.nav__rail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  justify-self: center;
}

.nav__rail a,
.nav__disabled {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 99px;
  transition: color var(--transition), background-color var(--transition);
  text-decoration: none;
}

.nav__rail a:hover {
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.1);
}

.nav__disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
}

.only-mobile {
  display: none !important;
}

.nav__mobile {
  position: fixed;
  inset: 70px 4% auto 4%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  z-index: 49;
}

.nav__mobile[hidden] {
  display: none;
}

.nav__mobile-inner {
  display: grid;
  gap: 0.75rem;
  text-align: center;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  display: inline-grid;
  place-items: center;
  transition: all .2s
}

.icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand)
}

.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

/* --- MOBILE MENU LINKS --- */
.nav__mobile a:not(.btn) {
  display: block;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition);
}

.nav__mobile a:not(.btn):hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand);
  transform: translateX(5px);
}

.nav__mobile hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0.5rem 0;
  width: 100%;
}

/* --- BOTONES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  font-weight: 500;
  text-decoration: none;
  transform: scale(1);
  transition: transform 0.15s ease, background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: scale(1.03) translateY(-1px);
  border-color: var(--border-hover);
}

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

.btn--brand {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn--brand:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  box-shadow: 0 0 20px var(--brand-glow);
}

.btn--soft {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.btn--soft:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn--outline {
  background: transparent;
  color: var(--text);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn--xl {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.w-100 {
  width: 100%;
}

/* --- CARD & GENERAL LAYOUT --- */
.section {
  padding-block: clamp(4rem, 10vw, 8rem);
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section__head {
  text-align: center;
  max-width: 70ch;
  margin: 0 auto 3rem auto;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}

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

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(400px circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}

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

.card>* {
  position: relative;
  z-index: 1;
}

/* --- HERO --- */
.hero {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(6rem, 15vw, 10rem);
  text-align: center;
}

.hero__content {
  max-width: 80ch;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.hero .badge {
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__art {
  position: relative;
  height: 300px;
  margin-top: 4rem;
  transition: transform 0.1s linear;
}

.hero__art .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  animation: pulse 10s infinite alternate;
}

.orb--1 {
  width: 300px;
  height: 300px;
  left: 20%;
  top: 0;
  background: var(--brand);
}

.orb--2 {
  width: 250px;
  height: 250px;
  right: 20%;
  bottom: 0;
  background: var(--accent);
  animation-delay: -5s;
}

.glass {
  position: absolute;
  inset: 10% 20%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.chip {
  position: absolute;
  right: 10%;
  top: 15%;
  width: 60px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(45deg, var(--brand), var(--accent));
  transform: rotate(-8deg);
}

.lines::before,
.lines::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border)
}

.lines::before {
  top: 40%
}

.lines::after {
  top: 60%
}

/* --- BENTO GRID --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 1.5rem;
}

.bento-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bento-item--large {
  grid-column: span 4;
  grid-row: span 2;
  justify-content: center;
  text-align: center;
  padding: 3rem;
}

.bento-item--large .lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  max-width: 55ch;
  margin-inline: auto;
  color: var(--text);
}

.bento-item--medium {
  grid-column: span 2;
}

.bento-item--kpi {
  grid-column: span 2;
}

.bento-item .card__icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.kpis {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  height: 100%;
  text-align: center;
}

.kpi__num {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.kpi__label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pipeline span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.pipe__nexara {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.pipe__arrow {
  background: none !important;
  border: none !important;
  color: var(--text-muted);
}

/* --- ANIMATIONS: SCROLL VELOCITY & LOGO LOOP --- */
.velocity-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.velocity-scroller {
  overflow: hidden;
  -webkit-mask: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.velocity-scroller__inner {
  display: flex;
  width: max-content;
  will-change: transform;
}

.velocity-scroller__inner span {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin-right: 1.5rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--card-bg);
  transition: color var(--transition), border-color var(--transition);
}

.velocity-scroller__inner span:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.logo-loop {
  position: relative;
  overflow: hidden;
  padding-block: 2rem;
}

.logo-loop__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}

.logo-loop__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.logo-loop__list span {
  margin: 0 2rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.8;
  transition: opacity var(--transition), color var(--transition);
}

.logo-loop__list span:hover {
  opacity: 1;
  color: var(--text);
}

/* --- PLANS & CONTACT --- */
.pricing {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.price .price__num {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0;
}

.price .price__num span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.price ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.5rem;
}

.price ul li {
  padding-left: 1.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C5CFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E") no-repeat left center;
  background-size: 1rem;
}

.price--rec {
  border-color: var(--brand);
  box-shadow: 0 0 30px var(--brand-glow);
  transform: scale(1.03);
}

.flag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--brand);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 500;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.form .form-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form label {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem;
  background: var(--bg-alt);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__brand {
  max-width: 250px;
}

.footer__brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.footer__links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer__col {
  display: grid;
  gap: 0.75rem;
}

.footer__col strong {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.footer__col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--text);
}

/* --- ANIMATIONS & RESPONSIVE --- */
.reveal [data-animate],
.reveal [data-animate-stagger]>* {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--transition), transform 0.6s var(--transition);
}

.reveal [data-animate].visible,
.reveal [data-animate-stagger].visible>* {
  opacity: 1;
  transform: translateY(0);
}

.reveal [data-animate-stagger].visible>* {
  transition-delay: calc(0.1s * var(--stagger-index, 0));
}

.scramble-char {
  color: var(--accent);
}

@media (max-width: 992px) {
  .only-mobile {
    display: inline-grid !important;
  }

  .nav__rail {
    display: none;
  }

  .nav__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  main {
    padding-top: 80px;
  }

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

  .bento-item--large {
    grid-column: span 2;
  }

  .bento-item--kpi {
    grid-column: span 2;
  }

  .contact {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact .lead {
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .nav__actions .btn--soft {
    display: none;
  }

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

  .bento-item,
  .bento-item--large,
  .bento-item--medium,
  .bento-item--kpi {
    grid-column: span 1;
  }

  .kpis {
    flex-direction: row;
    gap: 2rem;
  }

  .kpi__num {
    font-size: 2.5rem;
  }

  .form .form-group {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .price--rec {
    transform: scale(1);
  }
}

@keyframes pulse {
  from {
    transform: scale(0.9);
    opacity: 0.7;
  }

  to {
    transform: scale(1.1);
    opacity: 0.5;
  }
}