:root {
  --bg-body: #f8fafc;
  --bg-elevated: rgba(255, 255, 255, 0.92);
  --bg-elevated-soft: rgba(255, 255, 255, 0.7);
  --bg-alt: #f1f5f9;
  --bg-accent: #eef2ff;
  --border-subtle: rgba(15, 23, 42, 0.12);
  --primary: #4f46e5;
  --primary-soft: rgba(79, 70, 229, 0.1);
  --primary-strong: #6366f1;
  --accent: #0ea5e9;
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-soft: #475569;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 150px; /* space for sticky header when scrolling to anchors */
  -webkit-text-size-adjust: 100%;
  /* clip avoids horizontal bleed without breaking position:sticky on the header (hidden often does) */
  overflow-x: clip;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(6, 182, 212, 0.12), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-width: 280px;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.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;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}

.section {
  padding: 4.5rem 0;
  scroll-margin-top: 150px; /* align section below sticky header on nav click */
}

.section-alt {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.section-accent {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  padding: 4.5rem 0 4rem;
}

.section-partners {
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.section-header h1,
.section-header h2 {
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  margin: 0.25rem 0 0.75rem;
}

.section-lead-title {
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  margin: 0.25rem 0 0.75rem;
}

.section-subtitle {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.subpage-follow {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.subpage-follow__intro {
  margin: 0 0 1rem;
}

.subpage-follow__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0;
}

.subpage-stack-top {
  margin-top: 1.25rem;
}

.services-group-title {
  margin: 2.5rem 0 1rem;
  text-align: left;
}

.services-group-title--first {
  margin-top: 0.75rem;
}

.services-infra-anchor {
  scroll-margin-top: 150px;
}

@media (min-width: 768px) {
  .services-infra-anchor {
    scroll-margin-top: 200px;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
}

/* Improve readability for accent/highlight text on light background */
.accent-gradient {
  background: linear-gradient(120deg, #2563eb, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-grid.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.75rem;
  align-items: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.card-glass {
  background: linear-gradient(
      135deg,
      rgba(99, 102, 241, 0.14),
      rgba(255, 255, 255, 0.6)
    ),
    rgba(255, 255, 255, 0.8);
}

.media-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: var(--shadow-soft);
}

.feature-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: radial-gradient(circle at top left, #22d3ee, #4f46e5);
  color: #f8fafc;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.highlight-list,
.pill-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.highlight-list li,
.pill-list li {
  font-size: 0.85rem;
  font-weight: 500;
  color: #0f172a;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 70, 229, 0.22);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.pill-list li {
  background: linear-gradient(
    145deg,
    rgba(238, 242, 255, 0.98) 0%,
    rgba(240, 249, 255, 0.94) 100%
  );
  border-color: rgba(79, 70, 229, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.65rem 1.4rem;
  font-size: 0.87rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.95) 0%,
    var(--primary) 40%,
    var(--accent) 100%
  );
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 4px 16px rgba(79, 70, 229, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.1) inset;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(79, 70, 229, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.6);
  background: transparent;
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.45);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-cta {
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 10px;
}

.btn-full {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  width: 100%;
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
  backdrop-filter: blur(24px) saturate(1.1);
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow:
    0 1px 0 0 rgba(99, 102, 241, 0.05),
    0 12px 30px rgba(15, 23, 42, 0.08);
}

.header-cta {
  margin-right: 0;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  flex-wrap: nowrap;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: rgba(15, 23, 42, 0.75);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.16);
  transition: color 0.25s ease, transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.social-link:hover {
  color: #0f172a;
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.social-icon {
  width: 16px;
  height: 16px;
}

@media (min-width: 768px) {
  .social-link {
    width: 36px;
    height: 36px;
  }

  .social-icon {
    width: 18px;
    height: 18px;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.5rem;
  gap: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease, transform 0.22s ease, filter 0.22s ease;
}

.logo:hover {
  opacity: 0.94;
}

/* Circular header logo — compact so the bar height follows nav text, not the mark */
.logo-round {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  padding: 0.1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 6px 20px rgba(15, 23, 42, 0.1);
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
}

.logo.logo-round {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: stretch;
  line-height: 0;
}

.logo.logo-round:hover {
  opacity: 1;
  transform: scale(1.05);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.08),
    0 10px 28px rgba(15, 23, 42, 0.14);
}

/* contain: full mark (icon + wordmark) stays in view, not stretched, largest size that fits */
.logo.logo-round .logo-img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
  filter: none;
}

.logo-img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  vertical-align: top;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

@media (min-width: 768px) {
  .logo-round {
    width: 80px;
    height: 80px;
  }

  html {
    scroll-padding-top: 200px;
  }

  .section,
  .hero {
    scroll-margin-top: 200px;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  flex: 1;
  flex-wrap: wrap;
  max-width: 900px;
  margin-left: auto;
}

.nav-links a {
  color: rgba(15, 23, 42, 0.82);
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  border-bottom: 1px solid transparent;
  letter-spacing: 0.02em;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  color: #0f172a;
  background: rgba(99, 102, 241, 0.12);
  border-bottom-color: rgba(99, 102, 241, 0.55);
}

.nav-item-has-submenu {
  position: relative;
}

.submenu-toggle {
  color: rgba(203, 213, 225, 0.9);
  background: transparent;
  border: 0;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  font-weight: 500;
  cursor: pointer;
  font: inherit;
}

.submenu-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.submenu {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  min-width: 210px;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 55;
}

.submenu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  color: rgba(203, 213, 225, 0.95);
}

.submenu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}


.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.75);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 16px;
  height: 1.8px;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 999px;
}

.nav-cta {
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.nav-cta-mobile {
  display: none;
  width: 100%;
  padding-top: 0.6rem;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  scroll-margin-top: 150px;
  color: inherit;
}

/* Full-width hero video (no text card below — taller band) */
.hero-visual {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  min-height: clamp(360px, 72vh, 88vh);
  max-height: 90vh;
  border-radius: 0 0 40px 40px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 38%;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  filter: saturate(1.2) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.38), transparent 55%),
    radial-gradient(circle at bottom right, rgba(79, 70, 229, 0.6), #020617 75%);
  mix-blend-mode: soft-light;
}

/* Covers HeyGen logo bar across bottom of hero video */
.hero-logo-cover {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: clamp(80px, 22vh, 140px);
  background: linear-gradient(
    to top,
    #020617 0%,
    rgba(2, 6, 23, 0.95) 35%,
    rgba(2, 6, 23, 0.5) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5.25rem 1.25rem 4.25rem;
}

.accent-gradient {
  display: block;
  background: linear-gradient(120deg, #22d3ee, #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 560px;
  color: #e5e7eb;
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.metric {
  min-width: 110px;
}

.metric-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
}

.metric-label {
  display: block;
  font-size: 0.8rem;
  color: #d1d5db;
}

.service-card {
  position: relative;
}

.service-thumb {
  margin: -0.5rem -0.5rem 0.85rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.service-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(
    circle at top left,
    rgba(79, 70, 229, 0.7),
    transparent 45%
  );
  transition: opacity 0.18s ease-out;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 0.8;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.9);
}

.case-card {
  border-style: dashed;
}

.section-partners .partners-inner {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: flex-start;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.logo-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at top left, #111827, #020617);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.8);
}

.logo-item img {
  width: 100%;
  height: 100%;
  max-height: 120px;
  object-fit: cover;
  display: block;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.image-card {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top left, #1f2937, #020617);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.95);
}

.image-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.image-card figcaption {
  padding: 0.75rem 0.9rem 0.8rem;
  font-size: 0.82rem;
  color: #e2e8f0;
}

.section-video {
  background: radial-gradient(circle at center, #020617 0, #020617 60%);
}

.video-frame {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(129, 140, 248, 0.7);
  box-shadow: 0 30px 90px rgba(55, 65, 81, 0.95);
}

.video-frame video {
  width: 100%;
  height: auto;
  display: block;
  background: #020617;
}

.video-frame--with-cover {
  aspect-ratio: 16 / 9;
}

.video-frame--with-cover video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  background: #020617;
}

/* Covers HeyGen logo bar across bottom of showreel video (same as hero) */
.video-frame--with-cover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: clamp(60px, 18vh, 120px);
  background: linear-gradient(
    to top,
    #020617 0%,
    rgba(2, 6, 23, 0.95) 35%,
    rgba(2, 6, 23, 0.5) 70%,
    transparent 100%
  );
  pointer-events: none;
  border-radius: 0 0 28px 28px;
}

.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.process-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: flex-start;
}

.step-index {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid rgba(79, 70, 229, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #3730a3;
}

.step-content h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.step-content p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 0.85rem 1.1rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
}

.faq-icon {
  font-size: 1.1rem;
  color: #6366f1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.1rem;
  transition: max-height 0.2s ease-out, padding-bottom 0.2s ease-out;
}

.faq-answer p {
  margin: 0.75rem 0 0.9rem;
  color: var(--text-soft);
  font-size: 0.87rem;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 0.75rem;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.section-accent .section-grid {
  align-items: flex-start;
}

.contact-details p {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

.contact-details a {
  color: #4338ca;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-details a:hover {
  color: #312e81;
}

.contact-form {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.3rem 1.4rem;
  border: 1px solid rgba(15, 23, 42, 0.16);
  box-shadow: var(--shadow-soft);
}

.form-row {
  margin-bottom: 0.9rem;
}

.form-row label {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.3rem;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.4);
}

.form-note {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  padding: 1.2rem 0 1.4rem;
  padding-bottom: max(1.4rem, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.85);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-nav a {
  color: rgba(15, 23, 42, 0.78);
  font-size: 0.78rem;
}

.footer-nav a:hover {
  color: #0f172a;
  text-decoration: underline;
}

.footer-social {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.footer-social .social-links {
  justify-content: center;
}

/* Back to top: navigator to return to top menu */
.back-to-top {
  position: fixed;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  right: max(1.5rem, env(safe-area-inset-right));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(79, 70, 229, 0.9);
  color: #fff;
  border-color: rgba(129, 140, 248, 0.6);
}

.back-to-top__icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* Tablet landscape and down */
@media (max-width: 960px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-grid.two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .logo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-header h2 {
    font-size: 1.65rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    border-bottom-color: rgba(148, 163, 184, 0.28);
  }

  .header-cta {
    min-height: 44px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .cta-actions {
    flex-wrap: nowrap;
    gap: 0.45rem;
  }

  .cta-actions .header-cta {
    min-height: 40px;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
  }

  .nav-toggle {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 0.75rem 1.25rem 1rem;
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    transform-origin: top;
    transform: scaleY(0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s ease-out;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 50;
  }

  .nav-links a {
    display: block;
    padding: 0.6rem 0.5rem;
    min-height: 44px;
    line-height: 1.4;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-cta {
    display: none;
  }

  .nav-cta-mobile {
    display: block;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .nav-item-has-submenu {
    width: 100%;
  }

  .submenu-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.6rem 0.5rem;
    min-height: 44px;
  }

  .submenu {
    position: static;
    min-width: 0;
    width: 100%;
    margin: 0.25rem 0 0.5rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
    box-shadow: none;
    border-radius: 8px;
  }

  .submenu.open {
    display: block;
  }

  .hero-visual {
    min-height: clamp(300px, 64vh, 82vh);
    max-height: 86vh;
    border-radius: 0 0 24px 24px;
  }

  .hero-logo-cover {
    height: clamp(60px, 20vh, 110px);
  }

  .hero-content {
    padding-top: 4.5rem;
    padding-bottom: 3rem;
  }

  .hero-metrics {
    gap: 1.1rem;
  }

  .section-header h1,
  .section-header h2,
  .section-lead-title {
    font-size: 1.5rem;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .image-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .image-card img {
    height: 200px;
  }

  .video-frame {
    border-radius: 16px;
  }

  .video-frame--with-cover::after {
    border-radius: 0 0 16px 16px;
  }

  .process-step {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
  }

  .step-index {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .faq-question {
    min-height: 44px;
    padding: 0.75rem 1rem;
    -webkit-tap-highlight-color: transparent;
  }

  .btn,
  .social-link {
    -webkit-tap-highlight-color: transparent;
  }

  .form-row input,
  .form-row textarea {
    font-size: 16px;
    min-height: 44px;
  }

  .form-row textarea {
    min-height: 120px;
  }

  .form-row input[type="email"],
  .form-row input[type="tel"],
  .form-row input[type="text"] {
    font-size: 16px;
  }
}

/* Small phones */
@media (max-width: 540px) {
  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .cta-actions {
    gap: 0.35rem;
  }

  .cta-actions .header-cta {
    padding: 0.5rem 0.65rem;
    font-size: 0.78rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-accent {
    padding: 3rem 0 2.5rem;
  }

  .section-header h1,
  .section-header h2,
  .section-lead-title {
    font-size: 1.35rem;
  }

  .eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  .card {
    padding: 1.25rem 1rem 1.4rem;
  }

  .contact-form {
    padding: 1rem;
  }

  .logo-round {
    width: 56px;
    height: 56px;
    padding: 0.08rem;
  }

  .hero-visual {
    min-height: clamp(260px, 58vh, 72vh);
    max-height: 78vh;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* Prevent long words/URLs from breaking layout */
h1, h2, h3, p, li, figcaption, .section-subtitle {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}

