/* VIVASIGNER — site institucional */

:root {
  --brand: #0095da;
  --brand-accent: #00eaff;
  --brand-dark: #181a20;
  --brand-elevated: #23272f;
  --brand-muted: #94a3b8;
  --text: #f1f5f9;
  --text-soft: #cbd5e1;
  --silver: #a8b0bc;
  --success: #22c55e;
  --radius: 14px;
  --max: 1120px;
  --nav-h: 72px;
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --shadow-glow: 0 0 60px rgba(0, 149, 218, 0.18);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--brand-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

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

/* —— Background atmosphere —— */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 85% 10%, rgba(0, 149, 218, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(0, 234, 255, 0.08), transparent 50%),
    linear-gradient(145deg, #181a20 0%, #181a20 55%, #0f3a55 100%);
}

.bg-circuit {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
}

.bg-circuit svg {
  width: 100%;
  height: 100%;
}

/* —— Nav —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(24, 26, 32, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--brand-muted);
  font-size: 0.9rem;
  font-weight: 560;
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-primary:hover {
  background: var(--brand-accent);
  color: var(--brand-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.35);
}

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

.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2.5rem) 0 4rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(to top, var(--brand-dark), transparent);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

.hero-brand {
  max-width: min(100%, 520px);
  opacity: 0;
  transform: translateY(24px);
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.hero-brand img {
  width: min(100%, 480px);
  filter: drop-shadow(0 20px 40px rgba(0, 149, 218, 0.25));
}

.hero-copy {
  max-width: 34rem;
  opacity: 0;
  transform: translateY(24px);
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-lead {
  color: var(--text-soft);
  font-size: 1.125rem;
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-visual {
  position: absolute;
  right: -4%;
  top: 18%;
  width: min(42vw, 480px);
  opacity: 0;
  transform: translateX(30px) rotate(-8deg);
  animation: float-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
  pointer-events: none;
  z-index: 1;
}

.hero-visual img {
  width: 100%;
  opacity: 0.55;
  filter: drop-shadow(0 30px 60px rgba(0, 234, 255, 0.15));
  animation: gentle-float 8s ease-in-out 1.5s infinite;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  to {
    opacity: 1;
    transform: translateX(0) rotate(-6deg);
  }
}

@keyframes gentle-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* —— Sections —— */
.section {
  position: relative;
  padding: 5.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 3rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  color: #fff;
  margin-bottom: 0.85rem;
}

.section-head p {
  color: var(--brand-muted);
  font-size: 1.05rem;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}
.reveal-delay-4 {
  transition-delay: 0.32s;
}

/* —— About / dual modes —— */
.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.mode {
  padding: 2.5rem 2rem 2.5rem 0;
}

.mode + .mode {
  padding-left: 2.5rem;
  border-left: 1px solid rgba(148, 163, 184, 0.15);
}

.mode-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--brand-accent);
}

.mode h3 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.mode p {
  color: var(--brand-muted);
  margin-bottom: 1.25rem;
}

.mode-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(35, 39, 47, 0.5);
}

/* —— Features —— */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
}

.feature {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 149, 218, 0.35);
}

.feature-num {
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-accent);
}

.feature h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.6rem;
}

.feature p {
  color: var(--brand-muted);
  font-size: 0.975rem;
}

/* —— Steps —— */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 0 0.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 234, 255, 0.45);
}

.step h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--brand-muted);
  font-size: 0.95rem;
}

/* —— Security —— */
.security-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.security-list {
  display: grid;
  gap: 1.25rem;
}

.security-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.security-dot {
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 12px rgba(0, 234, 255, 0.55);
}

.security-item h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.security-item p {
  color: var(--brand-muted);
  font-size: 0.95rem;
}

.security-aside {
  padding: 2rem;
  background: linear-gradient(160deg, rgba(35, 39, 47, 0.9), rgba(24, 26, 32, 0.6));
  border: 1px solid rgba(0, 149, 218, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
}

.security-aside h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.security-aside ul {
  display: grid;
  gap: 0.75rem;
}

.security-aside li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.security-aside li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--brand);
}

/* —— Audiences —— */
.audiences {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.audience {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.audience h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.audience p {
  color: var(--brand-muted);
  font-size: 0.9rem;
}

/* —— Plans —— */
.plans {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  background: rgba(35, 39, 47, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.plan:hover {
  border-color: rgba(0, 149, 218, 0.55);
  transform: translateY(-3px);
}

.plan.is-featured {
  background: linear-gradient(165deg, rgba(0, 149, 218, 0.22), rgba(35, 39, 47, 0.7));
  border-color: rgba(0, 234, 255, 0.45);
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
  color: #fff;
  margin-bottom: 0.35rem;
}

.plan-quota {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--brand-accent);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.plan-unit {
  font-size: 0.8rem;
  color: var(--brand-muted);
  margin-bottom: 1.25rem;
}

.plan-note {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--silver);
}

.plans-footnote {
  margin-top: 1.75rem;
  text-align: center;
  color: var(--brand-muted);
  font-size: 0.9rem;
}

/* —— CTA band —— */
.cta-band {
  padding: 5rem 0;
}

.cta-inner {
  position: relative;
  padding: 3.25rem 2.5rem;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 120% at 100% 50%, rgba(0, 234, 255, 0.18), transparent 55%),
    linear-gradient(120deg, #1a2330 0%, #0095da 130%);
  border: 1px solid rgba(0, 234, 255, 0.2);
}

.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  max-width: 22ch;
  margin-bottom: 0.75rem;
}

.cta-inner p {
  color: rgba(241, 245, 249, 0.88);
  max-width: 40ch;
  margin-bottom: 1.75rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.cta-inner .btn-primary {
  background: #fff;
  color: var(--brand-dark);
}

.cta-inner .btn-primary:hover {
  background: var(--brand-accent);
}

.cta-inner .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.cta-inner .btn-ghost:hover {
  border-color: #fff;
  color: var(--brand-accent);
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-block h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.contact-block p,
.contact-block a {
  color: var(--brand-muted);
}

.contact-block a:hover {
  color: var(--brand-accent);
}

.contact-list {
  display: grid;
  gap: 1.5rem;
}

.contact-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.35rem;
}

.contact-item span,
.contact-item a {
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* —— Footer —— */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--brand-muted);
  font-size: 0.9rem;
  max-width: 28ch;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  color: var(--brand-muted);
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--brand-muted);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--brand-muted);
}

.footer-bottom a:hover {
  color: var(--brand-accent);
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .hero-visual {
    width: min(38vw, 360px);
    opacity: 0.4;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-cta .btn-ghost {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header.is-open {
    background: rgba(24, 26, 32, 0.96);
    backdrop-filter: blur(16px);
  }

  .site-header.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    padding: 1.25rem 1.25rem 1.5rem;
    background: rgba(24, 26, 32, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    gap: 1rem;
  }

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

  .mode {
    padding: 2rem 0;
  }

  .mode + .mode {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
  }

  .security-panel,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    display: none;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.75rem, var(--max));
  }

  .section {
    padding: 4rem 0;
  }

  .features-grid,
  .steps,
  .audiences,
  .plans {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    padding: 2.25rem 1.5rem;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .nav-cta .btn-primary {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-brand,
  .hero-copy,
  .hero-visual,
  .hero-visual img,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
