/* ====================================================
  CEPHEUS MASTER DESIGN SYSTEM
  ====================================================
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,500&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --paper:        #f5f2ed;
  --paper-dark:   #ece8e1;
  --ink:          #0d0d0d;
  --ink-mid:      #3a3a3a;
  --ink-light:    #888888;
  --accent:       #c8440a;
  --accent-light: #f0e8e2;
  --dark-section: #0d0d0d;
  --border:       rgba(0,0,0,0.10);
}

/* Global Hyper-Optimized Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  padding-top: 52px; /* Smooth padding gap to keep fixed navigation from blocking content */
}

/* Base Typography Mappings */
h1, h2, h3, h4, .serif {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
}

/* Structural Max-Width Rules */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
}

section {
  padding: 8rem 0; /* Clean spatial separation between segments */
}

/* ====================================================
  SECTION LABELS PSEUDO-SPLIT SYSTEM (ABSOLUTE FIX)
  ====================================================
*/
.section-label-group {
  display: flex;
  align-items: center;  /* Forces absolute vertical alignment */
  width: 100%;
  padding-bottom: 3.5rem;
  gap: 1.5rem;          /* Pushes lines perfectly away from text sides */
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  white-space: nowrap;
  line-height: 1;
  background: transparent !important; /* Removes dependency on background masking */
}

/* Dynamically draws a line on the right side of the text */
.section-label-group::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: var(--border);
}

/* Removes the old HTML marker line entirely to clean up conflicts */
.section-label-line {
  display: none !important;
}

/* ====================================================
  THEMED SEGMENT DYNAMIC LINE COLOR PATCHES
  ====================================================
*/
/* Sections 4 & 6 use light lines on dark backgrounds */
.dark-bg .section-label-group .section-label {
  color: var(--ink-light);
}
.dark-bg .section-label-group::after {
  background-color: rgba(255, 255, 255, 0.15);
}

/* ====================================================
  BUTTON COMPONENT FOUNDATIONS
  ====================================================
*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  border: 0.5px solid var(--accent);
  padding: 12px 24px;
}
.btn-primary:hover {
  background-color: #b03a07;
  border-color: #b03a07;
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent);
  border: 0.5px solid var(--accent);
  padding: 12px 24px;
}
.btn-secondary:hover {
  background-color: var(--accent-light);
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border: 0.5px solid rgba(255,255,255,0.3);
  padding: 12px 24px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.btn-outline-white:hover {
  border-color: #ffffff;
  background-color: rgba(255,255,255,0.05);
}

/* ====================================================
  NAVIGATION STYLES
  ====================================================
*/
/* Navigation Layer viewport Lock */
    nav {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      width: 100% !important;
      height: 52px !important;
      background-color: rgba(245, 242, 237, 0.92) !important;
      backdrop-filter: blur(8px) !important;
      -webkit-backdrop-filter: blur(8px) !important;
      border-bottom: 0.5px solid var(--border) !important;
      /* Forces the navigation to sit at the absolute top of the viewport stacking context */
      z-index: 99999 !important; 
    }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }

.btn-nav-cta {
  background-color: transparent;
  color: var(--accent);
  border: 0.5px solid var(--accent);
  padding: 6px 14px;
  font-size: 12px;
}
.btn-nav-cta:hover { background-color: var(--accent-light); }

/* ====================================================
  SECTION 1: HERO
  ====================================================
*/
#hero {
  min-height: calc(100vh - 52px);
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--paper);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1.05;
  color: var(--ink);
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-subheadline {
  font-size: 16px;
  color: var(--ink-mid);
  max-width: 500px;
  line-height: 1.8;
  margin-top: 1.5rem;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.scroll-line {
  width: 32px;
  height: 0.5px;
  background-color: var(--ink-light);
}
.scroll-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
}

.hero-decor {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  pointer-events: none;
  z-index: 1;
}
.circle-outer, .circle-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 0.5px solid var(--border);
  border-radius: 50%;
}
.circle-outer { width: 100%; height: 100%; }
.circle-inner { width: 70%; height: 70%; }

