/* ===== Fonts ===== */
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ===== Design tokens ===== */
:root {
  --bg: #f4f4f4;
  --white: #ffffff;
  --ink: #232b33;
  --ink-muted: rgba(35, 43, 51, 0.62);
  --ink-faint: rgba(35, 43, 51, 0.38);
  --accent: #ff4046;
  --accent-dim: rgba(255, 64, 70, 0.12);
  --yellow: #f4d600;
  --blue: #1372d8;
  --border: rgba(35, 43, 51, 0.12);
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; margin: 0 0 1rem; line-height: 1.2; }
p { margin: 0 0 1rem; }

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

.muted { color: var(--ink-muted); }
.accent { color: var(--accent); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { background: var(--accent); color: var(--white); }
.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.btn-solid:hover { background: var(--ink); border-color: var(--ink); }
.btn-light {
  border-color: var(--white);
  color: var(--white);
}
.btn-light:hover { background: var(--white); color: var(--ink); }

/* ===== Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 244, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  flex: 1;
  padding-left: 2.5rem;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { flex-shrink: 0; padding: 0.7rem 1.3rem; font-size: 0.85rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    padding-left: 0;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-toggle { display: flex; }
}

/* ===== Sections ===== */
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-tight { padding: clamp(1.5rem, 4vw, 3rem) 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .muted { color: rgba(255, 255, 255, 0.65); }

.eyebrow {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.text-center { text-align: center; }

/* ===== Hero ===== */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  line-height: 1.18;
}
.hero-copy p {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 44ch;
}
.hero-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 48px rgba(35, 43, 51, 0.16);
}
.hero-media img, .hero-media .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-media .slide.active { opacity: 1; }
.hero-media-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.6rem 1.1rem;
  border-radius: 4px;
  z-index: 2;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy p { margin-inline: auto; }
}

/* ===== Trusted-by strip ===== */
.trusted-strip {
  display: flex;
  align-items: center;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0.8;
}
.trusted-strip img { height: 42px; width: auto; max-width: 140px; object-fit: contain; }

/* ===== Process steps ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.process-step { text-align: center; }
.process-step img { height: 64px; width: auto; margin: 0 auto 1.25rem; }
.process-step p { font-weight: 500; max-width: 22ch; margin-inline: auto; }
.process-cta { text-align: center; margin-top: 2.5rem; }
@media (max-width: 760px) {
  .process-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===== CTA cards (book demo, etc.) ===== */
.cta-cards {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  flex: 1 1 320px;
  max-width: 420px;
}
.cta-card h3 { font-size: 1.4rem; }
.cta-card p { color: rgba(255, 255, 255, 0.68); margin-bottom: 1.5rem; }
.cta-card .btn-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ===== Solutions ===== */
.solution-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--border);
}
.solution-block:last-child { border-bottom: none; }
.solution-block.reverse { grid-template-columns: 1.15fr 0.85fr; }
.solution-block.reverse .solution-media { order: 2; }
.solution-eyebrow { color: var(--accent); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.solution-block h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.solution-block p { color: var(--ink-muted); }
.solution-logos { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.solution-logos img { height: 34px; width: auto; opacity: 0.85; }
.solution-media {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.solution-media img { height: 72px; width: auto; }
@media (max-width: 860px) {
  .solution-block, .solution-block.reverse { grid-template-columns: 1fr; }
  .solution-block.reverse .solution-media { order: 0; }
}

/* ===== Team ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.team-card { text-align: center; }
.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}
.team-card h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.team-card p { color: var(--ink-muted); font-size: 0.9rem; margin: 0; }
@media (max-width: 860px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ===== Press strip ===== */
.press-strip {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3rem);
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0.85;
}
.press-strip img { height: 38px; width: auto; max-width: 150px; object-fit: contain; }

/* ===== Forms ===== */
.form-card {
  background: var(--white);
  border-radius: 16px;
  padding: clamp(1.75rem, 5vw, 3rem);
  box-shadow: 0 20px 40px rgba(35, 43, 51, 0.08);
}
.field { margin-bottom: 1.5rem; }
.field label, .field legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding: 0;
}
.field .hint { display: block; font-weight: 400; color: var(--ink-muted); font-size: 0.85rem; margin-top: 0.25rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 100px; }
.checkbox-group, .radio-group { display: flex; flex-direction: column; gap: 0.6rem; }
.checkbox-group label, .radio-group label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 400;
  margin-bottom: 0;
}
.checkbox-group input, .radio-group input { width: 16px; height: 16px; flex-shrink: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) {
  .field-row { grid-template-columns: 1fr; }
}
.form-submit { margin-top: 0.5rem; }

/* ===== Experience example box ===== */
.example-card {
  background: var(--ink);
  color: var(--white);
  border-radius: 16px;
  padding: clamp(1.75rem, 5vw, 2.5rem);
}
.example-card h3 { color: var(--white); }
.example-card ul { list-style: none; margin: 1.25rem 0 0; }
.example-card ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}
.example-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.example-card ul li strong { color: var(--white); }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: var(--white); padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-logo img { height: 28px; width: auto; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.copyright { color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; }
.social-links { display: flex; gap: 1.25rem; }
.social-links a { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.social-links a:hover { color: var(--white); }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}
