/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:root {
  --bg: #06030b;
  --bg-soft: #0b0714;
  --purple: #9b6bff;
  --purple-bright: #c4a3ff;
  --purple-deep: #6a3fc4;
  --purple-glow: rgba(155, 107, 255, 0.55);
  --white: #f6f4fb;
  --muted: #a49cb8;
  --muted-2: #746c8a;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(155, 107, 255, 0.07);
  --card-border: rgba(155, 107, 255, 0.18);
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --nav-w: 84px;
  --side-pad: clamp(24px, 6vw, 96px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --mobile-nav-h: 74px;
}

@media (max-width: 767px) {
  :root { --side-pad: clamp(16px, 4.5vw, 24px); }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
}

html { overflow-x: hidden; max-width: 100vw; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; margin: 0; color: var(--white); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
svg { display: block; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--purple); color: #12081f; padding: 10px 18px;
  border-radius: 8px; font-weight: 600; z-index: 999; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--purple-bright); outline-offset: 3px; border-radius: 4px; }

/* ===== Background canvases ===== */
#starfield, #cursor-trail {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -2; pointer-events: none;
}
#cursor-trail { z-index: -1; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(60vw 60vh at 85% 8%, rgba(140, 90, 255, 0.16), transparent 60%),
    radial-gradient(50vw 50vh at 10% 80%, rgba(120, 70, 220, 0.12), transparent 60%),
    var(--bg);
}

/* ===== Eyebrow / Spark ===== */
.spark { color: var(--purple-bright); font-style: normal; display: inline-block; }
.eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--purple-bright); font-weight: 600; margin-bottom: 18px;
}

/* ===== Logo ===== */
.logo { display: inline-flex; flex-direction: column; gap: 2px; }
.hero-logo { margin-bottom: clamp(40px, 6vh, 72px); }
.logo-word {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 1.7rem; display: inline-flex; align-items: center; gap: 2px;
  background: linear-gradient(90deg, var(--white) 0 48%, var(--purple-bright) 52% 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-star {
  width: 14px; height: 14px; fill: var(--purple-bright);
  filter: drop-shadow(0 0 6px var(--purple-glow));
  transform: translateY(-8px);
}
.logo-sub {
  font-size: 0.6rem; letter-spacing: 0.35em; color: var(--muted);
  padding-left: 2px; font-weight: 500;
}
.logo--mini .logo-word { font-size: 1.3rem; }

/* ===== Side Nav ===== */
.side-nav {
  position: fixed; left: 0; top: 0; height: 100vh; width: var(--nav-w);
  display: flex; align-items: center; justify-content: center; z-index: 70;
}
.nav-list {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 34px;
}
.nav-list::before {
  content: ""; position: absolute; left: 50%; top: -20px; bottom: -20px;
  width: 1px; transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--card-border) 12%, var(--card-border) 88%, transparent);
  z-index: -1;
}
.nav-item {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--card-border); background: rgba(11, 7, 20, 0.7);
  backdrop-filter: blur(6px);
  color: var(--muted); transition: color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.nav-item svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nav-item .nav-code { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; letter-spacing: -0.02em; }
.nav-item:hover, .nav-item:focus-visible {
  color: var(--white); border-color: var(--purple); transform: scale(1.06);
  box-shadow: 0 0 18px var(--purple-glow);
}
.nav-item.is-active {
  color: var(--white); border-color: var(--purple-bright);
  box-shadow: 0 0 8px var(--purple-glow), 0 0 26px var(--purple-glow), 0 0 46px rgba(155,107,255,0.35);
}
.nav-list li:nth-child(2) svg { fill: currentColor; stroke: none; }
.nav-item .nav-tip {
  position: absolute; left: 62px; top: 50%; transform: translate(-8px, -50%);
  white-space: nowrap; background: rgba(11, 7, 20, 0.92); border: 1px solid var(--card-border);
  padding: 6px 14px; border-radius: 8px; font-size: 0.8rem; font-weight: 500;
  color: var(--white); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.nav-item:hover .nav-tip, .nav-item:focus-visible .nav-tip {
  opacity: 1; transform: translate(0, -50%);
}

.mobile-toggle { display: none; }

/* ===== Layout ===== */
main { padding-left: calc(var(--nav-w) + var(--side-pad)); padding-right: var(--side-pad); }
.section { padding: 130px 0; position: relative; }
.section-head { display: flex; justify-content: space-between; gap: 60px; flex-wrap: wrap; margin-bottom: 64px; }
.section-head .section-title { max-width: 480px; }
.section-lede { max-width: 340px; color: var(--muted); font-size: 0.98rem; padding-top: 8px; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-title em { font-style: italic; color: var(--purple-bright); font-weight: 500; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
  color: #fff; box-shadow: 0 0 0 rgba(155,107,255,0);
}
.btn-primary:hover { box-shadow: 0 6px 30px var(--purple-glow); transform: translateY(-2px); }
.btn-ghost { border-color: var(--card-border); color: var(--white); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--purple); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; margin-top: 6px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px; padding-bottom: 60px;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: -10% -5%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42% 42% at 78% 22%, rgba(155, 107, 255, 0.13), transparent 66%),
    radial-gradient(38% 38% at 66% 58%, rgba(106, 63, 196, 0.09), transparent 72%),
    radial-gradient(40% 35% at 15% 85%, rgba(106, 63, 196, 0.14), transparent 70%);
  mix-blend-mode: screen;
}
#hero-cosmos {
  position: absolute;
  inset: -2% -3%;
  width: 106%;
  height: 104%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}