/* ====================================================
  SECTION 2: THE PROBLEM
  ====================================================
*/
#problem {
  background-color: var(--paper-dark);
}

.grid-2col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: start;
}

.problem-headline {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.2;
}

.problem-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.problem-card {
  background-color: #ffffff;
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
}

.problem-card.accent-card {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.card-meta {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}
.accent-card .card-meta { color: rgba(255,255,255,0.7); }

.card-title {
  font-size: 18px;
  margin-bottom: 0.5rem;
}

.card-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mid);
}
.accent-card .card-body { color: rgba(255,255,255,0.85); }

/* ====================================================
  SECTION 3: HOW IT WORKS
  ====================================================
*/
#how-it-works {
  background-color: var(--paper);
}

.section-headline {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 4rem;
}

.steps-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.step-item {
  flex: 1;
  position: relative;
}

.step-bg-num {
  font-size: 64px;
  color: var(--paper-dark);
  line-height: 1;
  margin-bottom: -0.5rem;
  z-index: 1;
  position: relative;
}

.step-content {
  position: relative;
  z-index: 2;
}

.step-title {
  font-size: 18px;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mid);
}

.step-arrow {
  display: flex;
  align-items: center;
  color: var(--ink-light);
  padding-top: 4.5rem;
}
.step-arrow i { font-size: 14px; }

/* ====================================================
  SECTION 4: THE TRANSPARENCY PROMISE
  ====================================================
*/
#promise {
  background-color: var(--dark-section);
  color: #ffffff;
}

.promise-headline {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 3.5rem;
}

.promise-points {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.promise-point {
  display: flex;
  gap: 1.25rem;
}

.promise-point i {
  font-size: 20px;
  color: var(--accent);
  margin-top: 2px;
}

.promise-point-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.promise-point-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}

.timeline-card {
  background-color: #1a1a1a;
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}

.timeline-card-title {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline-rows {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.timeline-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-filled { background-color: var(--accent); }
.dot-outline { border: 0.5px solid rgba(255,255,255,0.4); }

.dot-pulse {
  background-color: var(--accent);
  box-shadow: 0 0 0 0 rgba(200, 68, 10, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 68, 10, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(200, 68, 10, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 68, 10, 0); }
}

.stage-label { color: rgba(255,255,255,0.9); }
.stage-label.pending { color: rgba(255,255,255,0.4); }
.timestamp { font-size: 11px; color: rgba(255,255,255,0.4); }
.timeline-footer-text { font-size: 11px; color: rgba(255,255,255,0.4); }

/* ====================================================
  SECTION 5: REPAIR CATALOG
  ====================================================
*/
#repair-catalog {
  background-color: var(--paper);
}

.catalog-subline {
  font-size: 15px;
  color: var(--ink-mid);
  margin-top: -2.5rem;
  margin-bottom: 2rem;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.inline-tag {
  font-size: 13px;
  color: var(--ink-mid);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 6px 14px;
  background-color: transparent;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  border: 0.5px solid var(--border);
  padding: 1.25rem 1.5rem;
  text-align: left;
}

th {
  font-weight: 500;
  background-color: var(--accent-light);
  color: var(--ink);
}
td { color: var(--ink-mid); }

.table-note {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-light);
}

/* ====================================================
  SECTION 6: FOR INSTITUTIONS
  ====================================================
*/
#institutions {
  background-color: var(--dark-section);
  color: #ffffff;
}

.inst-subline {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin-top: -2.5rem;
  margin-bottom: 3.5rem;
  line-height: 1.6;
}

.columns-3way {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.inst-column {
  background-color: #161616;
  border-top: 2px solid var(--accent);
  padding: 2.5rem 1.75rem;
  border-radius: 0 0 6px 6px;
}

.inst-col-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.inst-col-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}

.center-action {
  display: flex;
  justify-content: center;
}

