:root {
  --blue-950: #061a3a;
  --blue-800: #0648c8;
  --blue-600: #0b6fea;
  --cyan-400: #19c6ff;
  --yellow-400: #ffd23f;
  --orange-500: #ff7a38;
  --green-500: #19b86a;
  --ink: #09111f;
  --muted: #637083;
  --line: rgba(9, 17, 31, 0.12);
  --surface: #ffffff;
  --surface-soft: #f4f8fb;
  --shadow: 0 18px 60px rgba(6, 26, 58, 0.18);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.5;
  overflow-x: hidden;
}

body.chat-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--yellow-400);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, min-height 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  min-height: 68px;
  background: rgba(6, 26, 58, 0.94);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.brand {
  width: 190px;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.main-nav a,
.nav-ai {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  color: #fff;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-weight: 700;
  font-size: 14px;
}

.main-nav a:hover,
.nav-ai:hover {
  background: rgba(255, 255, 255, 0.16);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-cta {
  background: var(--green-500);
  color: #fff;
  box-shadow: 0 14px 34px rgba(25, 184, 106, 0.28);
}

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

.wa-icon {
  flex: 0 0 auto;
  display: inline-block;
  width: 23px;
  height: 23px;
  background: currentColor;
  mask: url("../img/whatsapp-mark.svg") center / contain no-repeat;
  -webkit-mask: url("../img/whatsapp-mark.svg") center / contain no-repeat;
}

.btn-primary {
  color: var(--blue-950);
  background: var(--yellow-400);
  box-shadow: 0 18px 42px rgba(255, 210, 63, 0.28);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
  color: #fff;
  background: var(--blue-950);
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 86%);
  z-index: -1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(25, 198, 255, 0.12) 38% 38.5%, transparent 38.5% 100%),
    linear-gradient(145deg, transparent 0 68%, rgba(255, 210, 63, 0.12) 68% 68.45%, transparent 68.45% 100%),
    linear-gradient(90deg, rgba(25, 198, 255, 0.08), transparent 34%, rgba(255, 255, 255, 0.05) 70%, transparent);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--blue-950);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.05) contrast(1.08) blur(1px);
  transform: scale(1.03);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 26, 58, 0.95), rgba(6, 72, 200, 0.62) 52%, rgba(9, 17, 31, 0.22)),
    linear-gradient(180deg, rgba(6, 26, 58, 0.1), rgba(6, 26, 58, 0.74));
}

.signal-grid {
  position: absolute;
  inset: 0;
  opacity: 0.58;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 48%, rgba(25, 198, 255, 0.28) 48% 48.25%, transparent 48.25% 100%);
  background-size: 46px 46px, 46px 46px, 220px 220px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.hero-inner {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 118px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.86fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 210, 63, 0.14);
  color: var(--yellow-400);
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.section h2,
.signup-section h2,
.docs-section h2 {
  margin: 14px 0 0;
  font-family: Montserrat, Inter, sans-serif;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  font-size: 64px;
}

.hero-lead {
  max-width: 650px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.hero-metrics div {
  min-height: 88px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--yellow-400);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 24px;
  line-height: 1.05;
}

.hero-metrics span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.hero-showcase {
  display: grid;
  gap: 18px;
}

.speed-panel,
.offer-art,
.plan-card,
.service-card,
.ai-panel,
.lead-form,
.mission-grid article {
  border-radius: var(--radius);
}

.speed-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.speed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.speed-top strong {
  color: var(--yellow-400);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 34px;
}

.speed-ring {
  position: relative;
  width: min(240px, 74%);
  margin: 8px auto 4px;
  aspect-ratio: 1;
}

.speed-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.speed-ring circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.17);
  stroke-width: 12;
}

.speed-ring .meter {
  stroke: var(--yellow-400);
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  stroke-linecap: round;
  animation: meterLoad 1400ms ease-out forwards 420ms;
}

