/* =========================================================
   SOLAR NEXUS — CORE STYLESHEET
   Design language: cinematic sky, glass + circuitry
   Fonts: Sora (display) / Inter (body) / JetBrains Mono (data)
   ========================================================= */

:root {
  /* ---- Brand colors ---- */
  --blue-deep: #0B5ED7;
  --blue-deep-dark: #073C8C;
  --green-emerald: #22C55E;
  --green-emerald-dark: #16843C;
  --white: #FFFFFF;

  /* ---- Accent / glow ---- */
  --glow-blue: rgba(56, 132, 255, 0.45);
  --glow-green: rgba(34, 197, 94, 0.45);
  --cyan-electric: #3DF2E4;
  --cyan-electric-soft: rgba(61, 242, 228, 0.35);

  /* ---- Sky story stops (used by JS to interpolate) ---- */
  --sky-morning-1: #FCEFD8;
  --sky-morning-2: #AEE1F9;
  --sky-afternoon-1: #8FD3FF;
  --sky-afternoon-2: #EAF6FF;
  --sky-evening-1: #FF9A5C;
  --sky-evening-2: #3A2A6D;
  --sky-night-1: #060B18;
  --sky-night-2: #0B1330;

  /* ---- Neutrals ---- */
  --ink: #0B1220;
  --ink-soft: #3A4657;
  --mist: #7C8AA0;
  --line: rgba(11, 18, 32, 0.08);
  --paper: #F7FAFC;

  /* ---- Glass ---- */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-dark: rgba(11, 18, 32, 0.45);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-blur: 16px;

  /* ---- Radii / shadow ---- */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --shadow-soft: 0 20px 60px -20px rgba(11, 18, 32, 0.25);
  --shadow-glow-blue: 0 0 40px -6px var(--glow-blue);
  --shadow-glow-green: 0 0 40px -6px var(--glow-green);

  /* ---- Type ---- */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* ---- Layout ---- */
  --container-max: 1280px;
  /* Fluid navbar height: was a fixed 120px, which caused the logo
     to overflow the bar (and push the hamburger out of alignment)
     on narrower viewports. Now it scales smoothly with viewport width. */
  --nav-h: clamp(76px, 10vw, 120px);
}

/* =========================================================
   BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.display-font {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

p {
  color: var(--ink-soft);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

svg,
canvas {
  max-width: 100%;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--green-emerald), var(--blue-deep));
  display: inline-block;
}

.section-pad {
  padding: 120px 0;
  position: relative;
}

@media (max-width: 991.98px) {
  .section-pad {
    padding: 80px 0;
  }
}

.container-nexus {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(90deg, var(--blue-deep), var(--green-emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-nexus {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 32px;
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  isolation: isolate;
}

.btn-nexus:active {
  transform: scale(0.97);
}

.btn-primary-nexus {
  background: linear-gradient(120deg, var(--blue-deep), var(--green-emerald-dark) 130%);
  color: var(--white);
  box-shadow: 0 10px 30px -8px var(--glow-blue);
}

.btn-primary-nexus:hover {
  box-shadow: 0 14px 40px -6px var(--glow-blue), 0 0 0 6px rgba(34, 197, 94, 0.12);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline-nexus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border: 1.5px solid rgba(11, 18, 32, 0.15);
  backdrop-filter: blur(8px);
}

.btn-outline-nexus:hover {
  border-color: var(--blue-deep);
  color: var(--blue-deep);
  transform: translateY(-2px);
}

.btn-outline-nexus.on-dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-nexus.on-dark:hover {
  border-color: var(--cyan-electric);
  color: var(--cyan-electric);
}

/* ripple */
.btn-nexus .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  animation: ripple-anim 650ms ease-out;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* =========================================================
   NAVBAR
   ========================================================= */