/* ====================================================
  SECTION 7: SERVICE AREA
  ====================================================
*/
#service-area {
  background-color: var(--paper-dark);
}

.area-subline {
  font-size: 15px;
  color: var(--ink-mid);
  max-width: 550px;
  line-height: 1.6;
  margin-top: -2.5rem;
  margin-bottom: 2.5rem;
}

/* ====================================================
  SECTION 8: CONTACT & CTA
  ====================================================
*/
#contact-cta {
  background-color: var(--paper);
  text-align: center;
}

#contact-cta .section-headline {
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

#contact-cta .section-headline em {
  font-style: italic;
  color: var(--accent);
}

.cta-subline {
  font-size: 15px;
  color: var(--ink-mid);
  max-width: 500px;
  margin: 0 auto 3rem auto;
  line-height: 1.6;
}

.btn-large {
  padding: 14px 32px;
  font-size: 14px;
}

.cta-details {
  margin-top: 2rem;
  font-size: 12px;
  color: var(--ink-light);
}

/* ====================================================
  MASTER FOOTER ARCHITECTURE
  ====================================================
*/
footer {
  background-color: var(--paper);
  border-top: 0.5px solid var(--border);
  padding: 4rem 0;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 16px;
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 13px;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent); }

.footer-meta {
  font-size: 13px;
  color: var(--ink-light);
}

.footer-bottom-line {
  text-align: center;
  font-size: 11px;
  color: var(--ink-light);
  border-top: 0.5px solid var(--border);
  padding-top: 2rem;
}

/* ====================================================
  SCROLL REVEAL SYSTEM ANIMATION ENGINE
  ====================================================
*/
.reveal {
  opacity: 0;
  transform: translateY(20px) translateZ(0);
  will-change: opacity, transform;
  transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

/* ====================================================
  RESPONSIVE PRESENTATION SYSTEM OVERRIDES
  ====================================================
*/
@media (max-width: 1024px) {
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .timeline-card {
    margin-left: 0;
    max-width: 100%;
  }
  .columns-3way {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  section {
    padding: 5rem 0;
  }
  .nav-links {
    display: none;
  }
  .hero-title { font-size: 48px; }
  .hero-subheadline { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .scroll-indicator { display: none; }
  
  .steps-row {
    flex-direction: column;
    gap: 2.5rem;
  }
  .step-arrow { display: none; }

  /* Mobile Responsive Table Transformation */
  table, thead, tbody, th, td, tr { 
    display: block; 
  }
  thead tr { 
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  tr { 
    border: 0.5px solid var(--border); 
    margin-bottom: 1rem; 
    background: #ffffff;
    border-radius: 4px;
  }
  td { 
    border: none;
    border-bottom: 0.5px solid rgba(0,0,0,0.05); 
    position: relative;
    padding-left: 50%; 
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 13px;
    text-align: right;
  }
  td:last-child { border-bottom: none; }
  td:before { 
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    width: 45%; 
    text-align: left;
    white-space: nowrap;
    font-weight: 500;
    color: var(--ink);
  }
  td:nth-of-type(1):before { content: "Repair Type"; font-family: 'DM Serif Display', serif; font-size: 14px; }
  td:nth-of-type(2):before { content: "Compatible"; }
  td:nth-of-type(3):before { content: "Original"; }

  .footer-main {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  /* Force mobile stacking configurations to center cleanly */
  .footer-main div {
    align-items: center;
    text-align: center !important;
  }
}

/* ====================================================
  SUBDOMAIN CROSS-PORTAL ROUTER ADDITIONS
  ====================================================
*/
.nav-links .nav-link-b2b {
  color: var(--accent) !important;
  font-weight: 500;
  border-bottom: 0.5px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links .nav-link-b2b:hover {
  border-color: var(--accent);
  color: #b03a07 !important;
}

@media (max-width: 860px) {
  /* Accelerated navigation collapse width to protect structural alignment */
  .nav-links {
    display: none !important;
  }
}