.speed-ring div {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.speed-ring div strong {
  font-family: Montserrat, Inter, sans-serif;
  font-size: 28px;
}

.speed-ring div span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.speed-panel ul {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.speed-panel li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.speed-panel li svg {
  color: var(--yellow-400);
}

.offer-art {
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.quick-actions {
  width: min(100% - 36px, var(--max));
  margin: -38px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(6, 26, 58, 0.16);
  overflow: hidden;
}

.quick-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 74px;
  padding: 18px;
  color: var(--blue-950);
  font-weight: 800;
  border-right: 1px solid var(--line);
}

.quick-actions a:last-child {
  border-right: 0;
}

.quick-actions svg {
  color: var(--blue-600);
}

.quick-actions .wa-icon {
  color: var(--green-500);
}

.section {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 96px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading h2,
.tv-copy h2,
.story-copy h2,
.ai-panel h2 {
  font-size: 42px;
}

.section-heading p,
.tv-copy p,
.story-copy p,
.ai-panel p,
.signup-copy p {
  color: var(--muted);
  font-size: 17px;
}

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

.plans-stage {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 20px;
  align-items: stretch;
}

.plans-visual {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100%;
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(6, 26, 58, 0.96), rgba(6, 72, 200, 0.76)),
    linear-gradient(115deg, transparent 0 61%, rgba(255, 210, 63, 0.22) 61% 62%, transparent 62% 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.plans-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.22;
}

.plans-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 8px;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.26));
}

.plan-proof {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--blue-950);
  background: var(--yellow-400);
  font-size: 12px;
  font-weight: 900;
}

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

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px;
  border: 1px solid rgba(6, 72, 200, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #f7fbff),
    #fff;
  box-shadow: 0 16px 52px rgba(6, 26, 58, 0.1);
  overflow: hidden;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400), var(--yellow-400));
}

.price-card.featured {
  transform: translateY(-10px);
  border-color: rgba(255, 210, 63, 0.85);
  box-shadow: 0 24px 76px rgba(6, 72, 200, 0.18);
}

.price-card.premium {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(6, 26, 58, 0.98), rgba(6, 72, 200, 0.86)),
    var(--blue-950);
}

.price-card.premium .plan-tag,
.price-card.premium .price-row {
  color: var(--blue-950);
}

.price-card h3 {
  min-height: 58px;
  margin: 12px 0 0;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 22px;
  line-height: 1.15;
}

.price-speed {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 20px;
}

.price-speed strong {
  color: var(--blue-800);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 58px;
  line-height: 0.85;
}

.price-card.premium .price-speed strong,
.price-card.premium li svg {
  color: var(--yellow-400);
}

.price-speed span {
  margin-bottom: 5px;
  font-weight: 900;
  text-transform: uppercase;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  font-weight: 800;
}

.price-card li svg {
  color: var(--blue-600);
}

.price-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 3px 6px;
  margin-top: auto;
  padding: 14px;
  border-radius: 8px;
  background: var(--yellow-400);
}

.price-row span {
  align-self: start;
  font-weight: 900;
}

.price-row strong {
  font-family: Montserrat, Inter, sans-serif;
  font-size: 42px;
  line-height: 0.9;
}

.price-row small {
  grid-column: 2;
  color: rgba(6, 26, 58, 0.72);
  font-weight: 900;
}

.price-card .btn {
  width: 100%;
  margin-top: 14px;
}

.plan-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 46px rgba(6, 26, 58, 0.08);
}

.plan-card.featured {
  border-color: rgba(255, 210, 63, 0.85);
  box-shadow: 0 22px 70px rgba(255, 122, 56, 0.14);
}

.plan-media {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(6, 72, 200, 0.09), rgba(255, 210, 63, 0.12)),
    #eef5fc;
}

.plan-media img {
  max-height: 270px;
  object-fit: contain;
}

.phone-strip {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(9, 17, 31, 0.9), rgba(6, 72, 200, 0.74)),
    url("../img/bg-gray.jpg") center/cover;
}

