:root {
  --color-bg: #01152d;
  --color-surface: #072146;
  --color-surface-alt: #0b2c5d;
  --color-border: rgba(38, 74, 128, 0.45);
  --color-primary: #2b72ff;
  --color-primary-soft: rgba(43, 114, 255, 0.18);
  --color-secondary: #19d9ff;
  --color-success: #7ef5c5;
  --color-error: #ff7a8a;
  --color-text: #f4f7ff;
  --color-text-muted: #9aa7c2;
  --shadow-card: 0 24px 60px -40px rgba(8, 26, 78, 0.9);
  --container-width: min(1120px, calc(100% - 48px));
  font-size: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Manrope", Arial, sans-serif;
  background: radial-gradient(
      circle at 5% -10%,
      rgba(43, 114, 255, 0.22),
      transparent 45%
    ),
    radial-gradient(
      circle at 90% 15%,
      rgba(25, 217, 255, 0.14),
      transparent 40%
    ),
    var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: var(--container-width);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(4, 21, 48, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(43, 114, 255, 0.12);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  position: relative;
}

.logo {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
}

.logo__accent {
  color: var(--color-primary);
  margin-left: 0.14em;
}

.topbar__inline {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.topbar__menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(43, 114, 255, 0.2);
  background: rgba(10, 32, 68, 0.6);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.topbar__menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.topbar__menu:hover {
  background: rgba(10, 32, 68, 0.8);
  transform: translateY(-1px);
}

.topbar__menu:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.topbar__nav {
  display: flex;
  gap: 24px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.topbar__nav a {
  position: relative;
  transition: color 0.2s ease;
}

.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(43, 114, 255, 0.8),
    rgba(25, 217, 255, 0.8)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

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

.topbar__nav a:hover::after {
  transform: scaleX(1);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 32, 68, 0.6);
  border: 1px solid rgba(43, 114, 255, 0.14);
}

.lang-switcher__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-switcher__item:hover {
  color: var(--color-text);
}

.lang-switcher__item--active {
  background: rgba(43, 114, 255, 0.18);
  color: var(--color-text);
}

.lang-flag {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  background-size: cover;
  box-shadow: 0 0 0 1px rgba(4, 24, 56, 0.55);
}

.lang-flag--br {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12'%3E%3Crect width='18' height='12' fill='%23009b3a'/%3E%3Cpath d='M9 1L16 6L9 11L2 6Z' fill='%23ffdf00'/%3E%3Ccircle cx='9' cy='6' r='3' fill='%23002776'/%3E%3Cpath d='M6 6.7C7.3 6 8.8 5.8 11 6.4' stroke='%23ffffff' stroke-width='0.6' fill='none'/%3E%3C/svg%3E");
}

.lang-flag--es {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12'%3E%3Crect width='18' height='12' rx='1.5' fill='%23aa151b'/%3E%3Crect y='3' width='18' height='6' fill='%23f1bf00'/%3E%3Crect x='4.5' y='4' width='2.5' height='4' fill='%23aa151b'/%3E%3Crect x='4.1' y='4' width='0.8' height='4' fill='%23f1bf00'/%3E%3C/svg%3E");
}

.lang-flag--en {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12'%3E%3Crect width='18' height='12' fill='%23b22234'/%3E%3Cpath d='M0 1.5H18V2.5H0V1.5ZM0 3.5H18V4.5H0V3.5ZM0 5.5H18V6.5H0V5.5ZM0 7.5H18V8.5H0V7.5ZM0 9.5H18V10.5H0V9.5Z' fill='%23ffffff'/%3E%3Crect width='8' height='6' fill='%233b3b6d'/%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='1' cy='1' r='0.35'/%3E%3Ccircle cx='3' cy='1' r='0.35'/%3E%3Ccircle cx='5' cy='1' r='0.35'/%3E%3Ccircle cx='7' cy='1' r='0.35'/%3E%3Ccircle cx='2' cy='2' r='0.35'/%3E%3Ccircle cx='4' cy='2' r='0.35'/%3E%3Ccircle cx='6' cy='2' r='0.35'/%3E%3Ccircle cx='1' cy='3' r='0.35'/%3E%3Ccircle cx='3' cy='3' r='0.35'/%3E%3Ccircle cx='5' cy='3' r='0.35'/%3E%3Ccircle cx='7' cy='3' r='0.35'/%3E%3Ccircle cx='2' cy='4' r='0.35'/%3E%3Ccircle cx='4' cy='4' r='0.35'/%3E%3Ccircle cx='6' cy='4' r='0.35'/%3E%3Ccircle cx='1' cy='5' r='0.35'/%3E%3Ccircle cx='3' cy='5' r='0.35'/%3E%3Ccircle cx='5' cy='5' r='0.35'/%3E%3Ccircle cx='7' cy='5' r='0.35'/%3E%3C/g%3E%3C/svg%3E");
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), #1650ff);
  color: #fff;
  box-shadow: 0 18px 46px -22px rgba(43, 114, 255, 0.9);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px -18px rgba(43, 114, 255, 0.85);
}

.btn--outline {
  border: 1px solid rgba(43, 114, 255, 0.4);
  color: #e6ecff;
  background: rgba(43, 114, 255, 0.08);
}

.btn--outline:hover {
  border-color: rgba(43, 114, 255, 0.8);
  background: rgba(43, 114, 255, 0.18);
  transform: translateY(-1px);
}

.hero {
  padding: 120px 0 80px;
  background: linear-gradient(
    180deg,
    rgba(6, 24, 52, 0.88) 0%,
    rgba(4, 20, 46, 0.92) 100%
  );
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero__text {
  display: grid;
  gap: 24px;
}

.hero__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.hero h1 {
  font-size: clamp(2.8rem, 4vw + 1rem, 4rem);
  line-height: 1.1;
}

.hero p {
  color: var(--color-text-muted);
  max-width: 520px;
}

.hero__media {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 42px 80px -40px rgba(10, 32, 68, 0.98);
  background: linear-gradient(
      180deg,
      rgba(7, 28, 60, 0.85) 0%,
      rgba(7, 28, 60, 0.5) 60%,
      rgba(7, 28, 60, 0.95) 100%
    ),
    url("./installer_dark.png") center/cover;
}

.features {
  padding: 64px 0;
  background: linear-gradient(
    180deg,
    rgba(6, 27, 62, 0.9) 0%,
    rgba(6, 27, 62, 0.65) 100%
  );
}

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

.feature-card {
  background: linear-gradient(
    180deg,
    rgba(8, 30, 62, 0.96),
    rgba(8, 30, 62, 0.84)
  );
  border: 1px solid rgba(43, 114, 255, 0.12);
  border-radius: 20px;
  padding: 28px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(43, 114, 255, 0.35);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--color-primary);
  background: rgba(43, 114, 255, 0.08);
  border-radius: 16px;
  border: 1px solid rgba(43, 114, 255, 0.22);
}

.feature-card h3 {
  font-size: 1.35rem;
}

.feature-card p {
  color: var(--color-text-muted);
}

.feature-card__link {
  color: var(--color-secondary);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.applications {
  padding: 72px 0;
  background: rgba(5, 24, 54, 0.7);
  border-top: 1px solid rgba(43, 114, 255, 0.08);
  border-bottom: 1px solid rgba(43, 114, 255, 0.08);
}

.applications h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.applications__intro {
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: 28px;
}

.applications__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.chip {
  display: inline-flex;
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(10, 34, 72, 0.75);
  border: 1px solid rgba(43, 114, 255, 0.18);
  color: var(--color-text);
  font-weight: 500;
}

.section {
  padding: 96px 0;
}

.section--alt {
  background: linear-gradient(
    180deg,
    rgba(6, 28, 60, 0.95) 0%,
    rgba(4, 22, 52, 0.92) 100%
  );
  border-top: 1px solid rgba(43, 114, 255, 0.06);
  border-bottom: 1px solid rgba(43, 114, 255, 0.06);
}

.section__split {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
}

.section__split p {
  color: var(--color-text-muted);
  margin: 18px 0;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 14px;
  color: var(--color-text-muted);
}

.checklist li::before {
  content: "✔";
  color: var(--color-secondary);
  margin-right: 10px;
}

.highlight-panel {
  background: rgba(8, 32, 66, 0.8);
  border: 1px solid rgba(43, 114, 255, 0.16);
  border-radius: 24px;
  padding: 32px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-card);
}

.highlight-panel__items {
  display: grid;
  gap: 12px;
  color: var(--color-text-muted);
}

.section__heading {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
  max-width: 640px;
}

.section__heading p {
  color: var(--color-text-muted);
}

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

.case-card {
  background: rgba(8, 30, 62, 0.92);
  border-radius: 20px;
  border: 1px solid rgba(43, 114, 255, 0.14);
  padding: 28px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-card);
}

