:root {
  --bg: #07111f;
  --bg-soft: #0d1a2d;
  --panel: rgba(10, 20, 36, 0.82);
  --panel-strong: #0c1728;
  --text: #eef4ff;
  --muted: #b4c2d8;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #f6a609;
  --accent-2: #ffcf5a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --input-bg: rgba(255, 255, 255, 0.03);
  --navbar-bg: rgba(6, 13, 23, 0.72);
  --radius: 22px;
}

html[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-soft: #e8eef8;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --text: #122033;
  --muted: #52657f;
  --line: rgba(18, 32, 51, 0.1);
  --shadow: 0 18px 40px rgba(18, 32, 51, 0.12);
  --surface: rgba(18, 32, 51, 0.04);
  --surface-strong: rgba(18, 32, 51, 0.07);
  --input-bg: rgba(18, 32, 51, 0.03);
  --navbar-bg: rgba(245, 247, 251, 0.88);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(246, 166, 9, 0.2), transparent 25%),
    radial-gradient(circle at right top, rgba(78, 141, 255, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 45%, var(--bg) 100%);
}

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

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

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

.page-shell {
  position: relative;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.topbar__inner,
.navbar__inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar p,
.topbar a {
  margin: 0;
  color: var(--muted);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.theme-toggle {
  width: 104px;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: inline-block;
}

.theme-toggle:hover {
  filter: brightness(1.01);
}

.theme-toggle__track {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, #efefef 0%, #dddddd 100%);
  box-shadow:
    inset 0 3px 8px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] .theme-toggle__track {
  background: linear-gradient(180deg, #3f4d8a 0%, #2d3558 100%);
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.05);
}

.theme-toggle__ghost {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
  z-index: 1;
  opacity: 0.28;
}

.theme-toggle__ghost--sun {
  left: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.theme-toggle__ghost--moon {
  right: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 50px;
  height: 48px;
  border-radius: 999px;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.22s ease, background-color 0.22s ease;
  z-index: 2;
}

html[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(0);
  background: linear-gradient(180deg, #ffffff 0%, #efefef 100%);
}

html[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(50px);
  background: linear-gradient(180deg, #4d79f2 0%, #3656c9 100%);
}

.theme-toggle__thumb-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  line-height: 1;
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.theme-toggle__thumb-icon--sun {
  opacity: 0;
  transform: scale(0.85);
  color: #ffd400;
}

.theme-toggle__thumb-icon--moon {
  opacity: 0;
  transform: scale(0.85);
  color: #000000;
}

html[data-theme="light"] .theme-toggle__thumb-icon--sun {
  opacity: 1;
  transform: scale(1);
  color: #ffd400;
}

html[data-theme="light"] .theme-toggle__thumb-icon--moon {
  opacity: 0;
}

html[data-theme="dark"] .theme-toggle__thumb-icon--sun {
  opacity: 0;
}

html[data-theme="dark"] .theme-toggle__thumb-icon--moon {
  opacity: 1;
  transform: scale(1);
  color: #000000;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent), #ff8d1a);
  color: #111;
  box-shadow: 0 12px 28px rgba(246, 166, 9, 0.28);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__text small {
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
}

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

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--text);
}

.hero {
  padding: 4.25rem 0 2rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero__content h1,
.section-heading h2,
.cta h2 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero__content h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.hero__content p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.pill,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(246, 166, 9, 0.12);
  border: 1px solid rgba(246, 166, 9, 0.25);
  color: #ffd98c;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.hero__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.hero__list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
}

.hero__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
}

.hero__actions,
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.3rem;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(145deg, var(--accent), #ffbf2f);
  color: #111;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(246, 166, 9, 0.22);
}

.button--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.button--small {
  padding: 0.75rem 1rem;
}

.button--full {
  width: 100%;
}

.hero__stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero__stats article,
.card,
.sector-card,
.feature,
.quote-card,
.timeline li,
.accordion__panel,
.section--cta {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero__stats article {
  border-radius: 18px;
  padding: 1rem;
}

.hero__stats strong {
  display: block;
  font-size: 1.6rem;
}

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

.quote-card {
  border-radius: 28px;
  padding: 1.5rem;
}

.quote-card__header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.quote-card__header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.quote-card__header p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 0.9rem;
}

.form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  font: inherit;
}

.form input::placeholder,
.form textarea::placeholder {
  color: #8fa1be;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: rgba(246, 166, 9, 0.7);
  box-shadow: 0 0 0 4px rgba(246, 166, 9, 0.12);
}

.form__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.trusted,
.section--alt {
  padding: 1.25rem 0 0;
}

.trusted__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem 0 0.5rem;
}

.trusted__grid h2,
.section-heading h2,
.cta h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 14ch;
}

