/* === SERVICE PAGE STYLES === */

/* === PROSE (blog & case study body) === */
.prose-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}
.prose {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
}
.prose h2 {
  font-size: 1.6rem;
  color: var(--text-bright);
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.prose h3 {
  font-size: 1.2rem;
  color: var(--text-bright);
  margin: 32px 0 12px;
}
.prose h4 {
  font-size: 1rem;
  color: var(--text-bright);
  margin: 24px 0 8px;
}
.prose p {
  margin-bottom: 20px;
  max-width: none;
  color: var(--text);
}
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { opacity: 0.8; }
.prose ul, .prose ol {
  margin: 0 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose li { color: var(--text); }
.prose strong { color: var(--text-bright); font-weight: 600; }
.prose em { font-style: italic; }
.prose blockquote {
  border-left: 3px solid var(--cyan);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--cyan-dim);
  border-radius: 0 8px 8px 0;
}
.prose blockquote p { color: var(--text-bright); margin: 0; font-style: italic; }
.prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875em;
  background: rgba(0,212,255,0.08);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--cyan);
}
.prose pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  color: var(--text);
}
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}
.prose img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}
.prose th {
  background: var(--bg-card);
  color: var(--text-bright);
  font-weight: 600;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.prose td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
}
.prose tr:last-child td { border-bottom: none; }

/* Post hero image */
.post-hero-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-top: 32px;
  border: 1px solid var(--border);
}

/* Post meta header */
.post-meta-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.sidebar-card h4 {
  font-size: 0.95rem;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.sidebar-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: none;
  margin-bottom: 0;
}
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.sidebar-links li::before { display: none; }
.sidebar-links a {
  font-size: 0.875rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.sidebar-links a::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--cyan);
  border-radius: 50%;
  flex-shrink: 0;
}
.sidebar-links a:hover { color: var(--cyan); }

/* Case study metrics bar */
.case-metrics-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.case-metrics-row {
  display: flex;
  gap: 0;
  align-items: center;
  flex-wrap: wrap;
}
.case-metric-large {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.case-metric-large:last-child { border-right: none; }
.metric-val-large {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 6px;
}

/* Responsive prose */
@media (max-width: 1024px) {
  .prose-layout { grid-template-columns: 1fr; gap: 40px; }
  .post-sidebar { position: static; }
  .case-metrics-row { justify-content: center; }
}
@media (max-width: 768px) {
  .case-metric-large { border-right: none; border-bottom: 1px solid var(--border); padding: 16px 0; }
  .case-metric-large:last-child { border-bottom: none; }
}

/* Page Hero */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 48px) 0 80px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(0, 212, 255, 0.03) 0%, transparent 100%);
}
.page-hero-bg--purple {
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(124, 58, 237, 0.03) 0%, transparent 100%);
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin-bottom: 24px;
}
.breadcrumb ol li { font-size: 0.8rem; color: var(--text-muted); }
.breadcrumb ol a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb ol a:hover { color: var(--cyan); }
.breadcrumb ol li[aria-current] { color: var(--text); }
.page-hero-icon {
  width: 72px;
  height: 72px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.page-hero-title { margin-bottom: 20px; }
.page-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 580px;
  margin-bottom: 36px;
}
.page-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* OT Warning Banner */
.ot-warning-banner {
  background: rgba(245, 158, 11, 0.06);
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding: 16px 0;
}
.ot-warning-banner .container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ot-warning-banner p {
  font-size: 0.9rem;
  color: var(--text);
  max-width: none;
  margin: 0;
}
.ot-warning-banner strong { color: #F59E0B; }

/* Offerings Grid */
.offerings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.offering-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.offering-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.offering-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.offering-icon {
  width: 52px;
  height: 52px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.offering-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.offering-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 20px; max-width: none; }
.offering-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.offering-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text);
}
.offering-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--cyan);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Process Steps */
.process-section { background: rgba(0,0,0,0.15); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-step {
  position: relative;
  padding: 32px 24px 32px 0;
  padding-right: 40px;
}
.process-step:last-child .process-step-line { display: none; }
.process-step-num {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.process-step-line {
  position: absolute;
  top: 52px;
  left: 40px;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--cyan), transparent);
  opacity: 0.3;
}
.process-step h4 { font-size: 0.95rem; color: var(--text-bright); margin-bottom: 8px; }
.process-step p { font-size: 0.85rem; color: var(--text-muted); max-width: none; }

/* CTA Box */
.service-cta { background: transparent; }
.cta-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
}
.cta-box .section-tag { margin-bottom: 20px; }
.cta-box h2 { margin-bottom: 16px; }
.cta-box p { color: var(--text-muted); margin: 0 auto 32px; }
.cta-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box--purple { border-color: rgba(124, 58, 237, 0.25); }
.cta-glow--purple { background: radial-gradient(ellipse, rgba(124, 58, 237, 0.2) 0%, transparent 70%); }

/* Pricing Plans */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: border-color var(--transition);
}
.plan-card:hover { border-color: var(--border-hover); }
.plan-card--featured {
  border-color: rgba(0, 212, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, var(--bg-card) 100%);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0A0F1E;
  background: var(--cyan);
  padding: 3px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.plan-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
}
.plan-desc { font-size: 0.875rem; color: var(--text-muted); }
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 8px;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text);
}
.plan-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--cyan);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Featured blog post */
.featured-post {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 64px;
}
.featured-post-visual { flex-shrink: 0; }
@media (max-width: 768px) {
  .featured-post { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
}

/* Case studies page */
.cases-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}
.filter-btn:focus-visible { outline: 2px solid var(--cyan); }

/* Blog page */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.blog-card-header {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.blog-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 2px 10px;
  border-radius: 4px;
}
.blog-date { font-size: 0.78rem; color: var(--text-muted); }
.blog-card h3 { font-size: 1rem; margin-bottom: 10px; line-height: 1.4; }
.blog-card p { font-size: 0.875rem; color: var(--text-muted); flex: 1; max-width: none; margin-bottom: 16px; }
.blog-read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
  cursor: pointer;
}
.blog-read-more:hover { gap: 8px; }

/* Responsive */
@media (max-width: 1024px) {
  .offerings-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .process-step { padding: 24px; }
  .process-step-line { display: none; }
  .plans-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .offerings-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .page-hero-actions { flex-direction: column; }
  .page-hero-actions .btn { justify-content: center; }
}