.phone-strip img {
  width: min(100%, 320px);
}

.plan-content {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 22px;
}

.plan-tag {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--blue-950);
  background: var(--yellow-400);
  font-size: 12px;
  font-weight: 900;
}

.plan-content h3 {
  margin: 0;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 24px;
}

.plan-content p {
  margin: 0;
  color: var(--muted);
}

.offer-note {
  max-width: 880px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.tv-section {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 0.66fr);
  gap: 30px;
  padding-left: max(18px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(25, 198, 255, 0.12) 58% 58.5%, transparent 58.5% 100%),
    linear-gradient(90deg, rgba(6, 72, 200, 0.05), transparent 46%),
    linear-gradient(180deg, #eef5fc, #fff);
  overflow: hidden;
}

.tv-copy {
  align-self: center;
}

.carousel-controls {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.carousel-controls button,
.chat-panel header button,
.chat-form button,
.chat-launcher,
.floating-whatsapp {
  display: grid;
  place-items: center;
  border: 0;
}

.carousel-controls button {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-950);
}

.tv-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 300px);
  gap: 14px;
  overflow-x: auto;
  padding: 8px 18px 28px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

.tv-rail::-webkit-scrollbar {
  display: none;
}

.tv-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.tv-rail article {
  position: relative;
  height: 390px;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--blue-950);
  box-shadow: 0 18px 50px rgba(6, 26, 58, 0.16);
  transform: scale(0.96);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.tv-rail article.is-active {
  transform: scale(1);
  box-shadow: 0 24px 70px rgba(6, 26, 58, 0.24);
}

.tv-rail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.tv-rail article:hover img {
  transform: scale(1.04);
}

.tv-rail span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--blue-950);
  background: var(--yellow-400);
  font-weight: 900;
}

.ai-section {
  padding-top: 42px;
}

.ai-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  color: #fff;
  background:
    linear-gradient(115deg, transparent 0 64%, rgba(255, 210, 63, 0.18) 64% 65%, transparent 65% 100%),
    linear-gradient(135deg, rgba(6, 26, 58, 0.96), rgba(6, 72, 200, 0.88)),
    url("../img/team-engineers.png") right center / auto 100% no-repeat;
  box-shadow: var(--shadow);
}

.ai-panel h2,
.ai-panel p {
  max-width: 650px;
}

.ai-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.story-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: 48px;
  align-items: center;
}

.story-image {
  border-radius: 8px;
  background: #eaf2fb;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.story-image img {
  width: 100%;
  height: auto;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.story-stats div {
  min-height: 94px;
  padding: 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-950);
}

.story-stats strong,
.story-stats span {
  display: block;
}

.story-stats strong {
  color: var(--yellow-400);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 24px;
  line-height: 1.05;
}

.story-stats span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

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

.mission-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.mission-grid svg {
  color: var(--orange-500);
}

.mission-grid h3 {
  margin: 10px 0 6px;
  font-family: Montserrat, Inter, sans-serif;
}

.mission-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.service-section {
  padding-top: 52px;
}

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

.service-card {
  min-height: 180px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 46px rgba(6, 26, 58, 0.08);
}

.service-card > svg {
  color: var(--blue-600);
}

.service-wa {
  width: 28px;
  height: 28px;
  color: var(--green-500);
}

.service-card img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

.service-card span {
  font-weight: 900;
  color: var(--blue-950);
}

.service-card:hover {
  border-color: rgba(6, 72, 200, 0.38);
}

.signup-section {
  position: relative;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.signup-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 26, 58, 0.95), rgba(6, 72, 200, 0.72)),
    url("../img/bg-signup.jpg") center/cover;
}

.signup-inner {
  width: min(100% - 36px, var(--max));
  min-height: 560px;
  margin: 0 auto;
  padding: 84px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: 42px;
  align-items: center;
}

.signup-section h2 {
  font-size: 46px;
}

