/* ============================================================
   k&z — Inner Pages Shared Styles
   Extends style.css design system for standalone content pages
   ============================================================ */

/* ---------- Page Hero ---------- */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background: var(--bg-secondary);
  overflow: hidden;
  text-align: center;
}

.page-hero__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero__dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(124, 58, 237, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-hero__breadcrumb a {
  color: var(--accent-light);
  transition: color var(--transition);
}

.page-hero__breadcrumb a:hover {
  color: #fff;
}

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-hero__subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Page Content ---------- */
.page-content {
  padding: 80px 0 100px;
}

.page-content__inner {
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- Prose Typography ---------- */
.prose h2 {
  font-size: 1.6rem;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.25rem;
  margin: 36px 0 12px;
}

.prose h4 {
  font-size: 1.05rem;
  margin: 24px 0 10px;
}

.prose p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.prose ul,
.prose ol {
  color: var(--text-secondary);
  padding-left: 24px;
  margin-bottom: 20px;
  line-height: 1.8;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 8px;
}

.prose a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.prose a:hover {
  color: #fff;
}

.prose strong {
  color: var(--text-primary);
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose blockquote p {
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.prose th,
.prose td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.prose th {
  background: var(--bg-card);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent-light);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prose tbody tr:nth-child(odd) {
  background: rgba(19, 19, 42, 0.5);
}

.prose tbody tr:nth-child(even) {
  background: rgba(16, 16, 30, 0.5);
}

.prose td:last-child {
  font-family: 'Space Grotesk', monospace;
  color: var(--text-primary);
  font-weight: 500;
}

.prose code {
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent-light);
}

.prose pre {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 24px 0;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

.prose pre code {
  background: none;
  padding: 0;
  color: var(--text-secondary);
}

.prose .effective-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

/* ---------- Feature Grid (Product/Solution pages) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin: 40px 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Status Indicators (Service Status page) ---------- */
.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
}

.status-dot--green {
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(34, 211, 160, 0.4);
}

.status-label {
  flex: 1;
  font-weight: 500;
}

.status-value {
  color: var(--accent-green);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Blog / Listing Cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin: 40px 0;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition);
}

.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.blog-card__date {
  font-size: 0.8rem;
  color: var(--accent-light);
  margin-bottom: 10px;
  font-weight: 500;
}

.blog-card__title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.blog-card__excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- Career Listing ---------- */
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  transition: border-color var(--transition);
}

.job-card:hover {
  border-color: var(--accent);
}

.job-card__info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.job-card__meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.job-card__meta span + span::before {
  content: ' \00b7 ';
  margin: 0 6px;
}

/* ---------- Page CTA Section ---------- */
.page-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #1e0a3c, #0d1f3c);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 16px;
}

.page-cta p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cta-gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 100;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: scale(1.1);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .page-hero {
    padding: 120px 0 60px;
  }

  .page-hero__title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .page-content {
    padding: 60px 0 80px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .job-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
