:root {
  /* Clean Minimalist Light Mode */
  --background: #fafafa; 
  --foreground: #18181b; 
  --card: #ffffff; 
  --card-foreground: #18181b;
  --popover: #ffffff;
  --popover-foreground: #18181b;
  
  /* Brand color: #afa2ff */
  --primary: #afa2ff;
  --primary-foreground: #09090b; /* Dark text on light primary for contrast */
  --primary-hover: #9c8eeb;
  
  --secondary: #f4f4f5; 
  --secondary-foreground: #18181b;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --accent: #afa2ff;
  --accent-foreground: #09090b;
  --border: #e4e4e7; 
  --input: #e4e4e7;
  --ring: #afa2ff;
  --radius: 0.5rem;
}

@font-face {
  font-family: 'Helvetica';
  src: url('/fonts/Helvetica.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url('/fonts/helvetica-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url('/fonts/Helvetica-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Helvetica', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background-color: rgba(175, 162, 255, 0.3);
  color: var(--foreground);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary), #c4b5fd);
  border-radius: 99px;
  transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #9c8eeb, var(--primary));
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

/* Scroll progress bar (top of page) */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, var(--primary), #c4b5fd);
  z-index: 100;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--foreground);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1152px; /* max-w-6xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: color 0.25s ease, background 0.4s ease-out, backdrop-filter 0.4s ease-out, padding 0.3s ease-out, box-shadow 0.3s ease-out, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 1.5rem 0;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.navbar.on-dark {
  background: transparent;
  color: #fff;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: none;
  padding-left: 3rem;
  padding-right: 3rem;
}

.nav-logo img {
  height: 5rem;
  width: auto;
  transition: opacity 0.2s, filter 0.25s ease;
}

.nav-logo-symbol {
  display: none;
}

.nav-logo:hover img {
  opacity: 0.8;
}

.navbar.on-dark .nav-logo img {
  filter: brightness(0) invert(1);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

.nav-links button, .nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.nav-links a > svg,
.nav-actions a > svg {
  display: none;
  width: 1.18rem;
  height: 1.18rem;
  flex-shrink: 0;
}

.nav-links button:hover, .nav-links a:hover {
  color: var(--foreground);
}

.navbar.on-dark .nav-links button,
.navbar.on-dark .nav-links a,
.navbar.on-dark .nav-actions .contact-link,
.navbar.on-dark .mobile-menu-btn {
  color: rgba(255, 255, 255, 0.82);
}

.navbar.on-dark .nav-links button:hover,
.navbar.on-dark .nav-links a:hover,
.navbar.on-dark .nav-actions .contact-link:hover {
  color: #fff;
}

.navbar.compressing {
  pointer-events: none;
}

.navbar.compressing .nav-logo {
  animation: topbarLogoPull 0.38s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.navbar.compressing .nav-links {
  animation: topbarLinksPull 0.38s cubic-bezier(0.4, 0, 0.2, 1) 0.03s both;
}

.navbar.compressing .nav-actions {
  animation: topbarActionsPull 0.38s cubic-bezier(0.4, 0, 0.2, 1) 0.06s both;
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.nav-actions .contact-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  transition: color 0.2s;
}
.nav-actions .contact-link:hover {
  color: var(--primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-foreground);
  background-color: var(--primary);
  border-radius: var(--radius);
  padding: 0.625rem 1.25rem;
  transition: opacity 0.2s;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.625rem 1.25rem;
  transition: background-color 0.2s;
}

.btn-outline:hover {
  background-color: var(--muted);
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  color: var(--foreground);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(250, 250, 250, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.5rem;
  color: var(--foreground);
}

.mobile-nav-link {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  width: 16rem;
}
.mobile-actions a, .mobile-actions button {
  padding: 1rem 1.5rem;
  text-align: center;
  width: 100%;
}

/* --- Advanced Animations & Micro-interactions --- */

.fade-in-up {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }

.btn-primary, .btn-outline {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 20px -10px var(--primary);
}

.btn-outline:hover {
  transform: translateY(-2px) scale(1.02);
  background-color: var(--secondary);
}

@media (min-width: 768px) {
  .nav-links, .nav-actions {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }

  .navbar.compact {
    top: 1.05rem;
    right: auto;
    bottom: auto;
    width: auto;
    padding: 0;
    background: transparent;
    transform: none;
    pointer-events: none;
  }

  .navbar.compact .nav-container {
    width: auto;
    max-width: none;
    margin-left: 1.05rem;
    padding: 0.42rem;
    flex-direction: column;
    align-items: center;
    gap: 0.28rem;
    border: 1px solid rgba(24, 24, 27, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow:
      0 14px 34px rgba(24, 24, 27, 0.08),
      0 2px 8px rgba(24, 24, 27, 0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    pointer-events: auto;
    transform-origin: top left;
    animation: compactMenuIn 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .navbar.compact .nav-logo {
    width: 2.55rem;
    height: 2.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    animation: compactItemIn 0.54s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .navbar.compact .nav-logo-full {
    display: none;
  }

  .navbar.compact .nav-logo-symbol {
    display: block;
    width: 1.48rem;
    height: 1.48rem;
    object-fit: contain;
  }

  .navbar.compact .nav-links,
  .navbar.compact .nav-actions {
    flex-direction: column;
    gap: 0.24rem;
    margin-left: 0;
  }

  .navbar.compact .nav-links a,
  .navbar.compact .nav-actions a {
    position: relative;
    width: 2.55rem;
    height: 2.55rem;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    color: #18181b;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    animation: compactItemIn 0.56s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .navbar.compact .nav-links a:nth-child(1) { animation-delay: 0.04s; }
  .navbar.compact .nav-links a:nth-child(2) { animation-delay: 0.08s; }
  .navbar.compact .nav-actions a:nth-child(1) { animation-delay: 0.12s; }
  .navbar.compact .nav-actions a:nth-child(2) { animation-delay: 0.16s; }

  .navbar.compact .nav-actions a:nth-child(2)::before {
    content: "";
    position: absolute;
    inset: 0.3rem;
    border-radius: 50%;
    background: rgba(109, 40, 217, 0.14);
    box-shadow: 0 0 0 0 rgba(109, 40, 217, 0.3);
    opacity: 0;
    transform: scale(0.7);
    pointer-events: none;
    animation: compactCtaPulse 2.6s ease-out 0.8s infinite;
  }

  .navbar.compact .nav-actions a:nth-child(2) > svg {
    animation: compactCtaIconNudge 2.6s ease-in-out 0.8s infinite;
  }

  .navbar.compact .nav-links a:hover,
  .navbar.compact .nav-actions a:hover {
    background: rgba(109, 40, 217, 0.1);
    color: var(--primary);
    transform: translateX(2px);
    opacity: 1;
  }

  .navbar.compact .nav-links a > svg,
  .navbar.compact .nav-actions a > svg {
    display: block;
    width: 1.04rem;
    height: 1.04rem;
  }

  .navbar.compact .nav-actions a[data-chat-scroll-open] > svg {
    width: 1.18rem;
    height: 1.18rem;
    stroke-width: 2.1;
  }

  .navbar.compact .nav-links a span,
  .navbar.compact .nav-actions a span {
    position: absolute;
    left: calc(100% + 0.65rem);
    top: 50%;
    width: max-content;
    max-width: 12rem;
    padding: 0.42rem 0.65rem;
    border-radius: 0.45rem;
    background: #18181b;
    color: #fff;
    box-shadow: 0 12px 30px rgba(24, 24, 27, 0.18);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    transform: translate(-0.35rem, -50%);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .navbar.compact .nav-links a:hover span,
  .navbar.compact .nav-actions a:hover span {
    opacity: 1;
    transform: translate(0, -50%);
  }

  .navbar.compact.on-dark .nav-container {
    border-color: rgba(255, 255, 255, 0.12);
    background:
      radial-gradient(circle at 50% 0%, rgba(109, 40, 217, 0.32), transparent 70%),
      rgba(6, 9, 19, 0.56);
    box-shadow:
      0 16px 38px rgba(0, 0, 0, 0.22),
      0 2px 10px rgba(0, 0, 0, 0.16);
  }

  .navbar.compact.on-dark .nav-links a,
  .navbar.compact.on-dark .nav-actions a,
  .navbar.compact.on-dark .mobile-menu-btn {
    color: rgba(255, 255, 255, 0.82);
  }

  .navbar.compact.on-dark .nav-logo-symbol {
    filter: brightness(0) invert(1);
  }

  .navbar.compact.on-dark .nav-links a:hover,
  .navbar.compact.on-dark .nav-actions a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  @keyframes compactMenuIn {
    0% {
      opacity: 0;
      transform: translate(0.85rem, -0.45rem) scale(0.82);
      filter: blur(5px);
    }
    62% {
      opacity: 1;
      transform: translate(0, 0) scale(1.015);
      filter: blur(0);
    }
    100% {
      opacity: 1;
      transform: translate(0, 0) scale(1);
      filter: blur(0);
    }
  }

  @keyframes compactItemIn {
    0% {
      opacity: 0;
      transform: translate(4.8rem, -0.65rem) scale(0.48);
      filter: blur(4px);
    }
    70% {
      opacity: 1;
      transform: translate(0, 0) scale(1.035);
      filter: blur(0);
    }
    100% {
      opacity: 1;
      transform: translate(0, 0) scale(1);
      filter: blur(0);
    }
  }

  @keyframes compactCtaPulse {
    0% {
      opacity: 0;
      transform: scale(0.7);
      box-shadow: 0 0 0 0 rgba(109, 40, 217, 0.28);
    }
    12% {
      opacity: 1;
    }
    42% {
      opacity: 0;
      transform: scale(1.55);
      box-shadow: 0 0 0 0.65rem rgba(109, 40, 217, 0);
    }
    100% {
      opacity: 0;
      transform: scale(1.55);
      box-shadow: 0 0 0 0 rgba(109, 40, 217, 0);
    }
  }

  @keyframes compactCtaIconNudge {
    0%, 100% {
      transform: scale(1) rotate(0deg);
    }
    12% {
      transform: scale(1.12) rotate(-7deg);
    }
    24% {
      transform: scale(1.04) rotate(6deg);
    }
    36% {
      transform: scale(1) rotate(0deg);
    }
  }

  @keyframes topbarLogoPull {
    0% {
      opacity: 1;
      transform: translate(0, 0) scale(1);
      filter: blur(0);
    }
    100% {
      opacity: 0.78;
      transform: translate(-0.25rem, -0.2rem) scale(0.58);
      filter: blur(1px);
    }
  }

  @keyframes topbarLinksPull {
    0% {
      opacity: 1;
      transform: translate(0, 0) scale(1);
      filter: blur(0);
    }
    100% {
      opacity: 0;
      transform: translate(-9rem, -0.6rem) scale(0.42);
      filter: blur(5px);
    }
  }

  @keyframes topbarActionsPull {
    0% {
      opacity: 1;
      transform: translate(0, 0) scale(1);
      filter: blur(0);
    }
    100% {
      opacity: 0;
      transform: translate(-28rem, -0.9rem) scale(0.35);
      filter: blur(6px);
    }
  }
}

/* ============================================================
   Scroll Hero — Apple-style scroll animation
   ============================================================ */

.scroll-hero-section {
  height: 400vh;
  position: relative;
}

.scroll-hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #f3f0ff; /* fallback while first frame loads */
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  will-change: contents;
}

/* Text overlay — left column (matches empty space in video) */
.scroll-hero-text {
  position: absolute;
  left: 5%;
  top: 52%;
  transform: translateY(-50%);
  width: 44%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* All text children start invisible; JS drives opacity + translateY */
.scroll-text-el {
  opacity: 0;
  transform: translateY(26px);
  will-change: opacity, transform;
}

.scroll-hero-text h1 {
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  margin: 0;
  color: var(--foreground);
}

.sh-static-line {
  display: block;
  max-width: none;
  font-size: clamp(2.15rem, 3.05vw, 3.55rem);
  line-height: 1.05;
  white-space: nowrap;
}

/* ─── Hero H1 entrance animation ─────────────────────────── */
@keyframes heroTextIn {
  0%   { opacity: 0; filter: blur(14px); transform: translateY(28px); }
  60%  { filter: blur(2px); }
  100% { opacity: 1; filter: blur(0px); transform: translateY(0px); }
}

.sh-h1--entering {
  animation: heroTextIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ─── Hero Phrase Cycling ─────────────────────────────────── */
.sh-phrases-wrapper {
  display: grid;
  width: min(43vw, 48rem);
  min-height: 1.28em;
  margin-top: 0.04em;
  overflow: visible;
  padding-bottom: 0.28em;
}

.sh-phrase {
  grid-area: 1 / 1;          /* all phrases in same cell — grid sizes to widest */
  white-space: nowrap;
  font-size: clamp(2.7rem, 3.75vw, 4.15rem);
  line-height: 1.12;
  background: linear-gradient(120deg, #5b21b6 0%, #afa2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.46s ease, transform 0.46s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.sh-phrase--active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sh-static-line.sh-typing-cursor::after,
.sh-phrase--typing::after {
  content: "";
  display: inline-block;
  width: 0.045em;
  height: 0.86em;
  margin-left: 0.06em;
  vertical-align: -0.06em;
  animation: shCursorBlink 0.85s steps(1) infinite;
}

.sh-static-line.sh-typing-cursor::after {
  background: var(--foreground);
}

.sh-phrase--typing::after {
  background: #6d28d9;
}

@keyframes shCursorBlink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

.sh-phrase--exit {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
/* ──────────────────────────────────────────────────────────── */

.scroll-hero-text p {
  font-size: clamp(0.9rem, 1.15vw, 1.1rem);
  color: var(--muted-foreground);
  line-height: 1.65;
  max-width: 34rem;
  margin: 0;
}

/* CTA buttons inside scroll hero — always horizontal, left-aligned */
.scroll-hero-text .hero-buttons {
  padding-top: 0;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

/* Hero tags (checkmarks row) */
.hero-tags {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.hero-tags span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hero-tags svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 20;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.scroll-hint-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.scroll-hint-line {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--primary), transparent);
  transform-origin: top;
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); opacity: 0; }
  25%  { opacity: 1; }
  75%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Mobile: text sits in the open area beside the render */
@media (max-width: 768px) {
  .scroll-hero-section {
    height: 100svh;
  }

  .scroll-hero-text {
    left: 8vw;
    right: auto;
    width: 56vw;
    top: 42vh;
    bottom: auto;
    transform: none;
    padding: 0;
    text-align: left;
    align-items: flex-start;
    background: none;
  }

  .scroll-hero-text h1 {
    text-shadow: 0 2px 24px rgba(255,255,255,0.6);
  }

  .sh-static-line {
    max-width: none;
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    white-space: normal;
  }

  .sh-phrases-wrapper {
    width: 100%;
    min-height: 2.95em;
    padding-bottom: 0.36em;
  }

  .sh-phrase {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
    white-space: normal;
  }
}

/* ============================================================
   Legacy Hero (kept for reference / other pages)
   ============================================================ */

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 3rem;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(175, 162, 255, 0.05), var(--background));
  z-index: 0;
}

.orb-1, .orb-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
  top: 10%;
  left: 15%;
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  background: rgba(175, 162, 255, 0.2);
}

.orb-2 {
  bottom: 10%;
  right: 15%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: rgba(162, 213, 255, 0.2);
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, 50px) scale(1.1); }
  100% { transform: translate(-50px, 150px) scale(0.9); }
}

.watermark {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 768px) {
  .watermark {
    right: 5%;
    width: 800px;
    height: 800px;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.badge-line {
  width: 2rem;
  height: 2px;
  background-color: var(--primary);
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 768px) { .hero h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 4.5rem; } }

.text-primary {
  color: var(--primary);
}

.hero p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  font-weight: 300;
  max-width: 42rem;
  margin: 0 auto 2rem;
}

@media (min-width: 768px) { .hero p { font-size: 1.25rem; } }

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 1.5rem;
}

.hero-buttons .btn-primary, .hero-buttons .btn-outline {
  width: 100%;
  padding: 1rem 2rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
  .hero-buttons .btn-primary, .hero-buttons .btn-outline {
    width: auto;
  }
}

/* Sections General */
.section {
  padding: 6rem 0;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding: 8rem 0;
  }
}

.text-center {
  text-align: center;
}

.glass-text {
  background:
    linear-gradient(
      120deg,
      #5b21b6 0%,
      #afa2ff 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  color: #6d28d9;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-desc {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

/* Solutions / Cards */
.grid-3 {
  display: grid;
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(175, 162, 255, 0.15),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.card:hover::before {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(175, 162, 255, 0.5);
  box-shadow: 0 10px 15px -3px rgba(175, 162, 255, 0.1), 0 4px 6px -2px rgba(175, 162, 255, 0.05);
}

.card-icon-wrapper {
  width: 5rem;
  height: 5rem;
  border-radius: 0.875rem;
  background: rgba(175, 162, 255, 0.1);
  border: 1.5px solid rgba(175, 162, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: background 0.3s, border-color 0.3s;
}

.card:hover .card-icon-wrapper {
  background: rgba(175, 162, 255, 0.18);
  border-color: rgba(175, 162, 255, 0.4);
}

.card-icon-wrapper svg,
.card-icon-wrapper i {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card-desc {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Cases Section */
.bg-secondary-layer {
  background-color: rgba(244, 244, 245, 0.5);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.case-tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
  background-color: rgba(175, 162, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

/* Contact / Form */
.grid-2 {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-list {
  list-style: none;
  margin-top: 2rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: rgba(175, 162, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.375rem;
}

.form-input {
  width: 100%;
  background-color: var(--background);
  border: 1px solid var(--input);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: all 0.2s;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

textarea.form-input {
  resize: none;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

.footer-top {
  display: grid;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
}

.footer-logo {
  height: 3.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .footer-logo { height: 3.75rem; }
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a:hover {
  color: var(--foreground);
}

/* Animation Classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* SVG Icons Utility */
svg {
  display: inline-block;
  vertical-align: middle;
}

/* ============================================================
   Pilares — símbolo watermark decorativo
   ============================================================ */
.pilares-section {
  position: relative;
  overflow: hidden;
}

.section-symbol {
  position: absolute;
  top: -6%;
  right: -4%;
  width: 340px;
  height: 340px;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* ============================================================
   Cases — Bento Grid
   ============================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .cases-grid { grid-template-columns: 1fr; }
  .case-card-featured { grid-column: span 1 !important; }
}

.case-card-featured {
  grid-column: span 2;
}

/* ============================================================
   Pilares — cards com numeração e benefício
   ============================================================ */

/* Número ordinal decorativo */
.pilares-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pilares-number {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--primary);
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: opacity 0.3s;
}

.pilares-card:hover .pilares-number {
  opacity: 0.28;
}

/* Ícone com glow sutil */
.pilares-card .card-icon-wrapper {
  box-shadow: 0 0 24px rgba(175,162,255,0.2);
}

.pilares-card:hover .card-icon-wrapper {
  box-shadow: 0 0 36px rgba(175,162,255,0.35);
}

/* Linha de benefício */
.pilares-benefit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.pilares-benefit::before {
  content: '';
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: var(--primary);
  flex-shrink: 0;
}

/* ============================================================
   Projetos — watermark de fundo
   ============================================================ */
.projetos-section {
  position: relative;
  overflow: hidden;
  background: var(--background);
}

.projetos-watermark {
  position: absolute;
  right: 30%;
  bottom: -25%;
  width: 1560px;
  height: 1560px;
  opacity: 0.20;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

@media (max-width: 768px) {
  .projetos-watermark { width: 840px; height: 840px; right: -25%; bottom: -8%; }
}

/* ============================================================
   Type chips — mais refinados
   ============================================================ */
.case-type {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.32rem 0.75rem 0.32rem 0.6rem;
  border-radius: 99px;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

/* Dot decorativo antes do texto */
.case-type::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  opacity: 0.9;
}

.type-ai      { background: rgba(139,118,245,0.1);  color: #7c63f0; border-color: rgba(139,118,245,0.22); }
.type-auto    { background: rgba(5,150,105,0.08);   color: #047857; border-color: rgba(5,150,105,0.2);   }
.type-integ   { background: rgba(217,119,6,0.09);   color: #b45309; border-color: rgba(217,119,6,0.22);  }
.type-dash    { background: rgba(37,99,235,0.08);   color: #1d4ed8; border-color: rgba(37,99,235,0.2);   }
.type-sistema { background: rgba(190,24,93,0.08);   color: #9d174d; border-color: rgba(190,24,93,0.2);   }

/* Metric number on featured cards */
/*.case-metric {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0.5rem 0 0.75rem;
}*/

.case-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.case-card-featured h3 {
  font-size: 1.5rem;
}

/* ============================================================
   Dark Section — Desafios
   ============================================================ */
.section-dark {
  /* mantido para retro-compatibilidade, mas desafios não usa mais */
  background: #1c1245 !important;
  border-top: none !important;
  border-bottom: none !important;
  position: relative;
  overflow: hidden;
}

.section-dark .section-title { color: #f0eeff; }
.section-dark .section-desc  { color: rgba(224,218,255,0.72); }
.section-dark .card           { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.09); backdrop-filter: blur(8px); }
.section-dark .card:hover     { border-color: rgba(175,162,255,0.35); background: rgba(255,255,255,0.08); }
.section-dark .card h3        { color: #fff; }
.section-dark .card li, .section-dark .card li span:last-child { color: rgba(255,255,255,0.78); }

/* render2 — 200% da seção, mix-blend-mode: screen elimina o fundo preto */
.desafios-render-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: auto;
  opacity: 0.28;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}

.desafios-section {
  min-height: 85vh;
  padding: 6rem 0;
}

.desafios-container {
  position: relative;
  z-index: 10;
}

/* Header da seção */
.desafios-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* Grid dos dois cards */
.desafios-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .desafios-cards { grid-template-columns: 1fr; }
  .desafios-render-bg { width: 280%; opacity: 0.05; }
}

/* Card base */
.desafios-card {
  border-radius: 1.25rem;
  padding: 2.5rem;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 32px rgba(0,0,0,0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
  position: relative;
  z-index: 1;
}

.desafios-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.15);
}

/* Card problema */
.desafios-card-problem {
  border-top: 3px solid #f87171;
}

.desafios-card-problem:hover {
  border-color: rgba(248,113,113,0.4);
  border-top-color: #f87171;
}

/* Card solução */
.desafios-card-solution {
  border-top: 3px solid #afa2ff;
}

.desafios-card-solution:hover {
  border-color: rgba(175,162,255,0.4);
  border-top-color: #afa2ff;
}

/* Header do card (ícone + título) */
.desafios-card-hd {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.desafios-card-hd h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* Ícone do card */
.desafios-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.problem-icon {
  background: rgba(248,113,113,0.18);
  border: 1.5px solid rgba(248,113,113,0.35);
  color: #fca5a5;
}

.solution-icon {
  background: rgba(175,162,255,0.18);
  border: 1.5px solid rgba(175,162,255,0.35);
  color: #c4b5fd;
}

/* Lista de itens */
.desafios-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.desafios-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.80);
}

.dlist-icon {
  flex-shrink: 0;
  display: flex;
  margin-top: 2px;
}

.problem-dlist { color: #fca5a5; }
.solution-dlist { color: #c4b5fd; }

/* ============================================================
   Form — Honeypot (bots preenchem, humanos não veem)
   ============================================================ */
.form-hp {
  position: absolute;
  left: -9999px;
  visibility: hidden;
  pointer-events: none;
  tabindex: -1;
}

/* ============================================================
   Utility classes (replace scattered inline styles)
   ============================================================ */

/* Section headings */
.section-heading-center {
  text-align: center;
  margin-bottom: 4rem;
}

/* Trust section headline */
.trust-headline {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

/* Trust section subhead */
.trust-subhead {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  max-width: 800px;
  margin: 0 auto;
}

/* Metrics section "ponta a ponta" */
.metrics-section {
  background: rgba(244, 244, 245, 0.5);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.metric-card {
  text-align: center;
}

.metric-card-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.metric-card-label {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Market story section */
.market-story-section {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .market-story-section {
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
  }

  .market-story-section .container {
    width: 100%;
  }
}

.market-story-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/new-id/Logotipo/PNG/3.%20Simbolo/simbolo-cor.png");
  background-size: 7.5rem auto;
  background-position: 1.5rem 1.5rem;
  background-repeat: repeat;
  opacity: 0.18;
  filter: grayscale(1) brightness(1.85);
  pointer-events: none;
}

.market-story-section .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .market-story-section::before {
    background-size: 5.75rem auto;
    opacity: 0.14;
  }
}

.market-story-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  overflow: visible;
}

@media (min-width: 1024px) {
  .market-story-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(28rem, 0.92fr);
    gap: 3.5rem;
  }
}

.market-story-title {
  max-width: 14.8ch;
  font-size: clamp(2.25rem, 4.45vw, 4.65rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0;
  margin-bottom: 1.75rem;
}

.market-story-title strong {
  font-weight: 800;
}

.market-story-nowrap {
  white-space: nowrap;
}

.market-story-panel {
  position: relative;
  overflow: visible;
  min-height: 34rem;
  padding: 0;
}

.market-story-panel::before {
  content: none;
}

.market-story-panel > * {
  position: relative;
  z-index: 1;
}

.pain-grid {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .pain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pain-card {
  position: relative;
  overflow: hidden;
  min-height: 9.25rem;
  padding: 1.2rem 1.1rem;
  border: 1px solid rgba(175, 162, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (min-width: 1024px) {
  .market-story-panel {
    min-height: 40rem;
  }

  .pain-grid {
    position: relative;
    display: block;
    height: 36rem;
    perspective: 1000px;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
  }

  .pain-grid.is-dragging {
    cursor: grabbing;
  }

  .pain-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(94%, 37rem);
    min-height: 23.5rem;
    padding: 2.55rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 55px rgba(24, 24, 27, 0.11);
    transform-origin: center;
    opacity: var(--stack-opacity, 1);
    transform:
      translate(-50%, -50%)
      translate(var(--stack-x, 0), var(--stack-y, 0))
      rotate(var(--stack-rotate, 0deg))
      scale(var(--stack-scale, 1));
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, box-shadow 0.28s ease;
  }

  .pain-grid.is-dragging .pain-card {
    transition: opacity 0.14s ease, box-shadow 0.14s ease;
  }

  .pain-card:nth-child(1) {
    z-index: var(--stack-z, 6);
  }

  .pain-card:nth-child(2) {
    z-index: var(--stack-z, 5);
  }

  .pain-card:nth-child(3) {
    z-index: var(--stack-z, 4);
  }

  .pain-card:nth-child(4) {
    z-index: var(--stack-z, 3);
  }

  .pain-card:nth-child(5) {
    z-index: var(--stack-z, 2);
  }

  .pain-card:nth-child(6) {
    z-index: var(--stack-z, 1);
  }

  .pain-card-active {
    box-shadow: 0 32px 75px rgba(24, 24, 27, 0.16);
  }

}

.pain-dots {
  display: none;
}

@media (min-width: 1024px) {
  .pain-dots {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    display: flex;
    gap: 0.45rem;
    transform: translateX(-50%);
    z-index: 3;
  }

  .pain-dots span {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: rgba(175, 162, 255, 0.28);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .pain-dots span.active {
    background: #6d28d9;
    transform: scale(1.15);
  }
}

.pain-card svg,
.pain-card i {
  position: absolute;
  right: -0.4rem;
  bottom: -0.55rem;
  width: 5.5rem;
  height: 5.5rem;
  color: #6d28d9;
  opacity: 0.08;
  stroke-width: 1.4;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .pain-card svg,
  .pain-card i {
    right: -1.75rem;
    bottom: -1.85rem;
    width: 14rem;
    height: 14rem;
  }
}

.pain-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 0.45rem;
  font-size: 1rem;
  line-height: 1.2;
}

.pain-card p {
  position: relative;
  z-index: 1;
  color: var(--muted-foreground);
  font-size: 0.88rem;
  line-height: 1.52;
}

@media (min-width: 1024px) {
  .pain-card h3 {
    font-size: clamp(1.85rem, 1.8vw, 2.35rem);
    line-height: 1.1;
  }

  .pain-card p {
    max-width: 28rem;
    font-size: clamp(1.18rem, 1.15vw, 1.45rem);
    line-height: 1.48;
  }
}

/* Pilares header */
.pilares-header {
  margin-bottom: 4rem;
  text-align: center;
}

/* Pilares grid */
.pilares-grid {
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .pilares-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pilares-section {
  --solution-bg-progress: 0;
  background: #ffffff;
}

.pilares-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/new-id/Logotipo/PNG/3.%20Simbolo/simbolo-cor.png");
  background-size: 7.5rem auto;
  background-position: 1.5rem 1.5rem;
  background-repeat: repeat;
  opacity: calc(0.018 + (var(--solution-bg-progress) * 0.052));
  filter: grayscale(1);
  pointer-events: none;
}

.pilares-section .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .pilares-section::before {
    background-size: 5.75rem auto;
    opacity: calc(0.014 + (var(--solution-bg-progress) * 0.04));
  }
}

.pilares-header {
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.pilares-header .section-title {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.35rem;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0;
  text-align: center;
}

.pilares-header .section-title strong {
  display: block;
  font-weight: 800;
  line-height: 1.18;
  padding-bottom: 0.08em;
  white-space: nowrap;
}

.solution-title-nowrap {
  display: block;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .solution-title-nowrap {
    white-space: normal;
  }
}

.pilares-header .section-desc {
  text-align: center;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.35;
  color: var(--foreground);
}

.solution-timeline {
  --timeline-progress: 0;
  position: relative;
  display: grid;
  gap: 4.5rem;
  max-width: 62rem;
  margin: 0 auto;
  padding: 1rem 0 0;
  overflow: visible;
}

.solution-timeline-line {
  position: absolute;
  top: 1.25rem;
  bottom: 1.25rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(175, 162, 255, 0.24);
  overflow: hidden;
}

.solution-timeline-progress {
  width: 100%;
  height: calc(var(--timeline-progress) * 100%);
  background: linear-gradient(180deg, #6d28d9, var(--primary));
  transition: height 0.08s linear;
}

.solution-step {
  --step-progress: 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4rem minmax(0, 1fr);
  align-items: center;
  min-height: 13rem;
  overflow: visible;
}

.solution-step::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 2px solid rgba(109, 40, 217, 0.55);
  background: #ffffff;
  box-shadow: 0 0 0 0.45rem rgba(175, 162, 255, 0.18);
  z-index: 2;
}

.solution-step-content {
  max-width: 25rem;
}

.solution-step-right .solution-step-content {
  grid-column: 3;
}

.solution-step-left .solution-step-content {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

.solution-step-number {
  position: absolute;
  top: 50%;
  padding: 0.22em;
  font-size: clamp(5rem, 11vw, 8rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.06em;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, calc(0.2 + (var(--step-progress) * 0.45))) 0%,
      rgba(175, 162, 255, calc(0.18 + (var(--step-progress) * 0.42))) 34%,
      rgba(109, 40, 217, calc(0.18 + (var(--step-progress) * 0.58))) 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  color: rgba(175, 162, 255, 0.16);
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, calc(var(--step-progress) * 0.75)))
    drop-shadow(0 12px 24px rgba(109, 40, 217, calc(var(--step-progress) * 0.16)));
  text-shadow:
    0 0 calc(var(--step-progress) * 18px) rgba(175, 162, 255, 0.35),
    0 calc(var(--step-progress) * 8px) calc(var(--step-progress) * 20px) rgba(109, 40, 217, 0.18);
  transition: filter 0.08s linear, text-shadow 0.08s linear;
}

.solution-step-right .solution-step-number {
  right: calc(50% + 2.75rem);
}

.solution-step-left .solution-step-number {
  left: calc(50% + 2.75rem);
}

.solution-step h3 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.solution-step p {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.68;
}

@media (max-width: 768px) {
  .solution-timeline {
    gap: 2.25rem;
    padding-left: 4.6rem;
  }

  .solution-timeline-line {
    left: 1.7rem;
  }

  .solution-step {
    display: block;
    min-height: auto;
  }

  .solution-step::before {
    position: absolute;
    left: -3.35rem;
    top: 0.4rem;
    transform: none;
  }

  .solution-step-left .solution-step-content {
    text-align: left;
  }

  .solution-step-number {
    display: none;
  }
}

/* Projetos section header */
.projetos-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* Contact section text */
.contact-desc {
  margin-left: 0;
  text-align: left;
}

/* Footer paragraph */
.footer-desc {
  color: var(--muted-foreground);
  max-width: 24rem;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1.25rem;
  list-style: none;
}

.footer-contact-list a {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-contact-list a:hover {
  color: var(--primary);
}

/* Footer links column */
.footer-links-col {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted-foreground);
}

.footer-links-list a:hover {
  color: var(--foreground);
}

/* Projetos container — needs z-index above watermark */
.projetos-container {
  position: relative;
  z-index: 1;
}

/* Form — full-width submit button */
.btn-full {
  width: 100%;
}

/* Form — status message */
.form-status-msg {
  margin-top: 1rem;
  font-size: 0.875rem;
  text-align: center;
  display: none;
}

/* AI chat contact card */
.contact-ai-section {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.contact-ai-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78rem, 92vw);
  aspect-ratio: 1;
  background-image: url("/new-id/Logotipo/PNG/3.%20Simbolo/simbolo-cor.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.065;
  filter: grayscale(1);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.contact-ai-section .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .contact-ai-section::before {
    width: 46rem;
    opacity: 0.05;
  }
}

.contact-ai-layout {
  display: grid;
  gap: 2.5rem;
  justify-items: center;
}

.contact-ai-copy {
  max-width: 56rem;
  text-align: center;
}

.contact-ai-copy .section-title {
  margin-bottom: 1.15rem;
  font-size: clamp(2.5rem, 4.8vw, 5rem);
  line-height: 1.02;
}

.contact-ai-copy .contact-desc {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ai-chat-launcher {
  position: relative;
  display: grid;
  justify-content: center;
  justify-items: center;
  width: min(100%, 44rem);
  gap: 1rem;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  text-align: center;
  box-shadow: none;
}

.ai-chat-launcher-orb {
  display: grid;
  width: 4.35rem;
  height: 4.35rem;
  place-items: center;
  border: 1px solid rgba(109, 40, 217, 0.14);
  border-radius: 50%;
  background: rgba(109, 40, 217, 0.08);
}

.ai-chat-launcher-orb img {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
}

.ai-chat-launcher-copy {
  display: grid;
  gap: 0.5rem;
}

.ai-chat-launcher-kicker {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-chat-launcher-copy h3 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.12;
}

.ai-chat-launcher-copy p {
  max-width: 34rem;
  color: var(--muted-foreground);
  font-size: 0.98rem;
  line-height: 1.55;
}

.ai-chat-launcher-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 999px;
  background: #050509;
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.9rem 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 18px 35px rgba(24, 24, 27, 0.18);
}

.ai-chat-launcher-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(24, 24, 27, 0.22);
}

.ai-chat-launcher-button svg,
.ai-chat-launch-options svg {
  width: 1.1rem;
  height: 1.1rem;
}

.ai-chat-launch-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.ai-chat-launch-options button {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted-foreground);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ai-chat-launch-options button:hover {
  background: rgba(109, 40, 217, 0.12);
  color: var(--primary);
  transform: translateY(-1px);
}

.ai-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  pointer-events: none;
  visibility: hidden;
}

.ai-chat-modal.is-opening,
.ai-chat-modal.is-open,
.ai-chat-modal.is-closing {
  pointer-events: auto;
  visibility: visible;
}

.ai-chat-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 14, 0.52);
  opacity: 0;
  backdrop-filter: blur(10px);
  transition: opacity 0.38s ease;
}

.ai-chat-dialog {
  --chat-start-x: 0px;
  --chat-start-y: 1.1rem;
  --chat-origin-x: 50%;
  --chat-origin-y: 50%;
  position: relative;
  z-index: 1;
  width: min(100%, 64rem);
  height: min(50.6rem, calc(100vh - 2.5rem));
  max-height: min(50.6rem, calc(100vh - 2.5rem));
  opacity: 0;
  transform: translate3d(var(--chat-start-x), var(--chat-start-y), 0) scale(0.12);
  transform-origin: var(--chat-origin-x) var(--chat-origin-y);
  transition:
    opacity 0.34s ease,
    transform 0.54s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.ai-chat-modal.is-open .ai-chat-modal-backdrop {
  opacity: 1;
}

.ai-chat-modal.is-open .ai-chat-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ai-chat-modal.is-closing .ai-chat-modal-backdrop {
  opacity: 0;
}

.ai-chat-modal.is-closing .ai-chat-dialog {
  opacity: 0;
  transform: translate3d(var(--chat-start-x), var(--chat-start-y), 0) scale(0.12);
}

body.chat-modal-open {
  overflow: hidden;
}

.ai-chat-card {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  max-height: inherit;
  flex-direction: column;
  gap: 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, 0.12);
  border-radius: 1.35rem;
  background: #fbfbfd;
  box-shadow: 0 35px 90px rgba(10, 10, 14, 0.28);
  padding: 1rem;
}

.ai-chat-watermark {
  position: absolute;
  right: 50%;
  top: 50%;
  width: min(36rem, 72%);
  height: auto;
  opacity: 0.025;
  filter: grayscale(1);
  pointer-events: none;
  transform: translate(50%, -50%);
  user-select: none;
}

.ai-chat-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid var(--border);
}

.ai-chat-agent {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.ai-chat-avatar {
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(109, 40, 217, 0.1);
}

.ai-chat-avatar img {
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
}

.ai-chat-kicker {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-chat-header h3 {
  max-width: 18rem;
  font-size: 1rem;
  line-height: 1.16;
}

.ai-chat-close {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--foreground);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ai-chat-close:hover {
  background: rgba(24, 24, 27, 0.06);
  transform: rotate(4deg);
}

.ai-chat-close svg {
  width: 1rem;
  height: 1rem;
}

.ai-chat-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  color: var(--muted-foreground);
  font-size: 0.78rem;
  font-weight: 700;
}

.ai-chat-status span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0.35rem rgba(34, 197, 94, 0.12);
}

.ai-chat-messages {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  min-height: 17rem;
  max-height: none;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  padding: 0.2rem 0.35rem;
  scrollbar-width: thin;
}

.ai-chat-messages.has-history {
  min-height: 10rem;
  padding-bottom: 0.5rem;
}

.ai-chat-message {
  width: fit-content;
  max-width: min(88%, 40rem);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  animation: ai-chat-bubble-in 0.22s ease;
}

@keyframes ai-chat-bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ai-chat-message-bot {
  align-self: flex-start;
  border: 1px solid rgba(175, 162, 255, 0.3);
  background: rgba(175, 162, 255, 0.07);
  color: var(--foreground);
}

.ai-chat-message-bot strong {
  font-weight: 700;
  color: var(--foreground);
}

.ai-chat-message-bot + .ai-chat-message-bot {
  margin-top: -0.3rem;
}

.ai-chat-message-user {
  align-self: flex-end;
  background: var(--primary);
  color: var(--primary-foreground);
  white-space: pre-line;
}

.ai-chat-message-loading {
  color: var(--muted-foreground);
}

.ai-chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-width: 3.5rem;
}

.ai-chat-typing span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: chatTypingDot 1s ease-in-out infinite;
}

.ai-chat-typing span:nth-child(2) {
  animation-delay: 0.16s;
}

.ai-chat-typing span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes chatTypingDot {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.28;
  }
  40% {
    transform: translateY(-0.28rem);
    opacity: 0.85;
  }
}

.ai-chat-suggestions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  order: 2;
}

.ai-chat-suggestions button {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted-foreground);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ai-chat-suggestions button:hover {
  background: rgba(109, 40, 217, 0.12);
  color: var(--primary);
  transform: translateY(-1px);
}

.ai-chat-suggestions svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.ai-chat-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: end;
  border: 1px solid rgba(24, 24, 27, 0.14);
  border-radius: 1rem;
  background: #fff;
  padding: 0.8rem;
  box-shadow:
    0 18px 45px rgba(24, 24, 27, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
  order: 3;
}

.ai-chat-form textarea {
  min-height: 4.4rem;
  max-height: 8rem;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  line-height: 1.45;
  padding: 0.85rem 0.55rem;
}

.ai-chat-form button {
  display: inline-flex;
  width: 2.7rem;
  height: 2.7rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #050509;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ai-chat-form button:hover {
  transform: translateY(-1px);
}

.ai-chat-form button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.ai-chat-form button svg {
  width: 1.15rem;
  height: 1.15rem;
}

.ai-chat-note {
  position: relative;
  z-index: 1;
  color: var(--muted-foreground);
  font-size: 0.78rem;
  line-height: 1.45;
  order: 4;
}

.ai-chat-note a {
  color: var(--foreground);
  font-weight: 700;
  text-decoration: none;
}

.ai-chat-note a:hover {
  color: var(--primary);
}

/* ============================================================
   Depoimentos — placeholder section
   ============================================================ */
.depoimentos-section {
  background: rgba(244, 244, 245, 0.4);
  border-top: 1px solid var(--border);
}

.depo-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .depo-grid { grid-template-columns: repeat(3, 1fr); }
}

.depo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.3s, border-color 0.3s;
}

.depo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(175,162,255,0.4);
}

.depo-stars {
  display: flex;
  gap: 0.25rem;
  color: #f59e0b;
}

.depo-quote {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  flex: 1;
}

.depo-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.depo-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #c4b5fd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.depo-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
}

.depo-role {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.depo-coming-soon {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  grid-column: 1 / -1;
}

.depo-coming-soon strong {
  display: block;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* =====================================================
   PÁGINAS DE PROJETO
   ===================================================== */

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}
.btn-back:hover { color: var(--primary); }

.projeto-hero {
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.projeto-hero .badge {
  margin-bottom: 1.5rem;
}

.projeto-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .projeto-hero h1 { font-size: 3.25rem; }
}

.projeto-hero .section-desc {
  margin: 0;
  max-width: 48rem;
}

.projeto-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.projeto-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.projeto-meta-item span:first-child {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}

.projeto-meta-item span:last-child {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
}

.projeto-meta-sep {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 0 0.5rem;
}

.projeto-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.projeto-feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .projeto-feature-grid { grid-template-columns: repeat(2, 1fr); }
}

.projeto-feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.projeto-feature-card .card-icon-wrapper {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.75rem;
  border-radius: 0.625rem;
}

.projeto-feature-card .card-icon-wrapper svg,
.projeto-feature-card .card-icon-wrapper i {
  width: 1.5rem;
  height: 1.5rem;
}

.projeto-feature-card h4 {
  font-size: 1rem;
  font-weight: 700;
}

.projeto-feature-card p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.projeto-metrics-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .projeto-metrics-grid { grid-template-columns: repeat(3, 1fr); }
}

.projeto-metric-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.projeto-metric-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.projeto-metric-label {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.projeto-metric-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.projeto-cta-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
}

.projeto-cta-box h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.projeto-cta-box p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

.projeto-cta-box .btn-primary {
  margin-right: 0.75rem;
}

/* Tornar case cards clicáveis */
.case-card-link {
  text-decoration: none;
  color: inherit;
  display: contents;
}

.case-card {
  cursor: pointer;
}

.case-card-link .case-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ============================================================
   Projetos + Trust — showcase flutuante
   ============================================================ */
.projetos-section {
  padding: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 6%, rgba(109, 40, 217, 0.34), transparent 36%),
    linear-gradient(180deg, #060913 0%, #0b1020 50%, #060913 100%);
  color: #fff;
  border-top: 0;
}

.projetos-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/new-id/Logotipo/PNG/3.%20Simbolo/simbolo-cor.png");
  background-size: 7rem auto;
  background-repeat: repeat;
  opacity: 0.035;
  filter: grayscale(1) brightness(1.8);
  pointer-events: none;
}

.projetos-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(109, 40, 217, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(6, 9, 19, 0.82), transparent 24%, transparent 76%, rgba(6, 9, 19, 0.82));
  pointer-events: none;
}

.projetos-container {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: auto;
  display: block;
  isolation: isolate;
  padding-left: clamp(5.5rem, 7vw, 8rem);
  padding-right: clamp(2rem, 4vw, 5rem);
}

.projetos-header {
  position: relative;
  z-index: 3;
  width: min(100%, 50rem);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.projetos-header .section-title {
  color: #fff;
  font-size: clamp(2.75rem, 5.15vw, 5.35rem);
  line-height: 1;
  letter-spacing: 0;
  max-width: 12ch;
  margin: 0 auto 1.25rem;
}

.projetos-header .section-desc {
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  line-height: 1.55;
  max-width: 42rem;
  margin: 0 auto;
}

.projects-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.88rem 1.35rem;
  font-size: 0.92rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #101014;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.projects-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.projects-cta svg {
  width: 1.15rem;
  height: 1.15rem;
}

.projetos-section .cases-grid {
  position: absolute;
  inset: 0 0 auto;
  height: 100vh;
  height: 100svh;
  z-index: 2;
  display: block;
  pointer-events: none;
}

.projetos-section .case-card-link {
  position: absolute;
  display: block;
  width: clamp(11.5rem, 15vw, 15.5rem);
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
  transform-origin: center;
  animation: projectCardFloat 7s ease-in-out infinite;
  will-change: transform;
}

.projetos-section .case-card-link:nth-child(1) {
  left: 17%;
  top: 18%;
  --float-rotate: -4deg;
  --float-x: 0px;
  --float-y: 0px;
  --float-drift-x: 0.35rem;
  --float-drift-y: -0.75rem;
}

.projetos-section .case-card-link:nth-child(2) {
  left: 47.5%;
  top: 2.5%;
  width: clamp(8.75rem, 9.5vw, 10.75rem);
  --float-rotate: 5deg;
  --float-x: 0px;
  --float-y: 0px;
  --float-drift-x: -0.45rem;
  --float-drift-y: 0.65rem;
  animation-duration: 8.5s;
  animation-delay: -1.4s;
}

.projetos-section .case-card-link:nth-child(3) {
  right: 12%;
  top: 18%;
  --float-rotate: 4deg;
  --float-x: 0px;
  --float-y: 0px;
  --float-drift-x: -0.55rem;
  --float-drift-y: -0.55rem;
  animation-duration: 7.8s;
  animation-delay: -2.2s;
}

.projetos-section .case-card-link:nth-child(4) {
  right: 11%;
  bottom: 8%;
  --float-rotate: -3deg;
  --float-x: 0px;
  --float-y: 0px;
  --float-drift-x: 0.45rem;
  --float-drift-y: 0.7rem;
  animation-duration: 9s;
  animation-delay: -0.8s;
}

.projetos-section .case-card-link:nth-child(5) {
  left: 18%;
  bottom: 8%;
  --float-rotate: 3deg;
  --float-x: 0px;
  --float-y: 0px;
  --float-drift-x: -0.4rem;
  --float-drift-y: -0.65rem;
  animation-duration: 8.2s;
  animation-delay: -3s;
}

.projetos-section .case-card {
  position: relative;
  min-height: 12rem;
  padding: 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.8rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.045));
  box-shadow: 0 28px 70px rgba(0,0,0,0.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.projetos-section .case-card-link:nth-child(2) .case-card {
  min-height: 8.6rem;
  padding: 0.85rem;
}

.projetos-section .case-card-link:nth-child(2) .case-type {
  margin-bottom: 0.55rem;
  font-size: 0.58rem;
  padding: 0.25rem 0.55rem 0.25rem 0.45rem;
}

.projetos-section .case-card-link:nth-child(2) .case-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.projetos-section .case-card-link:nth-child(2) .card-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.72rem;
  line-height: 1.35;
}

.projetos-section .case-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(175, 162, 255, 0.16), transparent 55%);
  pointer-events: none;
}

.projetos-section .case-card:hover {
  border-color: rgba(175, 162, 255, 0.34);
  box-shadow: 0 34px 86px rgba(0,0,0,0.42);
}

.projetos-section .case-card-link:hover {
  animation-play-state: paused;
  transform: translate(var(--float-x), calc(var(--float-y) - 0.35rem)) rotate(var(--float-rotate)) scale(1.02);
}

@keyframes projectCardFloat {
  0%, 100% {
    transform: translate(var(--float-x), var(--float-y)) rotate(var(--float-rotate));
  }
  50% {
    transform: translate(
      calc(var(--float-x) + var(--float-drift-x)),
      calc(var(--float-y) + var(--float-drift-y))
    ) rotate(calc(var(--float-rotate) * 0.88));
  }
}

.projetos-section .case-type {
  margin-bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

.projetos-section .case-metric {
  margin: 0.2rem 0 0.45rem;
  color: rgba(175, 162, 255, 0.9);
  font-size: clamp(2rem, 3vw, 3rem);
}

.projetos-section .case-card h3,
.projetos-section .case-card-featured h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.projetos-section .card-desc {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.45;
}

.integrations-showcase {
  position: relative;
  z-index: 3;
  width: min(100% - 3rem, 86rem);
  margin: 0 auto;
  padding: 3.5rem 0 46px;
}

.integrations-showcase::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(32rem, 70vw);
  height: 1px;
  transform: translateX(-50%);
  background: transparent;
}

.integrations-showcase::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: min(64rem, 86vw);
  height: 13rem;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 48%, rgba(109, 40, 217, 0.38), transparent 62%),
    radial-gradient(ellipse at 50% 48%, rgba(175, 162, 255, 0.18), transparent 44%);
  filter: blur(10px);
  opacity: 0.95;
  pointer-events: none;
}

