/**
 * Edge Opera Digital — Page-Specific Layouts
 * Service Detail, Blog Articles, About Us, Contact, Legal, and 404
 */

/* Hero Diagrams & Tech Visuals */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero-title {
  font-size: var(--font-size-display);
  color: #ffffff;
  font-weight: var(--font-weight-extrabold);
  line-height: 1.15;
}

.hero-title span {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary-dark);
  line-height: var(--line-height-relaxed);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-color-dark);
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-secondary-dark);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.hero-trust-item svg {
  color: var(--color-accent-blue-light);
  width: 18px;
  height: 18px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Custom Interactive System Diagram Visual */
.system-visual-card {
  width: 100%;
  max-width: 520px;
  background: var(--color-brand-secondary);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 30px -5px rgba(37, 99, 235, 0.2);
  position: relative;
  overflow: hidden;
}

.system-visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-color-dark);
}

.system-node-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.system-node-item {
  background: rgba(11, 17, 32, 0.85);
  border: 1px solid var(--border-color-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  transition: all var(--transition-fast);
}

.system-node-item:hover {
  border-color: var(--color-accent-blue-light);
  transform: translateY(-2px);
}

.system-node-item.active {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(37, 99, 235, 0.08);
}

.system-node-title {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.system-node-desc {
  font-size: 0.7rem;
  color: var(--color-text-secondary-dark);
  line-height: 1.4;
}

.system-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.system-status-pulse {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
}

/* Trust Pillar Grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.trust-card {
  background: #ffffff;
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.trust-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-color-active);
  box-shadow: var(--shadow-md);
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--color-accent-blue-subtle);
  color: var(--color-accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.trust-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary-light);
  margin-bottom: var(--space-2);
}

.trust-desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary-light);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* 7-Step Workflow Process */
.process-7-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.process-7-step {
  background: #ffffff;
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  transition: all var(--transition-fast);
}

.process-7-step:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent-blue);
  box-shadow: var(--shadow-md);
}

.process-7-num {
  font-family: var(--font-mono);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-accent-blue-light);
  line-height: 1;
  margin-bottom: var(--space-3);
  opacity: 0.65;
}

.process-7-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary-light);
  margin-bottom: var(--space-2);
}

.process-7-desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary-light);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Industry Cards */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.industry-card {
  background: #ffffff;
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.industry-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-color-active);
  box-shadow: var(--shadow-md);
}

.industry-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--color-accent-blue-subtle);
  color: var(--color-accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.industry-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}

.industry-desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary-light);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* High-Impact CTA Banner Box */
.cta-banner-box {
  background: linear-gradient(135deg, var(--color-brand-primary) 0%, var(--color-brand-secondary) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-10);
  color: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-xl);
  margin-bottom: var(--space-12);
}

.cta-banner-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  color: #ffffff;
  margin-bottom: var(--space-4);
  line-height: var(--line-height-tight);
}

.cta-banner-desc {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary-dark);
  max-width: 680px;
  margin: 0 auto var(--space-8);
  line-height: var(--line-height-relaxed);
}

@media (max-width: 1024px) {
  .trust-grid,
  .industry-grid,
  .process-7-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .trust-grid,
  .industry-grid,
  .process-7-grid {
    grid-template-columns: 1fr;
  }
  .system-node-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner-box {
    padding: var(--space-8) var(--space-6);
  }
}

/* Service Detail Layout */
.service-hero {
  background-color: var(--color-brand-primary);
  color: #ffffff;
  padding: var(--space-16) 0 var(--space-12);
  border-bottom: 1px solid var(--border-color-dark);
}

.service-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: var(--space-12);
  align-items: center;
}

.service-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-accent-blue-subtle);
  color: var(--color-accent-blue-light);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-4);
}

.service-card-stat {
  background: var(--color-brand-elevated);
  border: 1px solid var(--border-color-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service-stat-value {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-accent-blue-light);
}

.service-stat-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary-dark);
}

/* Process Steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

.process-step {
  background: #ffffff;
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
}

.process-step-num {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-accent-blue-light);
  opacity: 0.4;
  margin-bottom: var(--space-2);
}

.process-step-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}

.process-step-desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary-light);
  line-height: var(--line-height-relaxed);
}

/* Blog Article Layout */
.article-header {
  padding: var(--space-12) 0 var(--space-8);
  border-bottom: 1px solid var(--border-color-light);
  margin-bottom: var(--space-8);
}

.article-content {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary-light);
}

.article-content h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-2xl);
}

.article-content h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  font-size: var(--font-size-xl);
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--space-6);
}

.article-content blockquote {
  border-inline-start: 4px solid var(--color-accent-blue);
  padding-inline-start: var(--space-4);
  margin: var(--space-6) 0;
  font-style: italic;
  color: var(--color-text-primary-light);
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: var(--space-8) 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color-light);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: var(--font-size-sm);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-color-light);
}

.comparison-table th {
  background: var(--color-canvas-light);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary-light);
}

.comparison-table tr:hover td {
  background: var(--color-card-subtle);
}

/* 404 Error Page */
.error-hero {
  text-align: center;
  padding: var(--space-20) 0;
}

.error-code {
  font-size: 6rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-accent-blue);
  line-height: 1;
  margin-bottom: var(--space-4);
}

/* Legal Document Styles */
.legal-content {
  background: #ffffff;
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  margin-top: var(--space-8);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

.legal-content h2 {
  font-size: var(--font-size-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-color-light);
}

.legal-content p,
.legal-content ul {
  margin-bottom: var(--space-4);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-wrapper,
  .service-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

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

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: var(--space-6);
  }

  .error-code {
    font-size: 4rem;
  }
}
