:root {
  --bg: #ffffff;
  --bg-elevated: #f7f7f7;
  --border: #e0e0e0;
  --text-primary: #111111;
  --text-secondary: #444444;
  --text-tertiary: #777777;
  --accent: #2563eb;
  --radius: 12px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--text-secondary);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 26px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-secondary);
}

.nav a:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.nav-cta:hover {
  color: #ffffff;
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
}

/* Hero */
.hero {
  position: relative;
  padding: 150px 0 130px;
  min-height: 880px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-bg-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.65;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 100%);
}

/* "contain" keeps the entire video frame visible at any viewport size; the
   globe is centred within the source frame, so no horizontal correction is
   needed. Blur softens the compression artefacts in the flat gradients. */
.hero-bg-art video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: blur(4px);
}

/* iOS refuses to autoplay in Low Power Mode and stamps a large play button over
   the frame. The video is decorative, so suppress the control and let the
   poster stand in rather than inviting a tap that does nothing. */
.hero-bg-art video::-webkit-media-controls,
.hero-bg-art video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.section-eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero .eyebrow {
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(30px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 auto 26px;
  text-align: center;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

/* Width is set in px by the rotator script to match the current word, so each
   line stays optically centred; the transition absorbs the length change.
   Left-aligned so that while the box is mid-resize the word stays tight
   against "your" instead of drifting away from it. */
.rotator {
  display: inline-block;
  text-align: left;
  color: var(--accent);
  position: relative;
  transition: width 0.35s ease;
}

.hero-sub {
  font-size: 20px;
  max-width: 660px;
  margin: 0 auto 38px;
}

.hero .btn {
  font-size: 16px;
  padding: 16px 30px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text-primary);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--text-secondary);
}

.btn-full {
  width: 100%;
}

/* Why */
.why {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.why-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.why-item p {
  font-size: 14px;
}

/* Section headings shared */
.services, .process, .faq {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.services h2,
.process h2,
.faq h2 {
  font-size: 30px;
  max-width: 560px;
  margin-bottom: 12px;
}

.section-sub {
  max-width: 520px;
  margin-bottom: 48px;
  font-size: 15px;
}

/* Services grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--bg-elevated);
  padding: 28px 24px;
}

.service-index {
  display: inline-block;
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 700;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.process-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.process-step h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 14px;
}

/* FAQ */
.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  padding: 20px 0;
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  color: var(--text-tertiary);
  font-size: 18px;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}

.faq-answer p {
  font-size: 14px;
  padding-bottom: 20px;
  max-width: 620px;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

/* Contact */
.contact {
  padding: 80px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-copy h2 {
  font-size: 28px;
  margin: 12px 0 16px;
}

.contact-copy p {
  font-size: 15px;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.contact-detail + .contact-detail {
  margin-top: 8px;
}

/* Fixed width keeps the values lined up in a column under each other. */
.contact-label {
  color: var(--text-tertiary);
  min-width: 46px;
}

.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form .form-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 12px;
}

.contact-form input,
.contact-form select,
.multiselect-trigger {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.multiselect-trigger:focus-visible {
  outline: none;
  border-color: var(--accent);
}

/* Native select arrows sit hard against the right edge, so draw our own and
   inset it to match the field's horizontal padding. */
.contact-form select,
.multiselect-trigger {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%23777777' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px 7px;
}

.field-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* Vendor multi-select: a checkbox panel dressed up as a native select. */
.multiselect {
  position: relative;
}

.multiselect-trigger {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.multiselect.open .multiselect-trigger {
  border-color: var(--accent);
}

.multiselect-value {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.multiselect-value.is-placeholder {
  color: var(--text-tertiary);
}

.form-hint {
  text-transform: none;
  color: var(--text-tertiary);
  opacity: 0.75;
}

.vendor-other {
  margin-top: 8px;
}

.vendor-other[hidden] {
  display: none;
}

.multiselect-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  /* Tall enough to show every platform at once on a desktop viewport. */
  max-height: min(430px, 60vh);
  overflow-y: auto;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.12);
}

.multiselect-panel[hidden] {
  display: none;
}

.multiselect-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
}

.multiselect-option:hover {
  background: var(--bg-elevated);
}

.multiselect-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  flex: none;
  accent-color: var(--accent);
  cursor: pointer;
}

.contact-form button[type="submit"] {
  margin-top: 20px;
}

/* Scroll-triggered section transitions */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 860px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-line {
    white-space: normal;
  }

  /* The source is very wide, so at phone widths a fully-contained frame leaves
     the globe tiny. Scale it up from the bottom edge and ease off the blur. */
  .hero-bg-art video {
    transform: scale(1.7);
    transform-origin: 50% 100%;
    filter: blur(2px);
  }

  .hero-sub {
    font-size: 17px;
  }

  .hero {
    min-height: 640px;
    padding: 110px 0 80px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}
