/* Platform Pages Styling */

.platform-hero {
  background: linear-gradient(135deg, var(--navy-primary) 0%, var(--slate-secondary) 100%);
  color: white;
  padding: 120px 0 80px;
}

.platform-hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.platform-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.platform-stats .stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Problem Section */
.problem-section {
  padding: 80px 0;
  background: white;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.problem-item {
  padding: 2rem;
  background: var(--light-grey);
  border-radius: 12px;
  border-left: 4px solid var(--alert-red);
}

.problem-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.comparison-message {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--navy-primary), var(--slate-secondary));
  color: white;
  border-radius: 12px;
  font-size: 1.25rem;
}

/* Pillars Section */
.pillars-section {
  padding: 80px 0;
  background: var(--light-grey);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pillar-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.pillar-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.pillar-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 0.5rem;
}

.pillar-card h4 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pillar-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.pillar-features li {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.pillar-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: 700;
}

.pillar-stat {
  background: var(--light-grey);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1rem;
}

.pillar-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--navy-primary);
  margin-bottom: 0.25rem;
}

.pillar-stat span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pillar-link {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: none;
}

/* Integration Flow */
.integration-section {
  padding: 80px 0;
  background: white;
}

.integration-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
}

.flow-item {
  flex: 1;
  text-align: center;
  padding: 2rem 1rem;
}

.flow-number {
  width: 60px;
  height: 60px;
  background: var(--navy-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.flow-arrow {
  font-size: 2rem;
  color: var(--slate-secondary);
}

/* ROI Calculator */
.roi-section {
  padding: 80px 0;
  background: var(--light-grey);
}

.roi-calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  background: white;
  padding: 3rem;
  border-radius: 12px;
}

.roi-inputs h3,
.roi-results h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.roi-inputs ul {
  list-style: none;
}

.roi-inputs li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.result-item strong {
  color: var(--success-green);
  font-size: 1.1rem;
}

.result-total {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  margin-top: 1rem;
  border-top: 2px solid var(--navy-primary);
  font-size: 1.25rem;
}

.result-total strong {
  color: var(--navy-primary);
}

.roi-highlight {
  background: linear-gradient(135deg, var(--success-green), var(--accent-blue));
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 1.5rem;
}

.roi-highlight strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Technology Section */
.tech-section {
  padding: 80px 0;
  background: white;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.tech-item {
  padding: 2rem;
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.tech-item:hover {
  border-color: var(--navy-primary);
  background: var(--light-grey);
}

.tech-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 0.75rem;
}

/* Platform CTA - WITH CONTRAST FIXES */
.platform-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy-primary), var(--slate-secondary));
  color: white !important;
  text-align: center;
}

.platform-cta * {
  color: white !important;
}

.platform-cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white !important;
}

.platform-cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95) !important;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: white;
  color: var(--navy-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* CONTRAST FIXES FOR DARK SECTIONS */
.platform-hero,
.comparison-message,
.platform-cta,
section[style*="background: linear-gradient"] {
  color: white !important;
}

.platform-hero *,
.comparison-message *,
.platform-cta * {
  color: white !important;
}

.platform-hero h1,
.platform-hero h2,
.platform-cta h2 {
  color: white !important;
}

.platform-hero p,
.platform-cta p {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* COMPREHENSIVE MOBILE RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .pillars-grid,
  .problem-grid {
    grid-template-columns: 1fr;
  }
  
  .integration-flow {
    flex-direction: column;
  }
  
  .flow-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 768px) {
  /* Container adjustments */
  .container {
    padding: 0 16px !important;
  }
  
  /* Hero Section */
  .platform-hero {
    padding: 80px 16px 40px !important;
  }
  
  .platform-hero h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.05rem !important;
  }
  
  /* Platform Stats */
  .platform-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem !important;
  }
  
  /* Problem Grid */
  .problem-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .problem-item {
    padding: 1.5rem !important;
  }
  
  /* Pillars Grid */
  .pillars-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .pillar-card {
    padding: 1.5rem !important;
  }
  
  .pillar-icon {
    font-size: 2.5rem !important;
  }
  
  .pillar-card h3 {
    font-size: 1.25rem !important;
  }
  
  /* Integration Flow */
  .integration-flow {
    flex-direction: column !important;
    gap: 2rem;
  }
  
  .flow-item {
    padding: 1.5rem 1rem;
  }
  
  .flow-arrow {
    transform: rotate(90deg);
    margin: 1rem 0;
  }
  
  /* ROI Calculator */
  .roi-calculator {
    grid-template-columns: 1fr !important;
    padding: 2rem !important;
  }
  
  .roi-highlight strong {
    font-size: 1.5rem !important;
  }
  
  /* Technology Grid */
  .tech-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .tech-item {
    padding: 1.5rem !important;
  }
  
  /* Platform CTA */
  .platform-cta {
    padding: 60px 16px !important;
  }
  
  .platform-cta h2 {
    font-size: 2rem !important;
  }
  
  .platform-cta p {
    font-size: 1.1rem !important;
  }
  
  /* CTA Buttons */
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0 16px;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100% !important;
    padding: 16px !important;
    font-size: 16px !important;
    min-height: 44px;
  }
  
  /* Typography scaling */
  h1 {
    font-size: 2rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  h3 {
    font-size: 1.25rem !important;
  }
  
  /* Section padding */
  section {
    padding: 40px 0 !important;
  }
  
  /* Ensure touch targets */
  a, button, input, select {
    min-height: 44px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .platform-hero h1 {
    font-size: 1.75rem !important;
  }
  
  .platform-cta h2 {
    font-size: 1.75rem !important;
  }
  
  .stat-number {
    font-size: 1.75rem !important;
  }
  
  .container {
    padding: 0 12px !important;
  }
}