:root {
  --navy: #0b1f3a;
  --navy-2: #102b4d;
  --teal: #19d7c2;
  --blue: #1b7dff;
  --amber: #f2a83b;
  --mint: #d8f8f4;
  --ink: #0f1e2f;
  --muted: #5e6b78;
  --line: #dbe5ee;
  --paper: #f7fbfd;
  --white: #ffffff;
  --shadow: 0 20px 48px rgba(11, 31, 58, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, Avenir Next, Segoe UI, Arial, sans-serif;
  line-height: 1.5;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px 40px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 229, 238, 0.72);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  width: 280px;
  min-width: 220px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a:hover {
  background: var(--mint);
}

.language-switcher {
  display: block;
}

.language-select {
  min-height: 40px;
  min-width: 142px;
  padding: 8px 34px 8px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
}

.language-select:hover,
.language-select:focus {
  color: var(--navy);
  border-color: rgba(25, 215, 194, 0.72);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(25, 215, 194, 0.18);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 78svh;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/agent-operations-hero.png");
  background-position: center;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 24, 45, 0.94) 0%, rgba(8, 24, 45, 0.82) 38%, rgba(8, 24, 45, 0.4) 76%, rgba(8, 24, 45, 0.18) 100%),
    linear-gradient(180deg, rgba(8, 24, 45, 0.2), rgba(8, 24, 45, 0.72));
}

.hero__content {
  width: min(760px, calc(100% - 40px));
  margin-left: max(32px, calc((100vw - 1160px) / 2));
  padding: 64px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 4.5rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero__lead {
  width: min(680px, 100%);
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.2rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}

.button--primary {
  color: var(--navy);
  background: var(--amber);
}

.button--primary:hover {
  background: #ffc15e;
}

.button--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.14);
}

.focus-strip {
  width: min(690px, 100%);
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.focus-strip__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.focus-tab {
  min-height: 40px;
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.focus-tab.is-active {
  color: var(--navy);
  border-color: var(--teal);
  background: var(--teal);
}

.focus-strip__result {
  min-height: 32px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.section {
  padding: 84px 40px;
  background: var(--white);
}

.section--light {
  background: var(--paper);
}

.section--navy {
  color: var(--white);
  background: var(--navy);
}

.section__inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.section__heading {
  width: min(620px, 100%);
  margin-bottom: 36px;
}

.section__heading--wide {
  width: min(820px, 100%);
}

.section h2 {
  margin: 0;
  color: var(--navy);
  font-size: 2.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.section--navy h2 {
  color: var(--white);
}

.section-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section--navy .section-copy {
  color: rgba(255, 255, 255, 0.72);
}

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

.intro__grid article,
.agent-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.intro__grid h3,
.agent-card h3 {
  margin: 14px 0 10px;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.2;
}

.intro__grid p,
.agent-card p {
  margin: 0;
  color: var(--muted);
}

.metric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--navy);
  border: 1px solid rgba(25, 215, 194, 0.55);
  border-radius: 50%;
  background: var(--mint);
  font-weight: 900;
}

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

.agent-card {
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.06);
}

.agent-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--navy);
  border-radius: 8px;
  background: var(--mint);
  font-size: 1.3rem;
  font-weight: 900;
}

.run-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 48px;
  align-items: start;
}

.run-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.run-steps li {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 18px;
  border: 1px solid rgba(216, 248, 244, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.run-steps span {
  color: var(--teal);
  font-weight: 900;
}

.run-steps strong {
  font-weight: 700;
}

.value__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: 44px;
  align-items: start;
}

.calculator {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.range-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 18px;
  align-items: center;
  color: var(--navy);
  font-weight: 800;
}

.range-field output {
  min-width: 86px;
  color: var(--blue);
  text-align: right;
}

.range-field input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--teal);
}

.calculator__result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 20px;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy);
}

.calculator__result span {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.calculator__result strong {
  color: var(--teal);
  font-size: 2rem;
  line-height: 1;
}

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

.whatsapp-card {
  display: grid;
  gap: 16px;
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.06);
}

.whatsapp-card__status {
  justify-self: start;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(242, 168, 59, 0.42);
  border-radius: 8px;
  color: #835511;
  background: rgba(242, 168, 59, 0.16);
  font-size: 0.82rem;
  font-weight: 900;
}

.whatsapp-card__status.is-ready {
  color: #075a50;
  border-color: rgba(25, 215, 194, 0.48);
  background: rgba(25, 215, 194, 0.18);
}

