/* Waslaa — landing page */
:root,
html[data-theme="dark"] {
  --navy-950: #060b18;
  --navy-900: #0a1228;
  --navy-800: #101c3a;
  --navy-700: #1a2a52;
  --cyan-400: #3ee0d4;
  --cyan-500: #22c5bc;
  --violet-400: #9b8cff;
  --violet-500: #7c6cf0;
  --teal-400: #2dd4bf;
  --text: #e8eefc;
  --text-muted: #b4c0dc;
  --text-legal: rgba(180, 192, 220, 0.82);
  --surface: rgba(16, 28, 58, 0.72);
  --surface-solid: #121e3d;
  --surface-soft: rgba(255, 255, 255, 0.03);
  --surface-soft-strong: rgba(8, 16, 34, 0.55);
  --border: rgba(158, 188, 255, 0.22);
  --focus: #3ee0d4;
  --link: #3ee0d4;
  --link-hover: #7ff0e8;
  --ok: #4ade80;
  --warn: #fbbf24;
  --dev: #a5b4fc;
  --future: #c4b5fd;
  --header-bg: rgba(6, 11, 24, 0.78);
  --nav-mobile-bg: rgba(6, 11, 24, 0.98);
  --footer-bg: rgba(0, 0, 0, 0.25);
  --modal-bg: linear-gradient(180deg, #142246, #0c152c);
  --modal-backdrop: rgba(2, 6, 18, 0.72);
  --field-bg: rgba(0, 0, 0, 0.25);
  --error: #fca5a5;
  --body-bg:
    radial-gradient(1200px 600px at 10% -10%, rgba(62, 224, 212, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(124, 108, 240, 0.16), transparent 50%),
    radial-gradient(700px 400px at 50% 60%, rgba(45, 212, 191, 0.06), transparent 55%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 30%, #081022 100%);
  --cta-bg:
    linear-gradient(145deg, rgba(62, 224, 212, 0.1), rgba(124, 108, 240, 0.12)),
    rgba(10, 18, 40, 0.7);
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --shadow: 0 24px 60px rgba(2, 6, 18, 0.45);
  --header-h: calc(68px * var(--text-scale, 1));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --text-scale: 1;
}

html[data-theme="light"] {
  --navy-950: #060b18;
  --navy-900: #0f1a33;
  --navy-800: #e8eef8;
  --navy-700: #d7e0f0;
  --cyan-400: #0d8f88;
  --cyan-500: #0a7a74;
  --violet-400: #5b4fd1;
  --violet-500: #4f43c4;
  --teal-400: #0f9b8f;
  --text: #0f1a33;
  --text-muted: #3d4d6b;
  --text-legal: #4a5a78;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --surface-soft: rgba(15, 26, 51, 0.04);
  --surface-soft-strong: rgba(15, 26, 51, 0.06);
  --border: rgba(15, 26, 51, 0.16);
  --focus: #0d8f88;
  --link: #0a7a74;
  --link-hover: #086660;
  --ok: #16a34a;
  --warn: #d97706;
  --dev: #6366f1;
  --future: #7c3aed;
  --header-bg: rgba(247, 250, 255, 0.9);
  --nav-mobile-bg: rgba(247, 250, 255, 0.98);
  --footer-bg: rgba(15, 26, 51, 0.04);
  --modal-bg: linear-gradient(180deg, #ffffff, #f3f6fc);
  --modal-backdrop: rgba(15, 26, 51, 0.45);
  --field-bg: #ffffff;
  --error: #b91c1c;
  --body-bg:
    radial-gradient(1100px 520px at 8% -8%, rgba(13, 143, 136, 0.1), transparent 55%),
    radial-gradient(900px 480px at 92% 0%, rgba(91, 79, 209, 0.1), transparent 52%),
    radial-gradient(700px 380px at 50% 70%, rgba(15, 155, 143, 0.05), transparent 55%),
    linear-gradient(180deg, #f7faff 0%, #eef3fb 42%, #e8eef8 100%);
  --cta-bg:
    linear-gradient(145deg, rgba(13, 143, 136, 0.1), rgba(91, 79, 209, 0.1)),
    rgba(255, 255, 255, 0.88);
  --shadow: 0 20px 48px rgba(15, 26, 51, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
  font-size: calc(100% * var(--text-scale, 1));
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--body-bg);
  min-height: 100vh;
  overflow-x: clip;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-image,
.module-media img,
.app-phone-stage img {
  height: 100%;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--cyan-400);
  color: var(--navy-950);
  padding: 0.75rem 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  overflow: visible;
  pointer-events: auto;
}

.header-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  position: relative;
  flex-wrap: wrap;
  overflow: visible;
  pointer-events: auto;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft-strong);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  min-height: 34px;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(62, 224, 212, 0.08);
}

.lang-btn.is-active,
.lang-btn[aria-pressed="true"] {
  color: #060b18;
  background: linear-gradient(135deg, #3ee0d4, #7ff0e8 55%, #c4b5fd);
}

.lang-code {
  font-weight: 700;
}

.lang-name {
  white-space: nowrap;
}

.theme-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft-strong);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.theme-toggle:hover {
  border-color: rgba(62, 224, 212, 0.4);
  background: rgba(62, 224, 212, 0.08);
}

.theme-toggle-icon {
  display: inline-flex;
  line-height: 0;
}

html[data-theme="dark"] .theme-toggle-icon-moon,
html[data-theme="light"] .theme-toggle-icon-sun {
  display: none;
}

.theme-toggle-text {
  letter-spacing: 0.02em;
}

/* Accessibility tools: text scale + speech */
.a11y-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.text-scale,
.speech-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft-strong);
  position: relative;
}

.a11y-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  min-width: 44px;
  min-height: 44px;
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.a11y-btn:hover:not(:disabled) {
  color: var(--text);
  background: rgba(62, 224, 212, 0.08);
}

.a11y-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.a11y-btn-scale .a11y-btn-label {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.a11y-btn-speech .a11y-speech-icon {
  display: inline-flex;
  line-height: 0;
}

.a11y-speech-text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.speech-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.speech-status.is-visible {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0 0.35rem 0 0.15rem;
  max-width: 9.5rem;
  text-overflow: ellipsis;
  overflow: hidden;
}

html[data-theme="light"] .a11y-btn:hover:not(:disabled) {
  background: rgba(13, 143, 136, 0.1);
}

@media (min-width: 761px) {
  .header-inner {
    width: min(1320px, calc(100% - 2.5rem));
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.85rem 1.15rem;
  }

  .header-tools {
    order: 3;
    margin-left: 0;
    flex-shrink: 0;
    gap: 0.5rem;
  }

  .site-nav {
    order: 2;
    margin-left: auto;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem 0.85rem;
    min-width: 0;
  }

  .site-nav a,
  .site-nav .btn {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .site-nav .btn {
    margin-left: 0.15rem;
  }

  .lang-switcher,
  .theme-toggle,
  .a11y-tools {
    flex-shrink: 0;
  }
}

/* Full language / theme labels on wide desktops */
@media (min-width: 1460px) {
  .header-inner {
    width: min(1420px, calc(100% - 3rem));
    gap: 1rem 1.35rem;
  }

  .site-nav {
    gap: 0.35rem 1rem;
  }

  .site-nav .btn {
    margin-left: 0.25rem;
  }

  .header-tools {
    gap: 0.55rem;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0.15rem 0;
  border-radius: 0;
  line-height: 0;
}

.brand:hover .brand-logo,
.footer-brand-link:hover .brand-logo {
  filter:
    drop-shadow(0 0 10px rgba(62, 224, 212, 0.22))
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.brand-logo {
  display: block;
  width: auto;
  height: 40px;
  max-width: min(188px, 48vw);
  object-fit: contain;
  object-position: left center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  transition: filter 0.25s var(--ease);
}

.brand-logo-footer {
  height: 78px;
  max-width: min(168px, 56vw);
  margin: 0;
  object-position: left top;
  filter:
    drop-shadow(0 0 14px rgba(124, 108, 240, 0.18))
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

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

.site-nav a:focus-visible,
.site-nav .btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Anchor targets clear the sticky header */
main > section[id],
#conteudo,
#topo {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

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

.btn-sm {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  font-size: 0.92rem;
}

.btn-primary {
  background: linear-gradient(135deg, #3ee0d4, #2bb8d4 55%, #7c6cf0);
  color: #060b18;
  border-color: transparent;
}

.btn-primary:hover {
  color: #060b18;
  filter: brightness(1.05);
}

.btn-ghost {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(62, 224, 212, 0.45);
  background: rgba(62, 224, 212, 0.08);
}

.btn-text {
  background: transparent;
  color: var(--link);
  border: none;
  min-height: auto;
  padding: 0.35rem 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-text:hover {
  color: var(--link-hover);
  transform: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 4.5rem 0 5rem;
  overflow: clip;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  transform: scale(1.04);
  animation: hero-ken 28s ease-in-out infinite alternate;
}

@keyframes hero-ken {
  from {
    transform: scale(1.04) translate(0, 0);
  }
  to {
    transform: scale(1.1) translate(-1.5%, 1%);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(4, 8, 20, 0.92) 0%,
      rgba(6, 11, 24, 0.82) 34%,
      rgba(6, 11, 24, 0.48) 58%,
      rgba(6, 11, 24, 0.28) 100%
    ),
    linear-gradient(180deg, rgba(6, 11, 24, 0.35) 0%, transparent 28%, rgba(4, 8, 20, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, min(34rem, 48%)) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(1.5rem, 4vw, 3rem);
  animation: hero-rise 0.9s var(--ease) both;
}

.hero-content > * {
  grid-column: 1;
  justify-self: start;
  width: 100%;
  max-width: 34rem;
}

.brand-hero {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(105deg, #ffffff 10%, #3ee0d4 55%, #9b8cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 24px rgba(2, 6, 18, 0.35));
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  max-width: 18ch;
  color: #e8eefc;
  text-shadow: 0 2px 24px rgba(2, 6, 18, 0.55);
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: #c5d0ea;
  font-size: 1.125rem;
  max-width: 42ch;
  text-shadow: 0 1px 12px rgba(2, 6, 18, 0.65);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions .btn-ghost {
  background: rgba(8, 14, 30, 0.45);
  backdrop-filter: blur(8px);
  color: #e8eefc;
  border-color: rgba(158, 188, 255, 0.22);
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Sections */
.section {
  padding: 6.5rem 0;
  border-top: 1px solid rgba(158, 188, 255, 0.08);
}

.section-head {
  max-width: 640px;
  margin-bottom: 3.25rem;
}

.section-head h2,
.cta-final h2,
.modal-panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-head p,
.cta-final > p,
.modal-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Como funciona */
.section-how {
  background:
    radial-gradient(700px 280px at 50% 0%, rgba(124, 108, 240, 0.1), transparent 65%),
    transparent;
}

/* Prisma / Camada Waslaa — visual principal do fluxo */
.layer-scene {
  margin: 0 0 2.25rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 42%, rgba(62, 224, 212, 0.12), transparent 55%),
    radial-gradient(ellipse at 70% 50%, rgba(124, 108, 240, 0.14), transparent 50%),
    var(--navy-900);
  box-shadow: var(--shadow);
  position: relative;
}

.layer-scene img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  animation: prisma-glow 5.5s ease-in-out infinite;
}

.layer-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 58%, rgba(6, 11, 24, 0.32)),
    linear-gradient(90deg, rgba(62, 224, 212, 0.04), transparent 28%, transparent 72%, rgba(124, 108, 240, 0.06));
}

@keyframes prisma-glow {
  0%,
  100% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.04) saturate(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .layer-scene img {
    animation: none;
  }
}

.how-flow {
  display: grid;
  grid-template-columns: 1fr auto 1.05fr auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 0.5rem 0 1rem;
}

.how-stage {
  padding: 1.75rem 1.35rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  min-height: 220px;
}

.how-stage-label {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-400);
  font-weight: 700;
}

.how-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.how-tags li {
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-soft-strong);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}

.how-tags li.is-active {
  border-color: rgba(62, 224, 212, 0.55);
  background: rgba(62, 224, 212, 0.12);
  transform: translateY(-2px);
}

.how-tags-out li.is-active {
  border-color: rgba(155, 140, 255, 0.55);
  background: rgba(124, 108, 240, 0.16);
}

.how-arrow {
  display: grid;
  place-items: center;
}

.how-arrow span {
  display: block;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-400), var(--violet-400));
  position: relative;
  border-radius: 2px;
}

.how-arrow span::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--violet-400);
  border-top: 2px solid var(--violet-400);
  transform: translateY(-50%) rotate(45deg);
}

.how-core {
  position: relative;
  padding: 2.25rem 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(155, 140, 255, 0.35);
  background:
    linear-gradient(165deg, rgba(26, 42, 82, 0.95), rgba(10, 18, 40, 0.98)),
    radial-gradient(circle at 50% 30%, rgba(62, 224, 212, 0.2), transparent 60%);
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
  animation: core-pulse 4.5s ease-in-out infinite;
}

.how-core::before {
  content: "";
  position: absolute;
  inset: auto;
  width: 140px;
  height: 140px;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 224, 212, 0.28), transparent 70%);
  pointer-events: none;
}