.nav-cta .btn-nexus {
  font-size: 0.92rem;
  padding: 8px 18px;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.navbar-nexus {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  overflow: hidden; /* never let an oversized logo push the bar taller than intended */
  transition: background 0.4s ease, box-shadow 0.4s ease, height 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar-nexus.solid {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -10px rgba(11, 18, 32, 0.18);
  height: clamp(60px, 8vw, 72px);
}

.navbar-nexus .nav-inner {
  width: 100%;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-nexus {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--blue-deep);
  transition: color 0.4s ease;
}

.navbar-nexus.solid .brand-nexus {
  color: var(--ink);
}

.brand-nexus .bolt {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-emerald), var(--blue-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px var(--glow-green);
}

.brand-nexus .bolt i {
  color: #fff;
  font-size: 1rem;
}

/* Company logo: transparent PNG, big & clear, no chip/box — blends with header.
   Height is fluid (clamp) and capped at 100% of the navbar's own height so it
   can never overflow the bar and knock the hamburger/CTA out of alignment. */
.brand-logo {
  height: clamp(48px, 9vw, 130px);
  max-height: 100%;
  width: auto;
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  flex-shrink: 0;
  transition: transform 0.3s ease, height 0.4s ease;
}

.brand-nexus:hover .brand-logo {
  transform: scale(1.03);
}

.navbar-nexus.solid .brand-logo {
  height: clamp(40px, 7vw, 104px);
}

.brand-logo.on-dark {
  box-shadow: none;
  height: 95px;        /* was 120px */
  margin-top: -22px;   /* new — pulls the logo up to cancel out empty space at top of the PNG */
  margin-bottom: -14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1vw, 28px); /* fluid gap, but links themselves never shrink below their text width */
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue-deep);
  position: relative;
  padding: 6px 0;
  white-space: nowrap; /* a link's own label must never break onto a second line */
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.navbar-nexus.solid .nav-links a {
  color: var(--ink-soft);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green-emerald), var(--blue-deep));
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--green-emerald);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0; /* keep the CTA + hamburger from being squeezed/shifted when space is tight */
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  border: none;
  background: rgba(11, 94, 215, 0.08);
  color: var(--blue-deep);
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  align-self: center;
}

.navbar-nexus.solid .nav-toggle {
  background: rgba(11, 18, 32, 0.06);
  color: var(--ink);
}

/* =========================================================
   HERO / SKY CANVAS
   ========================================================= */
.hero-sky {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--sky-morning-1), var(--sky-morning-2));
}

#sky-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: var(--nav-h);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-deep-dark);
  margin-bottom: 26px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-emerald);
  box-shadow: 0 0 10px var(--green-emerald);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.08;
  max-width: 850px;
  color: var(--ink);
}

.hero-content .lead-nexus {
  font-size: 1.15rem;
  max-width: 560px;
  margin-top: 22px;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 70px;
  flex-wrap: wrap;
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ink);
}

.hero-stat .num .suffix {
  color: var(--green-emerald);
}

.hero-stat .label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-cue .stick {
  width: 2px;
  height: 34px;
  background: linear-gradient(to bottom, var(--green-emerald), transparent);
  animation: scroll-stick 1.6s infinite;
}

@keyframes scroll-stick {
  0% {
    transform: scaleY(0.2);
    transform-origin: top;
    opacity: 0.3;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }

  100% {
    transform: scaleY(0.2);
    transform-origin: bottom;
    opacity: 0.3;
  }
}

/* Section divider SVG wave */
.section-divider {
  display: block;
  width: 100%;
  line-height: 0;
  position: relative;
  z-index: 2;
}

.section-divider svg {
  width: 100%;
  height: 90px;
  display: block;
}

/* =========================================================
   CONTINUOUS SKY STORY WRAPPER
   One smooth multi-stop gradient spans every "story" section
   so there is never a hard seam between morning/afternoon/
   evening/night — the browser interpolates the whole thing.
   ========================================================= */