.case-card__tag {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(43, 114, 255, 0.1);
  border: 1px solid rgba(43, 114, 255, 0.22);
  color: var(--color-secondary);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case-card p {
  color: var(--color-text-muted);
}

.case-card footer {
  color: var(--color-secondary);
  font-weight: 600;
}

.cta {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    rgba(43, 114, 255, 0.35),
    rgba(6, 28, 60, 0.94)
  );
  border-top: 1px solid rgba(43, 114, 255, 0.08);
  border-bottom: 1px solid rgba(43, 114, 255, 0.08);
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta__inner p {
  color: var(--color-text-muted);
  max-width: 520px;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}

.contact__info {
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--color-text-muted);
  margin-top: 18px;
}

.contact__cta {
  margin-top: 24px;
}

.contact__form {
  background: rgba(6, 28, 60, 0.8);
  border: 1px solid rgba(43, 114, 255, 0.2);
  border-radius: 24px;
  padding: 32px;
  display: grid;
  gap: 20px;
  box-shadow: var(--shadow-card);
}

.btn--whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #021b12;
  box-shadow: 0 18px 46px -22px rgba(18, 140, 126, 0.9);
  gap: 10px;
}

.btn--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px -18px rgba(18, 140, 126, 0.85);
}

.btn--whatsapp svg {
  display: block;
}