.hero-orbits {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none;
}
.hero-orbits .bokeh { opacity: 0.8; }
.hero-orbits .orbit {
  fill: none; stroke: var(--purple); stroke-width: 1.15; opacity: 0.22;
  filter: drop-shadow(0 0 5px rgba(155, 107, 255, 0.22));
}
.hero-orbits .orbit--2 { stroke-width: 0.9; opacity: 0.16; }
.hero-logo, .hero-row { position: relative; z-index: 3; }
.hero-row { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-copy { flex: 1 1 420px; max-width: 560px; }
.hero-title { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 22px; }
.hero-title em { font-style: italic; color: var(--purple-bright); font-weight: 500; }
.hero-text { color: var(--muted); font-size: 1.05rem; max-width: 460px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-status { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.88rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #7ee787; box-shadow: 0 0 10px #7ee787; }
.hero-date { color: var(--muted-2); }

.hero-graph { flex: 1 1 520px; max-width: 690px; position: relative; }
.hero-graph::before {
  content: "";
  position: absolute;
  inset: 4% -8% 4% -14%;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(155,107,255,.36), rgba(106,63,196,.13) 40%, transparent 72%);
  filter: blur(28px);
  opacity: 0.95;
}

.hero-workspace {
  isolation: isolate;
  min-height: 520px;
  display: grid;
  place-items: center;
  margin: 0;
  transform-style: preserve-3d;
  animation: workspace-float 7s ease-in-out infinite;
}
.hero-workspace__media {
  position: relative;
  z-index: 2;
  width: min(100%, 690px);
  aspect-ratio: 4 / 3;
  display: block;
  border-radius: 32px;
  object-fit: cover;
  background: transparent;
  mix-blend-mode: screen;
  opacity: .94;
  -webkit-mask-image: radial-gradient(ellipse 94% 92% at 50% 48%, #000 69%, rgba(0,0,0,.88) 79%, transparent 100%);
  mask-image: radial-gradient(ellipse 94% 92% at 50% 48%, #000 69%, rgba(0,0,0,.88) 79%, transparent 100%);
  filter: drop-shadow(0 34px 34px rgba(0,0,0,.55)) drop-shadow(0 0 22px rgba(155,107,255,.28));
  transform: perspective(1100px) rotateX(var(--workspace-rotate-x, 0deg)) rotateY(var(--workspace-rotate-y, 0deg));
  transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .45s ease, opacity .35s ease;
}
.hero-workspace:hover .hero-workspace__media {
  filter: drop-shadow(0 38px 40px rgba(0,0,0,.62)) drop-shadow(0 0 34px rgba(196,163,255,.42));
}
.hero-workspace__halo {
  position: absolute;
  z-index: 0;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,107,255,.38), rgba(106,63,196,.12) 45%, transparent 70%);
  filter: blur(30px);
  animation: workspace-halo 4.8s ease-in-out infinite alternate;
}
.hero-workspace__shine {
  position: absolute;
  z-index: 3;
  inset: 12% 8%;
  border-radius: 44%;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 34%, rgba(255,255,255,.1) 48%, transparent 62%);
  background-size: 240% 100%;
  mix-blend-mode: screen;
  animation: workspace-shine 7.5s ease-in-out infinite;
}
@keyframes workspace-float {
  0%,100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(0,-14px,0); }
}
@keyframes workspace-halo {
  from { opacity: .62; transform: scale(.94); }
  to { opacity: 1; transform: scale(1.08); }
}
@keyframes workspace-shine {
  0%,28% { background-position: 130% 0; opacity: 0; }
  42% { opacity: .7; }
  60%,100% { background-position: -90% 0; opacity: 0; }
}

/* ===== Journey ===== */
.journey-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px;
  background: var(--card-border);
}
.timeline {
  --tl-h: 0%;
}
.timeline::after {
  content: ""; position: absolute; left: 5px; top: 6px; width: 1px;
  background: linear-gradient(to bottom, var(--purple), var(--purple-bright));
  height: var(--tl-h); transform-origin: top; box-shadow: 0 0 8px var(--purple-glow);
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -28px; top: 4px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-soft); border: 1.5px solid var(--muted-2);
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.timeline-item.is-active .timeline-dot, .timeline-item.is-seen .timeline-dot {
  border-color: var(--purple-bright); background: var(--purple);
  box-shadow: 0 0 12px var(--purple-glow);
}
.timeline-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.timeline-item p { color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }
.link-arrow { color: var(--purple-bright); font-size: 0.85rem; font-weight: 600; display: inline-block; transition: transform .2s ease, color .2s ease; }
.link-arrow:hover { color: var(--white); transform: translateX(3px); }

.feature-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 20px;
  padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start;
}
.feature-kicker { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.feature-title { font-size: 1.7rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.feature-text { color: var(--muted); margin-bottom: 16px; font-size: 0.95rem; }
.feature-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.feature-list li { position: relative; padding-left: 18px; color: var(--muted); font-size: 0.9rem; }
.feature-list li::before { content: "◆"; position: absolute; left: 0; top: 0; color: var(--purple-bright); font-size: 0.6rem; top: 5px; }
.feature-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.feature-tags span {
  font-size: 0.75rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--card-border); color: var(--muted);
}

.feature-video-slot {
  position: relative;
  grid-column: 1 / -1;
  min-height: clamp(300px, 42vw, 520px);
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(196,163,255,.28);
  border-radius: 20px;
  background:
    linear-gradient(rgba(8,4,16,.46), rgba(8,4,16,.76)),
    radial-gradient(circle at 50% 45%, rgba(155,107,255,.2), transparent 45%),
    linear-gradient(145deg, #160b29, #07040e 72%);
  box-shadow: inset 0 0 55px rgba(155,107,255,.08), 0 24px 60px rgba(0,0,0,.35);
}
.feature-video-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .24;
  background-image: linear-gradient(rgba(196,163,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(196,163,255,.1) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, #000, transparent 75%);
}
.feature-video-slot__glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(196,163,255,.24);
  box-shadow: 0 0 80px rgba(155,107,255,.22), inset 0 0 50px rgba(155,107,255,.12);
  animation: video-slot-breathe 4s ease-in-out infinite alternate;
}
.feature-video-slot__content { position: relative; z-index: 2; text-align: center; }
.feature-video-slot__icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(196,163,255,.45);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.45rem;
  background: linear-gradient(145deg, rgba(155,107,255,.34), rgba(55,23,96,.3));
  box-shadow: 0 0 28px rgba(155,107,255,.28);
}
.feature-video-slot__content p { font-family: var(--font-serif); font-size: clamp(1.25rem,2.5vw,1.8rem); }
.feature-video-slot__content small { display: block; margin-top: 7px; color: var(--purple-bright); letter-spacing: .18em; text-transform: uppercase; }
@keyframes video-slot-breathe { from { opacity: .5; transform: scale(.9); } to { opacity: 1; transform: scale(1.08); } }

.feature-video-slot--ready {
  min-height: clamp(430px, 52vw, 620px);
  background:
    radial-gradient(circle at 50% 42%, rgba(155,107,255,.27), transparent 44%),
    linear-gradient(145deg, #150a28, #050309 74%);
}
.feature-video-slot--ready::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8,4,16,.78), transparent 28%, transparent 72%, rgba(8,4,16,.78));
  box-shadow: inset 0 0 60px rgba(0,0,0,.4);
}
.feature-video-slot--ready video {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: saturate(.9) contrast(1.04) drop-shadow(0 0 28px rgba(155,107,255,.18));
}
.feature-video-slot--ready .feature-video-slot__glow {
  z-index: 0;
  width: 64%;
  height: auto;
  aspect-ratio: 1;
  border-color: rgba(196,163,255,.16);
}

