/* ═══════════════════════════════════════════════════════════════════
   MODULAR ARCHITECTURE SECTION STYLES
   ═══════════════════════════════════════════════════════════════════ */

/* Modular Hero Section */
.modular-hero {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.modular-benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.modular-benefit-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.modular-benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 102, 196, 0.5);
  box-shadow: 0 8px 24px rgba(255, 102, 196, 0.15);
}

.modular-benefit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.modular-benefit-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.modular-benefit-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin: 0;
}

/* Tier Comparison Heading */
.modular-tier-heading {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #fff;
}

/* Comparison Table */
.modular-tier-comparison {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  padding: 1rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table thead {
  background: linear-gradient(135deg, rgba(255, 102, 196, 0.2), rgba(102, 126, 234, 0.2));
  border-bottom: 2px solid rgba(255, 102, 196, 0.4);
}

.comparison-table th {
  padding: 1.25rem 1rem;
  text-align: center;
  font-weight: 600;
  color: #fff;
  font-size: 1.1rem;
  position: relative;
}

.comparison-col-feature {
  text-align: left !important;
  width: 40%;
}

.comparison-col-tier {
  width: 20%;
}

.tier-recommended {
  background: linear-gradient(135deg, rgba(255, 102, 196, 0.3), rgba(102, 126, 234, 0.3)) !important;
  position: relative;
}

/* Ensure tier columns align */
.comparison-table th[data-tier] {
  position: relative;
}

.tier-price {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  margin-top: 0.25rem;
}

.tier-badge {
  display: inline-block;
  background: linear-gradient(90deg, #ff66c4, #667eea);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table td {
  padding: 1rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  vertical-align: top;
}

.comparison-section-header td {
  background: rgba(255, 102, 196, 0.1);
  font-weight: 600;
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table td.check {
  text-align: center;
  color: #4ade80;
  font-size: 1.5rem;
  font-weight: 600;
}

.comparison-table td.disabled {
  text-align: center;
  color: rgba(255,255,255,0.2);
  font-size: 1.25rem;
}

.feature-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
  font-weight: 400;
}

.comparison-total-row {
  background: rgba(255, 102, 196, 0.15);
  font-weight: 700;
  border-top: 2px solid rgba(255, 102, 196, 0.4);
}

.comparison-total-row td {
  padding: 1.25rem 1rem;
  font-size: 1rem;
}

/* Code Section */
.modular-code-section {
  margin: 3rem 0;
}

.modular-code-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

/* API Status Section */
.modular-api-status {
  margin: 3rem 0;
}

.modular-api-status h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.modular-api-status code {
  background: rgba(255, 102, 196, 0.15);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #ff66c4;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

/* Why Modular Section */
.modular-why-section {
  margin: 4rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 102, 196, 0.05), rgba(102, 126, 234, 0.05));
  border-radius: 12px;
  border: 1px solid rgba(255, 102, 196, 0.2);
}

.modular-why-section h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  color: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.why-card {
  text-align: center;
  padding: 1.5rem;
}

.why-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #ff66c4, #667eea);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.why-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.why-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin: 0;
}

/* VS Competitors Table */
.modular-vs-competitors {
  margin: 3rem 0;
}

.modular-vs-competitors h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #fff;
}

.vs-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.vs-table thead {
  background: linear-gradient(135deg, rgba(255, 102, 196, 0.2), rgba(102, 126, 234, 0.2));
}

.vs-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #fff;
  border-bottom: 2px solid rgba(255, 102, 196, 0.4);
}

.vs-table th.vs-us {
  background: rgba(78, 222, 128, 0.1);
  color: #4ade80;
  text-align: center;
}

.vs-table th.vs-them {
  background: rgba(248, 113, 113, 0.1);
  color: rgba(255,255,255,0.6);
  text-align: center;
}

.vs-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.vs-table td {
  padding: 1rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}

.vs-table td.vs-us {
  text-align: center;
  background: rgba(78, 222, 128, 0.05);
}

.vs-table td.vs-them {
  text-align: center;
  background: rgba(248, 113, 113, 0.03);
}

.vs-table td.check {
  color: #4ade80;
  font-weight: 600;
}

/* Modular CTA */
.modular-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 102, 196, 0.1), rgba(102, 126, 234, 0.1));
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 102, 196, 0.3);
}

.modular-cta-text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.btn-lg {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .comparison-table {
    font-size: 0.85rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .comparison-col-feature {
    width: 50%;
  }
  
  .feature-desc {
    display: none; /* Hide descriptions on mobile for space */
  }
  
  .modular-benefit-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .tier-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
  }
}

@media (max-width: 480px) {
  .comparison-table {
    font-size: 0.75rem;
  }
  
  .modular-tier-heading {
    font-size: 1.25rem;
  }
  
  .tier-price {
    font-size: 0.75rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   HERO VIDEO SECTION
   ═══════════════════════════════════════════════════════════════════ */

.hero-video-section {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  line-height: 0;
}

.hero-video-container {
  position: relative;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 2.5rem;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.6) 80%,
    rgba(0, 0, 0, 0.85) 100%
  );
  text-align: center;
}

.hero-video-title {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
  margin: 0 1rem 0.5rem;
  letter-spacing: -0.02em;
}

.hero-video-subtitle {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: rgba(255,255,255,0.8);
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  margin: 0 1rem;
}
