/* Insolar Brasil — visual premium, moderno e interativo */
:root {
  --insolar-ink: #06262b;
  --insolar-deep: #07343a;
  --insolar-teal: #0e8f86;
  --insolar-teal-bright: #12a89e;
  --insolar-mint: #b7f4d8;
  --insolar-mint-soft: rgba(183, 244, 216, 0.18);
  --insolar-yellow: #ffc857;
  --insolar-yellow-hot: #ffd78a;
  --insolar-shadow: 0 24px 70px rgba(4, 36, 41, 0.13);
  --insolar-shadow-lg: 0 32px 80px rgba(4, 36, 41, 0.18);
  --insolar-radius: 20px;
  --insolar-radius-lg: 28px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f7fbf8;
  color: var(--insolar-ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--insolar-yellow);
  color: var(--insolar-ink);
}

/* Ambient background */
.site-shell {
  position: relative;
  isolation: isolate;
}

.site-shell::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 7% 18%, rgba(183, 244, 216, 0.22), transparent 26%),
    radial-gradient(circle at 93% 48%, rgba(255, 200, 87, 0.12), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(14, 143, 134, 0.06), transparent 40%);
}

/* Header */
.site-header {
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(247, 251, 248, 0.82) !important;
  border-bottom: 1px solid rgba(6, 38, 43, 0.08);
  transition: box-shadow 0.35s var(--ease-out), background 0.35s var(--ease-out);
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(6, 38, 43, 0.1);
  background: rgba(247, 251, 248, 0.94) !important;
}

.nav-wrap {
  min-height: 76px;
}

.brand-mark {
  filter: drop-shadow(0 4px 10px rgba(14, 143, 134, 0.24));
  transition: transform 0.3s var(--ease-spring);
}

.brand-mark:hover {
  transform: rotate(-6deg) scale(1.08);
}

.nav-wrap a,
.nav-actions a {
  transition: color 0.2s ease, transform 0.25s var(--ease-out);
}

.nav-wrap a:hover,
.nav-actions a:hover {
  transform: translateY(-2px);
  color: var(--insolar-teal) !important;
}

/* Hero */
.hero-section {
  min-height: 720px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #06262b 0%, #0a4b4f 56%, #0d746c 100%) !important;
}

.hero-section::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -220px;
  border: 1px solid rgba(183, 244, 216, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(183, 244, 216, 0.045),
    0 0 0 78px rgba(183, 244, 216, 0.025);
  pointer-events: none;
  animation: heroRing 12s ease-in-out infinite alternate;
}

@keyframes heroRing {
  from { transform: scale(1) rotate(0deg); opacity: 0.9; }
  to { transform: scale(1.06) rotate(8deg); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-label {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--insolar-mint) !important;
}

.hero-copy h1 {
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
}

.hero-lead {
  color: rgba(255, 255, 255, 0.76) !important;
  max-width: 570px;
}

.hero-ctas a,
.calc-cta,
.contact-content a {
  border-radius: 999px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), filter 0.25s ease !important;
}

.hero-ctas a:hover,
.calc-cta:hover,
.contact-content a:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  filter: brightness(1.05);
}

.hero-ctas a:active,
.calc-cta:active {
  transform: translateY(-1px) scale(0.99);
}

/* Benefit / cards */
.benefit-card {
  border-radius: var(--insolar-radius-lg) !important;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out) !important;
  box-shadow: 0 12px 40px rgba(6, 38, 43, 0.06);
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--insolar-shadow-lg);
}

.benefit-card.featured {
  transform: scale(1.02);
  box-shadow: var(--insolar-shadow);
}

.benefit-card.featured:hover {
  transform: scale(1.02) translateY(-6px);
}

/* Calculator */
input[type="range"] {
  cursor: grab;
  accent-color: var(--insolar-teal);
}

input[type="range"]:active {
  cursor: grabbing;
}

