:root {
  --bg: #060816;
  --bg-soft: #0c1024;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f5f7ff;
  --text-soft: #bac2e1;
  --brand: #7a7dff;
  --brand-2: #36d5ff;
  --pink: #ff56c2;
  --gold: #f7c96e;
  --shadow: 0 30px 80px rgba(2, 6, 24, 0.45);
  --radius: 28px;
  --radius-sm: 18px;
  --container: min(1240px, calc(100vw - 40px));
  --nav-height: 88px;
  --ease: 280ms cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(122, 125, 255, 0.18), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(255, 86, 194, 0.14), transparent 26%),
    linear-gradient(180deg, #040610 0%, #060816 25%, #081022 100%);
  color: var(--text);
  overflow-x: hidden;
}
body.intro-lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.site-shell {
  position: relative;
  opacity: 0;
  transform: translateY(14px) scale(0.995);
  filter: blur(10px);
  transition: opacity 900ms ease, transform 900ms ease, filter 900ms ease;
}
.site-shell.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.05), transparent 30%),
    linear-gradient(180deg, rgba(2, 4, 12, .96), rgba(2, 4, 12, 1));
  overflow: hidden;
  transition: opacity 900ms ease, visibility 900ms ease;
}
.intro.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-noise,
.intro-vignette,
.hero-grid,
.hero-backdrop,
.ambient,
.cta-section::before,
.play-card::before,
.package-card::before,
.contact-card::before {
  pointer-events: none;
}

/* =========================
   CARD DEMO - TEMA LOCAL
   ========================= */

.demo-theme-card {
  background: linear-gradient(180deg, rgba(14, 14, 20, 0.92), rgba(22, 22, 30, 0.96));
  color: #f5f7ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.demo-theme-card h3,
.demo-theme-card p {
  transition: color 0.35s ease;
}

.demo-theme-card .play-demo {
  transition: background 0.35s ease, border-color 0.35s ease;
}

/* ESTADO CLARO */
.demo-theme-card.light-mode {
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.98), rgba(235, 240, 250, 0.96));
  color: #111827;
  border: 1px solid rgba(17, 24, 39, 0.12);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
}

.demo-theme-card.light-mode h3 {
  color: #111827;
}

.demo-theme-card.light-mode p {
  color: #374151;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.toggle-track {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.3s ease;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.3s ease, background 0.3s ease;
}

/* QUANDO O CARD ESTIVER CLARO */
.demo-theme-card.light-mode .theme-toggle {
  border-color: rgba(17, 24, 39, 0.14);
  background: rgba(17, 24, 39, 0.04);
  color: #111827;
}

.demo-theme-card.light-mode .toggle-track {
  background: rgba(17, 24, 39, 0.18);
}

.demo-theme-card.light-mode .toggle-thumb {
  transform: translateX(24px);
  background: #111827;
}
.intro-noise,
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.95), rgba(0,0,0,.25));
}
.intro-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 20%, rgba(0,0,0,.45) 70%, rgba(0,0,0,.85) 100%);
}
.intro-center {
  position: relative;
  z-index: 2;
  width: min(90vw, 720px);
  padding: 40px 28px;
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  text-align: center;
}
.intro-logo {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  margin: 0 auto 22px;
  box-shadow: 0 18px 60px rgba(122,125,255,.32);
}
.intro-tag,
.eyebrow {
  font-size: .78rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #d8ddf8;
  margin: 0 0 14px;
}
.intro-title,
.hero-title,
.section-title,
.cta-title {
  font-family: 'Space Grotesk', sans-serif;
  line-height: .98;
  margin: 0;
}
.intro-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 18px;
}
.intro-text {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--text-soft);
  line-height: 1.7;
}
.intro-button,
.btn,
.micro-btn,
.service-btn,
.choice-btn,
.tab-btn,
.ux-good-btn,
.ux-bad-btn,
.ux-reset-btn,
.contact-email,
.scroll-to-top {
  border: 0;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease), color var(--ease), opacity var(--ease);
}
.intro-button,
.btn,
.contact-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
}
.intro-button,
.btn-primary,
.ux-good-btn.primary,
.micro-btn.fill {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 38px rgba(54, 213, 255, .16), 0 10px 24px rgba(122, 125, 255, .22);
}
.intro-button:hover,
.btn:hover,
.contact-email:hover,
.service-btn:hover,
.micro-btn:hover,
.choice-btn:hover,
.tab-btn:hover,
.ux-good-btn:hover,
.ux-bad-btn:hover,
.ux-reset-btn:hover,
.scroll-to-top:hover {
  transform: translateY(-2px);
}
.btn-secondary,
.micro-btn.ghost,
.ux-good-btn.secondary,
.ux-reset-btn {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  z-index: 2000;
  background: rgba(255,255,255,.04);
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--pink), var(--gold));
  box-shadow: 0 0 22px rgba(122,125,255,.45);
}
.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,125,255,.18), rgba(122,125,255,0));
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: .6;
  filter: blur(6px);
}
.ambient {
  position: fixed;
  width: 40vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .28;
  z-index: 0;
}
.ambient-1 { left: -10vw; top: 10vh; background: rgba(122,125,255,.24); animation: drift 18s ease-in-out infinite; }
.ambient-2 { right: -10vw; top: 35vh; background: rgba(255,86,194,.18); animation: drift 24s ease-in-out infinite reverse; }
.ambient-3 { left: 30vw; bottom: -10vw; background: rgba(54,213,255,.12); animation: drift 22s ease-in-out infinite; }
@keyframes drift {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(0,-24px,0) scale(1.08); }
}

