/* ==========================================================
   AUTOMATIZZE.IA — Design System CSS
   Inspirado em vold.io — Dark Premium Aesthetic
   ========================================================== */

/* -------- CUSTOM PROPERTIES -------- */
:root {
  --color-bg: #000000;
  --color-bg-card: #0D0D11;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.3);
  --color-accent: #00FFB2;
  --color-accent-glow: rgba(0, 255, 178, 0.25);
  --color-text-primary: #FFFFFF;
  --color-text-secondary: rgba(255, 255, 255, 0.55);
  --color-text-muted: rgba(255, 255, 255, 0.3);
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --padding-container: 5rem;
  --padding-container-mobile: 1.5rem;
  --radius-sm: 4px;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* -------- RESET & BASE -------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ol, ul {
  list-style: none;
}

img, video {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: var(--font-main);
}

/* -------- CUSTOM CURSOR -------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 99999;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor .inner {
  position: absolute;
  top: -24px; left: -24px;
  width: 48px; height: 48px;
  transition: transform 0.15s ease, opacity 0.3s ease;
}

.cursor .circle {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.8);
  transition: transform var(--transition-base), background var(--transition-base);
}

.cursor-dot {
  position: fixed;
  top: -3px; left: -3px;
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  z-index: 100000;
  pointer-events: none;
  transition: transform 0.05s ease;
}

body:hover .cursor { opacity: 1; }

/* Magnetic hover state */
.cursor.is-stick .circle {
  transform: scale(2.5);
  background: rgba(255,255,255,0.05);
}

/* -------- LOADING SCREEN -------- */
#loading-cover {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 9998;
  transition: opacity 0.6s ease;
}

#loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

.loading-logo {
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--color-text-primary);
  overflow: hidden;
}

.loading-logo span {
  display: inline-block;
  transform: translateY(100%);
  animation: revealUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.2s;
}

@keyframes revealUp {
  to { transform: translateY(0); }
}

/* -------- HEADER -------- */
#head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 var(--padding-container);
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.4s ease;
}

#head.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-text-primary);
  transition: color var(--transition-base);
}

.logo-text:hover {
  color: var(--color-accent);
}

.right-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.right-nav a {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-secondary);
  transition: color var(--transition-base);
}

.right-nav a:hover { color: var(--color-text-primary); }

.right-nav .btn-cta {
  background: var(--color-text-primary);
  color: var(--color-bg);
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  transition: background var(--transition-base), color var(--transition-base);
}

.right-nav .btn-cta:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* Hamburger Menu Button */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  align-items: flex-end;
}

.nav-menu .line {
  display: block;
  width: 24px; height: 1px;
  background: var(--color-text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.nav-menu .line:last-child { width: 16px; }
.nav-menu:hover .line:last-child { width: 24px; }

.nav-menu .text {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* -------- FULLSCREEN MENU -------- */
#menu {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0.5s ease;
}

#menu.is-active {
  opacity: 1;
  visibility: visible;
}

.menu-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* OGL Canvas in menu */
#menu-content canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.15;
}

.menu-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 900px;
  padding: 0 var(--padding-container);
}

.menu-close {
  position: absolute;
  top: 32px; right: var(--padding-container);
  width: 44px; height: 44px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}

.menu-close .line {
  position: absolute;
  width: 24px; height: 1px;
  background: var(--color-text-primary);
}

.menu-close .line:first-child { transform: rotate(45deg); }
.menu-close .line:last-child { transform: rotate(-45deg); }

.menu-links { margin-bottom: 4rem; }

.menu-links ol { counter-reset: none; }

.menu-links li {
  overflow: hidden;
  border-top: 1px solid var(--color-border);
}

.menu-links li:last-child {
  border-bottom: 1px solid var(--color-border);
}

.menu-links a {
  display: block;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.2;
  padding: 0.5rem 0;
  color: var(--color-text-secondary);
  transition: color var(--transition-base), transform var(--transition-slow);
  transform: translateY(100%);
}

.menu-links a:hover {
  color: var(--color-text-primary);
}

#menu.is-active .menu-links a {
  transform: translateY(0);
  transition: color var(--transition-base),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-links li:nth-child(1) a { transition-delay: 0.05s; }
.menu-links li:nth-child(2) a { transition-delay: 0.10s; }
.menu-links li:nth-child(3) a { transition-delay: 0.15s; }
.menu-links li:nth-child(4) a { transition-delay: 0.20s; }

.menu-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.menu-footer .col {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.menu-footer .col a {
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

.menu-footer .col a:hover { color: var(--color-text-primary); }

/* -------- HERO / VIDEO SECTION -------- */
.video-section {
  position: relative;
  height: 600vh; /* Scroll storytelling height */
}

.video-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  transform: scale(0.9);
}

.video-bg.is-visible {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1s ease, transform 10s ease;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    transparent 30%,
    rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

/* Hero Text Layers */
.hero-text-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--padding-container);
  text-align: center;
  pointer-events: none;
}

