:root {
  --navy: #0b1f3b;
  --navy-2: #10294f;
  --royal: #1e5eff;
  --royal-2: #3f79ff;
  --sky: #eaf2ff;
  --sky-2: #f5f8ff;
  --text: #0f172a;
  --muted: #5b6780;
  --line: #d9e3f5;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(11, 31, 59, 0.12);
  --shadow-soft: 0 14px 34px rgba(11, 31, 59, 0.08);
  --shadow-hover: 0 24px 60px rgba(11, 31, 59, 0.16);
  --border-strong: rgba(11, 31, 59, 0.14);
  --shadow-contrast: 0 16px 36px rgba(11, 31, 59, 0.14);
  --shadow-contrast-hover: 0 28px 70px rgba(11, 31, 59, 0.20);
  --radius: 22px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 20%, #f8fbff 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.88);
  font-size: 14px;
}

.topbar-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.topbar-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-links a:hover { color: white; }

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(217,227,245,.85);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: .02em;
}

.brand-mark {
  width: 152px;
  height: 58px;
  border-radius: 16px;
  background: white;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(217,227,245,.9);
  overflow: hidden;
  flex-shrink: 0;
  padding: 8px 14px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.brand-mark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }

.menu {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.menu a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--navy);
  font-weight: 600;
  transition: .2s ease;
}

.menu a:hover,
.menu a.active {
  background: var(--sky);
  color: var(--royal);
}

.cta-btn, .btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, filter .25s ease, border-color .25s ease;
}

.cta-btn:hover, .btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.04);
}

.btn-primary {
  background: linear-gradient(135deg, var(--royal), var(--royal-2));
  color: white;
  box-shadow: 0 14px 30px rgba(30, 94, 255, .22);
}

.btn-secondary {
  background: white;
  color: var(--navy);
  border: 1px solid var(--line);
}

main { min-height: 70vh; }

.page { display: none; }
.page.active { display: block; }

.hero {
  min-height: calc(100vh - 128px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(6,14,28,.78) 0%, rgba(6,14,28,.56) 38%, rgba(6,14,28,.42) 100%),
    linear-gradient(180deg, rgba(6,14,28,.16) 0%, rgba(6,14,28,.46) 100%),
    url('../img/hero.jpeg') center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 75%, rgba(34,98,255,.20), transparent 30%),
    radial-gradient(circle at 72% 85%, rgba(18,88,255,.14), transparent 26%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: end;
  min-height: calc(100vh - 128px);
  padding: 56px 0;
  position: relative;
  z-index: 2;
}

.hero-left {
  max-width: 860px;
  padding-top: 30px;
}

.hero-right {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(160,140,120,.34);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(255,255,255,.95);
  margin-bottom: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.24);
}

.eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #46c6ff;
  box-shadow: 0 0 0 6px rgba(70,198,255,.14);
  flex-shrink: 0;
}

h1, h2, h3 { margin: 0 0 16px; line-height: 1.05; }

h1 {
  margin: 0 0 18px;
  font-size: clamp(56px, 7vw, 102px);
  line-height: .92;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--white);
  max-width: 980px;
}

h2 { font-size: clamp(32px, 4vw, 50px); color: var(--navy); }
h3 { font-size: 24px; color: var(--navy); }

.script-line {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.03em;
}

.hero-main-copy {
  margin: 0 0 30px;
  max-width: 920px;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.55;
  color: rgba(255,255,255,.86);
}

.lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 62ch;
}

.section-top .lead {
  max-width: 92ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 0;
  margin-bottom: 30px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin-top: 0;
}

.stat {
  padding: 24px 24px 20px;
  border-radius: 24px;
  background: rgba(28, 41, 66, .58);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0,0,0,.24);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 24px 60px rgba(0,0,0,.34);
}

.stat strong {
  display: block;
  font-size: clamp(34px, 3vw, 52px);
  line-height: 1;
  margin-bottom: 12px;
  font-weight: 900;
  color: var(--white);
}

.stat span {
  display: block;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255,255,255,.9);
}

.info-card {
  width: min(100%, 620px);
  padding: 34px;
  border-radius: 34px;
  background: rgba(34, 45, 67, .62);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  transition: transform .45s ease, box-shadow .45s ease, filter .45s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,.36);
  filter: contrast(1.03) saturate(1.02);
}

