/* ============================================================
   landing.css — Page-specific styles for the landing page
   Shared styles (tokens, base, components, nav, footer) are
   loaded from their respective shared files.
   ============================================================ */

/* ==================== HERO ==================== */
.hero {
  background: var(--bg-hero);
  padding-top: 119px; /* nav height (79px) + 40px space from Figma */
  padding-bottom: 0;
  height: 889px; /* Figma: hero bg 79–889px = 810px + 79px nav offset */
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1440px; /* Figma: full 1440px frame, padding creates 1360px content */
  margin: 0 auto;
  padding: 0 var(--page-padding);
  display: grid;
  grid-template-columns: 705px 1fr; /* Figma: left exactly 705px, right fills to ~555px */
  gap: 100px; /* Figma: 100px between columns */
  align-items: start;
  height: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-bottom: 40px;
}

.hero-head {
  display: flex;
  flex-direction: column;
}

/* Figma: label + title have no gap (stacked), 30px gap before buttons */
.hero-head .section-label {
  margin-bottom: 0;
}

.hero-head .hero-title {
  margin-bottom: 30px; /* Figma: 30px between title and buttons */
}

.hero-title {
  font-family: var(--font-display);
  font-size: 100px; /* Figma: exactly 100px */
  font-weight: 400;
  line-height: normal; /* Figma: leading-[normal] */
  letter-spacing: -1.44px;
  color: var(--text-primary);
  margin-top: 0;
  perspective: 600px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-description {
  font-size: 16px;
  line-height: 24px; /* Figma: explicit 24px line-height */
  max-width: 431px; /* Figma: 431px */
  margin-top: 87px; /* Figma: 87px gap below screenshots (650→737px) */
  margin-left: auto; /* Align right within column */
  color: var(--text-primary);
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-media {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.hero-screenshot-desktop {
  display: block;
  position: relative;
  width: 620px; /* Bigger for better readability */
  height: 480px;
  border-radius: 11px;
  box-shadow: 0px 1px 8px 3px rgba(171, 175, 177, 0.3);
  overflow: hidden;
  border: none;
  background: #fff;
  /* Scale down a 1440x900 page to fit in 620x480 */
  transform-origin: top left;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.hero-screenshot-desktop.visible {
  opacity: 1;
  transform: translateY(0);
}

/* The iframe inside needs to render at full size then scale down */
iframe.hero-screenshot-desktop {
  width: 1440px;
  height: 900px;
  transform: scale(0.43) translateY(30px); /* 620/1440 ≈ 0.43 */
  transform-origin: top left;
  /* Compensate: the element still takes 1440x900 in layout, shrink the box */
  margin-right: -820px; /* 1440 - 620 = 820 */
  margin-bottom: -420px; /* 900 - 480 = 420 */
}

iframe.hero-screenshot-desktop.visible {
  transform: scale(0.43);
}

.hero-screenshot-mobile {
  display: block;
  position: absolute;
  bottom: -40px; /* Pushed 40px below dashboard bottom */
  left: -140px; /* Bottom-left, overlapping into gap */
  width: 260px;
  height: 400px;
  border-radius: 16px;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  z-index: 2;
  background: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s;
}

.hero-screenshot-mobile.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.hero-scroll-hint span {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: underline;
}

.hero-scroll-hint svg {
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* ==================== HERO — CRM DESKTOP PREVIEW ==================== */
.crm-preview {
  display: flex;
  width: 100%;
  height: 100%;
  background: #f5f5f3;
  font-family: var(--font-body);
  font-size: 10px;
  color: #1a1a1a;
  line-height: 1.4;
  overflow: hidden;
}

.crm-sidebar {
  width: 140px;
  min-width: 140px;
  background: #fff;
  border-right: 1px solid #e5e5e3;
  display: flex;
  flex-direction: column;
  padding: 10px 0;
}

.crm-sb-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 10px;
}

.crm-sb-logo {
  width: 18px;
  height: 18px;
  background: #e85a28;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 8px;
}

.crm-sb-brand {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: -0.01em;
}

.crm-sb-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 6px;
}

.crm-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 9px;
  color: #6b6b6b;
  white-space: nowrap;
}

.crm-nav-item.active {
  background: rgba(232, 90, 40, 0.08);
  color: #e85a28;
  font-weight: 500;
}

.crm-nav-icon {
  font-size: 10px;
  width: 14px;
  text-align: center;
  opacity: 0.6;
}

.crm-nav-item.active .crm-nav-icon {
  opacity: 1;
}

.crm-badge {
  margin-left: auto;
  background: #e85a28;
  color: #fff;
  font-size: 7px;
  font-weight: 700;
  min-width: 14px;
  height: 14px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  padding: 0 3px;
}

.crm-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.crm-topbar {
  height: 28px;
  background: #fff;
  border-bottom: 1px solid #e5e5e3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.crm-search {
  font-size: 9px;
  color: #9b9b9b;
  background: #f0f0ee;
  padding: 3px 8px;
  border-radius: 4px;
}

.crm-notif-dot {
  width: 6px;
  height: 6px;
  background: #e85a28;
  border-radius: 50%;
}

.crm-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.crm-convlist {
  width: 180px;
  min-width: 180px;
  background: #fff;
  border-right: 1px solid #e5e5e3;
  overflow: hidden;
}

.crm-conv-header {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e5e3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}

.crm-conv-count {
  font-size: 8px;
  color: #9b9b9b;
}

.crm-conv {
  padding: 6px 10px;
  border-bottom: 1px solid #ededeb;
  cursor: default;
}

.crm-conv.active {
  background: #eaeae8;
}

.crm-conv-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.crm-conv-name {
  font-size: 9px;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-conv-time {
  font-size: 8px;
  color: #9b9b9b;
  flex-shrink: 0;
}

.crm-conv-preview {
  font-size: 8px;
  color: #6b6b6b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-ch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-grid;
  place-items: center;
  font-size: 6px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.crm-ch-wa {
  background: #25d366;
}
.crm-ch-ig {
  background: #e4405f;
}
.crm-ch-web {
  background: #9b9b9b;
}

.crm-detail {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.crm-detail-header {
  padding: 8px 12px;
  border-bottom: 1px solid #e5e5e3;
}

.crm-detail-name {
  font-weight: 600;
  font-size: 10px;
}

.crm-detail-meta {
  font-size: 8px;
  color: #9b9b9b;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.crm-msgs {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.crm-msg {
  max-width: 75%;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 8px;
  line-height: 1.4;
}

.crm-msg-in {
  background: #f0f0ee;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.crm-msg-ai {
  background: rgba(232, 90, 40, 0.08);
  border: 1px solid rgba(232, 90, 40, 0.1);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.crm-msg-label {
  font-size: 7px;
  font-weight: 600;
  color: #e85a28;
  margin-bottom: 2px;
}

/* ==================== HERO — CHATBOT WIDGET PREVIEW ==================== */
.widget-preview {
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 11px;
  color: #1a1a1a;
  overflow: hidden;
}

.widget-header {
  background: var(--navy);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px 16px 0 0;
}

.widget-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.widget-header-info {
  color: #fff;
}

.widget-header-name {
  font-weight: 600;
  font-size: 12px;
}

.widget-header-status {
  font-size: 9px;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 4px;
}

.widget-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
}

.widget-body {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.widget-msg {
  max-width: 88%;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.45;
}

.widget-msg-bot {
  background: #f4f4f4;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.widget-msg-user {
  background: var(--navy);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.widget-input {
  padding: 8px 12px;
  border-top: 1px solid #eee;
  font-size: 10px;
  color: #9b9b9b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Chat typing animation */
.widget-typing {
  align-self: flex-start;
  display: flex;
  gap: 3px;
  padding: 7px 12px;
  background: #f4f4f4;
  border-radius: 10px;
  width: 40px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}

.widget-typing span {
  width: 4px;
  height: 4px;
  background: var(--navy);
  border-radius: 50%;
  opacity: 0.3;
  animation: chatDot 1.4s infinite;
}

.widget-typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.widget-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes chatDot {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* Typing indicator: show then hide (duration=visible time, delay=start time) */
@keyframes typingCycle {
  0% {
    opacity: 0;
    max-height: 0;
    padding: 0 10px;
  }
  8% {
    opacity: 1;
    max-height: 24px;
    padding: 6px 10px;
  }
  85% {
    opacity: 1;
    max-height: 24px;
    padding: 6px 10px;
  }
  100% {
    opacity: 0;
    max-height: 0;
    padding: 0 10px;
  }
}

/* Message fade-in */
@keyframes chatMsgIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Timeline: bot1 → user1 → [typing] → bot2 → user2 → [typing] → bot3
   0.0s  start
   0.5s  bot msg 1 appears (greeting)
   2.5s  user msg 1 appears
   4.0s  typing 1 shows (1.8s visible) — bot thinking
   5.8s  bot msg 2 appears (tour list)
   8.0s  user msg 2 appears
   9.5s  typing 2 shows (1.8s visible) — bot thinking
  11.3s  bot msg 3 appears (final response)
*/

.chat-msg-delay-1 {
  opacity: 0;
  animation: chatMsgIn 0.4s ease 0.5s forwards;
}
.chat-msg-delay-2 {
  opacity: 0;
  animation: chatMsgIn 0.4s ease 2.5s forwards;
}
.chat-typing-1 {
  animation: typingCycle 1.8s ease 4s forwards;
}
.chat-msg-delay-3 {
  opacity: 0;
  animation: chatMsgIn 0.4s ease 5.8s forwards;
}
.chat-msg-delay-4 {
  opacity: 0;
  animation: chatMsgIn 0.4s ease 8s forwards;
}
.chat-typing-2 {
  animation: typingCycle 1.8s ease 9.5s forwards;
}
.chat-msg-delay-5 {
  opacity: 0;
  animation: chatMsgIn 0.4s ease 11.3s forwards;
}

/* ==================== SOCIAL PROOF ==================== */
.social-proof {
  padding: 80px 0 40px;
  position: relative;
  /* Figma: rgba(217,217,217,0.6) base with 74px rounded-tile grid */
  background-color: rgba(217, 217, 217, 0.6);
  /* SVG tile: 74x74 rounded rect (r=4) on 76x76 cell, matching page bg */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='76'%3E%3Crect width='74' height='74' rx='4' ry='4' fill='%23e8e8e8'/%3E%3C/svg%3E");
  background-size: 76px 76px;
}

/* Figma: gradient overlay — to-t from rgba(179,201,221,0.1)@39.5% to white@76.7% */
.social-proof::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    white 23.3%,
    rgba(179, 201, 221, 0.1) 60.5%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.social-proof > * {
  position: relative;
  z-index: 1;
}

.social-proof-heading {
  font-family: var(--font-display);
  font-size: 80px; /* Figma: exactly 80px */
  font-weight: 400;
  letter-spacing: -1.44px;
  max-width: 1035px;
  line-height: normal; /* Figma: leading-[normal] */
}

.marquee-container {
  margin-top: 50px;
  overflow: hidden;
  position: relative;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(
    to right,
    #ddd,
    transparent
  ); /* blend with social proof bg */
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(
    to left,
    #ddd,
    transparent
  ); /* blend with social proof bg */
}

.marquee-row {
  display: flex;
  gap: 60px;
  padding: 14px 0;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

.marquee-row:nth-child(2) {
  animation-direction: reverse;
  animation-duration: 35s;
}

.marquee-name {
  font-weight: 600;
  font-size: 18px;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.marquee-name:hover {
  color: var(--navy);
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==================== METRICS STRIP ==================== */
.metrics-section {
  padding: 60px 0 80px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.metric-item {
  position: relative;
}

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--text-primary);
  line-height: 1.1;
}

.metric-value .metric-arrow {
  font-size: 0.6em;
  opacity: 0.4;
  margin: 0 4px;
}

.metric-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.4;
}

/* ==================== STEPS — STACKED CARDS ==================== */
.steps-section {
  padding: 60px 0 40px;
}

.steps-header {
  text-align: center;
  max-width: 1188px;
  margin: 0 auto 60px;
}

.steps-header .section-heading {
  font-size: clamp(48px, 6.5vw, 100px);
  margin-top: 4px;
}

.steps-header .section-desc {
  max-width: 520px;
  margin: 30px auto 0;
  font-size: 16px;
  line-height: 1.5;
}

.steps-stack {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.step-sticky-holder {
  position: sticky;
  top: 100px;
  height: 538px; /* Figma: 538px */
  margin-bottom: 30px;
}

.step-sticky-holder:last-child {
  margin-bottom: 0;
}

.step-card {
  display: grid;
  grid-template-columns: 498fr 584fr; /* Figma: text 498px, screenshot 584px */
  gap: 80px; /* Figma: ~107px gap minus padding overlap */
  align-items: start; /* Figma: content starts at different y positions */
  background: var(--bg-card);
  border-radius: 10px; /* Figma: 10px */
  padding: 50px;
  height: 538px; /* Figma: 538px */
  position: relative;
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-watermark {
  font-family: var(--font-display);
  font-size: 132px;
  font-weight: 400;
  color: var(--navy-light);
  line-height: 1;
  position: absolute;
  top: -18px;
  user-select: none;
  opacity: 0.5;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 158px; /* Figma: text starts ~208px from card top (208 - 50px card padding) */
  position: relative;
  z-index: 1;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -1.44px;
}

.step-content p {
  font-size: 16px;
  line-height: 1.5;
}

.step-screenshot {
  background: var(--bg-dark);
  border: 1px solid #1f1f1f;
  border-radius: 16px;
  height: 438px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}

.step-screenshot-placeholder {
  border: 2px dashed #2a2a2a;
  border-radius: 10px;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  width: 100%;
}

/* ==================== PLATFORM — SCROLL-DRIVEN TABS ==================== */
.platform-section {
  padding: 0;
}

.platform-header {
  text-align: center;
  max-width: 1188px;
  margin: 0 auto;
  padding-bottom: 24px;
  flex-shrink: 0;
}

.platform-header .section-heading {
  font-size: 80px; /* Figma: exactly 80px */
  margin-top: 4px;
}

.platform-header-desc {
  max-width: 498px;
  margin: 16px auto 0;
  font-size: 16px;
  line-height: 24px; /* Figma: explicit 24px */
  color: var(--text-primary);
}

.platform-scroll-container {
  position: relative;
  height: 400vh;
}

.platform-sticky {
  position: sticky;
  top: 80px;
  height: calc(100vh - 100px);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px var(--page-padding) 0;
  display: flex;
  flex-direction: column;
}

.platform-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 2px solid transparent; /* Figma: tabs have border-b-2 */
  margin-bottom: 30px;
  flex-shrink: 0;
  position: relative;
  height: 55px; /* Figma: h-[55px] overflow-clip */
  overflow: hidden;
}

.platform-tab {
  height: 54px; /* Figma: h-[54px] per tab */
  padding: 14px 24px;
  font-weight: 500;
  font-size: 14px;
  line-height: 21px; /* Figma: leading-[21px] */
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-medium);
  cursor: pointer;
}

.platform-tab:hover {
  color: var(--text-primary);
}

.platform-tab.active {
  color: var(--navy);
  font-weight: 600;
  border-bottom-color: var(--navy);
  background: rgba(35, 44, 91, 0.04);
}

.platform-scroll-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 0%;
  background: rgba(35, 44, 91, 0.12);
  z-index: 1;
  transition: width 0.1s linear;
}

.platform-panels {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.platform-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 670fr 498fr; /* Figma: screenshot 670px, text 498px */
  gap: 107px; /* Figma: exact gap between columns */
  align-items: start;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.platform-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.platform-screenshot {
  background: var(--bg-dark);
  border: 1px solid #1f1f1f;
  border-radius: 16px;
  height: 438px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}

.platform-screenshot-placeholder {
  border: 2px dashed #2a2a2a;
  border-radius: 10px;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  width: 100%;
}

.platform-detail {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Figma: flex-col gap-[20px] */
  padding-top: 124px; /* Figma: text starts 124px below screenshot top */
}

.platform-detail h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -1.44px;
  line-height: normal; /* Figma: leading-[normal] */
}

.platform-detail p {
  font-size: 16px;
  line-height: 24px; /* Figma: explicit 24px */
}

.platform-detail ul {
  list-style: disc;
  padding-left: 24px; /* Figma: ms-[24px] */
}

.platform-detail ul li {
  font-size: 16px;
  line-height: 24px; /* Figma: explicit 24px */
  margin-bottom: 0;
}

/* ==================== CAPABILITIES ==================== */
.capabilities-section {
  background: var(--bg-section-alt);
  padding: 100px 0;
}

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

.capabilities-illustration {
  background: var(--bg-dark);
  border: 1px solid #1f1f1f;
  border-radius: 16px;
  height: 438px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}

.capabilities-illustration-placeholder {
  border: 2px dashed #2a2a2a;
  border-radius: 10px;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  width: 100%;
}

.capabilities-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.capability-card {
  border: 1px solid var(--navy);
  border-radius: 16px;
  padding: 20px;
  transition:
    background var(--transition-medium),
    transform var(--transition-fast),
    box-shadow var(--transition-medium);
}

.capability-card:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(35, 44, 91, 0.08);
}

.capability-card h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.18px;
  margin-bottom: 14px;
}

.capability-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ==================== TESTIMONIAL ==================== */
.testimonial-section {
  background: var(--navy);
  padding: 100px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.testimonial-quote-mark {
  font-family: var(--font-quote);
  font-size: 200px;
  color: rgba(255, 255, 255, 0.06);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  user-select: none;
}

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

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
  animation: testimonialFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes testimonialFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -1.44px;
  margin-bottom: 40px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
}

.testimonial-author-info {
  text-align: left;
}

.testimonial-author-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
}

.testimonial-author-title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  transition:
    width var(--transition-medium),
    background var(--transition-medium);
  cursor: pointer;
}

.testimonial-dot.active {
  width: 24px;
  background: #fff;
}

/* ==================== FAQ ==================== */
.faq-section {
  background: var(--bg-footer-section);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

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

.faq-decorative {
  font-family: var(--font-display);
  font-size: clamp(200px, 25vw, 400px);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -7.19px;
  line-height: 0.85;
  user-select: none;
  opacity: 0.08;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

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

.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  width: 100%;
  text-align: left;
  font-weight: 500;
  font-size: 14px;
  color: #141414;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--navy);
}

.faq-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  transition: transform var(--transition-medium);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.4s ease;
  padding: 0 0 0 23px;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 0 20px 23px;
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ==================== CTA ==================== */
.cta-section {
  background: var(--bg-footer-section);
  padding: 0 0 100px;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}

.cta-visual {
  height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cta-visual-placeholder {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #ddd, #bbb);
  border-radius: 50%;
  opacity: 0.25;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.cta-subtitle {
  font-size: 16px;
  line-height: 1.5;
  width: 100%;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(52px, 6.5vw, 100px);
  font-weight: 400;
  letter-spacing: -1.44px;
  line-height: 1;
  width: 100%;
  margin-top: 8px;
}

.cta-content .btn-primary {
  margin-top: 30px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero {
    height: auto;
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    height: auto;
  }

  .hero-content {
    height: auto;
  }

  .hero-title {
    font-size: clamp(44px, 8vw, 72px);
  }

  .hero-right {
    height: auto;
  }

  .hero-description {
    margin-top: 30px;
    margin-left: 0;
    padding-bottom: 0;
  }

  .hero-media {
    min-height: 300px;
  }

  .hero-screenshot-desktop {
    width: 100%;
    max-width: 460px;
    height: auto;
    transform: none !important;
  }

  .hero-screenshot-desktop.visible {
    transform: none !important;
  }

  .hero-screenshot-mobile {
    top: 20px;
    left: auto;
    right: -10px;
    width: 140px;
    height: auto;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .step-card {
    grid-template-columns: 1fr;
    height: auto;
  }

  .step-sticky-holder {
    position: relative;
    top: 0;
    height: auto;
    margin-bottom: 20px;
  }

  .step-card {
    opacity: 1;
    transform: none;
  }

  .platform-scroll-container {
    height: auto;
  }

  .platform-sticky {
    position: relative;
    top: 0;
    height: auto;
    padding-top: 60px;
  }

  .platform-panels {
    position: relative;
    height: auto;
  }

  .platform-panel {
    position: relative;
    display: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .platform-panel.active {
    display: grid;
    grid-template-columns: 1fr;
  }

  .platform-header .section-heading {
    font-size: 44px;
  }

  .capabilities-inner,
  .faq-inner,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .faq-decorative {
    font-size: 120px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 44px;
  }

  .steps-header .section-heading,
  .platform-header .section-heading {
    font-size: 44px;
  }

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

  .platform-tabs {
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
}