.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: var(--container);
  z-index: 1200;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8, 12, 27, .56);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.navbar.scrolled {
  background: rgba(8, 12, 27, .78);
  border-color: rgba(255,255,255,.18);
}
.nav-container {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 20px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.logo-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,.22);
}
.logo-text { display: block; font-size: 1.05rem; font-weight: 800; }
.logo-subtext { display: block; color: var(--text-soft); font-size: .78rem; margin-top: 4px; }
.nav-menu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-link {
  padding: 10px 14px;
  color: var(--text-soft);
  border-radius: 999px;
  font-weight: 600;
}
.nav-link.active,
.nav-link:hover {
  color: white;
  background: rgba(255,255,255,.08);
}
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: white;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.page,
.section-block {
  position: relative;
  z-index: 1;
}
.hero-page {
  min-height: 100svh;
  padding: 150px 0 80px;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,8,22,.2), rgba(6,8,22,.8)),
    radial-gradient(circle at 70% 20%, rgba(122,125,255,.22), transparent 30%),
    radial-gradient(circle at 30% 60%, rgba(255,86,194,.12), transparent 26%);
}
.page-content,
.section-shell {
  width: var(--container);
  margin: 0 auto;
}
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  gap: 42px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-title {
  font-size: clamp(3.4rem, 7vw, 7rem);
  margin: 0 0 16px;
  text-wrap: balance;
}
.hero-subtitle {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: .14em;
  color: #dce3ff;
}
.hero-support,
.section-text,
.contact-card p,
.play-card p,
.value-card p,
.package-card li,
.service-panel-copy p,
.testimonial-text,
.ux-good-text,
.ux-bad-text {
  color: var(--text-soft);
  line-height: 1.75;
}
.hero-support {
  max-width: 640px;
  margin: 20px 0 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.metric-card,
.value-card,
.package-card,
.testimonial-card,
.play-card,
.contact-card,
.ux-challenge-stage,
.service-showcase,
.cta-section {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.metric-card {
  padding: 18px;
  border-radius: 24px;
}
.metric-card strong,
.value-card h3,
.package-card h3,
.play-card h3,
.service-panel-copy h3,
.contact-email,
.ux-good-title,
.ux-bad-title,
.testimonials-title {
  margin: 0 0 10px;
}
.metric-card strong { display: block; }
.metric-card span { color: var(--text-soft); font-size: .94rem; }

.hero-visual { position: relative; z-index: 2; }
.hero-device {
  position: relative;
  padding: 18px;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  box-shadow: 0 40px 120px rgba(6,9,24,.45);
}
.hero-device::before {
  content: "";
  position: absolute;
  inset: auto -10% -16% auto;
  width: 240px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,86,194,.26), rgba(255,86,194,0));
  filter: blur(20px);
}
.hero-device-top,
.ux-browser-bar {
  display: flex;
  gap: 10px;
  padding-bottom: 14px;
}
.hero-device-top span,
.ux-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
}
.hero-device-body {
  display: grid;
  gap: 22px;
}
.hero-screen-copy {
  padding: 12px 6px 0;
}
.screen-kicker,
.service-kicker,
.ux-good-kicker,
.ux-bad-kicker {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #d8ddf8;
  margin: 0 0 12px;
}
.hero-screen-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.08;
}
.screen-stack {
  position: relative;
  min-height: 390px;
}
.stack-card {
  position: absolute;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 50px rgba(4,8,20,.34);
}
.stack-card img { width: 100%; height: 100%; object-fit: cover; }
.stack-card-main { inset: 0 44px 0 0; }
.stack-card-floating {
  width: 48%;
  right: 0;
  bottom: -18px;
  aspect-ratio: 4 / 5;
  transform: translateY(0) rotate(6deg);
  animation: floatCard 8s ease-in-out infinite;
}
@keyframes floatCard {
  0%,100% { transform: translateY(0) rotate(6deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.scroll-indicator i {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,0));
  position: relative;
}
.scroll-indicator i::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
  transform: translateX(-50%);
  animation: drop 1.8s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: translate(-50%, 0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(-50%, 42px); opacity: 0; }
}