.feature-video-slot__title {
  grid-column: 1 / -1;
  margin: 34px 0 -6px;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--white);
  text-align: center;
}
.feature-video-slot__cta {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 22px;
}

.quote-card {
  margin: 70px 0 0; padding: clamp(28px, 4vw, 44px); border-radius: 20px;
  background: var(--card); border: 1px solid var(--card-border);
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.quote-main { font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; color: var(--purple-bright); max-width: 480px; }
.quote-side { color: var(--muted); font-size: 0.9rem; text-align: right; }

/* ===== About ===== */
.about { display: flex; gap: 60px; align-items: center; flex-wrap: wrap; }
.about-portrait { flex: 0 0 auto; }
.portrait-frame {
  width: 270px; height: 270px; padding: 9px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(196,163,255,0.34), rgba(155,107,255,0.08) 62%, var(--bg-soft));
  border: 1px solid rgba(196,163,255,0.42);
  box-shadow: 0 0 30px rgba(155,107,255,0.22), 0 0 76px rgba(140,90,255,0.18), inset 0 0 18px rgba(196,163,255,0.12);
  position: relative;
  animation: about-portrait-float 5s ease-in-out infinite;
}
.portrait-frame::before {
  content: ''; position: absolute; inset: -9px; border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(155,107,255,0.2); box-shadow: 0 0 22px rgba(155,107,255,0.16);
}
.portrait-frame::after {
  content: ''; position: absolute; inset: -22px; border-radius: inherit; pointer-events: none;
  border: 1px dashed rgba(196,163,255,.2);
  filter: drop-shadow(0 0 8px rgba(155,107,255,.35));
  animation: about-orbit-spin 18s linear infinite;
}
.portrait-photo {
  width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; object-position: 50% 23%;
  border: 1px solid rgba(255,255,255,0.2); filter: saturate(0.92) contrast(1.03);
  box-shadow: inset 0 0 24px rgba(10,4,18,0.34), 0 0 22px rgba(155,107,255,0.2);
}
.about-copy {
  flex: 1 1 420px;
  max-width: clamp(340px, 55%, 820px);
  margin-inline: auto;
  text-align: center !important;
  padding-inline: clamp(16px, 4vw, 96px);
  line-height: 1.6;
  min-width: 0;
}
.about-text { color: var(--muted); margin: 18px 0 34px; font-size: 1.06rem; line-height: 1.75; }

/* Force center alignment for the About block across all breakpoints */
.about { text-align: center !important; }
.about .section-title { text-align: center !important; margin-inline: auto; }

/* Ensure the eyebrow and facts also center within the block */
.about .eyebrow, .about-facts { margin-inline: auto; }

/* Increase lateral padding on small mobile screens to avoid edge clipping */
@media (max-width: 420px) {
  .about-copy { padding-inline: 28px; }
}

/* Fix: allow the section-lede inside the About block to use the same centered width
   as the main about copy (prevents it from staying at an overly narrow max-width) */
.about .section-lede {
  max-width: none;
  margin-inline: auto;
  text-align: center !important;
  font-size: 1.08rem;
  line-height: 1.75;
}
.about .section-title { font-size: clamp(2.7rem, 4.6vw, 4.25rem); line-height: 1.02; max-width: 780px; }
.about-facts { display: flex; justify-content: center; gap: clamp(34px, 5vw, 72px); flex-wrap: wrap; }
.about-facts > div { min-width: 130px; padding: 12px 8px; }
.about-facts strong { display: block; font-family: var(--font-serif); font-size: clamp(2rem, 3vw, 2.65rem); line-height: 1; color: var(--white); text-shadow: 0 0 22px rgba(155,107,255,.34); }
.about-facts span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.93rem; }
@keyframes about-portrait-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes about-orbit-spin { to { transform: rotate(360deg); } }

/* ===== Solutions (Soluções digitais) ===== */
.solution-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.solution-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--card); border: 1px solid var(--card-border); border-radius: 20px;
  padding: clamp(26px, 3vw, 32px) clamp(22px, 2.6vw, 28px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  transform: translateY(0) translateZ(0);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .4s ease, background .35s ease;
}
.solution-card__glow {
  position: absolute; inset: -40% -40% auto auto; width: 60%; aspect-ratio: 1; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(155,107,255,.28), transparent 70%);
  opacity: 0; transition: opacity .45s ease;
}
.solution-card:hover, .solution-card:focus-within {
  transform: translateY(-8px); border-color: var(--purple);
  box-shadow: 0 22px 50px rgba(90,40,180,.22), 0 0 40px rgba(155,107,255,.16);
  background: var(--card-hover);
}
.solution-card:hover .solution-card__glow, .solution-card:focus-within .solution-card__glow { opacity: 1; }
.solution-card__icon {
  width: 54px; height: 54px; margin-bottom: 14px; display: grid; place-items: center;
  border-radius: 16px; color: var(--white); font-size: 1.4rem;
  background: linear-gradient(150deg, rgba(155,107,255,.32), rgba(55,23,96,.28));
  border: 1px solid rgba(196,163,255,.34); box-shadow: 0 0 22px rgba(155,107,255,.2);
  transition: transform .35s ease, box-shadow .35s ease;
}
.solution-card:hover .solution-card__icon { transform: scale(1.08) rotate(-4deg); box-shadow: 0 0 30px rgba(155,107,255,.36); }
.solution-card__kicker { font-size: .68rem; letter-spacing: .18em; color: var(--muted-2); margin-bottom: 6px; }
.solution-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.solution-card__text { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-bottom: 14px; }
.solution-card__benefit {
  display: flex; align-items: flex-start; gap: 8px; color: var(--purple-bright);
  font-size: .82rem; line-height: 1.5; margin-bottom: 20px;
}
.solution-card__benefit i { flex: 0 0 auto; margin-top: 2px; font-size: 1rem; }
.solution-card__cta { margin-top: auto; }
@media (prefers-reduced-motion: reduce) {
  .solution-card { transition: border-color .25s ease, box-shadow .25s ease; }
  .solution-card:hover { transform: none; }
}