.trusted__grid p:not(.section-kicker),
.section-heading p:not(.section-kicker),
.cta p {
  color: var(--muted);
  line-height: 1.7;
}

.trusted__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.trusted__badges span {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
}

.section {
  padding: 5rem 0;
}

.section--video {
  padding-top: 1rem;
}

.section-heading {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.cards {
  display: grid;
  gap: 1rem;
}

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

.cards--features {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.sector-card,
.feature {
  border-radius: 24px;
  padding: 1.3rem;
}

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(246, 166, 9, 0.12);
  border: 1px solid rgba(246, 166, 9, 0.18);
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.card h3,
.sector-card h3,
.feature h3,
.timeline h3 {
  margin: 0 0 0.5rem;
}

.card p,
.sector-card p,
.feature p,
.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.video-card {
  padding: 1rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.video-card__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
}

.video-card__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sector-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    radial-gradient(circle at top right, rgba(246, 166, 9, 0.08), transparent 35%);
}

.feature span {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: #ffd98c;
  font-weight: 800;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem;
  border-radius: 22px;
}

.timeline span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(246, 166, 9, 0.14);
  border: 1px solid rgba(246, 166, 9, 0.22);
  color: #ffd98c;
  font-weight: 800;
}

.accordion {
  display: grid;
  gap: 0.75rem;
}

.accordion__item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.accordion__item strong {
  font-size: 1.2rem;
}

.accordion__panel {
  display: none;
  margin-top: -0.35rem;
  padding: 1rem 1.2rem 1.2rem;
  border-radius: 0 0 18px 18px;
  color: var(--muted);
  line-height: 1.7;
}

.accordion__item[aria-expanded="true"] + .accordion__panel {
  display: block;
}

.section--cta {
  margin: 0 0 4rem;
  border-radius: 32px;
  padding: 2rem;
  background:
    radial-gradient(circle at top left, rgba(246, 166, 9, 0.14), transparent 30%),
    var(--panel);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: rgba(8, 16, 28, 0.96);
  border: 1px solid rgba(246, 166, 9, 0.25);
  color: var(--text);
  box-shadow: var(--shadow);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  z-index: 60;
}

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

.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;
}

.chatbot {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.chatbot__header {
  width: min(380px, calc(100vw - 2rem));
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 28px 28px 0 0;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.chatbot__header-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), #ffbf2f);
  color: #111;
  font-size: 1.1rem;
}

.chatbot__header-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.chatbot__header-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.chatbot__header-state {
  margin-left: auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.chatbot__body {
  width: min(380px, calc(100vw - 2rem));
  max-height: min(72vh, 680px);
  display: flex;
  flex-direction: column;
  border-radius: 0 0 28px 28px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.chatbot.is-minimized .chatbot__body {
  display: none;
}

.chatbot.is-minimized .chatbot__header {
  border-radius: 28px;
}

.chatbot__messages {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  overflow: auto;
}

.chatbot__message {
  max-width: 85%;
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  line-height: 1.55;
  font-size: 0.95rem;
}

.chatbot__message--bot {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-top-left-radius: 6px;
}

.chatbot__message--user {
  justify-self: end;
  background: linear-gradient(145deg, var(--accent), #ffbf2f);
  color: #111;
  border-top-right-radius: 6px;
}

.chatbot__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0 1rem 1rem;
}

.chatbot__chip {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.chatbot__form {
  display: flex;
  gap: 0.6rem;
  padding: 0 1rem 1rem;
}

.chatbot__form input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}

.chatbot__form input::placeholder {
  color: #8fa1be;
}

.chatbot__send {
  padding-inline: 1rem;
  white-space: nowrap;
}

.chatbot__whatsapp {
  display: block;
  padding: 0.95rem 1rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  text-align: center;
  background: var(--surface);
}

@media (max-width: 980px) {
  .hero__grid,
  .trusted__grid,
  .cta {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero__content h1 {
    max-width: 13ch;
  }

  .cards--services,
  .cards--features,
  .sector-grid {
    grid-template-columns: 1fr;
  }

  .trusted__badges {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .topbar__inner {
    flex-direction: column;
    padding: 0.8rem 0;
    min-height: auto;
  }

  .topbar__actions {
    justify-content: center;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 20px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-links.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero__content h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

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

  .section {
    padding: 4rem 0;
  }

  .section--video {
    padding-top: 0.5rem;
  }

  .section--cta {
    padding: 1.4rem;
  }

  .chatbot {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    align-items: stretch;
  }

  .chatbot__header,
  .chatbot__body {
    width: 100%;
  }

  .chatbot__header-state {
    font-size: 0.82rem;
  }

  .chatbot__form {
    flex-direction: column;
  }

  .chatbot__send {
    width: 100%;
  }
}
