/* ═══════════════════════════════════════════════════════
   platforms.css — Modern platform page styles
   Palette: electric blue → deep purple → neon magenta
   ═══════════════════════════════════════════════════════ */

:root {
  --plat-blue: #0B5FD4;
  --plat-blue-light: #E8F0FE;
  --plat-blue-mid: #4A90E2;
  --plat-blue-dark: #0A1628;
  --plat-purple: #7c3aed;
  --plat-magenta: #c026d3;
  --plat-accent-gradient: linear-gradient(135deg, #2563eb, #7c3aed, #c026d3);
  --plat-gray-50: #f8f9fa;
  --plat-gray-100: #f1f3f5;
  --plat-gray-200: #e9ecef;
  --plat-gray-600: #6c757d;
  --plat-gray-800: #212529;
  --plat-radius: 8px;
}

/* ── Section rhythm ─────────────────────────────────── */
.plat-section {
  padding: 80px 0;
  position: relative;
}
.plat-section--dark {
  background: var(--plat-blue-dark);
  color: #fff;
}
.plat-section--dark p,
.plat-section--dark span:not(.plat-eyebrow),
.plat-section--dark .plat-subheading,
.plat-section--dark .plat-metric-label {
  color: rgba(255,255,255,0.85);
}
.plat-section--light {
  background: #fff;
  color: var(--plat-gray-800);
}
.plat-section--gray {
  background: var(--plat-gray-50);
  color: var(--plat-gray-800);
}
.plat-section--accent {
  background: var(--plat-blue);
  color: #fff;
}

/* ── Typography ─────────────────────────────────────── */
.plat-eyebrow {
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--plat-blue);
  margin-bottom: 12px;
  display: block;
}
.plat-section--dark .plat-eyebrow {
  color: #a78bfa;
}

.plat-heading {
  font-size: 2.4em;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 20px 0;
}
.plat-section--dark .plat-heading,
.plat-section--dark h2,
.plat-section--dark h3,
.plat-section--dark h4,
.plat-hero .plat-heading,
.plat-hero h1 {
  color: #fff;
}
@media (max-width: 768px) {
  .plat-heading { font-size: 1.7em; }
}

.plat-subheading {
  font-size: 1.15em;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 640px;
  margin-bottom: 32px;
}

/* ── Hero ────────────────────────────────────────────── */
.plat-hero {
  padding: 100px 0 60px;
  background: linear-gradient(135deg, #080e1f 0%, #0d1a3a 40%, #15103a 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.plat-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.plat-hero::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(192,38,211,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.plat-hero .plat-eyebrow {
  color: #a78bfa;
}
.plat-hero .plat-heading {
  font-size: 3em;
  max-width: 700px;
}
@media (max-width: 768px) {
  .plat-hero { padding: 60px 0 40px; }
  .plat-hero .plat-heading { font-size: 2em; }
}
.plat-hero .plat-subheading {
  opacity: 0.8;
  font-size: 1.2em;
  max-width: 580px;
  color: #fff;
}
.plat-hero p {
  color: rgba(255,255,255,0.85);
}
.plat-hero-cta {
  display: inline-flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* ── Buttons ────────────────────────────────────────── */
.plat-btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.95em;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}
.plat-btn--primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
}
.plat-btn--primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
  color: #fff;
  text-decoration: none;
}
.plat-btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.plat-btn--outline:hover {
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}
.plat-btn--orange {
  background: #fff;
  color: var(--plat-blue);
}
.plat-btn--orange:hover {
  background: #f0f0f0;
  color: var(--plat-blue);
  text-decoration: none;
}

/* ── Product mockup placeholder ──────────────────────── */
.plat-mockup {
  background: linear-gradient(135deg, #0f1a3a 0%, #150d2e 100%);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: var(--plat-radius);
  overflow: hidden;
  position: relative;
  margin-top: 48px;
}
.plat-mockup img {
  width: 100%;
  height: auto;
  display: block;
}
.plat-mockup-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.9em;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px dashed rgba(255,255,255,0.12);
  border-radius: var(--plat-radius);
  margin: 20px;
}

/* ── Hover cards (Sirma.ai-inspired) ─────────────────── */
.plat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 992px) {
  .plat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .plat-cards { grid-template-columns: 1fr; }
}

.plat-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--plat-gray-200);
  border-radius: var(--plat-radius);
  padding: 32px 28px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.plat-card:hover {
  border-color: var(--plat-blue);
  box-shadow: 0 8px 32px rgba(11,95,212,0.08);
}
.plat-section--dark .plat-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.plat-section--dark .plat-card:hover {
  border-color: var(--plat-purple);
  box-shadow: 0 8px 32px rgba(124,58,237,0.15);
}