/* ===== Projects ===== */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.project-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; padding: 28px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--purple); background: var(--card-hover); }
.project-card--featured { background: radial-gradient(circle at 90% 10%, rgba(155,107,255,.14), transparent 34%), var(--card); }
.project-kicker { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple-bright); margin-bottom: 10px; }
.project-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.project-card p { color: var(--muted); font-size: 0.88rem; margin-bottom: 14px; }
.project-card .feature-tags { margin-bottom: 14px; }
.project-open { border: 0; padding: 0; background: transparent; cursor: pointer; font-family: inherit; }
.project-modal { width: min(1120px, calc(100% - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 0; border: 1px solid rgba(196,163,255,.28); border-radius: 22px; color: var(--white); background: #0b0613; box-shadow: 0 35px 100px rgba(0,0,0,.75), 0 0 70px rgba(155,107,255,.18); overflow: hidden; }
.project-modal::backdrop { background: rgba(3,1,7,.82); backdrop-filter: blur(10px); }
.project-modal__shell { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(320px,.75fr); min-height: 580px; }
.project-modal__visual { position: relative; min-height: 580px; overflow: auto; background: radial-gradient(circle at center, rgba(155,107,255,.16), transparent 55%), #050208; }
.project-modal__visual img { width: 100%; min-height: 100%; display: block; object-fit: contain; object-position: top center; opacity: 1; transition: opacity .35s ease; }
.project-modal__visual.is-loading img { opacity: 0; }
.project-loader { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; color: var(--purple-bright); font-size: 2rem; opacity: 0; pointer-events: none; }
.project-modal__visual.is-loading .project-loader { opacity: 1; }
.project-loader i { animation: project-loader-pulse 1.1s ease-in-out infinite alternate; filter: drop-shadow(0 0 14px var(--purple-glow)); }
@keyframes project-loader-pulse { from { opacity: .35; transform: scale(.75) rotate(0); } to { opacity: 1; transform: scale(1.12) rotate(90deg); } }
.project-modal__content { position: relative; padding: clamp(34px,5vw,58px); display: flex; flex-direction: column; justify-content: center; background: linear-gradient(155deg, rgba(30,16,48,.96), rgba(9,5,16,.98)); }
.project-modal__content h2 { font-size: clamp(2rem,4vw,3.4rem); margin-bottom: 16px; }
.project-modal__content > p:not(.project-kicker):not(.project-modal__note) { color: var(--muted); line-height: 1.75; margin-bottom: 26px; }
.project-modal__close { position: absolute; z-index: 4; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(196,163,255,.3); background: rgba(8,4,14,.78); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.project-modal__details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.project-modal__details div { padding: 15px; border-radius: 12px; border: 1px solid var(--card-border); background: rgba(155,107,255,.06); }
.project-modal__details span { display: block; color: var(--muted-2); font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 5px; }
.project-modal__details strong { font-size: .84rem; line-height: 1.4; }
.project-modal__note { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--card-border); color: var(--muted-2); font-size: .72rem; }
body.modal-open { overflow: hidden; }
@media (max-width: 760px) { .project-modal__shell { grid-template-columns: 1fr; } .project-modal__visual { min-height: 280px; max-height: 45vh; } .project-modal__content { padding: 30px 24px; } }

/* ===== Tech: luminous facades ===== */
.tech-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: clamp(14px, 2vw, 20px); perspective: 900px;
}
.tech-node {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: clamp(20px, 3vw, 26px) 10px; border-radius: 16px;
  border: 1px solid var(--card-border); background: linear-gradient(160deg, rgba(155,107,255,.05), rgba(255,255,255,.015));
  color: var(--muted); min-width: 0; overflow: hidden; isolation: isolate;
  opacity: 0; transform: translateY(18px) scale(.94);
  transition: color .3s ease, border-color .4s ease, box-shadow .5s ease, transform .35s cubic-bezier(.2,.8,.2,1), opacity .5s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.tech-node.is-lit {
  opacity: 1; transform: translateY(0) scale(1);
  border-color: rgba(196,163,255,.4);
  box-shadow: 0 0 0 1px rgba(155,107,255,.08) inset, 0 10px 28px rgba(90,40,180,.16), 0 0 24px rgba(155,107,255,.14);
  animation: tech-float var(--float-dur, 5.5s) ease-in-out calc(var(--i,0) * .35s) infinite alternate;
}
.tech-node__glow {
  position: absolute; inset: -30%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(155,107,255,.32), transparent 68%);
  opacity: 0; transition: opacity .5s ease;
}
.tech-node.is-lit .tech-node__glow { opacity: .55; }
.tech-node > i {
  font-size: clamp(1.5rem, 3vw, 1.8rem); color: var(--purple-bright);
  filter: drop-shadow(0 0 0 rgba(155,107,255,0));
  transition: filter .4s ease, transform .3s ease, color .3s ease;
}
.tech-node.is-lit > i { filter: drop-shadow(0 0 10px var(--purple-glow)); }
.tech-node > span:last-child {
  font-size: clamp(0.76rem, 2.4vw, 0.86rem); font-weight: 500; color: var(--muted);
  overflow-wrap: break-word; max-width: 100%; transition: color .3s ease;
}
.tech-node.is-lit > span:last-child { color: var(--white); }
.tech-node:hover, .tech-node:focus-visible {
  color: var(--white); border-color: var(--purple);
  box-shadow: 0 0 0 1px rgba(196,163,255,.16) inset, 0 16px 36px rgba(90,40,180,.24), 0 0 34px rgba(155,107,255,.28);
  transform: translateY(-5px) scale(1.035);
  animation-play-state: paused;
}
.tech-node:hover > i, .tech-node:focus-visible > i { transform: scale(1.12); filter: drop-shadow(0 0 14px var(--purple-bright)); }
.tech-node:hover .tech-node__glow, .tech-node:focus-visible .tech-node__glow { opacity: .85; }
@keyframes tech-float { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) {
  .tech-node { opacity: 1; transform: none; transition: color .25s ease, border-color .25s ease, box-shadow .25s ease; animation: none !important; }
  .tech-node.is-lit { animation: none !important; }
}

/* ===== Business solutions toggle (Landing page vs Sistema) ===== */
.biz-window {
  border: 1px solid rgba(196,163,255,.28); border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, rgba(26,14,44,.55), rgba(8,4,16,.7));
  box-shadow: 0 0 0 1px rgba(155,107,255,.06) inset, 0 30px 70px rgba(0,0,0,.4);
}
.biz-tabs { display: flex; gap: 2px; padding: 10px; border-bottom: 1px solid rgba(196,163,255,.14); background: rgba(255,255,255,.015); }
.biz-option {
  flex: 1 1 0; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px;
  border: 1px solid transparent; color: var(--muted); text-align: left;
  transition: background .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.biz-option > i { font-size: 1.5rem; color: var(--purple-bright); flex: 0 0 auto; }
.biz-option span { display: grid; line-height: 1.3; }
.biz-option strong { color: var(--white); font-family: var(--font-serif); font-size: .98rem; font-weight: 500; }
.biz-option small { color: var(--muted-2); font-size: .74rem; }
.biz-option:hover { background: rgba(155,107,255,.06); }
.biz-option.is-active {
  border-color: rgba(196,163,255,.5); background: linear-gradient(120deg, rgba(130,55,239,.32), rgba(155,107,255,.08));
  box-shadow: inset 0 0 22px rgba(155,107,255,.16), 0 0 20px rgba(155,107,255,.22);
}
.biz-panel { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, .9fr); gap: clamp(24px, 4vw, 48px); padding: clamp(28px, 4vw, 44px); align-items: center; }
.biz-panel.is-changing .biz-panel__copy, .biz-panel.is-changing .biz-visual { animation: biz-panel-in .5s cubic-bezier(.2,.8,.2,1) both; }
.biz-panel.is-changing .biz-visual { animation-delay: .06s; }
@keyframes biz-panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.biz-panel__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.biz-panel__icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; flex: 0 0 auto;
  color: var(--white); background: linear-gradient(150deg, rgba(155,107,255,.34), rgba(55,23,96,.3));
  border: 1px solid rgba(196,163,255,.4); box-shadow: 0 0 22px rgba(155,107,255,.24); font-size: 1.3rem;
}
.biz-panel h3 { font-size: 1.5rem; }
.biz-benefits { display: flex; flex-direction: column; gap: 12px; }
.biz-benefits li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.biz-benefits i { color: var(--purple-bright); font-size: 1.05rem; margin-top: 2px; flex: 0 0 auto; filter: drop-shadow(0 0 6px var(--purple-glow)); }
.biz-visual {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3;
  border: 1px solid rgba(196,163,255,.28); background: #0a0512;
  box-shadow: 0 20px 50px rgba(0,0,0,.4), 0 0 40px rgba(155,107,255,.1);
}
.biz-visual__glow {
  position: absolute; inset: -20%; z-index: -1; background: radial-gradient(circle at 50% 40%, rgba(155,107,255,.22), transparent 60%);
}
.biz-visual img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
  opacity: 1; transition: opacity .4s ease, transform .6s ease;
}
.biz-visual.is-loading img { opacity: 0; }
.biz-visual:hover img { transform: scale(1.03); }
.biz-visual__loader {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: var(--purple-bright);
  font-size: 1.8rem; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.biz-visual.is-loading .biz-visual__loader { opacity: 1; }
.biz-visual__loader i { animation: project-loader-pulse 1.1s ease-in-out infinite alternate; }
@media (max-width: 860px) {
  .biz-tabs { flex-direction: column; }
  .biz-panel { grid-template-columns: 1fr; }
  .biz-visual { order: -1; aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  .biz-panel.is-changing .biz-panel__copy, .biz-panel.is-changing .biz-visual { animation: none; }
  .biz-visual:hover img { transform: none; }
}

/* ===== Testimonials ===== */
.testimonials-demo-note {
  margin: 0 0 30px; color: var(--muted-2); font-size: .74rem; letter-spacing: .02em;
}
.testimonial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: center; gap: 24px; }
.testimonial-card {
  position: relative; min-width: 0; overflow: hidden;
  background: var(--card); border: 1px solid var(--card-border); border-radius: 18px;
  padding: 30px 28px; display: flex; align-items: center; gap: 20px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  transform: translateY(-4px); border-color: var(--purple); box-shadow: 0 16px 40px rgba(140,90,255,.16);
}
.testimonial-quote-mark {
  position: absolute; top: 2px; right: 20px; font-family: var(--font-serif); font-size: 3.6rem;
  color: rgba(155,107,255,.14); line-height: 1; pointer-events: none; user-select: none;
}
.testimonial-head { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 0 0 auto; align-self: center; }
.testimonial-avatar {
  position: relative; display: block; width: 68px; height: 68px; min-width: 68px; min-height: 68px;
  border-radius: 50%; overflow: hidden; flex: 0 0 68px;
  border: 1px solid rgba(196,163,255,.42);
  box-shadow: 0 0 0 4px rgba(155,107,255,.08), 0 0 18px rgba(155,107,255,.18);
}
.testimonial-avatar img { position: absolute; display: block; max-width: none; margin: 0; }
.testimonial-avatar--alicia img { width: 437px; height: 95px; left: -13px; top: -14px; }
.testimonial-avatar--pequenos img { width: 660px; height: 114px; left: -7px; top: -8px; }
.testimonial-name { font-family: var(--font-serif); font-size: 1.05rem; color: var(--white); white-space: nowrap; }
.testimonial-role { color: var(--muted-2); font-size: .78rem; margin-top: 2px; }
.testimonial-stars { position: relative; z-index: 1; display: flex; gap: 3px; color: var(--purple-bright); font-size: 1rem; }
.testimonial-stars span { letter-spacing: 3px; filter: drop-shadow(0 0 6px var(--purple-glow)); }
.testimonial-quote { position: relative; z-index: 1; color: var(--muted); font-size: .98rem; line-height: 1.65; margin: 0; }

@media (max-width: 1099px) {
  .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .testimonial-grid {
    display: flex; flex-direction: row; flex-wrap: nowrap; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain; padding-bottom: 6px;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .testimonial-grid::-webkit-scrollbar { display: none; }
  .testimonial-card, .testimonial-card:nth-child(3):last-child {
    flex: 0 0 min(84vw, 320px); width: min(84vw, 320px); min-width: 240px; max-width: none;
    margin-inline: 0; scroll-snap-align: start; flex-direction: column; align-items: flex-start;
  }
}

/* ===== CTA ===== */
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.cta .section-title { font-size: clamp(2.8rem, 5.2vw, 4.6rem); line-height: 1.03; max-width: 880px; }
.cta .section-lede { max-width: 680px; text-align: center; font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.7; }
.cta .hero-actions { gap: 18px; }
.cta .btn { padding: 18px 34px; font-size: 1.05rem; min-height: 58px; }
.cta-whatsapp { gap: 11px; box-shadow: 0 10px 36px rgba(155,107,255,.22), 0 0 28px rgba(155,107,255,.12); }
.cta-whatsapp i { font-size: 1.45rem; }
.cta-whatsapp:hover, .cta-whatsapp:focus-visible { box-shadow: 0 14px 42px rgba(155,107,255,.32), 0 0 34px rgba(155,107,255,.2); }

@media (max-width: 520px) {
  .cta .section-title { font-size: clamp(2.35rem, 12vw, 3.2rem); }
  .cta .section-lede { font-size: 1rem; }
  .cta .hero-actions { width: 100%; }
  .cta .btn { width: 100%; justify-content: center; }
}

/* ===== Contact ===== */
.contact { padding-block: clamp(120px, 14vw, 190px); }
.contact .section-head { align-items: flex-end; margin-bottom: clamp(64px, 8vw, 100px); }
.contact .eyebrow { font-size: .86rem; }
.contact .section-title { font-size: clamp(3rem, 5.3vw, 4.8rem); line-height: 1.02; max-width: 700px; }
.contact .section-lede { max-width: 470px; font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.7; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(70px, 10vw, 150px); align-items: center; }
.contact-panel { padding: clamp(32px, 4vw, 54px); border: 1px solid rgba(196,163,255,.18); border-radius: 22px; background: linear-gradient(145deg, rgba(42,22,67,.42), rgba(11,7,20,.22)); box-shadow: 0 22px 65px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.03); }
.contact-panel__title { font-size: clamp(1.65rem, 2.4vw, 2.25rem); line-height: 1.2; margin-bottom: 14px; }
.contact-panel__text { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.7; margin-bottom: 24px; }
.contact-panel .btn-whatsapp { min-height: 62px; padding: 18px 28px; font-size: 1.05rem; }
.contact-panel__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.82rem; color: var(--muted); }
.field input, .field textarea {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 10px;
  padding: 12px 16px; color: var(--white); font-family: var(--font-sans); font-size: 0.95rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(155,107,255,0.15); outline: none; }