.how-core-title {
  margin: 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.how-core-desc {
  margin: 0.4rem 0 0;
  position: relative;
  color: var(--cyan-400);
  font-weight: 600;
  font-size: 0.95rem;
}

@keyframes core-pulse {
  0%,
  100% {
    box-shadow: 0 24px 60px rgba(2, 6, 18, 0.45);
  }
  50% {
    box-shadow:
      0 24px 60px rgba(2, 6, 18, 0.45),
      0 0 40px rgba(62, 224, 212, 0.18);
  }
}

/* Modules */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.module {
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.module-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-800);
}

.module-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 11, 24, 0.55));
  pointer-events: none;
}

/* Waslaa App — compact phone mockup (scoped) */
.module-media-app {
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 1.55rem 1.15rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 18%, rgba(124, 108, 240, 0.2), transparent 62%),
    radial-gradient(ellipse 55% 50% at 78% 88%, rgba(62, 224, 212, 0.14), transparent 58%),
    radial-gradient(ellipse 45% 40% at 18% 75%, rgba(34, 197, 188, 0.08), transparent 55%),
    linear-gradient(165deg, #08101f 0%, #101c3a 48%, #0a142c 100%);
}

.app-phone {
  width: min(42%, 148px);
  filter: drop-shadow(0 14px 28px rgba(2, 6, 18, 0.55));
}