.story-sky {
  position: relative;
  background: linear-gradient(to bottom,
      #8FD3FF 0%,
      #CFEBFF 10%,
      #EAF6FF 18%,
      #FFE2B0 28%,
      #FF9A5C 38%,
      #C97A6E 46%,
      #6B4A8A 54%,
      #3A2A6D 62%,
      #1B2447 72%,
      #0B1330 84%,
      #060B18 96%,
      #060B18 100%);
}

.story-sky .circuit-stage {
  background: transparent;
}

/* =========================================================
   ELECTRIC CIRCUIT LAYER (behind story sections)
   ========================================================= */
.circuit-stage {
  position: relative;
  background: transparent;
  transition: background 1.2s ease;
}

.circuit-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.circuit-stage .stage-content {
  position: relative;
  z-index: 2;
}

/* Stars (visible only once sky darkens) */
.stars-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s ease;
}

.circuit-stage.is-dark .stars-layer {
  opacity: 1;
}

.circuit-stage.is-dark .section-title,
.circuit-stage.is-dark h2,
.circuit-stage.is-dark h3,
.circuit-stage.is-dark p:not(.keep-light) {
  color: var(--white);
}

.circuit-stage.is-dark p:not(.keep-light) {
  color: rgba(255, 255, 255, 0.72);
}

.circuit-stage.is-dark .eyebrow {
  color: var(--cyan-electric);
}

/* =========================================================
   GLASS CARDS
   ========================================================= */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 34px 28px;
  position: relative;
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), box-shadow 0.45s ease, border-color 0.45s ease;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0), rgba(56, 132, 255, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, background 0.5s ease;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow-green), var(--shadow-soft);
}

.glass-card:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, var(--green-emerald), var(--cyan-electric));
}

.glass-card.is-charged {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: var(--shadow-glow-green);
}

.glass-card.on-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.icon-tile {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(11, 94, 215, 0.12), rgba(34, 197, 94, 0.14));
  color: var(--blue-deep);
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.glass-card.is-charged .icon-tile,
.glass-card:hover .icon-tile {
  box-shadow: 0 0 26px var(--glow-green);
  transform: translateY(-2px) scale(1.04);
  color: var(--green-emerald);
}

.icon-tile.float {
  animation: icon-float 4.5s ease-in-out infinite;
}

@keyframes icon-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

.glass-card h4 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.glass-card p {
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* =========================================================
   SECTION HEAD
   ========================================================= */
.section-head {
  max-width: 640px;
  margin-bottom: 60px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

.section-head p {
  margin-top: 16px;
  font-size: 1.02rem;
}

/* =========================================================
   COUNTERS
   ========================================================= */
.counter-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial-card {
  padding: 40px 34px;
}

/* Testimonials: green glow only on hover, never from scroll-charge */
.testimonial-card.is-charged {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-soft);
}

.testimonial-card.is-charged:hover {
  border-color: rgba(61, 242, 228, 0.5);
  box-shadow: var(--shadow-glow-green), var(--shadow-soft);
}

/* Room for the hover lift so the top border isn't clipped by the carousel */
#testimonialCarousel .carousel-inner {
  padding: 14px 6px;
  margin: -14px -6px 0;
}

.testi-arrow {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.stars-row i {
  color: #FFB020;
  font-size: 0.9rem;
  margin-right: 2px;
}

.testimonial-card .quote {
  font-size: 1.02rem;
  color: var(--ink);
  margin: 18px 0 26px;
  font-style: italic;
}

.testi-person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testi-person img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green-emerald);
}

.testi-person .name {
  font-weight: 700;
  font-size: 0.95rem;
}

.testi-person .role {
  font-size: 0.8rem;
  color: var(--mist);
}

/* =========================================================
   PROJECTS GALLERY
   ========================================================= */
.project-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  isolation: isolate;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-card .overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, rgba(6, 11, 24, 0.92) 0%, rgba(6, 11, 24, 0.1) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
}