.card-kicker {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: .08em;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
}

.info-card h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 2.3vw, 42px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 520px;
}

.card-copy {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,.88);
  max-width: 520px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.hero-chip:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.24);
}

.section {
  padding: 44px 0 88px;
}

.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.grid-3, .grid-2, .grid-4 {
  display: grid;
  gap: 22px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 26px;
}

.team-card .card-body {
  text-align: center;
}

.team-avatar {
  width: 220px;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  object-fit: cover;
  object-position: 50% 18%;
  margin: 0 auto 18px;
  border: 1px solid rgba(11, 31, 59, 0.14);
  box-shadow: var(--shadow-contrast);
}

.team-name {
  margin-bottom: 8px;
}

.team-role {
  font-weight: 800;
  color: var(--navy);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.team-copy {
  text-align: left;
  max-width: 54ch;
  margin: 0 auto;
}

.team-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.8;
}

.team-copy p:last-child {
  margin-bottom: 0;
}

.card {
  background: white;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-contrast);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, filter .35s ease;
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-contrast-hover);
  border-color: #bfd2fb;
  filter: saturate(1.02);
}

.card-body { padding: 28px; }
.card p { color: var(--muted); line-height: 1.75; }

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--royal));
  color: white;
  font-size: 24px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(30,94,255,.18);
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover .icon-box,
.contact-item:hover .icon-box,
.step:hover .step-index {
  transform: translateY(-2px) scale(1.03);
}

.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 26px;
  align-items: stretch;
}

.about-photo {
  min-height: 640px;
  border-radius: 30px;
  border: 1px solid #d7e3fb;
  background:
    linear-gradient(180deg, rgba(11,31,59,.08), rgba(11,31,59,.34)),
    url('../img/josep.jpeg') center/cover;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .45s ease, box-shadow .45s ease, filter .45s ease;
}

.about-photo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  filter: contrast(1.03);
}

.about-photo .placeholder {
  position: absolute;
  left: 22px;
  bottom: 22px;
  right: 22px;
  background: rgba(255,255,255,.94);
  border-radius: 18px;
  padding: 16px 18px;
  color: var(--muted);
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(11,31,59,.10);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.pill {
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--navy);
  font-weight: 700;
  border: 1px solid #d3e0fb;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.pill:hover {
  transform: translateY(-2px);
  background: #edf4ff;
  border-color: #bfd2fb;
}

.process { position: relative; }

.step {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-contrast);
  min-height: 230px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, filter .35s ease;
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-contrast-hover);
  border-color: #bfd2fb;
  filter: saturate(1.02);
}

.step-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  margin-bottom: 18px;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.project-thumb {
  min-height: 260px;
  position: relative;
  background-size: cover;
  background-position: center;
  transition: transform .45s ease, filter .45s ease;
}

.card:hover .project-thumb {
  transform: scale(1.03);
  filter: contrast(1.04) saturate(1.04);
}

.project-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--royal);
  font-size: 13px;
  font-weight: 800;
  transition: transform .25s ease, background .25s ease;
}

.chip:hover {
  transform: translateY(-2px);
  background: #deebff;
}

.quote {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: white;
  padding: 32px;
  border-radius: 28px;
  box-shadow: var(--shadow-contrast);
  transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
}

.quote:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-contrast-hover);
  filter: saturate(1.02);
}

.quote p {
  color: rgba(255,255,255,.88);
  font-size: 18px;
  line-height: 1.8;
}

.contact-wrap {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}

.contact-card { padding: 30px; }

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 18px;
  background: var(--sky-2);
  border: 1px solid rgba(11, 31, 59, 0.10);
  box-shadow: 0 10px 22px rgba(11, 31, 59, 0.08);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, filter .3s ease;
}

.contact-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(11, 31, 59, 0.14);
  border-color: #bfd2fb;
  filter: saturate(1.02);
}

form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field-full { grid-column: 1 / -1; }

input, textarea, select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
  padding: 15px 16px;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: #84a7ff;
  box-shadow: 0 0 0 4px rgba(30,94,255,.08);
}