.app-phone-bezel {
  border-radius: 20px;
  padding: 6px;
  background: linear-gradient(160deg, #2a3558 0%, #12182c 45%, #1a243f 100%);
  border: 1px solid rgba(158, 188, 255, 0.22);
}

.app-phone-screen {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: #060b18;
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
}

.app-phone-chrome {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.5rem 0.55rem 0.65rem;
  background: linear-gradient(180deg, rgba(6, 11, 24, 0.75) 0%, transparent 100%);
}

.app-phone-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 8px rgba(62, 224, 212, 0.55);
  flex-shrink: 0;
}

.app-phone-title {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(232, 238, 252, 0.94);
  line-height: 1;
}

.app-phone-stage {
  flex: 1;
  min-height: 0;
}

.app-phone-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.app-phone-caption {
  position: absolute;
  z-index: 2;
  left: 0.45rem;
  right: 0.45rem;
  bottom: 0.5rem;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  background: rgba(6, 11, 24, 0.8);
  border: 1px solid rgba(158, 188, 255, 0.16);
  backdrop-filter: blur(8px);
}

.module .app-phone-caption p {
  margin: 0;
  font-size: 0.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: 0.01em;
}

.module-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem 1.4rem 1.5rem;
  flex: 1;
}

.module-compact .module-body {
  padding: 1.5rem 1.4rem 1.65rem;
  min-height: 160px;
}