.integrations-heading {
  display: grid;
  justify-items: center;
  margin-bottom: 2.35rem;
  text-align: center;
}

.integrations-heading h3 {
  max-width: 46rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.45rem, 2.4vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.integrations-row {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  padding: 1.1rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.integrations-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  align-items: center;
  animation: integrationsMarquee 48s linear infinite;
  will-change: transform;
}

.integration-logo {
  flex: 0 0 11.5rem;
  min-height: 4.5rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.integration-logo img {
  display: block;
  width: 100%;
  max-width: 10.5rem;
  max-height: 3.8rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.68;
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.integration-logo:hover img {
  opacity: 0.92;
  transform: translateY(-1px);
}

@keyframes integrationsMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

@media (max-width: 980px) {
  .projetos-section {
    padding: 5.5rem 0 6rem;
  }

  .projetos-container {
    min-height: auto;
    display: block;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .projetos-header {
    margin-bottom: 2.5rem;
  }

  .projetos-header .section-title {
    max-width: 11ch;
    font-size: clamp(2.65rem, 11vw, 4rem);
  }

  .projetos-section .cases-grid {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    pointer-events: auto;
  }

  .projetos-section .case-card-link {
    position: static;
    width: 100%;
    animation: none;
    transform: none !important;
  }

  .projetos-section .case-card-link:nth-child(n) {
    width: 100%;
  }

  .projetos-section .case-card {
    min-height: auto;
  }

  .projetos-section .case-card-link:nth-child(2) .case-card {
    min-height: auto;
    padding: 1.15rem;
  }

  .projetos-section .case-card-link:nth-child(2) .case-type {
    margin-bottom: 0.8rem;
    font-size: 0.66rem;
    padding: 0.34rem 0.7rem 0.34rem 0.58rem;
  }

  .projetos-section .case-card-link:nth-child(2) .case-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
  }

  .projetos-section .case-card-link:nth-child(2) .card-desc {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .integrations-showcase {
    width: min(100% - 3rem, 42rem);
    padding: 4rem 0 0;
  }

  .integration-logo {
    flex-basis: 9.5rem;
    min-height: 4rem;
  }
}

/* ============================================================
   Mobile stability pass
   ============================================================ */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    padding-left: 1.125rem;
    padding-right: 1.125rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .navbar {
    padding: 0.75rem 0;
  }

  .navbar.scrolled {
    padding: 0.55rem 0;
  }

  .nav-container {
    gap: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    justify-content: space-between;
  }

  .nav-logo {
    min-width: 0;
  }

  .nav-logo img {
    height: 3.15rem;
    max-width: min(48vw, 13rem);
    object-fit: contain;
  }

  .mobile-menu-btn {
    flex: 0 0 auto;
  }

  .mobile-menu {
    padding: 5rem 1.25rem 2rem;
    overflow-y: auto;
  }

  .mobile-actions {
    width: min(100%, 18rem);
  }

  .scroll-hero-sticky {
    height: 100svh;
  }

  .scroll-hero-text {
    left: 1.125rem;
    right: 1.125rem;
    top: 40svh;
    width: auto;
    max-width: min(76vw, 18rem);
  }

  .sh-static-line {
    font-size: clamp(1.45rem, 8vw, 2rem);
    line-height: 1.06;
  }

  .sh-phrases-wrapper {
    width: 100%;
    min-height: 3.35em;
  }

  .sh-phrase {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .scroll-hint {
    bottom: 1.4rem;
  }

  .market-story-grid {
    gap: 2rem;
  }

  .market-story-title,
  .pilares-header .section-title,
  .projetos-header .section-title,
  .contact-ai-copy .section-title {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.08;
  }

  .market-story-nowrap,
  .pilares-header .section-title strong,
  .solution-title-nowrap {
    white-space: normal;
  }

  .market-story-panel {
    min-height: auto;
  }

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

  .pain-card {
    min-height: auto;
    padding: 1rem;
  }

  .pilares-header {
    margin-bottom: 2.75rem;
  }

  .pilares-header .section-title strong {
    display: inline;
    padding-bottom: 0;
  }

  .pilares-header .section-desc,
  .section-desc {
    font-size: 1rem;
    line-height: 1.55;
  }

  .solution-timeline {
    gap: 2rem;
    padding-left: 2.75rem;
  }

  .solution-timeline-line {
    left: 0.8rem;
  }

  .solution-step::before {
    left: -2.32rem;
  }

  .solution-step h3 {
    font-size: 1.25rem;
    line-height: 1.18;
  }

  .solution-step p {
    font-size: 0.95rem;
    line-height: 1.58;
  }

  .projetos-section {
    padding: 4.75rem 0 5rem;
  }

  .projetos-container {
    padding-left: 1.125rem;
    padding-right: 1.125rem;
  }

  .projetos-header {
    min-height: auto;
    margin-bottom: 2rem;
    padding: 0;
  }

  .projects-cta {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .projetos-section .cases-grid {
    gap: 0.85rem;
  }

  .projetos-section .case-card {
    padding: 1rem;
    border-radius: var(--radius);
  }

  .projetos-section .case-card h3,
  .projetos-section .case-card-featured h3 {
    font-size: 1rem;
  }

  .projetos-section .card-desc {
    font-size: 0.85rem;
  }

  .integrations-showcase {
    width: 100%;
    padding-top: 3rem;
  }

  .integrations-heading h3 {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .integration-logo {
    flex-basis: 7.5rem;
  }

  .integration-logo img {
    max-width: 7rem;
  }

  .contact-ai-layout {
    gap: 2rem;
  }

  .ai-chat-launcher {
    width: 100%;
  }

  .ai-chat-launcher-button {
    width: 100%;
  }

  .ai-chat-launch-options {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .ai-chat-launch-options button {
    justify-content: center;
    width: 100%;
  }

  .ai-chat-modal {
    align-items: end;
    justify-items: stretch;
    padding: 0;
  }

  .ai-chat-dialog {
    width: 100%;
    max-height: 100dvh;
    opacity: 0;
    transform: translate3d(var(--chat-start-x), var(--chat-start-y), 0) scale(0.12);
    transition:
      opacity 0.28s ease,
      transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .ai-chat-modal.is-open .ai-chat-dialog {
    opacity: 1;
    transform: translateY(0);
  }

  .ai-chat-modal.is-closing .ai-chat-dialog {
    opacity: 0;
    transform: translate3d(var(--chat-start-x), var(--chat-start-y), 0) scale(0.12);
  }

  .ai-chat-card {
    height: 100dvh;
    max-height: 100dvh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 1.15rem 1.15rem 0 0;
    padding: max(0.85rem, env(safe-area-inset-top)) 0.85rem max(0.85rem, env(safe-area-inset-bottom));
  }

  .ai-chat-header {
    margin: -0.15rem -0.1rem 0;
    padding: 0.15rem 0.1rem 0.75rem;
  }

  .ai-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 0.35rem 0.15rem;
  }

  .ai-chat-message {
    max-width: 94%;
    font-size: 0.9rem;
  }

  .ai-chat-form {
    grid-template-columns: 1fr 2.7rem;
    gap: 0.5rem;
    padding: 0.55rem;
  }

  .ai-chat-form textarea {
    min-width: 0;
    min-height: 3.4rem;
    padding: 0.65rem 0.45rem;
    font-size: 0.95rem;
  }

  .ai-chat-suggestions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ai-chat-suggestions button {
    justify-content: center;
    width: 100%;
  }

  .footer {
    padding-top: 3.5rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.25rem;
  }
}

@media (max-width: 420px) {
  .scroll-hero-text {
    top: 40svh;
    max-width: min(76vw, 18rem);
  }

  .sh-static-line {
    font-size: clamp(1.35rem, 7.5vw, 1.75rem);
  }

  .sh-phrase {
    font-size: clamp(1.55rem, 8.4vw, 2.05rem);
  }

  .market-story-title,
  .pilares-header .section-title,
  .projetos-header .section-title,
  .contact-ai-copy .section-title {
    font-size: clamp(1.85rem, 9.5vw, 2.55rem);
  }

  .projects-cta {
    font-size: 0.86rem;
  }
}