.contact-form .btn { align-self: flex-start; margin-top: 6px; }
.form-note { color: var(--purple-bright); font-size: 0.85rem; min-height: 1.2em; }
.contact-side { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.contact-link {
  font-family: var(--font-serif); font-size: clamp(1.15rem, 2.1vw, 1.85rem); color: var(--white);
  border-bottom: 1px solid var(--card-border); padding-bottom: 4px;
  display: inline-block; max-width: 100%; overflow-wrap: break-word; word-break: normal;
}
.contact-link wbr { line-height: 0; }
.contact-link:hover { color: var(--purple-bright); border-color: var(--purple); }
.social-links { display: flex; flex-direction: column; gap: 15px; }
.contact .social-links .link-arrow { font-size: 1.05rem; }

@media (max-width: 1080px) {
  .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .contact-side { align-items: center; text-align: center; }
  .contact .social-links { align-items: center; }
}

/* ===== Floating WhatsApp contact ===== */
.whatsapp-float {
  position: fixed; right: calc(28px + env(safe-area-inset-right, 0px)); bottom: calc(28px + var(--safe-bottom)); z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, var(--purple-deep), var(--purple));
  border: 1px solid rgba(196,163,255,.34);
  box-shadow: 0 0 0 6px rgba(155,107,255,.06), 0 0 24px rgba(155,107,255,.32), 0 14px 36px rgba(0,0,0,.42);
  transition: transform .25s ease, box-shadow .25s ease;
}
.whatsapp-float i { font-size: 1.85rem; color: var(--white); filter: drop-shadow(0 0 8px var(--purple-glow)); }
.whatsapp-float span {
  position: absolute; right: calc(100% + 12px); width: max-content;
  padding: 7px 11px; border: 1px solid var(--card-border); border-radius: 8px;
  background: rgba(11,7,20,.94); color: var(--white); font-size: .76rem;
  opacity: 0; pointer-events: none; transform: translateX(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.whatsapp-float:hover, .whatsapp-float:focus-visible {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 0 0 7px rgba(155,107,255,.08), 0 0 30px rgba(155,107,255,.44), 0 18px 42px rgba(0,0,0,.48);
}
.whatsapp-float:hover span, .whatsapp-float:focus-visible span { opacity: 1; transform: translateX(0); }
.whatsapp-float::after {
  content: ""; position: absolute; inset: -7px; border: 1px solid rgba(155,107,255,.28);
  border-radius: 50%; animation: whatsapp-pulse 2.2s ease-out infinite;
}
@keyframes whatsapp-pulse { 0% { opacity: .7; transform: scale(.86); } 75%,100% { opacity: 0; transform: scale(1.25); } }

/* ===== WhatsApp primary button used in contact panel (purple variant) ===== */
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple)); color: var(--white);
  border: 1px solid rgba(196,163,255,.32); box-shadow: 0 8px 30px rgba(155,107,255,.14), 0 0 40px rgba(155,107,255,.08);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-whatsapp i { font-size: 1.25rem; color: var(--white); filter: drop-shadow(0 0 8px var(--purple-glow)); }