.module-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.module-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.module-sub {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.module h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.module p {
  margin: 0;
  color: var(--text-muted);
}

.module-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.module-actions .btn-primary {
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  max-width: 100%;
  height: auto;
  min-height: 40px;
}

.channel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  width: 100%;
}

.channel-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--link);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.channel-link:hover {
  color: var(--link-hover);
}

.status {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-now {
  color: #052e1a;
  background: #4ade80;
}

.status-pilot {
  color: #422006;
  background: #fbbf24;
}

.status-dev {
  color: #060b18;
  background: #a5b4fc;
}

.status-future {
  color: #2e1065;
  background: #c4b5fd;
  border: 1px dashed rgba(46, 16, 101, 0.35);
}

/* Conexões */
.connect-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.connect-grid-compact li {
  padding: 1.35rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.connect-grid h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.connect-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.connect-cta {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

/* Legislação */
.section-law {
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(62, 224, 212, 0.08), transparent 60%),
    transparent;
}

.law-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  width: 100%;
  max-width: 100%;
}

.law-card {
  min-width: 0;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(165deg, rgba(62, 224, 212, 0.05), transparent 50%),
    var(--surface-soft);
}

.law-card h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.law-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  display: grid;
  gap: 0.65rem;
}

.law-card li {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.law-close {
  margin: 0;
  max-width: 62ch;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Final CTA */
.section-cta {
  padding-bottom: 7rem;
}

.cta-final {
  text-align: center;
  padding: 3.25rem 1.75rem;
  border-radius: 24px;
  border: 1px solid rgba(62, 224, 212, 0.25);
  background: var(--cta-bg);
}

.cta-final > p {
  margin-bottom: 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  background: var(--footer-bg);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: grid;
  gap: 0.85rem;
  max-width: 480px;
  justify-items: start;
}

.footer-brand-link {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
}

.footer-brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 36ch;
}

.footer-brand .footer-legal {
  margin: 0;
  max-width: 52ch;
  color: var(--text-legal);
  font-size: 0.8rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.footer-brand .footer-legal a {
  color: inherit;
  text-decoration: none;
}

.footer-brand .footer-legal a:hover {
  color: var(--text-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-footer nav a,
.site-footer nav button {
  color: var(--text-muted);
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}

.site-footer nav a:hover,
.site-footer nav button:hover {
  color: var(--text);
}

.footer-support {
  margin: 0;
  padding: 0;
  max-width: 22rem;
}

.footer-support-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.45rem 0.55rem;
  margin-inline: -0.55rem;
  color: var(--text-legal);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-decoration: none;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  transition:
    color 0.2s var(--ease),
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.25s var(--ease);
}

.footer-support-label {
  display: block;
  color: inherit;
}

.footer-support-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

.footer-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 2.65rem;
  object-fit: contain;
  object-position: left center;
  filter: none;
  opacity: 0.96;
  transition: opacity 0.2s var(--ease), transform 0.25s var(--ease);
}

.footer-logo-corfo {
  width: 8.75rem;
  max-width: min(8.75rem, 52vw);
  height: 2.85rem;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

.footer-logo-gob {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.footer-support-link:hover {
  color: rgba(210, 220, 240, 0.92);
  background: rgba(158, 188, 255, 0.05);
  border-color: rgba(158, 188, 255, 0.14);
}

.footer-support-link:hover .footer-logo {
  opacity: 1;
}

.footer-support-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  color: var(--text);
  background: rgba(62, 224, 212, 0.06);
  border-color: rgba(62, 224, 212, 0.28);
}

.footer-support-link:focus-visible .footer-logo {
  opacity: 1;
}

.footer-copy {
  margin: 0;
  color: var(--text-legal);
  font-size: 0.9rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-backdrop);
  border: none;
  cursor: pointer;
}

.modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--modal-bg);
  box-shadow: var(--shadow);
  z-index: 1;
  color: var(--text);
}

