/* ============ Tokens ============ */
:root {
  --neutral-0: #fdfdfd;
  --neutral-200: #ededea;
  --neutral-300: #e6e6e3;
  --neutral-400: #c4c4c1;
  --neutral-500: #9d9d9d;
  --neutral-800: #3a3a3a;
  --neutral-900: #1e1e1e;
  --amber-500: #fcc444;
  --text: #1e1e1e;
  --text-muted: #9d9d9d;

  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  background: var(--neutral-0);
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

/* ============ Scroll reveal (section transitions) ============ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ Scroll snap wrapper (frames 1-4) ============ */
.snap-wrapper {
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  height: 100vh;
}

.frame {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  position: relative;
  background: var(--neutral-0);
  display: flex;
  flex-direction: column;
  padding-top: var(--navbar-height);
}

/* frame 5 only snaps at its top edge (the handoff point) then scrolls freely */
#frame-5 {
  scroll-snap-stop: normal;
  height: auto;
  min-height: 100vh;
}

/* ============ Navbar (single, fixed) ============ */
:root {
  --navbar-height: 74px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 80px;
  width: 100%;
  height: var(--navbar-height);
  background: var(--neutral-0);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.navbar .logo img { height: 38px; width: auto; }

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber-500);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 26.5px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.login-btn:hover {
  background: var(--neutral-800);
  color: #fff;
  transform: translateY(-1px);
}

/* ============ Hero sections (frames 1-4) ============ */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 0 172px;
}

.hero.center {
  align-items: center;
  text-align: center;
  padding: 0 80px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.hero.center .eyebrow { margin: 0 auto 24px; }

.headline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 55px;
  line-height: 1;
  letter-spacing: -2.75px;
  color: var(--neutral-800);
  margin: 0 0 24px;
  max-width: 720px;
}

.headline .amber { color: var(--amber-500); }
.headline .dark { color: #141414; }

.hero.center .headline { max-width: 800px; margin: 0 auto 24px; }

.subtext {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 25px;
  color: var(--text);
  max-width: 580px;
  margin: 0;
}

.hero.center .subtext { max-width: 574px; margin: 0 auto; }

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 502px;
  flex-shrink: 0;
}

.hero.hero-split {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-split .hero-copy { max-width: 502px; flex-shrink: 0; }

.hero-image-col {
  flex: 1;
  min-width: 0;
  height: 60vh;
  max-height: 560px;
  border-radius: 12px;
  overflow: hidden;
}

.hero-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo-section {
  background-size: cover;
  background-position: center;
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.61);
  z-index: 0;
}

/* ============ Frame 5 / services sections ============ */
.service-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 120px 80px;
  min-height: 656px;
}

.service-section.reverse { flex-direction: row-reverse; }

.service-copy { max-width: 502px; flex-shrink: 0; }

.service-copy .eyebrow { margin-bottom: 20px; }

.service-copy .headline {
  font-size: 55px;
  margin-bottom: 32px;
  max-width: 500px;
}

.service-copy .subtext { margin-bottom: 32px; }

.service-features {
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.service-features li img { width: 9px; height: 9px; }

.service-demo {
  position: relative;
  width: 100%;
  max-width: 1023px;
  aspect-ratio: 1023 / 656;
  flex-shrink: 0;
}

.service-demo .vector-1,
.service-demo .vector-2,
.service-demo .vector-3 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.service-demo .demo-label {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 20px;
  color: var(--neutral-500);
  white-space: nowrap;
}

.service-demo-shot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--neutral-800);
  border-radius: 12px;
  display: block;
}

.service-demo-shot.service-demo-photo {
  object-fit: cover;
  background: none;
}

/* ============ Logos / products section ============ */
.logos-section {
  padding: 140px 80px;
  text-align: center;
}

.logos-section .eyebrow { text-align: center; margin-bottom: 20px; }
.logos-section .headline { margin: 0 auto 20px; max-width: 700px; }
.logos-section .subtext { margin: 0 auto 80px; max-width: 500px; }

.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
}

.product-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.product-badge .icon {
  width: 57px;
  height: 57px;
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-badge .icon img { width: 100%; height: 100%; object-fit: cover; }

.product-badge .icon img.icon-contain { object-fit: contain; }

.ai-icon-wrap {
  position: relative;
  width: 49px;
  height: 37px;
}

.product-badge .icon .ai-icon-wrap img {
  position: absolute;
  height: 100%;
  width: auto;
  object-fit: contain;
}

.ai-icon-gear { left: 0; }
.ai-icon-v { right: 0; }

.product-badge span {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .navbar { padding: 16px 32px; }
  .hero { padding: 0 32px; }
  .headline { font-size: 40px; letter-spacing: -2px; }
  .service-section { flex-direction: column; padding: 80px 32px; text-align: left; }
  .service-section.reverse { flex-direction: column; }
  .service-copy { max-width: 100%; }
  .hero.hero-split { flex-direction: column; }
  .hero-copy { max-width: 100%; }
  .hero-image-col { max-width: 100%; height: 260px; }
}