.btn-whatsapp:hover, .btn-whatsapp:focus-visible { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 48px rgba(155,107,255,.2), 0 0 48px rgba(155,107,255,.18); }
.btn-whatsapp { animation: whatsapp-pulse-small 3.6s ease-in-out infinite; }
@keyframes whatsapp-pulse-small { 0% { box-shadow: 0 8px 30px rgba(155,107,255,.12); } 50% { box-shadow: 0 10px 40px rgba(155,107,255,.16); } 100% { box-shadow: 0 8px 30px rgba(155,107,255,.12); } }

@media (max-width: 860px) {
  .btn-whatsapp { width: 100%; justify-content: center; font-size: 0.98rem; padding: 14px; }
}

/* ===== Footer ===== */
.site-footer {
  padding: 50px var(--side-pad) 50px calc(var(--nav-w) + var(--side-pad));
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  border-top: 1px solid var(--card-border);
}
.site-footer p { color: var(--muted-2); font-size: 0.82rem; }

/* ===== Reveal utility (JS toggles .is-visible) ===== */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity .8s ease, transform .8s ease; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .journey-grid { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 1fr; }
  .about { flex-direction: column; text-align: center; }
  .about-facts { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --nav-w: 0px; }
  .side-nav {
    top: auto; bottom: 0; left: 0; width: 100%; height: auto;
    padding: 14px env(safe-area-inset-right, 0px) calc(14px + var(--safe-bottom)) env(safe-area-inset-left, 0px);
    background: rgba(6, 3, 11, 0.85); backdrop-filter: blur(10px);
    border-top: 1px solid var(--card-border);
    transform: translateY(0); transition: transform .3s ease;
  }
  .nav-list { flex-direction: row; gap: 22px; }
  .nav-list::before { left: -20px; right: -20px; top: 50%; bottom: auto; width: auto; height: 1px; transform: none; background: linear-gradient(to right, transparent, var(--card-border) 15%, var(--card-border) 85%, transparent); }
  .nav-item .nav-tip { top: -46px; left: 50%; transform: translate(-50%, 6px); }
  .nav-item:hover .nav-tip, .nav-item:focus-visible .nav-tip { transform: translate(-50%, 0); }
  main, .site-footer { padding-left: var(--side-pad); }
  .site-footer { padding-bottom: calc(var(--mobile-nav-h) + var(--safe-bottom) + 26px); }
  .section { padding: 90px 0; }
  .hero { padding-top: 60px; min-height: auto; }
  .hero-graph { order: 0; max-width: none; width: 100%; }
  .whatsapp-float { right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(var(--mobile-nav-h) + var(--safe-bottom) + 14px); width: 54px; height: 54px; }
}

