:root {
  --bg: #030303;
  --surface: #080808;
  --line: rgba(255, 255, 255, 0.12);
  --text: #eeeeee;
  --muted: #8f8f8f;
  --blue: #6aa7de;
  --pink: #ce4d83;
  --yellow: #e9d542;
  --focus: #d9d9d9;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.08), transparent 32rem),
    linear-gradient(180deg, #090909 0%, var(--bg) 36%, #000 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.intro {
  min-height: 24vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  text-align: center;
}

.brand {
  display: inline-grid;
  justify-items: center;
}

.brand-logo {
  width: min(520px, 88vw);
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.55));
}

.work-stage {
  position: relative;
}

.carousel {
  position: relative;
  height: clamp(420px, 68vh, 720px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 700ms ease,
    transform 1200ms ease;
  pointer-events: none;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18) 56%, rgba(0, 0, 0, 0.52)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent 46%);
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.05) brightness(0.72);
}

.slide figcaption {
  position: absolute;
  z-index: 1;
  left: clamp(20px, 5vw, 72px);
  bottom: clamp(24px, 6vw, 74px);
  width: min(520px, calc(100% - 40px));
}

.slide span {
  display: block;
  margin-bottom: 13px;
  color: #d0d0d0;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.slide strong {
  display: block;
  color: #f5f5f5;
  font-size: clamp(1.55rem, 6vw, 4rem);
  line-height: 0.98;
  font-weight: 560;
  letter-spacing: 0;
  text-wrap: balance;
}

.carousel-meta {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.icon-button span {
  font-size: 1.8rem;
  line-height: 0;
  transform: translateY(-1px);
}

.counter {
  min-width: 76px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #cfcfcf;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  backdrop-filter: blur(14px);
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
  border: 1px solid var(--line);
}

.action {
  min-height: 68px;
  display: grid;
  place-items: center;
  padding: 18px 14px;
  background: #050505;
  color: #f1f1f1;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.action:hover {
  background: #eeeeee;
  color: #050505;
}

.action-whatsapp {
  color: #f7f7f7;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 64px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.services article {
  min-height: 176px;
  padding: 28px;
  background: rgba(4, 4, 4, 0.94);
}

.services h2 {
  margin: 0 0 16px;
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.services p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.quote-bot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
}

.bot-launcher {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: #f2f2f2;
  color: #050505;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.46);
  cursor: pointer;
}

.bot-launcher::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.88);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.quote-bot.is-greeting .bot-launcher::after {
  opacity: 1;
  transform: scale(1);
}

.bot-launcher svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.bot-panel {
  position: fixed;
  right: 0;
  bottom: 84px;
  width: min(370px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 110px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(18px);
}

.bot-panel[hidden] {
  display: none;
}

.bot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bot-header span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.bot-window-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bot-header strong {
  display: block;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
}

.bot-header button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: transparent;
  color: #ddd;
  cursor: pointer;
}

.bot-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 230px;
  padding: 18px;
  overflow-y: auto;
}

.bot-message {
  max-width: 88%;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  line-height: 1.45;
}

.bot-message.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  color: #e7e7e7;
}

.bot-message.user {
  align-self: flex-end;
  background: #ececec;
  color: #060606;
}

.bot-options {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
}

.bot-option {
  width: 100%;
  min-height: 44px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #f0f0f0;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.bot-option:hover {
  background: #eeeeee;
  color: #050505;
}

.bot-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 22px, 1120px);
    padding-top: 18px;
  }

  .intro {
    min-height: 22vh;
  }

  .brand-logo {
    width: min(360px, 90vw);
  }

  .carousel {
    height: min(68vh, 540px);
  }

  .slide::after {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.18) 65%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent);
  }

  .slide figcaption {
    bottom: 84px;
  }

  .carousel-meta {
    left: 50%;
    bottom: 14px;
  }

  .actions,
  .services {
    grid-template-columns: 1fr;
  }

  .action {
    min-height: 58px;
  }

  .services {
    margin-top: 42px;
  }

  .services article {
    min-height: auto;
    padding: 24px;
  }

  .quote-bot {
    right: 14px;
    bottom: 14px;
  }

  .bot-launcher {
    width: 54px;
    height: 54px;
  }

  .bot-panel {
    right: 14px;
    bottom: 68px;
    width: calc(100vw - 28px);
  }
}

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