.calc-result {
  background: linear-gradient(135deg, #07343a, #0e8f86) !important;
  box-shadow: 0 18px 35px rgba(7, 52, 58, 0.22);
  border-radius: var(--insolar-radius) !important;
  transition: transform 0.3s var(--ease-out);
}

.calc-result:hover {
  transform: scale(1.01);
}

.bill-value,
.trend {
  color: var(--insolar-yellow) !important;
}

/* Video */
.video-section {
  position: relative;
}

.video-frame {
  overflow: hidden;
  border-radius: 28px !important;
  background: #06262b !important;
  box-shadow: 0 28px 60px rgba(6, 38, 43, 0.2);
  transition: box-shadow 0.4s var(--ease-out);
}

.video-frame:hover {
  box-shadow: 0 36px 70px rgba(6, 38, 43, 0.28);
}

.video-frame video {
  transition: transform 0.7s var(--ease-out);
}

.video-frame:hover video {
  transform: scale(1.03);
}

.video-trigger {
  cursor: pointer;
}

/* Finance & Contact */
.finance-section,
.contact-section {
  background: linear-gradient(135deg, #06262b, #0a5558) !important;
  position: relative;
  overflow: hidden;
}

.finance-section::before,
.contact-section::before {
  content: "";
  position: absolute;
  inset: auto -10% -65% 35%;
  height: 420px;
  border-radius: 50%;
  background: rgba(183, 244, 216, 0.1);
  filter: blur(3px);
}

.partner-pill {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.86);
  transition: background 0.25s ease, transform 0.25s var(--ease-out);
}

.partner-pill:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  transform: translateY(-2px);
}

/* FAQ */
.faq-list > * {
  border-bottom: 1px solid rgba(6, 38, 43, 0.12);
  transition: background 0.25s ease, padding 0.25s ease, border-radius 0.25s ease;
}

.faq-list > *:hover {
  background: rgba(183, 244, 216, 0.18);
  padding-left: 14px;
  padding-right: 14px;
  border-radius: 12px;
}

.contact-section {
  min-height: 390px;
}

/* Footer */
.site-footer {
  background: #031c20 !important;
}

.site-footer a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer a:hover {
  color: var(--insolar-mint) !important;
  opacity: 1;
}

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.video-modal {
  animation: modalIn 0.3s var(--ease-out) both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--insolar-yellow) !important;
  outline-offset: 4px;
}

/* ========== FLOATING WHATSAPP ========== */
.insolar-wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  font-family: inherit;
  pointer-events: auto;
}

.insolar-wa-float .wa-bubble {
  background: #fff;
  color: var(--insolar-ink);
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(6, 38, 43, 0.15);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(12px) scale(0.95);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  pointer-events: none;
}

.insolar-wa-float:hover .wa-bubble,
.insolar-wa-float.show-tip .wa-bubble {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.insolar-wa-float .wa-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(145deg, #25d366, #128c7e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 24px rgba(18, 140, 126, 0.45),
    0 0 0 0 rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  animation: waPulse 2.4s ease-out infinite;
}

.insolar-wa-float .wa-btn svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.insolar-wa-float:hover .wa-btn {
  transform: scale(1.1);
  box-shadow:
    0 12px 32px rgba(18, 140, 126, 0.55),
    0 0 0 8px rgba(37, 211, 102, 0.15);
  animation: none;
}

.insolar-wa-float:active .wa-btn {
  transform: scale(1.02);
}

@keyframes waPulse {
  0% {
    box-shadow:
      0 8px 24px rgba(18, 140, 126, 0.45),
      0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  70% {
    box-shadow:
      0 8px 24px rgba(18, 140, 126, 0.45),
      0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow:
      0 8px 24px rgba(18, 140, 126, 0.45),
      0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Extra polish: sections, cards, steps */
.page-width {
  max-width: 1180px;
}

section {
  scroll-margin-top: 90px;
}

/* Subtle card lift on process steps etc */
[class*="step"],
[class*="process"] article,
.step-card {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

/* Smooth image / illustration hover */
.hero-visual,
[class*="illustration"] {
  transition: transform 0.8s var(--ease-out);
}

/* Top promo bar polish */
[class*="promo-bar"],
.top-banner {
  letter-spacing: 0.02em;
}

/* Mobile */
@media (max-width: 760px) {
  .hero-section {
    min-height: 650px;
  }

  .hero-section::after {
    width: 360px;
    height: 360px;
    right: -180px;
    top: -100px;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .benefit-card.featured {
    transform: none;
  }

  .benefit-card.featured:hover {
    transform: translateY(-5px);
  }

  .hero-visual {
    animation-duration: 8s;
  }

  .insolar-wa-float {
    right: 16px;
    bottom: 16px;
  }

  .insolar-wa-float .wa-btn {
    width: 54px;
    height: 54px;
  }

  .insolar-wa-float .wa-btn svg {
    width: 26px;
    height: 26px;
  }

  .insolar-wa-float .wa-bubble {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .insolar-wa-float .wa-btn {
    animation: none !important;
  }
}