.signup-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--blue-950);
  font-weight: 900;
  font-size: 13px;
}

.lead-form input,
.lead-form select {
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}

.lead-form button,
.form-feedback {
  grid-column: 1 / -1;
}

.form-feedback {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.docs-section {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 38px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.docs-section h2 {
  max-width: 700px;
  font-size: 30px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 58px max(18px, calc((100vw - var(--max)) / 2));
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 26, 58, 0.96), rgba(6, 26, 58, 0.82)),
    url("../img/bg-footer.jpg") center/cover;
}

.site-footer img {
  width: 210px;
  margin-bottom: 16px;
}

.site-footer p {
  margin: 5px 0;
  color: rgba(255, 255, 255, 0.82);
}

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

.footer-links a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 82;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  color: #fff;
  background: var(--green-500);
  box-shadow: 0 18px 42px rgba(25, 184, 106, 0.38);
}

.floating-whatsapp .wa-icon {
  width: 31px;
  height: 31px;
}

.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 94px;
  z-index: 84;
  pointer-events: none;
}

.chat-launcher {
  pointer-events: auto;
  grid-auto-flow: column;
  gap: 8px;
  min-width: 78px;
  height: 50px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-800);
  box-shadow: 0 18px 44px rgba(6, 72, 200, 0.34);
  font-weight: 900;
}

.chat-panel {
  pointer-events: auto;
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(440px, calc(100vw - 28px));
  height: min(680px, calc(100vh - 110px));
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  border: 1px solid rgba(6, 72, 200, 0.18);
  border-radius: 8px;
  background: #f6faff;
  box-shadow: 0 26px 90px rgba(6, 26, 58, 0.34);
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
}

.chat-widget.is-open .chat-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.chat-widget.is-open .chat-launcher {
  opacity: 0;
  visibility: hidden;
}

.chat-panel header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 122px;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 26, 58, 0.98), rgba(6, 72, 200, 0.94) 58%, rgba(25, 198, 255, 0.76)),
    var(--blue-950);
  overflow: hidden;
}

.chat-panel header::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.16;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.chat-title-row,
.chat-panel header button {
  position: relative;
  z-index: 1;
}

.chat-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: var(--yellow-400);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.chat-kicker {
  color: var(--yellow-400);
  font-size: 12px;
  font-weight: 900;
}

.chat-panel header h2 {
  margin: 2px 0 0;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 22px;
  line-height: 1.12;
}

.chat-panel header p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(25, 184, 106, 0.18);
}

.chat-panel header button {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(25, 198, 255, 0.07), rgba(255, 255, 255, 0)),
    #f6faff;
}

.message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(6, 26, 58, 0.06);
}

.message.assistant {
  align-self: flex-start;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(6, 72, 200, 0.12);
}

.message.user {
  align-self: flex-end;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-800), #0a8af0);
}

.message.loading {
  color: var(--muted);
}

.chat-suggestions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(6, 72, 200, 0.12);
  background: #fff;
}

.chat-suggestions button {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 68px;
  padding: 8px;
  border: 1px solid rgba(6, 72, 200, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f7fbff);
  color: var(--blue-950);
  font-size: 13px;
  font-weight: 900;
}

.chat-suggestions button svg {
  color: var(--blue-600);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 50px;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(6, 72, 200, 0.12);
  background: #fff;
}

.chat-form input {
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(6, 72, 200, 0.2);
  border-radius: 8px;
  background: #fff;
}

.chat-form input:focus {
  outline: 2px solid rgba(25, 198, 255, 0.35);
  border-color: rgba(6, 72, 200, 0.42);
}

.chat-form button {
  height: 50px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-800), #0b84ef);
  box-shadow: 0 12px 28px rgba(6, 72, 200, 0.28);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
  transition-delay: var(--delay, 0ms);
}

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

.hero .reveal {
  opacity: 1;
  transform: none;
}