.modal-wide {
  width: min(680px, 100%);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal-lead {
  margin-bottom: 1.25rem !important;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--field-bg);
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--cyan-400);
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  color: var(--error);
  font-size: 0.9rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.form-success h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  color: var(--ok);
}

.form-success p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.prose h3 {
  font-family: var(--font-display);
  margin: 1.25rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.lead-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.lead-item:first-child {
  border-top: 1px solid var(--border);
}

.lead-item strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.lead-item p {
  margin: 0.2rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.leads-empty {
  padding: 1.25rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* Demo panels */
.proto-demo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.proto-col {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.proto-label {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.proto-sample {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.4;
}

.proto-core {
  align-self: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #060b18;
  background: linear-gradient(135deg, #3ee0d4, #9b8cff);
  white-space: nowrap;
}

.proto-outputs {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  display: grid;
  gap: 0.45rem;
}

.demo-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.demo-channel {
  text-align: left;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  display: grid;
  gap: 0.35rem;
  transition: border-color 0.2s, background 0.2s;
}

.demo-channel strong {
  font-family: var(--font-display);
}

.demo-channel span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.demo-channel.is-active,
.demo-channel:hover {
  border-color: rgba(62, 224, 212, 0.5);
  background: rgba(62, 224, 212, 0.08);
}

.msg-preview {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft-strong);
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.msg-preview-meta {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.msg-bubble {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  max-width: 92%;
  font-size: 0.95rem;
}

.msg-in {
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.msg-out {
  justify-self: end;
  background: rgba(62, 224, 212, 0.12);
  border: 1px solid rgba(62, 224, 212, 0.35);
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

body.nav-open {
  overflow: hidden;
}

/* Responsive — tablet */
@media (max-width: 960px) {
  .container,
  .hero-content {
    width: min(1120px, calc(100% - 2rem));
  }

  .header-inner {
    width: min(1120px, calc(100% - 2rem));
  }

  .hero {
    min-height: min(88vh, 760px);
    min-height: min(88dvh, 760px);
    padding: 3rem 0 3.5rem;
    align-items: flex-end;
  }

  .hero-image {
    object-position: 72% 28%;
    transform: none;
    animation: none;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(4, 8, 20, 0.55) 0%,
        rgba(4, 8, 20, 0.42) 35%,
        rgba(4, 8, 20, 0.88) 68%,
        rgba(4, 8, 20, 0.96) 100%
      );
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-content > * {
    max-width: 36rem;
  }

  .hero h1 {
    max-width: none;
  }

  .section {
    padding: 5rem 0;
  }

  .section-head {
    margin-bottom: 2.5rem;
  }

  .how-flow {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .how-arrow {
    transform: rotate(90deg);
    height: 1.5rem;
  }

  .how-stage {
    min-height: 0;
    padding: 1.35rem 1.15rem;
  }

  .modules-grid,
  .demo-channels,
  .proto-demo {
    grid-template-columns: 1fr;
  }

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

  .proto-core {
    justify-self: center;
    white-space: normal;
    text-align: center;
  }

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

  .module-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .module-actions .btn {
    width: 100%;
  }

  .app-phone {
    width: min(38%, 132px);
  }
}

/* Responsive — mobile nav + compact layout */
@media (max-width: 760px) {
  :root {
    --header-h: calc(60px * var(--text-scale, 1));
  }

  .container,
  .header-inner,
  .hero-content {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .header-inner {
    min-height: var(--header-h);
    flex-wrap: nowrap;
    gap: 0.5rem;
    position: static;
  }

  .header-tools {
    gap: 0.4rem;
    flex-shrink: 0;
  }

  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 150;
    width: 100%;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.75rem 1rem 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    background: var(--nav-mobile-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(2, 6, 18, 0.55);
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    pointer-events: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav[aria-hidden="true"] {
    visibility: hidden;
    pointer-events: none;
  }

  .site-nav.is-open[aria-hidden="false"] {
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 140;
    background: rgba(2, 6, 18, 0.45);
    pointer-events: auto;
  }

  .site-header {
    z-index: 160;
  }

  .header-tools,
  .nav-toggle,
  .brand {
    position: relative;
    z-index: 161;
    pointer-events: auto;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.65rem 0.35rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(158, 188, 255, 0.08);
  }

  .site-nav a:last-of-type {
    border-bottom: 0;
  }

  .site-nav .btn {
    width: 100%;
    margin-top: 0.5rem;
    min-height: 48px;
  }

  .lang-switcher {
    flex-shrink: 0;
  }

  .lang-name {
    display: none;
  }

  .lang-btn {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding-inline: 0.5rem;
    font-size: 0.82rem;
  }

  .theme-toggle-text {
    display: none;
  }

  .theme-toggle {
    padding-inline: 0.55rem;
  }

  .a11y-speech-text {
    display: none;
  }

  .speech-status.is-visible {
    display: none;
  }

  .a11y-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 0.25rem 0.35rem;
  }

  .a11y-tools {
    gap: 0.3rem;
  }

  .brand-logo {
    height: 32px;
    max-width: min(148px, 40vw);
  }

  .brand-logo-footer {
    height: 74px;
    max-width: min(158px, 58vw);
    margin-bottom: 0.15rem;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    padding: 2.25rem 0 2.75rem;
    align-items: flex-end;
  }

  .hero-image {
    object-position: 70% 22%;
  }

  .brand-hero {
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 11vw, 2.85rem);
  }

  .hero h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.35rem, 6.2vw, 1.85rem);
    max-width: none;
  }

  .hero-lead {
    margin-bottom: 1.35rem;
    font-size: 1.02rem;
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .section {
    padding: 3.75rem 0;
  }

  .section-head {
    margin-bottom: 2rem;
  }

  .section-head h2,
  .cta-final h2,
  .modal-panel h2 {
    font-size: clamp(1.4rem, 5.5vw, 1.85rem);
  }

  .section-head p,
  .cta-final > p,
  .modal-lead {
    font-size: 1.02rem;
  }

  .layer-scene {
    margin-bottom: 1.5rem;
    border-radius: 14px;
  }

  .layer-scene img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .how-tags li {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
  }

  .modules-grid {
    gap: 1.15rem;
  }

  .module-body {
    padding: 1.15rem 1.1rem 1.25rem;
  }

  .module-compact .module-body {
    min-height: 0;
    padding: 1.15rem 1.1rem 1.35rem;
  }

  .module h3 {
    font-size: 1.1rem;
  }

  .status {
    white-space: normal;
    line-height: 1.25;
    max-width: 100%;
  }

  .channel-links {
    gap: 0.65rem 1rem;
  }

  .channel-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0;
  }

  .module-media-app {
    padding: 1.15rem 1.1rem 1rem;
  }

  .app-phone {
    width: min(46%, 150px);
  }

  .app-phone-title {
    font-size: 0.58rem;
  }

  .module .app-phone-caption p {
    font-size: 0.58rem;
  }

  .connect-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .connect-grid-compact li {
    padding: 1.15rem 1rem;
  }

  .connect-cta {
    margin-top: 1.75rem;
  }

  .connect-cta .btn,
  .cta-row .btn {
    width: 100%;
    min-height: 48px;
  }

  .law-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
  }

  .law-card {
    padding: 1.35rem 1.15rem;
  }

  .law-close {
    font-size: 1.05rem;
  }

  .section-cta {
    padding-bottom: 4.5rem;
  }

  .cta-final {
    padding: 2.25rem 1.15rem;
    border-radius: 18px;
  }

  .site-footer {
    padding: 2rem 0 max(2.5rem, env(safe-area-inset-bottom, 0px));
  }

  .footer-brand .footer-legal {
    max-width: none;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .footer-brand .footer-legal span[aria-hidden="true"] {
    display: inline-block;
    margin-inline: 0.15rem;
  }

  .site-footer nav {
    gap: 0.35rem 0.85rem;
  }

  .site-footer nav a,
  .site-footer nav button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0;
  }

  .footer-support {
    max-width: none;
  }

  .footer-support-link {
    font-size: 0.76rem;
    gap: 0.5rem;
    padding: 0.5rem 0.35rem;
    margin-inline: -0.35rem;
    width: 100%;
  }

  .footer-support-logos {
    gap: 0.7rem 0.9rem;
  }

  .footer-logo-corfo {
    width: 7.5rem;
    max-width: min(7.5rem, 58vw);
    height: 2.45rem;
  }

  .footer-logo-gob {
    width: 2.45rem;
    height: 2.45rem;
  }

  .modal {
    padding: 0;
    align-items: end;
    place-items: end center;
  }

  .modal-panel {
    width: 100%;
    max-height: min(92dvh, 100%);
    margin: 0;
    padding: 1.35rem 1.1rem max(1.35rem, env(safe-area-inset-bottom, 0px));
    border-radius: 18px 18px 0 0;
    -webkit-overflow-scrolling: touch;
  }

  .modal-wide {
    width: 100%;
  }

  .modal-panel h2 {
    padding-right: 2.75rem;
  }

  .modal-close {
    top: 0.65rem;
    right: 0.65rem;
    width: 44px;
    height: 44px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn,
  .form-success .btn {
    width: 100%;
  }

  .form-success .btn-text {
    justify-content: center;
    text-align: center;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 1rem;
  }

  .demo-channel {
    min-height: 48px;
    padding: 0.95rem;
  }

  .msg-bubble {
    max-width: 100%;
  }
}

/* Phones narrow */
@media (max-width: 480px) {
  .container,
  .header-inner,
  .hero-content {
    width: calc(100% - 1.25rem);
  }

  .brand-logo {
    height: 28px;
    max-width: min(120px, 34vw);
  }

  .header-tools {
    gap: 0.25rem;
  }

  .lang-btn {
    min-width: 36px;
    min-height: 36px;
    padding-inline: 0.3rem;
  }

  .theme-toggle,
  .nav-toggle {
    min-width: 40px;
    min-height: 40px;
  }

  .a11y-btn {
    min-width: 34px;
    min-height: 36px;
    padding: 0.2rem 0.28rem;
  }

  .a11y-btn-scale .a11y-btn-label {
    font-size: 0.75rem;
  }

  .text-scale,
  .speech-controls {
    padding: 0.1rem;
    gap: 0;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0 2.35rem;
  }

  .brand-hero {
    font-size: clamp(1.85rem, 10.5vw, 2.4rem);
  }

  .hero h1 {
    font-size: clamp(1.25rem, 6vw, 1.55rem);
    line-height: 1.22;
  }

  .hero-lead {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .section {
    padding: 3.25rem 0;
  }

  .how-stage {
    padding: 1.15rem 1rem;
  }

  .how-core {
    padding: 1.65rem 1.15rem;
  }

  .how-core-title {
    font-size: 1.35rem;
  }

  .app-phone {
    width: min(52%, 148px);
  }

  .cta-final {
    padding: 1.85rem 1rem;
  }
}

/* Landscape phones: keep hero usable without clipping copy */
@media (max-width: 900px) and (max-height: 480px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 1.75rem 0 2rem;
    align-items: center;
  }

  .hero-image {
    object-position: 65% 30%;
  }

  .brand-hero {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 0.5rem;
  }

  .hero h1 {
    font-size: clamp(1.15rem, 3.5vw, 1.45rem);
    margin-bottom: 0.5rem;
  }

  .hero-lead {
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    width: auto;
    flex: 1 1 12rem;
  }

  .site-nav {
    max-height: calc(100dvh - var(--header-h));
  }

  .modal {
    align-items: center;
    place-items: center;
    padding: 0.5rem;
  }

  .modal-panel {
    border-radius: 14px;
    max-height: min(94dvh, 100%);
  }
}

@media (max-width: 1459px) and (min-width: 761px) {
  .lang-name,
  .theme-toggle-text,
  .a11y-speech-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .speech-status.is-visible {
    display: none;
  }

  .lang-btn {
    min-width: 42px;
    justify-content: center;
    padding-inline: 0.55rem;
  }

  .theme-toggle {
    padding-inline: 0.6rem;
  }

  .a11y-btn {
    min-width: 40px;
    padding-inline: 0.4rem;
  }

  .site-nav {
    gap: 0.25rem 0.7rem;
  }

  .site-nav a {
    font-size: 0.9rem;
  }
}

/* Light theme — preserve structure; adjust surfaces only */
html[data-theme="light"] .skip-link {
  background: #0d8f88;
  color: #ffffff;
}

html[data-theme="light"] .how-core {
  background:
    linear-gradient(165deg, rgba(232, 238, 248, 0.98), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 50% 30%, rgba(13, 143, 136, 0.16), transparent 60%);
  border-color: rgba(91, 79, 209, 0.28);
}

html[data-theme="light"] .layer-scene {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(13, 143, 136, 0.1), transparent 55%),
    radial-gradient(ellipse at 70% 50%, rgba(91, 79, 209, 0.1), transparent 50%),
    #eef3fb;
}

html[data-theme="light"] .module-media {
  background: #d7e0f0;
}

html[data-theme="light"] .footer-support-link:hover {
  color: var(--text);
  background: rgba(15, 26, 51, 0.04);
  border-color: rgba(15, 26, 51, 0.12);
}

html[data-theme="light"] .form-success h3 {
  color: #15803d;
}

html[data-theme="light"] .modal-close {
  background: rgba(15, 26, 51, 0.04);
}

html[data-theme="light"] .app-phone-caption {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 26, 51, 0.12);
}

html[data-theme="light"] .app-phone-caption p {
  color: #0f1a33;
}

html[data-theme="light"] .app-phone-title {
  color: rgba(232, 238, 252, 0.94);
}

html[data-theme="light"] .site-nav {
  box-shadow: 0 18px 40px rgba(15, 26, 51, 0.12);
}