@media (max-width: 520px) {
  .section-head { flex-direction: column; }
  .quote-side { text-align: left; }
  .about-facts { gap: 26px; }
  .whatsapp-float { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(var(--mobile-nav-h) + var(--safe-bottom) + 12px); }
  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 360px) {
  .tech-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::after { animation: none; }
}

/* ===== Logo: separate "Ary" and "Lab" styling ===== */
.logo-ary { color: var(--white); -webkit-background-clip: unset; background-clip: unset; display:inline-block; }
.logo-lab {
  background: linear-gradient(90deg, var(--purple-bright), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 8px var(--purple-glow));
}
.logo-word { white-space: nowrap; }
.logo-star { vertical-align: middle; margin: 0 6px; }

/* ===== Accessibility / touch targets ===== */
.btn, .btn-whatsapp, .whatsapp-float { min-width: 44px; min-height: 44px; }
.btn { padding: clamp(10px, 1.6vw, 14px) clamp(16px, 2.6vw, 26px); }

/* Desktop layout override: center the text column while keeping portrait visible on the left (option C) */
@media (min-width: 1100px) {
  .about {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(58px, 7vw, 120px);
  }
  .about-portrait { grid-column: 1; justify-self: start; }
  .about-copy { grid-column: 2; justify-self: center; width: 100%; max-width: 820px; padding-inline: 0; }
  .portrait-frame { width: clamp(285px, 22vw, 340px); height: clamp(285px, 22vw, 340px); }
}

/* Prevent excessive word breaks: no mid-word hyphenation anywhere, and
   headings never split a word across lines. Balanced wrapping (where the
   browser supports it) keeps titles from stranding a single short word. */
* { word-break: normal; hyphens: none; overflow-wrap: normal; }
h1, h2, h3, .section-title, .hero-title, .feature-title, .project-card h3, .quote-main, .quote-side {
  word-break: keep-all;
  text-wrap: balance;
}

/* Ensure no horizontal overflow due to long content */
html { overflow-x: hidden; }
body { overflow-x: clip; }

