@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --bg: #070907;
  --ink: #f7f8ef;
  --muted: #aeb7a4;
  --line: rgba(247, 248, 239, 0.14);
  --panel: rgba(247, 248, 239, 0.07);
  --panel-strong: rgba(247, 248, 239, 0.11);
  --brand: #ff4b2b;
  --brand-bright: #ff7a61;
  --brand-deep: #d92e14;
  --cyan: #6ee7f9;
  --shadow: rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% -18%, rgba(255, 75, 43, 0.18), transparent 34%),
    var(--bg);
  background-size: 30px 30px, 30px 30px, 100% 100%, auto;
}

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

.page {
  width: 100%;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding:
    max(14px, env(safe-area-inset-top))
    14px
    max(14px, env(safe-area-inset-bottom));
}

.shell {
  width: min(100%, 430px);
  height: min(100%, 852px);
  max-height: calc(100dvh - 28px);
  display: grid;
  grid-template-rows: auto minmax(0, auto) auto auto auto;
  gap: clamp(10px, 1.8dvh, 16px);
}

.topbar,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-radius: 2px;
  padding: 5px 9px;
  background: var(--brand);
}

.brand img {
  display: block;
  height: clamp(26px, 5.2dvh, 34px);
  width: auto;
}

.email-link {
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 11px;
  color: var(--muted);
  font-size: clamp(0.68rem, 2.5vw, 0.78rem);
  font-weight: 700;
}

.hero {
  display: grid;
  gap: clamp(8px, 1.5dvh, 12px);
  align-content: end;
  padding-top: clamp(10px, 2dvh, 24px);
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 75, 43, 0.42);
  border-radius: 999px;
  color: var(--brand-bright);
  background: rgba(255, 75, 43, 0.12);
  font-size: clamp(0.68rem, 2.7vw, 0.78rem);
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2.55rem, 11.7vw, 4.15rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: 0;
}

.lead {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(0.92rem, 3.55vw, 1.02rem);
  line-height: 1.45;
  font-weight: 600;
}

.service-carousel {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 8px;
}

.services {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.services li {
  position: relative;
  overflow: hidden;
  flex: 0 0 100%;
  min-height: clamp(224px, 29dvh, 268px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--panel-strong), var(--panel));
  box-shadow: 0 14px 34px var(--shadow);
}

.services li::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 7, 0.08), rgba(7, 9, 7, 0.76)),
    linear-gradient(110deg, rgba(7, 9, 7, 0.72), rgba(7, 9, 7, 0.18));
  pointer-events: none;
}

.service-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  filter: saturate(1.18) contrast(1.08);
}

.service-copy {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 7px;
  padding: clamp(18px, 5vw, 24px);
}

.services span {
  color: var(--cyan);
  font-size: clamp(0.72rem, 2.9vw, 0.86rem);
  font-weight: 800;
  margin-bottom: auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.services strong {
  font-size: clamp(1.65rem, 7.2vw, 2.05rem);
  line-height: 0.95;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

.services small {
  color: var(--muted);
  max-width: 24ch;
  font-size: clamp(0.82rem, 3.15vw, 0.94rem);
  line-height: 1.28;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 14px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(247, 248, 239, 0.24);
  cursor: pointer;
}

.carousel-dot.is-active {
  width: 24px;
  background: var(--brand);
  box-shadow: 0 0 20px rgba(255, 75, 43, 0.45);
}

.sales-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(255, 75, 43, 0.32);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 75, 43, 0.1);
}

.sales-note div {
  min-width: 0;
}

.sales-note strong,
.sales-note span {
  display: block;
}

.sales-note strong {
  color: var(--brand-bright);
  font-size: clamp(0.76rem, 3vw, 0.86rem);
}

.sales-note span {
  color: var(--muted);
  font-size: clamp(0.65rem, 2.4vw, 0.72rem);
  line-height: 1.25;
  font-weight: 600;
}

.actions {
  align-self: end;
}

.whatsapp,
.mail-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  font-size: clamp(0.86rem, 3.35vw, 0.98rem);
  white-space: nowrap;
}

.whatsapp {
  flex: 1;
  gap: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  box-shadow: 0 16px 30px rgba(255, 75, 43, 0.3);
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.15);
}

.mail-button {
  flex: 0 0 auto;
  padding: 0 15px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(247, 248, 239, 0.08);
}

@media (max-width: 370px) {
  .email-link {
    max-width: calc(100% - 146px);
    padding: 8px 9px;
    font-size: 0.64rem;
  }

  .mail-button {
    padding-inline: 12px;
  }
}

@media (max-height: 710px) {
  .shell {
    gap: 8px;
  }

  .hero {
    gap: 7px;
    padding-top: 2px;
  }

  h1 {
    font-size: clamp(2.05rem, 10.4vw, 2.75rem);
    max-width: 11ch;
  }

  .lead {
    display: none;
  }

  .service-carousel {
    gap: 6px;
  }

  .services li {
    min-height: clamp(156px, 28dvh, 188px);
  }

  .service-copy {
    gap: 5px;
    padding: 14px;
  }

  .services strong {
    font-size: clamp(1.2rem, 6.2vw, 1.48rem);
  }

  .services small {
    font-size: clamp(0.7rem, 3.15vw, 0.8rem);
  }

  .sales-note {
    display: none;
  }

  .whatsapp,
  .mail-button {
    min-height: 48px;
  }
}

@media (max-height: 590px) {
  .email-link {
    display: none;
  }

  .brand img {
    height: 28px;
  }

  .eyebrow {
    padding: 7px 9px;
  }

  h1 {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
  }

  .services li {
    min-height: 142px;
  }

  .services small {
    display: none;
  }

  .carousel-dots {
    min-height: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services {
    transition: none;
  }

  .service-video {
    display: none;
  }
}

@media (min-width: 720px) {
  .page {
    padding: 28px;
  }

  .shell {
    width: min(100%, 980px);
    height: min(100%, 760px);
    grid-template-columns: 1.03fr 0.97fr;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
  }

  .topbar,
  .actions {
    grid-column: 1 / -1;
  }

  .hero {
    align-self: center;
  }

  h1 {
    max-width: 11ch;
  }

  .service-carousel {
    align-self: center;
  }

  .sales-note {
    grid-column: 2;
  }
}