textarea { min-height: 150px; resize: vertical; }

.faq-wrap {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-contrast);
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease, filter .3s ease;
}

.faq-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-contrast-hover);
  border-color: #bfd2fb;
  filter: saturate(1.02);
}

.faq-question {
  width: 100%;
  border: 0;
  background: white;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 22px 24px;
  font-weight: 800;
  cursor: pointer;
}

.faq-question span:last-child {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--sky);
  color: var(--royal);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform .25s ease, background .25s ease;
}

.faq-item.active .faq-question span:last-child {
  transform: rotate(45deg);
  background: #dce8ff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-answer-inner {
  padding: 0 24px 22px;
  color: var(--muted);
  line-height: 1.8;
}

.cta-panel {
  margin-top: 34px;
  background: #f5f6f8;
  border: 1px solid var(--border-strong);
  border-radius: 32px;
  padding: 30px 28px;
  box-shadow: var(--shadow-contrast);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, filter .35s ease;
}

.cta-panel:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-contrast-hover);
  border-color: #bfd2fb;
  filter: saturate(1.02);
}

.cta-panel .kicker {
  margin-bottom: 8px;
}

.cta-panel h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 42px);
}

.cta-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.legal-wrap {
  display: grid;
  grid-template-columns: .34fr .66fr;
  gap: 24px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 108px;
  background: white;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  box-shadow: var(--shadow-contrast);
  padding: 20px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.legal-nav:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-contrast-hover);
  border-color: #bfd2fb;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

.legal-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--navy);
  font-weight: 700;
  transition: .2s ease;
}

.legal-nav a:hover,
.legal-nav a.active {
  background: var(--sky);
  color: var(--royal);
}

.legal-content .card {
  margin-bottom: 20px;
}

.legal-content h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.8;
}

.legal-content ul {
  margin: 0;
  padding-left: 20px;
}

.footer {
  background: var(--navy);
  color: rgba(255,255,255,.84);
  padding: 26px 0 44px;
  margin-top: 36px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,.84);
}

.footer-links a:hover {
  color: white;
}

.kicker {
  color: var(--royal);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}

.muted { color: var(--muted); }
.mobile-toggle { display: none; }

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: center;
    gap: 28px;
    min-height: auto;
  }

  .hero-right {
    justify-content: flex-start;
  }

  .info-card {
    width: 100%;
    max-width: 760px;
  }
}

@media (max-width: 1080px) {
  .split, .contact-wrap, .grid-4, .legal-wrap, .cta-panel, .team-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .about-photo { min-height: 460px; }
  .legal-nav { position: static; }
  .cta-actions { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    padding: 42px 0 34px;
  }

  h1 {
    font-size: clamp(44px, 13vw, 74px);
  }

  .hero-main-copy,
  .card-copy {
    font-size: 18px;
  }

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

  .eyebrow {
    font-size: 13px;
    padding: 12px 16px;
  }

  .info-card {
    padding: 24px;
    border-radius: 26px;
  }

  .hero-chip {
    min-height: 50px;
    font-size: 16px;
    padding: 0 18px;
  }
}

@media (max-width: 760px) {
  .menu {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 84px;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .menu.open { display: flex; }
  .menu a, .menu .cta-btn { width: 100%; justify-content: center; }

  .mobile-toggle {
    display: inline-flex;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: white;
    color: var(--navy);
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }

  .grid-3 { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; }
  form { grid-template-columns: 1fr; }
  .brand-mark { width: 132px; height: 52px; }
  .hero-actions .btn,
  .cta-actions .btn { width: 100%; }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(11, 31, 59, 0.08);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(11, 31, 59, 0.12);
}

.whatsapp-float {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: white;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.20);
  z-index: 999;
  overflow: visible;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
  filter: saturate(1.06);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  display: block;
}

