/* =============================================
   KemotechTz — platform.css
   Platform page styles
   ============================================= */

/* =============================================
   PLATFORM HERO
   ============================================= */
.plat-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 3rem) 5% 5rem;
  overflow: hidden;
}

.plat-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.plat-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Dark overlay so text stays readable */
.plat-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(240, 237, 248, 0.85) 0%,
    rgba(240, 237, 248, 0.55) 50%,
    rgba(240, 237, 248, 0.78) 100%
  );
}

.plat-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}

/* Hero content */
.plat-hero-content {
  max-width: 720px;
}

.plat-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-purple);
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.75rem;
}

.plat-hero-tag .tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-purple);
  animation: pulse 2s infinite;
}

.plat-hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
  color: #1e1b4b;
}

.plat-hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.plat-hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero dashboard visual */
.plat-hero-visual {
  width: 100%;
  max-width: 860px;
  position: relative;
}

.dashboard-frame {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(30, 27, 75, 0.15), 0 0 0 1px rgba(124, 58, 237, 0.10);
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.dash-dots {
  display: flex;
  gap: 6px;
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dash-dot:nth-child(1) { background: #ff5f57; }
.dash-dot:nth-child(2) { background: #febc2e; }
.dash-dot:nth-child(3) { background: #28c840; }

.dash-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  font-weight: 500;
}

.dashboard-body {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Stat cards row */
.dash-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
}

.dash-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
}

.dash-stat-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.dash-stat-change {
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 0.3rem;
}

.dash-stat-change.up { color: #34d399; }
.dash-stat-change.down { color: #f87171; }

/* Chart row */
.dashboard-charts {
  padding: 0 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.dash-chart-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.dash-chart-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-chart-badge {
  font-size: 0.65rem;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
}

.chart-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: rgba(124, 58, 237, 0.25);
  transition: height 0.5s ease;
  position: relative;
}

.chart-bar.active {
  background: var(--accent-purple);
}

.chart-bar::after {
  content: attr(data-month);
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.chart-bar-wrap {
  padding-bottom: 22px;
}

/* Mini activity panel */
.dash-activity {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.dash-act-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.act-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(200, 186, 232, 0.6);
}

.act-item:last-child { border: none; }

.act-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.act-text {
  font-size: 0.68rem;
  color: var(--text-muted);
  flex: 1;
}

.act-time {
  font-size: 0.62rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Floating cards */
.dash-float-card {
  position: absolute;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 20px 60px rgba(30, 27, 75, 0.15);
  z-index: 5;
  animation: floatCard 4s ease-in-out infinite alternate;
}

.dash-float-card--revenue {
  bottom: -20px;
  left: -30px;
  animation-delay: -1s;
  min-width: 160px;
}

.dash-float-card--users {
  top: -18px;
  right: -25px;
  animation-delay: -2.5s;
  min-width: 150px;
}

@keyframes floatCard {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.float-card-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.3rem;
}

.float-card-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.float-card-sub {
  font-size: 0.65rem;
  color: #34d399;
  margin-top: 0.2rem;
  font-weight: 600;
}

/* =============================================
   SECTION COMMON
   ============================================= */
.section-pad {
  padding: 5rem 5%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* =============================================
   TRUST SECTION
   ============================================= */
.plat-trust {
  padding: 3.5rem 5%;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.trust-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.trust-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color var(--transition), color var(--transition);
}

.trust-card:hover {
  border-color: rgba(124, 58, 237, 0.40);
  color: var(--text-primary);
}

.trust-icon {
  font-size: 1.25rem;
}

/* =============================================
   PLATFORM CATEGORIES
   ============================================= */
.plat-categories {
  background: var(--bg-primary);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.cat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.cat-card:hover {
  border-color: rgba(124, 58, 237, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(30, 27, 75, 0.12);
}

.cat-card:hover::before {
  opacity: 1;
}

.cat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.cat-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.cat-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* =============================================
   PLATFORMS BUILT
   ============================================= */
.plat-built {
  background: var(--bg-secondary);
}

.built-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.built-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.built-card:hover {
  border-color: rgba(124, 58, 237, 0.40);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(30, 27, 75, 0.12);
}

.built-card-thumb {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.built-thumb--safari   { background: linear-gradient(135deg, #1a3a2a 0%, #0f5132 100%); }
.built-thumb--planner  { background: linear-gradient(135deg, #1a2a3a 0%, #0d3b5a 100%); }
.built-thumb--school   { background: linear-gradient(135deg, #2a1a3a 0%, #4a1a6a 100%); }
.built-thumb--church   { background: linear-gradient(135deg, #3a2a1a 0%, #6a3a10 100%); }
.built-thumb--business { background: linear-gradient(135deg, #1a2a3a 0%, #1a1a4a 100%); }

/* Thumb image */
.built-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.built-card:hover .built-thumb-img {
  transform: scale(1.04);
}

.mini-dash {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.mini-dash-top {
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 4px;
  align-items: center;
}

.mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0.6;
}
.mini-dot:nth-child(1) { background: #ff5f57; }
.mini-dot:nth-child(2) { background: #febc2e; }
.mini-dot:nth-child(3) { background: #28c840; }

.mini-dash-body {
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mini-stat {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.mini-stat-line {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  width: 70%;
}

.mini-stat-line.accent {
  background: var(--accent-purple);
  opacity: 0.8;
}

.mini-chart {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  height: 36px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 6px 8px 0;
}

.mini-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: rgba(124, 58, 237, 0.40);
}
.mini-bar.hi { background: var(--accent-purple); opacity: 0.9; }

/* Platform tag badge on thumb */
.built-thumb-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
}

.badge--tourism  { background: rgba(52, 211, 153, 0.2); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }
.badge--booking  { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.badge--edu      { background: rgba(167, 139, 250, 0.2); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.3); }
.badge--finance  { background: rgba(251, 191, 36, 0.2); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.badge--business { background: rgba(124, 58, 237, 0.15); color: #7c3aed; border: 1px solid rgba(124, 58, 237, 0.30); }

.built-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.built-card-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
  margin-bottom: 0.5rem;
}

.built-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.built-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.built-card-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.built-tech-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  background: rgba(124, 58, 237, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(124, 58, 237, 0.15);
}

/* =============================================
   PLATFORM INTERFACES (UI SHOWCASE)
   ============================================= */
.plat-interfaces {
  background: var(--bg-primary);
  overflow: hidden;
}

.interfaces-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.iface-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.iface-card:hover {
  border-color: rgba(124, 58, 237, 0.35);
  transform: translateY(-3px);
}

.iface-card--featured {
  grid-row: span 2;
}

.iface-topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.iface-dots { display: flex; gap: 5px; }
.iface-dot  { width: 8px; height: 8px; border-radius: 50%; }
.iface-dot:nth-child(1) { background: #ff5f57; }
.iface-dot:nth-child(2) { background: #febc2e; }
.iface-dot:nth-child(3) { background: #28c840; }

.iface-name {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 0.4rem;
  font-weight: 500;
}

.iface-body {
  padding: 1.25rem;
}

/* Featured interface - full analytics UI */
.analytics-ui {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.akpi {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
}

.akpi-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.akpi-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.akpi-trend {
  font-size: 0.62rem;
  font-weight: 600;
  margin-top: 0.2rem;
}
.akpi-trend.up   { color: #34d399; }
.akpi-trend.warn { color: #fbbf24; }

.analytics-chart-area {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.chart-head-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.chart-legend {
  display: flex;
  gap: 0.75rem;
}

.legend-dot {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  color: var(--text-muted);
}

.legend-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.legend-dot.purple::before { background: var(--accent-purple); }
.legend-dot.cyan::before   { background: #7c3aed; }

.area-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 80px;
}

.area-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: rgba(124, 58, 237, 0.20);
}
.area-bar.accent { background: var(--accent-purple); opacity: 0.85; }

/* Management table UI */
.mgmt-ui {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mgmt-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 0.6rem 0.8rem;
}

.mgmt-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.20);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent-purple);
}

.mgmt-info {
  flex: 1;
}

.mgmt-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mgmt-role {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.mgmt-status {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
}
.status--active   { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.status--pending  { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.status--inactive { background: rgba(248, 113, 113, 0.15); color: #f87171; }

/* Financial UI */
.finance-ui {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.finance-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.fin-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 0.7rem 0.85rem;
}

.fin-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.fin-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.fin-trend {
  font-size: 0.6rem;
  font-weight: 600;
  margin-top: 0.15rem;
  color: #34d399;
}

.finance-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fbar-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fbar-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  width: 50px;
  flex-shrink: 0;
}

.fbar-track {
  flex: 1;
  height: 6px;
  background: var(--bg-card);
  border-radius: 3px;
  overflow: hidden;
}

.fbar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent-purple);
}

.fbar-val {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  width: 45px;
  text-align: right;
  flex-shrink: 0;
}

/* =============================================
   CAPABILITIES GRID
   ============================================= */
.plat-capabilities {
  background: var(--bg-secondary);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}

.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.cap-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.cap-card:hover {
  border-color: rgba(124, 58, 237, 0.35);
  transform: translateY(-3px);
}

.cap-card:hover::after {
  opacity: 1;
}

.cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.cap-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.cap-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* =============================================
   DEVELOPMENT PROCESS
   ============================================= */
.plat-process {
  background: var(--bg-primary);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

/* Connector line */
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent-cyan), rgba(124, 58, 237, 0.20), var(--accent-cyan));
  z-index: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid rgba(124, 58, 237, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-purple);
  margin-bottom: 1.25rem;
  transition: background var(--transition), border-color var(--transition);
  position: relative;
}

.step-num::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.process-step:hover .step-num {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--accent-purple);
}

.step-icon {
  font-size: 1rem;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =============================================
   WHY CHOOSE
   ============================================= */
.plat-why {
  background: var(--bg-secondary);
}

.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-content {}

.why-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 1rem;
}

.why-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.why-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.why-item-text {}

.why-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.why-item-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Why visual — platform metrics card */
.why-visual {
  position: relative;
}

.metrics-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(30, 27, 75, 0.14);
}

.metrics-card-top {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metrics-card-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.metrics-live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: #34d399;
  font-weight: 600;
}

.metrics-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 2s infinite;
}

.metrics-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.metric-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  width: 130px;
  flex-shrink: 0;
}

.metric-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-purple), #7c3aed);
  transition: width 1s ease;
}

.metric-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}

.metrics-footer {
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.mf-stat-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-purple);
}

.mf-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

/* Floating accent on why section */
.why-visual-float {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 20px 50px rgba(30, 27, 75, 0.14);
  min-width: 150px;
  animation: floatCard 5s ease-in-out infinite alternate;
}

/* =============================================
   FINAL CTA
   ============================================= */
.plat-cta {
  background: var(--bg-primary);
  padding: 7rem 5%;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.plat-cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
}

.cta-orb-1 { width: 500px; height: 500px; background: var(--accent-purple); top: -150px; left: 50%; transform: translateX(-50%); }
.cta-orb-2 { width: 300px; height: 300px; background: #7c3aed; bottom: -100px; right: 10%; }

.plat-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-purple);
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.75rem;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 1.1rem;
}

.cta-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   SCROLL REVEAL ANIMATION
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =============================================
   PLATFORM INFRASTRUCTURE
   ============================================= */
.plat-infra {
  background: var(--bg-primary);
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.infra-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.infra-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.infra-card:hover {
  border-color: rgba(124, 58, 237, 0.40);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(30, 27, 75, 0.12);
}

.infra-card:hover::before {
  opacity: 1;
}

.infra-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  flex-shrink: 0;
}

.infra-card-body {
  flex: 1;
}

.infra-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.infra-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.infra-card-stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.infra-stat-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-purple);
}

.infra-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =============================================
   PLATFORM INTEGRATIONS
   ============================================= */
.plat-integrations {
  background: var(--bg-secondary);
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.integ-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: default;
}

.integ-card:hover {
  border-color: rgba(124, 58, 237, 0.40);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30, 27, 75, 0.10);
}

.integ-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.integ-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.integ-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet */
@media (max-width: 900px) {
  .plat-hero-title { font-size: 1.9rem; }

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

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

  .interfaces-showcase { grid-template-columns: 1fr; }
  .iface-card--featured { grid-row: unset; }

  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .process-steps::before { display: none; }

  .why-layout { grid-template-columns: 1fr; }
  .why-title { font-size: 1.65rem; }

  .cta-title { font-size: 1.8rem; }

  .infra-grid { grid-template-columns: 1fr 1fr; }
  .integrations-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile */
@media (max-width: 600px) {
  .plat-hero { padding: calc(var(--nav-height) + 2rem) 5% 3.5rem; }
  .plat-hero-title { font-size: 1.65rem; }
  .plat-hero-sub { font-size: 0.95rem; }

  .dash-float-card { display: none; }

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

  .built-grid { grid-template-columns: 1fr; }
  .analytics-kpis { grid-template-columns: repeat(3, 1fr); }

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

  .process-steps { grid-template-columns: 1fr; }

  .section-pad { padding: 3.5rem 5%; }

  .cta-title { font-size: 1.5rem; }

  .why-title { font-size: 1.4rem; }

  .metrics-footer { grid-template-columns: 1fr 1fr; }

  .interfaces-showcase { grid-template-columns: 1fr; }

  .infra-grid { grid-template-columns: 1fr; }
  .infra-card { flex-direction: column; }
  .integrations-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 380px) {
  .capabilities-grid { grid-template-columns: 1fr; }
  .analytics-kpis { grid-template-columns: 1fr 1fr; }
}