.whatsapp-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.15;
}

.whatsapp-card p {
  margin: 0;
  color: var(--muted);
}

.whatsapp-card__details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.whatsapp-card__details div {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.whatsapp-card__details dt {
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.whatsapp-card__details dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.whatsapp-card__button {
  align-self: end;
  margin-top: auto;
}

.button.is-disabled {
  color: var(--muted);
  border-color: var(--line);
  background: var(--paper);
}

.whatsapp-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.whatsapp-flow span {
  min-height: 52px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: var(--paper);
  font-weight: 850;
  text-align: center;
}

.sector-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sector-list span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: var(--paper);
  font-weight: 800;
}

.contact {
  color: var(--white);
  background: var(--navy-2);
}

.contact h2 {
  color: var(--white);
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 44px;
  align-items: center;
}

.contact__actions {
  display: grid;
  gap: 14px;
}

.contact__actions p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  padding: 28px 40px;
  background: #07172b;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(1160px, 100%);
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer img {
  width: 36px;
  height: 36px;
}

.site-footer p {
  margin: 0;
}

.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: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.chatbot__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 16px 10px 10px;
  color: var(--navy);
  border: 1px solid rgba(25, 215, 194, 0.56);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-weight: 900;
  cursor: pointer;
}

.chatbot__toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--navy);
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--mint);
  overflow: hidden;
}

.chatbot__toggle-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chatbot__panel {
  width: min(380px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid rgba(219, 229, 238, 0.9);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(7, 23, 43, 0.24);
}

.chatbot__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  color: var(--white);
  background: var(--navy);
}

.chatbot__header div {
  display: grid;
  gap: 2px;
}

.chatbot__header strong {
  line-height: 1.2;
}

.chatbot__header span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 700;
}

.chatbot__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-weight: 900;
}

.chatbot__controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.chatbot__controls label {
  display: grid;
  gap: 4px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chatbot__controls select {
  width: 100%;
  min-height: 38px;
  padding: 8px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: none;
}

.chatbot__messages {
  display: grid;
  gap: 10px;
  max-height: 300px;
  min-height: 220px;
  padding: 16px;
  overflow-y: auto;
}

.chatbot-message {
  width: fit-content;
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.94rem;
  line-height: 1.38;
}

.chatbot-message--assistant {
  justify-self: start;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
}

.chatbot-message--user {
  justify-self: end;
  color: var(--navy);
  background: var(--mint);
  border: 1px solid rgba(25, 215, 194, 0.42);
}

.chatbot__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.chatbot__form textarea {
  width: 100%;
  min-height: 48px;
  max-height: 130px;
  resize: vertical;
  padding: 10px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chatbot__form button {
  align-self: end;
}

.chatbot__form button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.chatbot__note {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 24px;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .brand {
    width: 250px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 74svh;
  }

  .hero__content {
    margin-left: 24px;
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 3.3rem;
  }

  .intro__grid,
  .agent-grid,
  .whatsapp-grid,
  .run-layout,
  .value__inner,
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .whatsapp-flow {
    grid-template-columns: 1fr;
  }

  .agent-card,
  .intro__grid article,
  .whatsapp-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand {
    width: 220px;
    min-width: 0;
  }

  .site-nav a {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero {
    min-height: 72svh;
  }

  .hero__content {
    width: calc(100% - 36px);
    margin-left: 18px;
    padding: 42px 0;
  }

  .hero h1 {
    font-size: 1.85rem;
    overflow-wrap: anywhere;
  }

  .hero__lead {
    font-size: 1.03rem;
  }

  .button {
    width: 100%;
  }

  .focus-strip__tabs,
  .hero__actions {
    width: 100%;
  }

  .focus-tab {
    flex: 1 1 100%;
  }

  .section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .section h2 {
    font-size: 2rem;
  }

  .run-steps li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .calculator {
    padding: 18px;
  }

  .range-field {
    grid-template-columns: 1fr;
  }

  .range-field output {
    min-width: 0;
    text-align: left;
  }

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

  .chatbot {
    right: 18px;
    bottom: 18px;
  }

  .chatbot__panel {
    width: calc(100vw - 36px);
  }

  .chatbot__controls,
  .chatbot__form {
    grid-template-columns: 1fr;
  }

  .chatbot__form button {
    width: 100%;
  }
}