.section-block { padding: 110px 0; }
.section-heading { max-width: 860px; margin-bottom: 34px; }
.section-title { font-size: clamp(2.1rem, 5vw, 4.5rem); }
.section-text { margin-top: 14px; max-width: 760px; }
.cinematic-grid {
  display: grid;
  gap: 18px;
}
.value-cards,
.packages-grid,
.testimonials-grid,
.playground-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.packages-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.value-card,
.package-card,
.testimonial-card,
.play-card {
  padding: 24px;
}
.value-card h3,
.package-card h3,
.play-card h3 {
  font-size: 1.06rem;
  line-height: 1.35;
}
.card-index {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  margin-bottom: 18px;
  color: #dbe1ff;
  font-weight: 700;
}
.services-shell { display: grid; gap: 28px; }
.services-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.services-buttons {
  display: grid;
  gap: 12px;
}
.service-btn {
  padding: 18px 18px;
  text-align: left;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-soft);
  font-weight: 700;
  letter-spacing: .03em;
}
.service-btn.active {
  color: white;
  background: linear-gradient(135deg, rgba(122,125,255,.3), rgba(54,213,255,.22));
  border-color: rgba(122,125,255,.46);
  box-shadow: 0 14px 34px rgba(122,125,255,.12);
}
.service-showcase {
  min-height: 420px;
  padding: 18px;
}
.service-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
  height: 100%;
}
.service-panel.active { display: grid; }
.service-panel-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}
.service-panel img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 24px;
}
.package-card ul,
.ux-good-points { margin: 0; padding-left: 18px; }
.package-card li,
.ux-good-points li { margin-bottom: 10px; }
.package-card.featured {
  border-color: rgba(247, 201, 110, .42);
  background: linear-gradient(180deg, rgba(247,201,110,.14), rgba(255,255,255,.05));
}
.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(247,201,110,.2);
  color: #ffe6af;
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.package-glow,
.play-card::before,
.contact-card::before,
.package-card::before {
  content: "";
  position: absolute;
  inset: auto -12% -24% auto;
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,125,255,.2), rgba(122,125,255,0));
  filter: blur(16px);
}
.testimonial-author,
.testimonial-author a { color: #e6ebff; font-weight: 600; }
.cta-section {
  margin-top: 26px;
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -10%;
  width: 240px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,86,194,.2), transparent 70%);
  filter: blur(20px);
}
.playground-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.play-card { min-height: 260px; }
.play-demo { margin-top: 18px; }
.play-buttons,
.choice-group,
.tabs-nav,
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.micro-btn,
.choice-btn,
.tab-btn,
.service-btn,
.ux-reset-btn {
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: white;
}
.choice-btn.active,
.tab-btn.active {
  background: rgba(122,125,255,.26);
  border-color: rgba(122,125,255,.44);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: white;
}
.toggle-track {
  width: 58px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  position: relative;
}
.toggle-thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  transition: transform var(--ease);
}
.theme-toggle.active .toggle-thumb { transform: translateX(28px); }
.accordion-group { display: grid; gap: 12px; }
.accordion-item {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: transparent;
  color: white;
  border: 0;
  text-align: left;
}
.accordion-trigger span { transition: transform var(--ease); }
.accordion-item.active .accordion-trigger span { transform: rotate(45deg); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 360ms ease;
}
.accordion-content p { margin: 0; padding: 0 18px 18px; }
.accordion-item.active .accordion-content { max-height: 180px; }
.tabs-content { margin-top: 16px; }
.tab-panel {
  display: none;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.tab-panel.active { display: block; }
.tilt-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  transform-style: preserve-3d;
}
.tilt-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #dbe1ff;
  margin-bottom: 12px;
}
.ux-challenge-stage {
  display: grid;
  padding: 20px;
}
.ux-screen { display: none; }
.ux-screen.active { display: block; }
.bad-ui .ux-bad-content,
.good-ui .ux-good-content {
  padding: 26px;
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.ux-bad-title { font-size: clamp(1.35rem, 4vw, 2.3rem); line-height: 1.1; }
.ux-good-title { font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.08; }
.ux-bad-actions,
.ux-good-actions,
.ux-challenge-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ux-noise {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ux-noise span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #d9def5;
  font-size: .82rem;
}
.contact-shell { display: flex; justify-content: center; }
.contact-card {
  width: min(820px, 100%);
  padding: 40px;
  text-align: center;
}
.contact-email {
  margin-top: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: white;
}
.footer {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 40px;
  text-align: center;
  color: #97a0c4;
}
.scroll-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 18px 32px rgba(54,213,255,.18);
  opacity: 0;
  visibility: hidden;
  z-index: 1200;
}
.scroll-to-top.visible { opacity: 1; visibility: visible; }

.reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: opacity 800ms ease, transform 800ms ease;
  transition-delay: var(--delay, 0ms);
}
.reveal[data-reveal="left"] { transform: translate3d(-42px, 0, 0); }
.reveal[data-reveal="right"] { transform: translate3d(42px, 0, 0); }
.reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }
.magnetic { will-change: transform; }


body.visual-mode {
  background:
    radial-gradient(circle at 20% 20%, rgba(247,201,110,.16), transparent 24%),
    radial-gradient(circle at 80% 0%, rgba(122,125,255,.2), transparent 22%),
    linear-gradient(180deg, #050711 0%, #090d1f 100%);
}
body.visual-mode .ambient-1 { background: rgba(247,201,110,.18); }
body.visual-mode .ambient-2 { background: rgba(122,125,255,.2); }
body.visual-mode .ambient-3 { background: rgba(54,213,255,.16); }
body.visual-mode .hero-device,
body.visual-mode .package-card.featured,
body.visual-mode .cta-section {
  border-color: rgba(247,201,110,.3);
  box-shadow: 0 30px 100px rgba(247,201,110,.08), var(--shadow);
}

@media (max-width: 1080px) {
  .hero-content,
  .services-layout,
  .service-panel,
  .value-cards,
  .packages-grid,
  .testimonials-grid,
  .playground-grid {
    grid-template-columns: 1fr;
  }
  .hero-metrics { grid-template-columns: 1fr; }
  .stack-card-main { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 10; }
  .screen-stack { min-height: unset; display: grid; gap: 16px; }
  .stack-card-floating {
    position: relative;
    width: min(380px, 80%);
    aspect-ratio: 4 / 5;
    margin-left: auto;
    right: auto;
    bottom: auto;
  }
}

@media (max-width: 860px) {
  :root { --container: min(1240px, calc(100vw - 24px)); }
  .navbar { top: 10px; }
  .menu-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(280px, calc(100vw - 24px));
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(8,12,27,.92);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }
  .nav-menu.active { display: flex; }
  .nav-link { width: 100%; }
  .hero-page { padding-top: 132px; }
  .hero-title { font-size: clamp(2.7rem, 12vw, 4.6rem); }
  .section-block { padding: 90px 0; }
  .cta-section { flex-direction: column; align-items: flex-start; }
  .contact-card { padding: 28px; }
}