@keyframes meterLoad {
  to {
    stroke-dashoffset: 72;
  }
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .brand {
    width: 168px;
  }

  .nav-toggle {
    display: grid;
  }

  .main-nav {
    position: fixed;
    top: 68px;
    left: 18px;
    right: 18px;
    display: grid;
    justify-items: stretch;
    padding: 10px;
    background: rgba(6, 26, 58, 0.97);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 160ms ease, opacity 160ms ease, visibility 160ms ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a,
  .nav-ai {
    justify-content: flex-start;
    min-height: 48px;
  }

  .header-cta {
    justify-self: end;
  }

  .hero-inner,
  .story-section,
  .signup-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 118px;
  }

  .hero-showcase {
    grid-template-columns: minmax(0, 0.84fr) minmax(220px, 0.7fr);
    align-items: center;
  }

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

  .plans-stage {
    grid-template-columns: 1fr;
  }

  .plans-visual {
    min-height: auto;
  }

  .tv-section {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .tv-copy {
    width: min(100% - 36px, var(--max));
  }

  .story-image {
    max-width: 560px;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    padding: 12px 14px;
  }

  .brand {
    width: 136px;
  }

  .header-cta {
    width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .header-cta svg,
  .header-cta .wa-icon {
    width: 20px;
    height: 20px;
  }

  .header-cta {
    font-size: 0;
  }

  .hero-inner {
    width: min(100% - 28px, var(--max));
    padding: 104px 0 56px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-metrics,
  .quick-actions,
  .plans-grid,
  .pricing-grid,
  .service-grid,
  .story-stats,
  .mission-grid,
  .lead-form,
  .hero-showcase {
    grid-template-columns: 1fr;
  }

  .plans-stage {
    gap: 14px;
  }

  .plans-visual {
    padding: 16px;
  }

  .price-card.featured {
    transform: none;
  }

  .price-card h3 {
    min-height: 0;
  }

  .price-speed strong {
    font-size: 50px;
  }

  .hero-metrics div,
  .quick-actions a {
    min-height: auto;
  }

  .quick-actions {
    margin-top: 0;
    width: 100%;
    border-radius: 0;
  }

  .quick-actions a {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    width: min(100% - 28px, var(--max));
    padding: 70px 0;
  }

  .section-heading h2,
  .tv-copy h2,
  .story-copy h2,
  .ai-panel h2,
  .signup-section h2 {
    font-size: 32px;
  }

  .plan-media,
  .phone-strip {
    min-height: 250px;
  }

  .tv-section {
    padding-left: 14px;
  }

  .tv-copy {
    width: calc(100% - 14px);
  }

  .tv-rail {
    grid-auto-columns: minmax(218px, 76vw);
  }

  .tv-rail article {
    height: 330px;
  }

  .ai-panel,
  .docs-section,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-panel {
    padding: 24px;
    background:
      linear-gradient(135deg, rgba(6, 26, 58, 0.96), rgba(6, 72, 200, 0.9)),
      url("../img/team-engineers.png") center / cover no-repeat;
  }

  .signup-inner {
    width: min(100% - 28px, var(--max));
    padding: 70px 0;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    display: none;
  }

  .chat-widget {
    right: 14px;
    bottom: 84px;
  }

  .chat-launcher {
    display: none;
  }

  .chat-widget.is-open {
    inset: 0;
    pointer-events: auto;
  }

  .chat-widget.is-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(6, 26, 58, 0.42);
    backdrop-filter: blur(7px);
  }

  .chat-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    height: min(78dvh, 690px);
  }

  .chat-panel header {
    min-height: 116px;
    padding: 16px;
  }

  .chat-panel header h2 {
    font-size: 20px;
  }

  .chat-avatar {
    width: 46px;
    height: 46px;
  }

  .chat-suggestions {
    padding: 10px;
  }

  .chat-suggestions button {
    min-height: 58px;
    font-size: 12px;
  }

  .chat-form {
    grid-template-columns: 1fr 48px;
    padding: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
