/* ============================================================
   BeKnown — Platform Section
   ============================================================ */

.platform {
  position: relative;
  background-color: var(--soft-white);
  overflow: hidden;
}

/* Intro band */
.platform__intro {
  padding-block: clamp(5rem, 10vw, 10rem);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.platform__for {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 2rem;
}

.platform__headline {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 6.5rem);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--navy);
  max-width: 820px;
  margin-bottom: 2rem;
}

.platform__sub {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray-500);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── Platform product showcase ────────────────────────────── */
.platform__showcase {
  position: relative;
  background-color: var(--navy);
  padding-block: clamp(5rem, 10vw, 10rem);
}

.platform__showcase-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem 5rem;
  align-items: center;
}

/* Screen mockup */
.platform__screen {
  position: relative;
  aspect-ratio: 9/16;
  max-width: 340px;
  margin-inline: auto;
}

.platform__screen-frame {
  width: 100%;
  height: 100%;
  background: var(--deep-navy);
  border-radius: 32px;
  border: 6px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  position: relative;
}

.platform__screen-bar {
  height: 28px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  padding-inline: 1rem;
  gap: 6px;
  flex-shrink: 0;
}

.platform__screen-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.platform__screen-dot:nth-child(1) { background: #FF5F57; }
.platform__screen-dot:nth-child(2) { background: #FFBD2E; }
.platform__screen-dot:nth-child(3) { background: #28C840; }

.platform__screen-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.platform__screen-iframe {
  width: 300%;
  height: 300%;
  transform: scale(0.333);
  transform-origin: top left;
  border: none;
  pointer-events: none;
}

/* Platform placeholder when no URL */
.platform__screen-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
}

.platform__ph-header {
  height: 48px;
  background: rgba(32, 104, 216, 0.2);
  border-radius: 8px;
}

.platform__ph-menu-item {
  height: 36px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
}

.platform__ph-img {
  height: 120px;
  background: linear-gradient(135deg, rgba(32,104,216,0.15) 0%, rgba(32,104,216,0.05) 100%);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

/* Features list */
.platform__info {
  color: var(--white);
}

.platform__info-tag {
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.75rem;
}

.platform__info-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 2.5rem;
}

.platform__flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 3rem;
}

.platform__flow-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding-block: 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  position: relative;
}

.platform__flow-item:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.platform__flow-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--blue);
  flex-shrink: 0;
  margin-top: 6px;
}

.platform__flow-arrow {
  position: absolute;
  left: 3px;
  top: 100%;
  width: 1px;
  height: calc(100% - 1rem);
  background: linear-gradient(to bottom, var(--blue) 0%, transparent 100%);
}

.platform__flow-text {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
}

.platform__flow-text strong {
  font-weight: 500;
  color: var(--white);
}

.platform__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

/* Features grid beneath */
.platform__features {
  padding-block: clamp(4rem, 8vw, 8rem);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.platform__features-headline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 2.5rem;
}

.platform__feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.platform__feature {
  padding: 1.75rem 2rem;
  border-top: 1px solid var(--gray-100);
  border-right: 1px solid var(--gray-100);
}

.platform__feature:nth-child(3n) {
  border-right: none;
}

.platform__feature:nth-last-child(-n+3) {
  border-bottom: 1px solid var(--gray-100);
}

.platform__feature-name {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.platform__feature-desc {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--gray-500);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .platform__showcase-inner {
    grid-template-columns: 1fr;
  }

  .platform__screen {
    max-width: 260px;
    margin-inline: auto;
    margin-bottom: 3rem;
  }

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

  .platform__feature:nth-child(3n) {
    border-right: 1px solid var(--gray-100);
  }

  .platform__feature:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 560px) {
  .platform__feature-list {
    grid-template-columns: 1fr;
  }

  .platform__feature {
    border-right: none;
  }

  .platform__feature:nth-child(n) {
    border-right: none;
    border-bottom: none;
  }

  .platform__feature:last-child {
    border-bottom: 1px solid var(--gray-100);
  }
}
