* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  background: var(--color-background);
  min-height: 100vh;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(66, 88, 255, 0.45);
  outline-offset: 4px;
}

main {
  display: flex;
  flex-direction: column;
  gap: 56px;
  width: var(--max-width);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) clamp(12px, 4vw, 32px) 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  backdrop-filter: blur(12px);
  background: rgba(245, 246, 251, 0.9);
  border-bottom: 1px solid rgba(186, 196, 218, 0.4);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header .brand img {
  width: 160px;
  height: auto;
}

.site-header .brand .divider {
  width: 1px;
  height: 48px;
  background: rgba(186, 196, 218, 0.5);
}

.site-header .brand span {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(109, 122, 155, 0.3);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 1);
}

.menu-toggle__icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle__icon span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.menu-open .menu-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle__icon span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.site-header.menu-open .menu-toggle__icon span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-link {
  position: relative;
  padding-bottom: 4px;
  font-weight: 600;
  color: var(--color-accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(130deg, var(--color-primary), var(--color-primary-strong));
  color: #fff;
  box-shadow: 0 14px 32px rgba(74, 96, 255, 0.26);
}

.btn.primary:hover {
  transform: translateY(-1px);
}

.btn.ghost {
  background: rgba(70, 85, 134, 0.08);
  color: var(--color-text);
  border: 1px solid rgba(109, 122, 155, 0.25);
}

.btn.brand {
  background: var(--color-brand-orange);
  color: #1c2134;
  box-shadow: 0 12px 32px rgba(255, 139, 23, 0.35);
}

.btn.brand:hover {
  transform: translateY(-1px);
}

.hero,
.section-card,
.final-cta {
  width: 100%;
  margin: 0;
  position: relative;
}

.hero {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr);
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(32px, 5vw, 64px);
  border-bottom: 1px solid rgba(186, 196, 218, 0.5);
}

.hero h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.4rem, 3.5vw, 3.6rem);
  margin: 12px 0;
}

.hero p.lead {
  color: var(--color-muted);
  font-size: 1.06rem;
  line-height: 1.6;
}

.hero .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
}

.hero-bullets span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--gradient-chip);
  flex-shrink: 0;
  margin-top: 20px;
}

.section-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-muted);
}

.section-list li p {
  margin: 0;
  line-height: 1.5;
}

.section-list li span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-chip);
  margin-top: 0.45em;
  flex-shrink: 0;
}

.section-media img,
.section-media video {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
  box-shadow: none;
}

.media-start {
  max-width: 100%;
  border-radius: var(--radius-md);
  display: block;
  box-shadow: none;
  height: auto;
  margin-bottom: 24px;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}

.section-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin: 12px 0;
}

.section-description {
  color: var(--color-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.section-card {
  padding: clamp(28px, 5vw, 56px) 0;
  border-bottom: 1px solid rgba(186, 196, 218, 0.35);
}

.section-card.split {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 48px);
}

.section-card.split > * {
  flex: 1 1 280px;
}

.section-card.split.reverse .section-content {
  order: 2;
}

.section-card.split.reverse .section-media {
  order: 1;
}

.section-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.feature-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--color-surface-strong);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

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

.carousel {
  position: relative;
  margin-top: 28px;
}

.carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}

.carousel-track::-webkit-scrollbar {
  height: 6px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: rgba(66, 88, 255, 0.4);
  border-radius: 999px;
}

.carousel-slide {
  flex: 0 0 calc(100% - 24px);
  scroll-snap-align: center;
  background: var(--color-surface-strong);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.carousel-slide img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-surface);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.carousel-control.prev { left: -22px; }
.carousel-control.next { right: -22px; }

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(66, 88, 255, 0.25);
  cursor: pointer;
}

.carousel-indicators button[aria-current="true"] {
  background: var(--gradient-chip);
}

.agent-card {
  min-height: 260px;
}

.agent-card h3 {
  margin: 0 0 8px;
}

.agent-card p {
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.agent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.agent-tags span {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(66, 88, 255, 0.08);
  border: 1px solid rgba(66, 88, 255, 0.18);
}

.cta-inline {
  width: 100%;
  margin: 32px 0 0;
  padding: 24px 0;
  border-top: 1px solid rgba(186, 196, 218, 0.35);
  border-bottom: 1px solid rgba(186, 196, 218, 0.2);
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-inline strong {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.1rem;
}

.contractflow-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #04050f;
}

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

.contractflow-partner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.contractflow-partner img {
  width: 140px;
  height: auto;
}

.video-invite {
  margin: 32px 0 0;
  padding: clamp(20px, 5vw, 36px);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  text-align: center;
  color: var(--color-accent);
  background: rgba(66, 88, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(13, 32, 78, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-invite p {
  margin: 0;
}

.video-trigger {
  position: relative;
  cursor: pointer;
}

.video-trigger::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, rgba(66, 88, 255, 0.9), rgba(13, 166, 255, 0.9));
  color: #fff;
  font-size: 1.6rem;
  box-shadow: var(--shadow-md);
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.video-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 46, 0.7);
}

.video-lightbox__content {
  position: relative;
  width: min(900px, 92vw);
  margin: 5vh auto;
  background: #000;
  border-radius: var(--radius-md);
  padding: 18px;
}

.video-lightbox__iframe {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-lightbox__iframe iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-sm);
}

.video-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  cursor: pointer;
}

.final-cta {
  padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 4vw, 48px);
  text-align: center;
  border-bottom: none;
}

.final-cta .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.section-card .hero-ctas { 
  margin-top: 18px; 
}

.button-space {
  gap: 16px;
}

.site-footer {
  width: var(--max-width);
  margin: 32px auto 48px;
  padding: 18px 0;
  border-top: 1px solid rgba(186, 196, 218, 0.4);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(80, 89, 112, 0.8);
}

.site-footer img {
  width: 160px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

@media (max-width: 960px) {
  .site-header {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  .site-header .brand {
    flex: 1;
  }
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .site-nav {
    flex-direction: column;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(186, 196, 218, 0.8);
    border-radius: 16px;
    padding: 0 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 0.25s ease, padding 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
  }
  .site-nav .nav-link {
    padding: 14px 20px;
    width: 100%;
  }
  .site-nav .nav-link + .nav-link {
    border-top: 1px solid rgba(226, 229, 238, 0.9);
  }
  .site-header.menu-open .site-nav {
    padding: 12px 0;
    max-height: 480px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .carousel-control.prev { left: 12px; }
  .carousel-control.next { right: 12px; }
}

@media (max-width: 640px) {
  .site-header .brand {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-header .brand .divider {
    display: none;
  }
  .site-header .brand p {
    display: none;
  }
  .site-header > .btn.brand {
    display: none;
  }
  .cta-inline {
    flex-direction: column;
    align-items: flex-start;
  }
  .carousel-control {
    display: none;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-contact {
    text-align: left;
  }
}
