:root {
  /* Same palette as ativos.iocontingencia.com */
  --io-bg: #040b35;
  --io-bg-2: #162055;
  --io-surface: #1a2565;
  --io-surface-2: #1e2a70;
  --io-border: rgba(139, 159, 255, 0.16);
  --io-border-strong: rgba(0, 209, 255, 0.4);
  --io-cyan: #00d1ff;
  --io-cyan-soft: #7ae9ff;
  --io-blue: #4d66ff;
  --io-blue-soft: #6f81ff;
  --io-text: #ffffff;
  --io-muted: #d0d8f0;
  --io-subtle: #a8b8dd;
  --io-header-bg: rgba(45, 60, 85, 0.9);
  --io-header-bg-scrolled: rgba(38, 52, 78, 0.96);
  --io-sales: #00d1ff;
}

html { scroll-behavior: smooth; }

body {
  background: var(--io-bg);
  color: var(--io-text);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  min-height: 100vh;
}

/* Same network background as ativos home (.ss-network-bg--home) */
.io-network-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.62;
  background: radial-gradient(ellipse at center, #1a2565 0%, #1e2a70 40%, #162055 70%, #1a2565 100%);
}

.io-network-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40%;
  background: radial-gradient(ellipse at top center, rgba(79, 131, 255, 0.18) 0%, transparent 70%);
  z-index: 1;
}

.io-network-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.io-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.02;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.io-shell { position: relative; z-index: 1; }

/* Logo shimmer — same idea as ativos.iocontingencia.com */
.brand-shimmer {
  background-image: linear-gradient(
    110deg,
    #ffffff 0%,
    #ffffff 35%,
    #c8d2ff 45%,
    #6f81ff 50%,
    #c8d2ff 55%,
    #ffffff 65%,
    #ffffff 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: io-brand-shimmer 6s ease-in-out infinite;
}

.brand-shimmer-delay { animation-delay: 0.4s; }

@keyframes io-brand-shimmer {
  0% { background-position: 200% 0; }
  50% { background-position: -50% 0; }
  100% { background-position: 200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-shimmer { animation: none; background-position: 0 0; }
}

.io-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: var(--io-header-bg);
  border-bottom: 1px solid rgba(0, 209, 255, 0.22);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(111, 129, 255, 0.12) inset;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.io-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(111, 129, 255, 0.55),
    rgba(0, 209, 255, 0.35),
    transparent
  );
  pointer-events: none;
}

.io-header.is-scrolled {
  background: var(--io-header-bg-scrolled);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Language switcher */
.io-lang {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(0, 209, 255, 0.28);
  background: rgba(15, 23, 42, 0.55);
}

.io-lang button {
  min-width: 2.4rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.io-lang button.is-active {
  background: linear-gradient(135deg, rgba(0, 209, 255, 0.25), rgba(77, 102, 255, 0.35));
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 209, 255, 0.2);
}

.io-bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid var(--io-border);
  background: linear-gradient(160deg, rgba(38, 56, 104, 0.72), rgba(15, 23, 42, 0.9));
  min-height: 220px;
}

.io-bento-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.io-bento-glow::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% 30%;
  height: 70%;
  background: radial-gradient(circle, rgba(0, 209, 255, 0.28), transparent 65%);
  pointer-events: none;
}

.io-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.1rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.io-btn-primary {
  color: #031018;
  background: linear-gradient(135deg, #ffffff 0%, #8ef0ff 40%, #00d1ff 100%);
  box-shadow: 0 12px 36px rgba(0, 209, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.io-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(0, 209, 255, 0.4);
}

.io-btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(122, 190, 255, 0.35);
}

.io-btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 209, 255, 0.7);
  background: rgba(0, 209, 255, 0.08);
}

.io-panel {
  background: linear-gradient(180deg, rgba(38, 56, 104, 0.68), rgba(15, 23, 42, 0.85));
  border: 1px solid var(--io-border);
  border-radius: 1.35rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.io-check {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0, 209, 255, 0.12);
  border: 1px solid rgba(0, 209, 255, 0.35);
  color: var(--io-cyan);
}

/* VSL */
.io-vsl {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(0, 209, 255, 0.28);
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45), 0 0 60px rgba(0, 209, 255, 0.12);
}

.io-vsl::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 120deg, transparent, rgba(0, 209, 255, 0.25), transparent 40%);
  animation: io-vsl-spin 10s linear infinite;
  opacity: 0.55;
}

.io-vsl-inner {
  position: absolute;
  inset: 2px;
  border-radius: calc(1.5rem - 2px);
  overflow: hidden;
  background: #0f172a;
  display: grid;
  place-items: center;
}

.io-vsl-play {
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffffff, #7ae9ff 45%, #00d1ff);
  color: #031018;
  box-shadow: 0 0 0 12px rgba(0, 209, 255, 0.12), 0 18px 50px rgba(0, 209, 255, 0.35);
  animation: io-pulse 2.4s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.io-vsl:hover .io-vsl-play { transform: scale(1.06); }

@keyframes io-vsl-spin {
  to { transform: rotate(360deg); }
}

@keyframes io-pulse {
  0%, 100% { box-shadow: 0 0 0 10px rgba(0, 209, 255, 0.1), 0 18px 50px rgba(0, 209, 255, 0.3); }
  50% { box-shadow: 0 0 0 18px rgba(0, 209, 255, 0.05), 0 22px 60px rgba(0, 209, 255, 0.42); }
}

/* Carousel */
.io-carousel-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: io-marquee 48s linear infinite;
}

.io-carousel-track:hover { animation-play-state: paused; }

@keyframes io-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.io-proof-card {
  width: min(220px, 42vw);
  flex-shrink: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.io-proof-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Reveal on scroll */
.io-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.io-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.io-glow-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
  pointer-events: none;
}

.faq-item[open] summary svg { transform: rotate(180deg); }

.io-vsl-soon {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  background: #0f172a;
}

.io-proof-strip {
  background: linear-gradient(90deg, #0f172a, #1a2565, #0f172a);
}

.io-community {
  background: linear-gradient(135deg, #162055 0%, #1a2565 45%, #1e2a70 100%);
}

.io-footer {
  background: rgba(15, 20, 40, 0.9);
}

@media (max-width: 768px) {
  .io-btn { width: 100%; }
  .io-vsl-play { width: 4rem; height: 4rem; }
  .io-lang { margin-right: 0.15rem; }
}