.project-card .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.9);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-card h5 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.project-card .meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  border-radius: var(--r-lg);
  padding: 70px 50px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--blue-deep-dark), var(--green-emerald-dark) 140%);
  color: #fff;
  isolation: isolate;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(61, 242, 228, 0.22), transparent 50%);
  z-index: -1;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  max-width: 620px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin-top: 14px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer-nexus {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer-nexus h6 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-nexus ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nexus ul li {
  margin-bottom: 12px;
}

.footer-nexus ul li a {
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-nexus ul li a:hover {
  color: var(--green-emerald);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
  padding-top: 26px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-row a:hover {
  background: var(--green-emerald);
  border-color: var(--green-emerald);
  color: #06110b;
}

/* =========================================================
   FLOATING LEAD-GEN ELEMENTS
   ========================================================= */
.float-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.float-btn.whatsapp {
  background: #25D366;
}

.float-btn.call {
  background: linear-gradient(135deg, var(--blue-deep), var(--green-emerald));
}

.float-btn .ring {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: ring-pulse 2s infinite;
}

@keyframes ring-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.back-to-top {
  position: fixed;
  right: 24px;
  /* Was bottom:24px — identical to .float-actions, so this button sat
     directly on top of the WhatsApp/call buttons once it appeared.
     Now it's pinned above that stack (2 buttons x 58px + 14px gap = 130px). */
  bottom: 168px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.35s ease;
  z-index: 1150;
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================================
   FORMS
   ========================================================= */
.form-nexus label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
  display: block;
}

.form-nexus .form-control,
.form-nexus .form-select {
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  padding: 13px 16px;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-nexus .form-control:focus,
.form-nexus .form-select:focus {
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.12);
}

.form-nexus .invalid-feedback {
  font-size: 0.78rem;
}

/* Sticky navbar offset helper */
.pt-nav {
  padding-top: var(--nav-h);
}

/* =========================================================
   MOBILE MENU — base positioning (unconditional, not media-query
   gated) so it is ALWAYS off-canvas / hidden regardless of
   viewport width or rendering engine support for the
   `inset` shorthand.
   ========================================================= */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(6, 11, 24, 0.55);
  z-index: 1290;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -100%;
  width: min(340px, 86vw);
  height: 100vh;
  background: #fff;
  z-index: 1300;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
  transition: right 0.45s cubic-bezier(.2, .8, .2, 1);
  padding: 28px 26px;
  overflow-y: auto;
  visibility: hidden;
}

.mobile-menu.open {
  right: 0;
  visibility: visible;
}

.mobile-menu a {
  display: block;
  padding: 14px 4px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* =========================================================
   DARK-CARD TEXT CONTRAST
   Cards placed on dark sections must always resolve to a
   light foreground, independent of which wrapper class
   (.is-dark) happens to be on an ancestor.
   ========================================================= */
.glass-card.on-dark h3,
.glass-card.on-dark h4,
.glass-card.on-dark h5 {
  color: #ffffff;
}

.glass-card.on-dark p {
  color: rgba(255, 255, 255, 0.72);
}

.glass-card.on-dark .testi-person .name {
  color: #ffffff;
}

.glass-card.on-dark .icon-tile {
  background: rgba(255, 255, 255, 0.10);
  color: var(--cyan-electric);
}

.glass-card.on-dark.is-charged,
.glass-card.on-dark:hover {
  border-color: rgba(61, 242, 228, 0.5);
}

.glass-card.on-dark.is-charged .icon-tile,
.glass-card.on-dark:hover .icon-tile {
  color: var(--cyan-electric);
  box-shadow: 0 0 26px var(--cyan-electric-soft);
}

/* Testimonial cards stay neutral until hovered (no permanent charge glow) */
.glass-card.on-dark.testimonial-card.is-charged:not(:hover) {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-soft);
  animation: none;
}

.glass-card.on-dark.testimonial-card.is-charged:not(:hover)::before {
  opacity: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 3000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}