@media (max-width: 760px) {
  .hero-workspace { min-height: 340px; }
  .hero-workspace__media { width: 100%; border-radius: 22px; }
  .hero-workspace__shine { inset: 8% 2%; }
  .feature-video-slot { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-workspace,
  .hero-workspace__halo,
  .hero-workspace__shine,
  .feature-video-slot__glow { animation: none !important; }
  .hero-workspace__media { transform: none !important; }
  .portrait-frame,
  .portrait-frame::after { animation: none !important; }
}

/* Global responsive guardrails */
video { max-width: 100%; height: auto; }
main, .section, .site-footer { max-width: 100vw; }
.hero-copy, .hero-graph, .about-copy, .contact-side, .contact-panel,
.section-head > div, .section-head .section-lede,
.feature-card > *, .journey-grid > * { min-width: 0; }

/* ===== Final responsive refinement ===== */
@media (min-width: 1280px) {
  .hero-row { flex-wrap: nowrap; gap: clamp(48px, 5vw, 86px); }
  .hero-copy { flex: 0 1 560px; }
  .hero-graph { flex: 1 1 620px; }
  .section-head { align-items: flex-end; }
}

@media (min-width: 861px) and (max-width: 1099px) {
  :root { --side-pad: clamp(34px, 5vw, 58px); }
  .section { padding-block: 105px; }
  .hero { min-height: auto; padding-top: 84px; }
  .hero-row { display: grid; grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 680px; }
  .hero-graph { width: min(100%, 780px); max-width: 780px; margin-inline: auto; }
  .hero-workspace { min-height: 480px; }
  .journey-grid { gap: 44px; }
  .about { gap: 44px; }
  .portrait-frame { width: 280px; height: 280px; }
  .contact .section-head { align-items: flex-start; }
}

@media (max-width: 860px) {
  body { padding-bottom: calc(var(--mobile-nav-h) + var(--safe-bottom)); }
  main { padding-inline: var(--side-pad); }
  .section { padding-block: clamp(76px, 13vw, 96px); }
  .section-head { gap: 22px; margin-bottom: 42px; }
  .section-head .section-title,
  .section-head .section-lede { max-width: 100%; }
  .section-lede { padding-top: 0; font-size: 1rem; line-height: 1.7; }
  .hero { padding-top: 42px; padding-bottom: 72px; }
  .hero-logo { margin-bottom: 38px; }
  .hero-row { display: grid; grid-template-columns: 1fr; gap: 42px; }
  .hero-copy { max-width: 680px; }
  .hero-title { font-size: clamp(2.45rem, 9vw, 4rem); }
  .hero-text { font-size: 1rem; line-height: 1.75; }
  .hero-graph { width: min(100%, 680px); margin-inline: auto; }
  .hero-workspace { min-height: 0; aspect-ratio: 16 / 11; }
  .hero-workspace__media { height: 100%; object-fit: contain; }
  .feature-card { padding: clamp(24px, 6vw, 38px); gap: 26px; }
  .feature-video-slot { min-height: 0; aspect-ratio: 16 / 10; }
  .feature-video-slot video { width: 100%; height: 100%; object-fit: contain; }
  .quote-card { grid-template-columns: 1fr; gap: 24px; }
  .quote-side { text-align: left; }
  .about { display: flex; flex-direction: column; gap: 48px; }
  .about-portrait { align-self: center; }
  .about-copy { max-width: 720px; padding-inline: 0; }
  .about .section-title { font-size: clamp(2.55rem, 9vw, 3.8rem); }
  .about-text, .about .section-lede { font-size: 1rem; }
  .about-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); width: 100%; gap: 10px; }
  .about-facts > div { min-width: 0; padding-inline: 4px; }
  .about-facts strong { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .about-facts span { font-size: .82rem; line-height: 1.35; }
  .project-modal { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .testimonial-grid { display: grid; grid-template-columns: 1fr; overflow: visible; gap: 18px; }
  .testimonial-card,
  .testimonial-card:nth-child(3):last-child { width: 100%; min-width: 0; max-width: 620px; margin-inline: auto; flex: none; flex-direction: row; align-items: center; }
  .cta { gap: 22px; }
  .cta .section-title { font-size: clamp(2.6rem, 9vw, 4rem); }
  .contact { padding-block: clamp(86px, 14vw, 120px); }
  .contact .section-head { align-items: flex-start; margin-bottom: 48px; }
  .contact .section-title { font-size: clamp(2.7rem, 9vw, 4rem); }
  .contact-grid { gap: 34px; }
  .contact-panel { width: 100%; }
  .contact-side { width: 100%; }
  .contact-link { font-size: clamp(1.3rem, 4.5vw, 1.8rem); }
  .nav-list { width: 100%; justify-content: center; gap: clamp(12px, 5vw, 28px); }
  .nav-tip { display: none; }
}

@media (max-width: 520px) {
  .eyebrow { font-size: .7rem; letter-spacing: .16em; }
  .logo-word { font-size: 1.5rem; }
  .hero-title { font-size: clamp(2.35rem, 12vw, 3.25rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-status { align-items: flex-start; flex-wrap: wrap; line-height: 1.45; }
  .hero-workspace { aspect-ratio: 4 / 3; }
  .feature-title { font-size: clamp(1.5rem, 8vw, 2rem); }
  .feature-video-slot { aspect-ratio: 4 / 3; }
  .portrait-frame { width: min(72vw, 260px); height: min(72vw, 260px); }
  .about-facts { gap: 5px; }
  .about-facts span { font-size: .75rem; }
  .project-grid, .solution-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .testimonial-card,
  .testimonial-card:nth-child(3):last-child { flex-direction: column; align-items: flex-start; padding: 24px; }
  .testimonial-head { align-self: flex-start; }
  .cta .section-title { font-size: clamp(2.35rem, 12vw, 3.15rem); }
  .contact-panel { padding: 26px 20px; }
  .contact-panel__actions { flex-direction: column; align-items: stretch; }
  .contact-panel .btn-whatsapp { width: 100%; padding-inline: 14px; font-size: .95rem; }
  .contact-panel__actions .btn-ghost { width: 100%; justify-content: center; }
  .contact-link { text-align: center; font-size: clamp(1.05rem, 5.2vw, 1.4rem); }
  .site-footer { justify-content: center; text-align: center; }
  .nav-item { width: 44px; height: 44px; }
}

@media (max-width: 370px) {
  :root { --side-pad: 14px; }
  .about-facts { grid-template-columns: 1fr; gap: 2px; }
  .about-facts > div { padding-block: 8px; }
  .tech-grid { grid-template-columns: 1fr; }
  .nav-list { gap: 8px; }
  .nav-item { width: 42px; height: 42px; }
}