.hero-h1 {
  font-size: clamp(40px, 7.5vw, 92px);
  font-weight: 500;
  letter-spacing: -3px;
  line-height: 1.05;
  color: var(--color-text-primary);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-h1.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-h1 .line {
  display: block;
  overflow: hidden;
}

.hero-h1 .line span {
  display: block;
  transform: translateY(100%);
  animation: revealUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-h1 .line:nth-child(1) span { animation-delay: 0.8s; }
.hero-h1 .line:nth-child(2) span { animation-delay: 0.95s; }
.hero-h1 .line:nth-child(3) span { animation-delay: 1.1s; }

/* Chapter indicator */
.chapter-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
  transition: opacity var(--transition-base);
}

.chapter-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: pulse-line 2s ease infinite;
}

.chapter-indicator .scroll-text {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Subtitle badge */
.video-subtitle {
  position: absolute;
  bottom: 5rem;
  right: var(--padding-container);
  text-align: right;
}

.video-subtitle span {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 1px;
}

/* Chapter title (left side, bottom) */
.vid-title {
  position: absolute;
  bottom: 5rem;
  left: var(--padding-container);
}

.vid-title span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-text-muted);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Scroll chapter content cards */
.scroll-chapters {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* -------- HORIZONTAL SCROLL SECTION -------- */
.horizontal-section {
  position: relative;
  overflow: hidden;
}

.horizontal-track {
  display: grid;
  grid-template-columns: 50% 50%;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
  background: #000;
}

/* Mobile cards fallback for horizontal scroll */
.mobile-cards {
  display: none;
}

/* Background scrolling text */
.scroll-bg-text {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: clamp(60px, 10vw, 120px);
  font-weight: 700;
  letter-spacing: -4px;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  will-change: transform;
}

/* Slides - Visual side */
.slides-visual {
  position: relative;
  overflow: hidden;
  background: #000;
  border-right: 1px solid var(--color-border);
}

/* Green ambient glow behind mockup */
.slides-visual::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0,255,178,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.slide-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.slide-visual.active {
  opacity: 1;
}

/* Fit mockup inside home slides panel */
.slides-visual .slide-visual {
  padding: 4vh 2rem;
  box-sizing: border-box;
}
.slides-visual .screen-mockup {
  box-shadow:
    0 0 40px rgba(0,255,178,0.08),
    0 24px 60px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.07);
}

/* Laptop mockup frame */
.laptop-frame {
  width: 80%;
  max-width: 500px;
  position: relative;
}

.laptop-screen {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px 8px 0 0;
  padding: 4px;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.laptop-base {
  height: 20px;
  background: linear-gradient(to bottom, #1a1a1a, #0a0a0a);
  border-radius: 0 0 4px 4px;
}

/* Slides - Text side */
.slides-text {
  overflow: hidden;
  position: relative;
}

.slide-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--padding-container);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-text.active {
  opacity: 1;
  transform: translateY(0);
}

.slide-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.slide-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.slide-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

/* Scrollbar for horizontal section */
.h-scrollbar {
  position: absolute;
  bottom: 2rem;
  left: var(--padding-container);
  right: var(--padding-container);
  height: 1px;
  background: var(--color-border);
}

.h-scrollbar-handle {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: var(--color-accent);
  width: 0%;
  transition: width 0.3s ease;
}

/* -------- SECTIONS -------- */
.section {
  padding: 140px var(--padding-container);
  position: relative;
}

.section.no-p { padding: 0; }

.section-wrapper {
  position: relative;
}

/* Full banner / parallax image */
.full-banner {
  height: 70vh;
  overflow: hidden;
  position: relative;
}

.banner-img {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* -------- OPERATIONAL / PLATFORM SECTION -------- */
.platform-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: center;
}

@media (max-width: 900px) {
  .platform-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.platform-image {
  position: relative;
  overflow: hidden;
}

.platform-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.1);
  transition: filter 0.5s ease;
}

.platform-image:hover img { filter: grayscale(0%) contrast(1); }

.platform-content {}

.section-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.platform-h2 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.platform-h2 span {
  color: var(--color-text-secondary);
}

.platform-p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 3rem;
}

/* Action Links */
.action-links { margin-top: 2rem; }

.action-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.action-links ol {
  border-top: 1px solid var(--color-border);
}

.action-links li {
  border-bottom: 1px solid var(--color-border);
}

.action-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-base), padding-left var(--transition-base);
  gap: 1rem;
}

