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

:root {
  --bg: #f7f7f4;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f2ee;
  --surface-3: #e7e9e2;
  --text: #111111;
  --text-muted: #646760;
  --text-soft: #2c2f2b;
  --border: rgba(17, 17, 17, 0.12);
  --border-strong: rgba(17, 17, 17, 0.22);
  --accent: #244f7a;
  --accent-2: #5f7388;
  --accent-3: #244f7a;
  --danger: #ff6b6b;
  --shadow: 0 18px 50px rgba(20, 24, 20, 0.12);
  --shadow-soft: 0 10px 28px rgba(20, 24, 20, 0.08);
  --radius: 8px;
  --radius-sm: 6px;
  --container: 1160px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 78% 0%, rgba(36, 79, 122, 0.075), transparent 28rem),
    linear-gradient(180deg, #fbfbf8 0%, #f7f7f4 52%, #ffffff 100%);
  line-height: 1.7;
  font-size: 16px;
  opacity: 0;
  animation: pageFade 0.55s ease forwards;
}

body.nav-open,
body.modal-lock {
  overflow: hidden;
}

img,
iframe {
  max-width: 100%;
}

a {
  color: var(--text);
}

a:hover {
  color: var(--accent);
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.45rem;
}

.container,
.wrap,
.wrap--mid,
.wrap--narrow {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.wrap--mid {
  max-width: 960px;
}

.wrap--narrow {
  max-width: 780px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 800;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 14px;
}

header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

nav,
.site-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.logo span,
.logo em {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(36, 79, 122, 0.08);
  transform: translateY(-1px);
}

.nav-links a.btn-contact,
.nav-cta {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: none;
}

.nav-links a.btn-contact:hover,
.nav-cta:hover {
  color: #ffffff;
  background: #1d4268;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .menu-toggle span {
  opacity: 0;
}

body.nav-open .menu-toggle::before {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .menu-toggle::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 66px;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(17, 17, 17, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  opacity: 0.5;
  animation: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 55%, rgba(255, 255, 255, 0.28) 100%);
}

.hero.hero-image {
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-color: #f7f7f4;
  background-blend-mode: normal;
}

.hero-home { --hero-image: url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80"); }
.hero-agentforce { --hero-image: url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1800&q=80"); }
.hero-employes { --hero-image: url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1800&q=80"); }
.hero-formation { --hero-image: url("https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1800&q=80"); }
.hero-cases { --hero-image: url("https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=1800&q=80"); }
.hero-contact { --hero-image: url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1800&q=80"); }

.hero > .container,
.hero > .wrap,
.hero > .wrap--mid {
  position: relative;
  z-index: 1;
}

.eyebrow,
.hero-kicker,
.section-kicker,
.section-num,
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.breadcrumb {
  text-transform: none;
  color: var(--text-muted);
  letter-spacing: 0;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.hero h1,
.section-title,
.cta-band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(1.95rem, 4.2vw, 3.55rem);
}

.hero p,
.lead {
  max-width: 780px;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.hero-actions,
.hero-btns,
.btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: none;
}

.btn-outline,
.btn-outline-white {
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: none;
}

.btn-outline:hover,
.btn-outline-white:hover {
  background: rgba(36, 79, 122, 0.08);
  color: var(--text);
  box-shadow: none;
}

.btn-gold {
  border-color: var(--accent);
  background: var(--accent);
}

section,
.section {
  padding: 68px 0;
}

.section--alt {
  background: rgba(36, 79, 122, 0.035);
  border-block: 1px solid var(--border);
}

.section-title {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 2.45vw, 2.15rem);
}

.section-subtitle {
  max-width: 760px;
  margin: 0 0 34px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.grid,
.cards-grid,
.pricing-grid,
.stats-grid,
.insights-grid,
.case-grid,
.agent-layout,
.two-col,
.footer-grid {
  display: grid;
  gap: 22px;
}

.cards-grid,
.pricing-grid,
.insights-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.two-col {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.agent-layout {
  grid-template-columns: 320px 1fr;
  align-items: start;
}

.content-block,
.pricing-card,
.stat-card,
.insight-card,
.case-card,
.highlight-box,
.testimonial,
.faq-item,
.module-card,
.google-form-card,
.comparison-table-wrap,
.video-frame,
.pull-stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78));
  box-shadow: var(--shadow-soft);
}

.content-block,
.pricing-card,
.stat-card,
.insight-card,
.case-card,
.highlight-box,
.faq-item,
.module-card,
.google-form-card,
.pull-stat {
  padding: 26px;
}

.content-block {
  margin-bottom: 18px;
}

.content-block h3,
.pricing-card h4,
.pricing-card h3,
.case-card h3,
.module-card h3,
.google-form-card h3,
.faq-item h4 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  line-height: 1.25;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: rgba(36, 79, 122, 0.08);
  color: var(--accent);
}

.trust-bar {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.trust-item {
  padding: 16px;
  border-left: 1px solid var(--border);
}

.trust-item:first-child {
  border-left: 0;
}

.num,
.trust-item .num,
.stat-item .num,
.stat-card .num,
.pull-stat .num {
  color: var(--text);
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.trust-item .label,
.stat-card .label,
.stat-item .label,
.pull-stat .txt {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.partner-strip {
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.partner-marquee {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.partner-track {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}

.partner-track img,
.partner-logos img {
  height: 34px;
  width: auto;
  filter: grayscale(1) opacity(0.72);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.partner-track img:hover,
.partner-logos img:hover {
  filter: none;
  transform: translateY(-2px);
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 38px;
  padding: 24px 0;
}

.service-card,
.insight-card,
.pricing-card,
.case-card,
.module-card {
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.service-card:hover,
.insight-card:hover,
.pricing-card:hover,
.case-card:hover,
.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 79, 122, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(36, 79, 122, 0.035));
}

.testimonial {
  position: relative;
  padding: 30px;
  color: var(--text-soft);
  font-style: italic;
}

.testimonial::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 3px;
  background: var(--accent);
}

.testimonial .author {
  margin-top: 14px;
  color: var(--text);
  font-style: normal;
  font-weight: 800;
}

.media-panel {
  min-height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-image: var(--image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  filter: none;
}

.media-team { --image: url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1200&q=80"); }
.media-dashboard { --image: url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1200&q=80"); }
.media-training { --image: url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1200&q=80"); }

.comparison-table-wrap {
  overflow-x: auto;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text);
  font-size: 0.82rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.sticky-cta {
  position: sticky;
  bottom: 18px;
  z-index: 30;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sticky-cta p {
  margin: 0;
  color: var(--text-soft);
  font-weight: 700;
}

.agent-tabs,
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.agent-tabs {
  position: sticky;
  top: 96px;
  align-self: start;
  flex-direction: column;
}

.tab-button,
.filter-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-soft);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.tab-button.active,
.filter-button.active,
.tab-button:hover,
.filter-button:hover {
  border-color: rgba(36, 79, 122, 0.34);
  color: var(--text);
  background: rgba(36, 79, 122, 0.08);
}

.agent-panel,
.case-card {
  display: none;
}

.agent-panel.active,
.case-card.visible {
  display: block;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0 6px 8px 0;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.video-frame {
  position: relative;
  overflow: hidden;
  padding-bottom: 56.25%;
  height: 0;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

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

.contact-form label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid rgba(36, 79, 122, 0.22);
  border-color: var(--accent);
}

.error-message {
  min-height: 20px;
  margin-top: 5px;
  color: var(--danger);
  font-size: 0.85rem;
}

.form-status {
  min-height: 24px;
  color: var(--accent-3);
  font-weight: 800;
}

.cta-band {
  padding: 76px 0;
  border-block: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(36, 79, 122, 0.055), rgba(95, 115, 136, 0.035)),
    rgba(255, 255, 255, 0.72);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
}

footer {
  padding: 48px 0 34px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  background: #ffffff;
}

.footer-grid {
  grid-template-columns: 1.4fr repeat(3, 1fr);
}

footer a {
  display: block;
  margin: 7px 0;
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

footer h5 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.cookie-banner.show {
  display: flex;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(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;
}

@keyframes pageFade {
  to { opacity: 1; }
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 54px 54px, 54px 54px; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    display: grid;
    gap: 8px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-links.active,
  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    justify-content: space-between;
    padding: 13px 14px;
  }

  .cards-grid,
  .pricing-grid,
  .insights-grid,
  .stats-grid,
  .trust-bar,
  .footer-grid,
  .two-col,
  .agent-layout {
    grid-template-columns: 1fr 1fr;
  }

  .agent-tabs {
    position: static;
    grid-column: 1 / -1;
    flex-direction: row;
  }
}

@media (max-width: 700px) {
  .container,
  .wrap,
  .wrap--mid,
  .wrap--narrow {
    width: min(100% - 28px, var(--container));
  }

  nav,
  .site-nav {
    min-height: 68px;
  }

  .nav-links {
    inset: 68px 0 auto 0;
    max-height: calc(100vh - 68px);
  }

  .hero {
    padding: 78px 0 56px;
  }

  section,
  .section {
    padding: 56px 0;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.8rem);
  }

  .cards-grid,
  .pricing-grid,
  .insights-grid,
  .stats-grid,
  .trust-bar,
  .footer-grid,
  .two-col,
  .agent-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .trust-item:first-child {
    border-top: 0;
  }

  .sticky-cta,
  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .sticky-cta .btn,
  .cookie-actions,
  .cookie-actions .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