html[data-theme="dark"] body {
  background: linear-gradient(180deg, #050b16 0%, #071124 55%, #050b16 100%);
  color: #e7eefc;
}

html[data-theme="dark"] {
  --text: rgba(231, 238, 252, .92);
  --muted: rgba(198, 208, 227, .86);
  --line: rgba(148, 163, 184, .22);
  --border-strong: rgba(148, 163, 184, .18);
  --sky: rgba(30, 94, 255, .16);
  --sky-2: rgba(15, 23, 42, .68);
}

html[data-theme="dark"] h2,
html[data-theme="dark"] h3 {
  color: rgba(231, 238, 252, .94);
}

html[data-theme="dark"] header {
  background: rgba(7, 17, 36, .74);
  border-bottom: 1px solid rgba(148, 163, 184, .18);
}

html[data-theme="dark"] .menu a {
  color: rgba(231, 238, 252, .92);
}

html[data-theme="dark"] .menu a:hover,
html[data-theme="dark"] .menu a.active {
  background: rgba(30, 94, 255, .16);
  color: rgba(210, 225, 255, .98);
}

html[data-theme="dark"] .brand-mark {
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(148, 163, 184, .18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] .btn-secondary {
  background: rgba(15, 23, 42, .70);
  color: rgba(231, 238, 252, .92);
  border-color: rgba(148, 163, 184, .22);
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .step,
html[data-theme="dark"] .faq-item {
  background: rgba(15, 23, 42, .86);
  border-color: rgba(148, 163, 184, .18);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] .card:hover,
html[data-theme="dark"] .step:hover,
html[data-theme="dark"] .faq-item:hover {
  border-color: rgba(63, 121, 255, .42);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .44);
}

html[data-theme="dark"] .team-role {
  color: rgba(231, 238, 252, .92);
}

html[data-theme="dark"] .pill {
  background: rgba(30, 94, 255, .16);
  color: rgba(210, 225, 255, .98);
  border-color: rgba(63, 121, 255, .34);
}

html[data-theme="dark"] .cta-panel {
  background: rgba(15, 23, 42, .86);
  border-color: rgba(148, 163, 184, .18);
}

html[data-theme="dark"] .cta-panel:hover {
  border-color: rgba(63, 121, 255, .42);
}

html[data-theme="dark"] .legal-nav {
  background: rgba(15, 23, 42, .86);
  border-color: rgba(148, 163, 184, .18);
}

html[data-theme="dark"] .legal-nav a {
  color: rgba(231, 238, 252, .92);
}

html[data-theme="dark"] .legal-nav a:hover,
html[data-theme="dark"] .legal-nav a.active {
  background: rgba(30, 94, 255, .16);
  color: rgba(210, 225, 255, .98);
}

html[data-theme="dark"] .contact-item {
  background: rgba(15, 23, 42, .68);
  border-color: rgba(148, 163, 184, .18);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .30);
}

html[data-theme="dark"] .contact-item:hover {
  border-color: rgba(63, 121, 255, .42);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] .chip {
  background: rgba(30, 94, 255, .16);
  color: rgba(210, 225, 255, .98);
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: rgba(15, 23, 42, .74);
  border-color: rgba(148, 163, 184, .22);
  color: rgba(231, 238, 252, .92);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: rgba(198, 208, 227, .72);
}

html[data-theme="dark"] .faq-question span:last-child {
  background: rgba(30, 94, 255, .16);
  color: rgba(210, 225, 255, .98);
}

html[data-theme="dark"] .faq-item.active .faq-question span:last-child {
  background: rgba(30, 94, 255, .26);
}

html[data-theme="dark"] .faq-question {
  background: rgba(15, 23, 42, .0);
  color: rgba(231, 238, 252, .92);
}

html[data-theme="dark"] .muted {
  color: rgba(198, 208, 227, .86);
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(15, 23, 42, .70);
  border-color: rgba(148, 163, 184, .22);
  color: rgba(231, 238, 252, .92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
}

@media (max-width: 760px) {
  html[data-theme="dark"] .menu {
    background: rgba(7, 17, 36, .96);
    border-color: rgba(148, 163, 184, .18);
  }

  html[data-theme="dark"] .mobile-toggle {
    background: rgba(15, 23, 42, .70);
    border-color: rgba(148, 163, 184, .22);
    color: rgba(231, 238, 252, .92);
  }
}

@media (max-width: 420px) {
  .theme-toggle,
  .mobile-toggle {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .whatsapp-float {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    right: calc(14px + env(safe-area-inset-right));
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
}