.contact__form label {
  display: grid;
  gap: 8px;
  font-weight: 500;
}

.contact__form input,
.contact__form textarea {
  background: rgba(4, 24, 56, 0.85);
  border: 1px solid rgba(43, 114, 255, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--color-text);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: rgba(154, 167, 194, 0.65);
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: rgba(25, 217, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(25, 217, 255, 0.18);
}

.form-status {
  min-height: 1.4em;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: -8px;
}

.form-status[data-status='success'] {
  color: var(--color-success);
}

.form-status[data-status='error'] {
  color: var(--color-error);
}

.chat-launcher {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #04112a;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 24px 48px -22px rgba(43, 114, 255, 0.95);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-launcher svg {
  display: block;
}

.chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 54px -20px rgba(43, 114, 255, 0.85);
}

.chat-widget {
  position: fixed;
  bottom: 96px;
  right: 32px;
  width: 320px;
  max-width: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 24px;
  background: rgba(6, 30, 66, 0.96);
  border: 1px solid rgba(43, 114, 255, 0.2);
  box-shadow: 0 38px 70px -32px rgba(4, 28, 66, 0.95);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 29;
}

.chat-widget[data-open='true'] {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chat-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(43, 114, 255, 0.18);
  background: rgba(4, 24, 56, 0.9);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.chat-widget__brand {
  display: grid;
  gap: 2px;
}

.chat-widget__brand strong {
  font-size: 1rem;
  font-weight: 700;
}

.chat-widget__brand span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.chat-widget__close {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.chat-widget__close:hover {
  color: var(--color-text);
}

.chat-widget__messages {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.chat-widget__messages::-webkit-scrollbar {
  width: 6px;
}

.chat-widget__messages::-webkit-scrollbar-thumb {
  background: rgba(43, 114, 255, 0.3);
  border-radius: 999px;
}

.chat-widget__bubble {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 100%;
}

.chat-widget__bubble--bot {
  background: rgba(12, 23, 48, 0.9);
  border: 1px solid rgba(43, 114, 255, 0.14);
  color: var(--color-text-muted);
}

.chat-widget__bubble--user {
  justify-self: end;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #021126;
  font-weight: 600;
}

.chat-widget__bubble a {
  color: var(--color-secondary);
  font-weight: 600;
}

.chat-widget__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px 12px;
}

.chat-widget__quick button {
  border: 1px solid rgba(43, 114, 255, 0.2);
  background: rgba(31, 129, 255, 0.12);
  color: var(--color-text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.chat-widget__quick button:hover {
  background: rgba(31, 129, 255, 0.22);
  transform: translateY(-1px);
}

.chat-widget__form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 20px;
}

.chat-widget__form input {
  flex: 1;
  background: rgba(10, 32, 70, 0.8);
  border: 1px solid rgba(43, 114, 255, 0.25);
  border-radius: 14px;
  padding: 10px 14px;
  color: var(--color-text);
  font-size: 0.95rem;
}

.chat-widget__form input::placeholder {
  color: rgba(154, 167, 194, 0.55);
}

.chat-widget__form button {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border: none;
  color: #04112a;
  font-weight: 700;
  border-radius: 14px;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-widget__form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px -18px rgba(43, 114, 255, 0.8);
}

.chat-launcher:focus-visible,
.chat-widget__close:focus-visible,
.chat-widget__quick button:focus-visible,
.chat-widget__form button:focus-visible,
.chat-widget__form input:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.footer {
  padding: 48px 0 32px;
  background: #02040b;
  border-top: 1px solid rgba(43, 114, 255, 0.12);
}

.footer__inner {
  display: grid;
  gap: 32px;
}

.footer p {
  color: var(--color-text-muted);
  max-width: 420px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--color-text-muted);
  font-weight: 500;
}

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

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(154, 167, 194, 0.5);
  font-size: 0.85rem;
}

.footer__meta a {
  color: rgba(154, 167, 194, 0.7);
}

@media (max-width: 1080px) {
  .topbar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

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

  .hero__media {
    min-height: 320px;
  }

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

  .section__split,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  :root {
    font-size: 15px;
  }

  .topbar__inline {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    background: rgba(4, 24, 56, 0.96);
    border: 1px solid rgba(43, 114, 255, 0.16);
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: 0 28px 60px -30px rgba(4, 28, 66, 0.85);
    flex-direction: column;
    gap: 18px;
    z-index: 2;
  }

  .topbar__nav {
    flex-direction: column;
    gap: 14px;
  }

  .topbar__nav a::after {
    display: none;
  }

  .lang-switcher {
    width: auto;
    justify-content: flex-start;
    padding: 0;
  }

  .topbar__menu {
    display: flex;
    align-self: flex-end;
  }

  .topbar__inner[data-menu-open='true'] .topbar__inline {
    display: flex;
  }

  .topbar__inner[data-menu-open='true'] .topbar__menu span:nth-child(2) {
    opacity: 0;
  }

  .topbar__inner[data-menu-open='true'] .topbar__menu span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .topbar__inner[data-menu-open='true'] .topbar__menu span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .chat-widget {
    right: 16px;
    bottom: 90px;
    width: min(320px, calc(100% - 32px));
  }

  .chat-launcher {
    right: 16px;
    bottom: 24px;
  }

  .features__grid,
  .cases__grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: calc(100% - 32px);
  }
}

@media (max-width: 520px) {
  :root {
    font-size: 14px;
  }

  .hero {
    padding: 96px 0 64px;
  }

  .hero__media {
    min-height: 260px;
  }

  .applications__chips {
    gap: 12px;
  }

  .chip {
    padding: 9px 18px;
  }

  .cta {
    text-align: center;
  }

  .cta__inner {
    align-items: center;
  }

  .lang-switcher {
    justify-content: flex-start;
  }

  .chat-widget {
    right: 16px;
    bottom: 80px;
    width: calc(100% - 32px);
  }

  .chat-launcher {
    bottom: 16px;
    right: 16px;
    width: calc(100% - 32px);
    justify-content: center;
  }

  .footer__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