.action-links a:hover {
  color: var(--color-text-primary);
  padding-left: 8px;
}

.arrow-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  position: relative;
}

.arrow-icon svg {
  width: 100%; height: 100%;
  stroke: var(--color-text-muted);
  fill: none;
  stroke-width: 1;
  transition: stroke var(--transition-base), transform var(--transition-base);
}

.action-links a:hover .arrow-icon svg {
  stroke: var(--color-accent);
  transform: translate(3px, -3px);
}

/* -------- FOOTER -------- */
#footer {
  border-top: 1px solid var(--color-border);
  padding: 60px var(--padding-container);
  text-align: center;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1px;
  display: inline-block;
  margin-bottom: 1.5rem;
  transition: color var(--transition-base);
}

.footer-logo:hover { color: var(--color-accent); }

.footer-copy {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.9;
}

.footer-copy a {
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

.footer-copy a:hover { color: var(--color-text-primary); }

/* -------- MODAL -------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 2rem;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 520px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 48px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.modal-overlay.is-active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: color var(--transition-base);
}

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

.modal-close svg {
  width: 20px; height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.modal-title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 2rem;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 12px 4px;
  color: var(--color-text-primary);
  font-size: 16px;
  font-family: var(--font-main);
  width: 100%;
  outline: none;
  transition: border-color var(--transition-base);
  border-radius: 0;
}

.form-input:focus { border-bottom-color: var(--color-accent); }

.form-label {
  position: absolute;
  left: 4px; top: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.35);
  pointer-events: none;
  transition: all var(--transition-base);
  font-family: var(--font-main);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -14px;
  font-size: 11px;
  color: var(--color-accent);
  letter-spacing: 1px;
}

.form-submit {
  background: var(--color-text-primary);
  color: var(--color-bg);
  padding: 16px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
  transition: background var(--transition-base);
  border-radius: 0;
  font-family: var(--font-main);
}

.form-submit:hover { background: var(--color-accent); }

.form-submit svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform var(--transition-base);
}

.form-submit:hover svg { transform: translate(2px, -2px); }

.modal-success {
  margin-top: 1.5rem;
  padding: 12px 16px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 13px;
  display: none;
}

/* -------- PROGRESS BAR -------- */
.progress-bar-wrap {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  z-index: 10000;
  background: transparent;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--color-accent), rgba(0,255,178,0.5));
  transition: width 0.1s linear;
}

/* -------- CHAT SIMULATOR -------- */
.chat-sim {
  width: 90%;
  max-width: 360px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-accent);
}

.chat-agent-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.chat-status {
  font-size: 9px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex; align-items: center; gap: 5px;
}

.status-dot {
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-accent);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(0.8); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
}

.chat-body {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  max-height: 220px;
  overflow-y: auto;
  font-size: 11px;
}

.chat-msg {
  max-width: 85%;
  padding: 8px 12px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  animation: msgAppear 0.4s ease forwards;
}

.chat-msg.user {
  background: rgba(255,255,255,0.08);
  align-self: flex-end;
  color: var(--color-text-primary);
}

.chat-msg.agent {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  align-self: flex-start;
  color: var(--color-text-secondary);
}

@keyframes msgAppear {
  to { opacity: 1; transform: translateY(0); }
}

.chat-typing {
  display: flex; gap: 4px; align-items: center;
  padding: 8px 12px;
  align-self: flex-start;
}

.chat-typing span {
  width: 4px; height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.4;
  animation: bounce-dot 1.4s ease infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce-dot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); opacity: 1; }
}

/* -------- UTILITY CLASSES -------- */
.font-caps {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* -------- INTRO SECTION (Alternative: no video) -------- */
.hero-static {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 var(--padding-container);
  text-align: center;
  overflow: hidden;
}

.hero-static::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%,
    rgba(0,255,178,0.08) 0%,
    transparent 70%);
  pointer-events: none;
}

.hero-static-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-top: 72px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  margin-bottom: 2.5rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-h1 {
  font-size: clamp(40px, 7.5vw, 92px);
  font-weight: 500;
  letter-spacing: -3px;
  line-height: 1.05;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.9s ease 0.5s forwards;
}

.hero-lead {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 3rem;
  opacity: 0;
  animation: fadeInUp 0.9s ease 0.7s forwards;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.9s ease 0.9s forwards;
}

.btn-primary {
  background: var(--color-text-primary);
  color: var(--color-bg);
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background var(--transition-base), color var(--transition-base);
  letter-spacing: 0.3px;
}

.btn-primary:hover { background: var(--color-accent); }

.btn-outline {
  background: transparent;
  color: var(--color-text-secondary);
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: border-color var(--transition-base), color var(--transition-base);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--color-text-primary);
}

