/* =========================================
   SYSTEMS PAGE — Structured / Industrial
========================================= */

.systems-page {
  background: var(--color-bg);
}

/* =========================================
   ALTERNATING SECTION BACKGROUNDS
========================================= */

.systems-page > section:nth-child(odd) {
  background: transparent;
}

.systems-page > section:nth-child(even) {
  background: var(--color-bg-soft);
}

/* =========================================
   GLOBAL SECTION STRUCTURE
========================================= */

.systems-page section {
  padding: 120px 0;
  position: relative;
}

.systems-page section:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 1px;
  background: var(--color-border);
}

/* =========================================
   TYPOGRAPHY CONTROL
========================================= */

.section-title {
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 40px;
  color: var(--color-text-primary);
}

.systems-page p {
  max-width: 720px;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-bottom: 18px;
}

/* =========================================
   HERO
========================================= */

.systems-hero {
  padding-top: 160px;
  padding-bottom: 140px;
}

.systems-hero__title {
  font-size: 3.6rem;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 32px;
  max-width: 900px;
  color: var(--color-text-primary);
}

.systems-hero__text {
  font-size: 1.05rem;
}

.systems-hero__text--emphasis {
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 40px;
}

/* =========================================
   ARCHITECTURE (ENGINEERED LOOK)
========================================= */

/* =========================================
   ARCHITECTURE — VISUAL PEAK VERSION
========================================= */

.systems-architecture {
  padding: 200px 0;
  position: relative;
}

.systems-architecture .section-title {
  text-align: center;
  margin-bottom: 140px;
  font-size: 2.2rem;
}


/* Container */
.architecture-vertical {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Stronger central vertical line */
.architecture-vertical::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-border-light),
    var(--color-border-light),
    transparent
  );
  opacity: 0.6;
}


/* Step */
.arch-step {
  position: relative;
  width: 50%;
  padding: 80px 60px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Alternate left-right */
.arch-step:nth-child(odd) {
  align-self: flex-start;
  text-align: right;
}

.arch-step:nth-child(even) {
  align-self: flex-end;
  text-align: left;
}


/* Subtle hover authority */
.arch-step:hover {
  transform: translateY(-4px);
}


/* Connector dot */
.arch-step::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--color-text-primary);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.05);
}

/* Position dots */
.arch-step:nth-child(odd)::after {
  right: -6px;
}

.arch-step:nth-child(even)::after {
  left: -6px;
}


/* Number */
.arch-number {
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 14px;
  opacity: 0.7;
}


/* Title */
.arch-step h4 {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.5;
}


/* Notes */
.architecture-note {
  max-width: 720px;
  margin: 140px auto 0 auto;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 900px) {

  .systems-architecture {
    padding: 140px 0;
  }

  .architecture-vertical::before {
    left: 24px;
  }

  .arch-step {
    width: 100%;
    padding: 60px 0 60px 70px;
    text-align: left !important;
  }

  .arch-step::after {
    left: 18px !important;
  }

  .arch-step h4 {
    font-size: 1.2rem;
  }
}


/* =========================
   SYSTEM BREAK SECTION
========================= */

.system-break {
  padding: 6rem 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 25, 0.9),
    rgba(8, 18, 23, 1)
  );
  text-align: center;
}

.system-break-title {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  color: var(--color-text-primary);
}

.system-break-points {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.break-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.break-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent, #7dd3fc);
  border-radius: 50%;
  opacity: 0.8;
}


/* =========================================
   SYSTEM COMPONENT GRID
========================================= */

.systems-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.system-card {
  padding: 36px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  transition: all 0.25s ease;
  position: relative;
}

.system-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.system-card:hover {
  border-color: var(--color-border-lighter);
  transform: translateY(-4px);
}

.system-card:hover::before {
  width: 100%;
}

.system-card h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

/* =========================================
   EXAMPLE SECTION
========================================= */

.example-block {
  margin-top: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.example-block h3 {
  margin-bottom: 20px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.example-before,
.example-after {
  padding: 30px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
}

.example-result {
  margin-top: 60px;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--color-text-primary);
}

.example-note {
  margin-top: 16px;
  color: var(--color-text-muted);
}

/* =========================================
   STACK SECTION
========================================= */

.stack-list {
  margin-top: 40px;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 40px;
}

.stack-list li {
  position: relative;
  padding-left: 18px;
  color: var(--color-text-secondary);
}

.stack-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.stack-note {
  margin-top: 30px;
  color: var(--color-text-muted);
}

/* =========================================
   BUTTONS (Global Component Styles)
========================================= */

.btn-primary {
  background: #ffffff;
  color: #0b1f2a;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  transition:
    background var(--motion-medium) var(--ease-standard),
    color var(--motion-medium) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

/* =========================================
   FINAL CTA
========================================= */

.systems-cta {
  padding-top: 140px;
  padding-bottom: 160px;
  text-align: center;
}

.systems-cta h2 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--color-text-primary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.systems-cta p {
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

  .systems-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .example-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stack-list {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {

  .systems-page section {
    padding: 80px 0;
  }

  .systems-hero {
    padding-top: 120px;
    padding-bottom: 100px;
  }

  .systems-hero__title {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .systems-grid {
    grid-template-columns: 1fr;
  }

}