@media (max-width: 640px) {
  .intro-center { padding: 28px 20px; }
  .hero-actions,
  .ux-challenge-controls,
  .ux-bad-actions,
  .ux-good-actions,
  .play-buttons,
  .choice-group,
  .tabs-nav { flex-direction: column; }
  .btn,
  .micro-btn,
  .choice-btn,
  .tab-btn,
  .ux-good-btn,
  .ux-bad-btn,
  .ux-reset-btn,
  .contact-email { width: 100%; }
  .metric-card,
  .value-card,
  .package-card,
  .testimonial-card,
  .play-card,
  .service-showcase,
  .contact-card,
  .ux-challenge-stage,
  .cta-section { border-radius: 22px; }
  .service-panel-copy { padding: 18px; }
  .scroll-indicator { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================
   AJUSTES FORTES DE MOBILE
   ========================= */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

p, h1, h2, h3, h4, h5, h6, a, span, strong, li, button {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 860px) {
  .page-content,
  .section-shell,
  .footer,
  .navbar {
    width: calc(100% - 16px);
    max-width: 100%;
  }

  .nav-container {
    gap: 12px;
    padding: 0 12px;
  }

  .nav-logo {
    min-width: 0;
    max-width: calc(100% - 60px);
  }

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

  .logo-text,
  .logo-subtext {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .logo-subtext {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .hero-page {
    padding: 124px 0 64px;
  }

  .hero-content {
    gap: 24px;
  }

  .hero-title {
    line-height: 0.95;
  }

  .hero-support,
  .section-text {
    line-height: 1.6;
  }

  .hero-device,
  .contact-card,
  .play-card,
  .value-card,
  .package-card,
  .testimonial-card,
  .service-showcase,
  .ux-challenge-stage,
  .cta-section {
    border-radius: 22px;
  }

  .hero-device,
  .contact-card,
  .play-card,
  .value-card,
  .package-card,
  .testimonial-card,
  .service-showcase,
  .ux-challenge-stage {
    padding-left: 16px;
    padding-right: 16px;
  }

  .service-panel-copy,
  .ux-bad-content,
  .good-ui .ux-good-content,
  .bad-ui .ux-bad-content {
    padding: 18px;
  }

  .service-panel img {
    min-height: 220px;
  }

  .stack-card-floating {
    width: min(260px, 72%);
  }

  .contact-card {
    padding: 24px 16px;
  }

  .contact-email,
  .testimonial-author,
  .testimonial-author a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .scroll-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 640px) {
  :root {
    --container: calc(100vw - 16px);
    --radius: 22px;
    --radius-sm: 16px;
  }

  .navbar {
    top: 8px;
    border-radius: 18px;
  }

  .nav-container {
    min-height: 74px;
  }

  .logo-img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .logo-subtext {
    display: none;
  }

  .nav-menu {
    width: 100%;
    max-width: 100%;
    right: 0;
  }

  .hero-page {
    min-height: auto;
    padding: 116px 0 56px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }

  .hero-support {
    margin-top: 16px;
    font-size: 0.98rem;
  }

  .hero-actions,
  .hero-metrics,
  .value-cards,
  .packages-grid,
  .testimonials-grid,
  .playground-grid,
  .services-layout,
  .service-panel,
  .tabs-nav,
  .choice-group,
  .play-buttons,
  .ux-bad-actions,
  .ux-good-actions,
  .ux-challenge-controls {
    grid-template-columns: 1fr !important;
    flex-direction: column;
  }

  .metric-card,
  .value-card,
  .package-card,
  .testimonial-card,
  .play-card {
    padding: 18px;
  }

  .hero-device {
    padding: 14px;
    border-radius: 24px;
  }

  .hero-device::before,
  .cta-section::before,
  .package-glow,
  .ambient {
    opacity: 0.45;
    filter: blur(28px);
  }

  .screen-stack {
    gap: 12px;
  }

  .stack-card-main {
    aspect-ratio: 16 / 11;
  }

  .stack-card-floating {
    width: min(220px, 76%);
    margin-right: 0;
  }

  .section-block {
    padding: 72px 0;
  }

  .section-title {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
    line-height: 1.02;
  }

  .service-showcase {
    min-height: auto;
    padding: 14px;
  }

  .service-panel-copy h3,
  .hero-screen-copy h2,
  .ux-good-title,
  .ux-bad-title {
    line-height: 1.12;
  }

  .micro-btn,
  .choice-btn,
  .tab-btn,
  .ux-good-btn,
  .ux-bad-btn,
  .ux-reset-btn,
  .btn,
  .contact-email {
    width: 100%;
  }

  .contact-card {
    width: 100%;
    padding: 22px 14px;
  }

  .testimonial-author {
    font-size: 0.92rem;
  }

  .footer {
    padding-bottom: 28px;
    font-size: 0.9rem;
  }
}