/* Tech tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 4rem;
  opacity: 0;
  animation: fadeInUp 0.9s ease 1.1s forwards;
}

.tech-tag {
  padding: 5px 12px;
  border: 1px solid var(--color-border);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-base), color var(--transition-base);
}

.tech-tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* -------- SECTION: SCROLL STORY -------- */
.story-section {
  position: relative;
}

.story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.story-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease, transform 10s linear;
  transform: scale(1.05);
  opacity: 0;
}

.story-bg-img.active {
  opacity: 0.3;
  transform: scale(1);
}

.story-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.story-content-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--padding-container);
  padding-bottom: 5rem;
}

.story-card {
  position: absolute;
  bottom: 5rem;
  left: var(--padding-container);
  max-width: 560px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.story-card.active {
  opacity: 1;
  transform: translateY(0);
}

.story-card-tag {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.story-card-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.story-card-body {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* -------- SECTION: FEATURES CARDS -------- */
.features-section {
  padding: 140px var(--padding-container);
}

.features-header {
  margin-bottom: 4rem;
}

.features-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -2px;
  max-width: 700px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

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

.feature-card {
  background: var(--color-bg);
  padding: 2.5rem;
  transition: background var(--transition-base);
}

.feature-card:hover {
  background: var(--color-bg-card);
}

.feature-icon {
  width: 40px; height: 40px;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}

.feature-icon svg {
  width: 100%; height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 1024px) {
  :root {
    --padding-container: var(--padding-container-mobile);
  }

  #head {
    padding: 0 1.5rem;
    height: 60px;
  }

  .right-nav { display: none !important; }

  .hero-static {
    min-height: 100vh;
    height: auto !important;
    overflow: visible !important;
    padding-top: 120px !important;
    padding-bottom: 60px !important;
  }

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

  .hero-lead {
    margin-bottom: 2rem !important;
  }

  .tech-tags {
    display: none !important;
  }

  .h-scrollbar {
    display: none !important;
  }

  .hero-h1 {
    font-size: clamp(32px, 12vw, 56px);
    letter-spacing: -2px;
  }

  .section { padding: 80px 1.5rem; }

  .platform-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .platform-image img { height: 300px; }

  .menu-wrapper { padding: 0 1.5rem; }
  .menu-footer { grid-template-columns: 1fr; gap: 1rem; }

  .modal-container { padding: 28px 24px; }

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

  .menu-links a { font-size: clamp(28px, 8vw, 48px); }

  .cursor, .cursor-dot { display: none; }
  body { cursor: default; }

  /* Horizontal scroll section mobile behavior */
  #como-funciona {
    position: static !important;
    height: auto !important;
    overflow: visible !important;
  }
  .horizontal-track {
    display: none !important;
  }
  .mobile-cards {
    display: block;
    border-top: 1px solid var(--color-border);
  }
  .mobile-card {
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
  }
  .mobile-card-img {
    background: var(--color-bg-card);
    padding: 3rem 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: center;
  }
  .mobile-card-img .screen-mockup {
    max-width: 100%;
  }
  .mobile-card-body {
    padding: 2.5rem 1.5rem;
  }
  .mobile-card-body .slide-tag {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    margin-bottom: 1rem;
  }
  .mobile-card-body .slide-title {
    font-size: clamp(24px, 6vw, 36px);
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 1.25;
    margin-bottom: 1rem;
  }
  .mobile-card-body .slide-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
  }
}

/* -------- ANIMATIONS ON SCROLL (IntersectionObserver) -------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* -------- SCREEN MOCKUP COMPONENT -------- */
.screen-mockup {
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  background: #0D0D11;
  position: relative;
}
.screen-mockup-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #161618;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.screen-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.screen-dot-red    { background: #ff5f57; }
.screen-dot-yellow { background: #febc2e; }
.screen-dot-green  { background: #28c840; }
.screen-url-bar {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  padding: 4px 10px;
  margin: 0 6px;
  display: flex;
  align-items: center;
}
.screen-url-text {
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.screen-body {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #0a0a0c;
}
.screen-body img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
/* Green shimmer scan line — same as proposta.html */
.screen-body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(0,255,178,0.04) 50%,
    transparent 100%);
  background-size: 100% 40px;
  animation: scanLine 3s linear infinite;
  pointer-events: none;
}
@keyframes scanLine {
  0%   { background-position: 0 -40px; }
  100% { background-position: 0 120%; }
}
.screen-live-badge {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,255,178,0.2);
  border-radius: 99px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #00FFB2;
  font-family: var(--font-mono);
}
.screen-live-dot {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00FFB2;
  box-shadow: 0 0 6px #00FFB2;
  animation: pulse-dot 2s ease-in-out infinite;
}
