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

:root {
  --bg-color: #FAFAFA;
  --white: #FFFFFF;
  --text-main: #0A0A0A;
  --text-muted: #5A5A5A;
  --border-color: #E5E5E5;
  --border-color-dark: rgba(255, 255, 255, 0.08);
  /* One size for every section heading on phones (the hero H1 stays a step larger) */
  --section-title-phone: 30px;
  --section-title-phone-lh: 36px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Visitors who ask for less motion jump straight to anchors instead of gliding */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Mobile Safari: keep our type sizes in landscape instead of inflating them */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* A long URL, code or word wraps instead of pushing the page sideways (min-content is unchanged) */
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  letter-spacing: -0.02em;
  /* Even line lengths on narrow screens: no single word left alone on the last line */
  text-wrap: balance;
}

p, li, dd, figcaption, blockquote {
  text-wrap: pretty;
}

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

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

/* width/height attributes reserve space before load (no layout shift); height: auto keeps the
   image's proportions once max-width shrinks it. Without it a 1376 x 774 image keeps its 774px
   height on a phone and gets squeezed sideways. */
img {
  height: auto;
}

/* Shared layout primitives */
.section {
  padding: 100px 40px;
  display: flex;
  justify-content: center;
  border-top: 0.5px solid var(--border-color);
}

.container {
  max-width: 1280px;
  width: 100%;
  border-left: 0.5px solid var(--border-color);
  border-right: 0.5px solid var(--border-color);
}

.section-title {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.bg-light {
  background-color: var(--bg-color);
}

.section-dark {
  background: var(--text-main);
  color: white;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  height: 44px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}
.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  height: 38px;
  font-size: 14px;
  padding: 0 16px;
}

.btn-primary {
  background-color: var(--text-main);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.btn-primary:hover {
  background-color: #1a1a1a;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}
.btn-secondary:hover {
  background-color: #f8f9fa;
  border-color: #d1d1d1;
}

/* Section divider — Figma: 80px #FAFAFA band, 0.5px top/bottom borders, 1280px inner container with side borders */
.section-divider {
  display: flex;
  justify-content: center;
  height: 80px;
  padding: 0 40px;
  background: var(--bg-color);
  border-top: 0.5px solid var(--border-color);
  border-bottom: 0.5px solid var(--border-color);
}

.section-divider + section {
  border-top: 0;
}

.section-divider-inner {
  width: 100%;
  max-width: 1280px;
  border-left: 0.5px solid var(--border-color);
  border-right: 0.5px solid var(--border-color);
}

/* Shared responsive breakpoints — laptop/tablet */
@media (max-width: 1024px) {
  .section {
    padding: 72px 32px;
  }

  .section-divider {
    padding: 0 32px;
  }

  .section-title {
    font-size: 36px;
  }

  .section-subtitle {
    font-size: 18px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .section {
    padding: 56px 20px;
  }

  .section-divider {
    padding: 0 20px;
  }

  .section-title {
    font-size: var(--section-title-phone);
    line-height: var(--section-title-phone-lh);
    letter-spacing: -0.02em;
  }

  .section-subtitle {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .btn {
    font-size: 14px;
  }
}

/* ===== Pill / badge border beam =====
   A short dark highlight travels around the pill's border in a loop. The ring
   is masked to the border only; offset-path keeps the beam on the rounded shape. */
.hero-eyebrow,
.inside-product-eyebrow,
.stack-tag,
.platform-1-tag,
.platform-2-tag,
.testimonials-tag,
.pricing-tag,
.faq-tag,
.book-a-call-tag,
.legal-tag,
.compare-table-tag {
  position: relative;
}

.hero-eyebrow,
.inside-product-eyebrow {
  --pill-border: 0.5px;
}

.stack-tag,
.platform-1-tag,
.platform-2-tag,
.testimonials-tag,
.pricing-tag,
.faq-tag,
.book-a-call-tag,
.legal-tag,
.compare-table-tag {
  --pill-beam-color: #0588F0;
}

.pill-beam {
  display: none;
}

@supports (offset-path: rect(0 auto auto 0 round 999px)) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-eyebrow-accent {
      display: none;
    }

    .pill-beam {
      display: block;
      position: absolute;
      inset: calc(var(--pill-border, 1px) * -1);
      border: 1px solid transparent;
      border-radius: inherit;
      pointer-events: none;
      -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
      mask-composite: exclude;
    }

    .pill-beam::after {
      content: "";
      position: absolute;
      width: 36px;
      aspect-ratio: 1;
      background: linear-gradient(to right, transparent, var(--pill-beam-color, #0A0A0A));
      offset-anchor: 90% 50%;
      offset-path: rect(0 auto auto 0 round 999px);
      offset-rotate: auto;
      animation: pill-beam-travel 4s linear infinite;
      will-change: offset-distance;
    }
  }
}

@keyframes pill-beam-travel {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

/* A repeated section heading kept as plain text (not a second H2) with the same look */
.as-h2 {
  font-weight: 500;
  letter-spacing: -0.02em;
}