/* hover light effect */
.plat-card .hover-light {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
  z-index: 0;
}
.plat-card:hover .hover-light {
  opacity: 1;
  visibility: visible;
}
.plat-section--dark .plat-card .hover-light {
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
}

.plat-card-icon {
  width: 48px;
  height: 48px;
  background: var(--plat-blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  font-size: 1.4em;
}
.plat-section--dark .plat-card-icon {
  background: rgba(124,58,237,0.2);
}

.plat-card h3 {
  font-size: 1.15em;
  font-weight: 600;
  margin: 0 0 10px 0;
  position: relative;
  z-index: 1;
}
.plat-card p {
  font-size: 0.92em;
  line-height: 1.6;
  opacity: 0.75;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ── Metrics row ─────────────────────────────────────── */
.plat-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 992px) {
  .plat-metrics { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
  .plat-metrics { grid-template-columns: repeat(2, 1fr); }
}

.plat-metric {
  text-align: center;
  padding: 24px 16px;
}
.plat-metric-value {
  font-size: 2.4em;
  font-weight: 700;
  color: var(--plat-blue);
  line-height: 1;
  margin-bottom: 8px;
}
.plat-section--dark .plat-metric-value {
  color: #fff;
}
.plat-metric-label {
  font-size: 0.85em;
  opacity: 0.7;
  line-height: 1.4;
}

/* ── Feature row (text + image side-by-side) ─────────── */
.plat-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 40px 0;
}
.plat-feature--reverse {
  direction: rtl;
}
.plat-feature--reverse > * {
  direction: ltr;
}
@media (max-width: 768px) {
  .plat-feature {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .plat-feature--reverse {
    direction: ltr;
  }
}

.plat-feature-text h3 {
  font-size: 1.6em;
  font-weight: 700;
  margin: 0 0 16px 0;
}
.plat-feature-text p {
  font-size: 1em;
  line-height: 1.7;
  opacity: 0.8;
  margin: 0 0 12px 0;
}

.plat-feature-img {
  border-radius: var(--plat-radius);
  overflow: hidden;
  border: 1px solid var(--plat-gray-200);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.plat-section--dark .plat-feature-img {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.plat-feature-img img {
  width: 100%;
  height: auto;
  display: block;
}
.plat-feature-img .plat-img-placeholder {
  aspect-ratio: 8 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--plat-gray-100);
  color: var(--plat-gray-600);
  font-size: 0.85em;
  letter-spacing: 1px;
}
.plat-section--dark .plat-feature-img .plat-img-placeholder {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.3);
}

/* ── Audience / Who It's For ─────────────────────────── */
.plat-audience {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 576px) {
  .plat-audience { grid-template-columns: 1fr; }
}
.plat-audience-item {
  background: var(--plat-blue-light);
  border-radius: var(--plat-radius);
  padding: 28px 24px;
}
.plat-audience-item h4 {
  font-size: 1.05em;
  font-weight: 600;
  color: var(--plat-blue);
  margin: 0 0 8px 0;
}
.plat-audience-item p {
  font-size: 0.92em;
  line-height: 1.6;
  margin: 0;
  opacity: 0.85;
}

/* ── Why / Differentiators ───────────────────────────── */
.plat-why {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 576px) {
  .plat-why { grid-template-columns: 1fr; }
}
.plat-why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--plat-radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.plat-why-item .why-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  background: rgba(124,58,237,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
}
.plat-why-item h4 {
  font-size: 0.95em;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #fff;
}
.plat-why-item p {
  font-size: 0.85em;
  line-height: 1.5;
  opacity: 0.7;
  margin: 0;
  color: #fff;
}

/* ── CTA banner ──────────────────────────────────────── */
.plat-cta-banner {
  text-align: center;
  padding: 64px 24px;
}
.plat-cta-banner .plat-heading {
  max-width: 700px;
  margin: 0 auto 12px;
}
.plat-cta-banner .plat-subheading {
  margin: 0 auto 32px;
  max-width: 500px;
}

/* ── Inner container ─────────────────────────────────── */
.plat-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Divider line ────────────────────────────────────── */
.plat-divider {
  width: 60px;
  height: 3px;
  background: var(--plat-blue);
  border-radius: 2px;
  margin-bottom: 24px;
}
.plat-section--dark .plat-divider {
  background: linear-gradient(90deg, #2563eb, #a78bfa);
}
