:root {
  --color-primary: #3B82F6;
  --color-primary-hover: #2563EB;
  --color-background: #FAF9F6;
  --color-surface: #FFFFFF;
  --font-heading: 'Noto Serif KR', var(--font-sans);
  --font-body: 'Pretendard', system-ui;
  --section-gap: clamp(2rem, 3vw, 2.75rem);
}

/* ══════════════════════════════════════════════════
   1. Section Spacing — consistent rhythm
   ══════════════════════════════════════════════════ */
.section--newsletter {
  padding-block: clamp(1.5rem, 2.5vw, 2rem);
}

/* ══════════════════════════════════════════════════
   2. Section Headers — left-aligned for natural reading flow
   ══════════════════════════════════════════════════ */
.section__header {
  text-align: left;
  max-width: none;
  margin-inline: 0;
  margin-bottom: var(--spacing-10);
}

.section__header .section__title {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  margin-bottom: var(--spacing-3);
}

.section__header .section__subtitle {
  line-height: 1.6;
  max-width: 42rem;
  margin-inline: 0;
}

/* ══════════════════════════════════════════════════
   3. About-Split
   ══════════════════════════════════════════════════ */
.section__grid.grid {
  gap: var(--spacing-12);
  align-items: center;
}

.about-split__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-3);
  margin-top: var(--spacing-4);
}

.about-split__stat {
  text-align: center;
  padding: var(--spacing-5) var(--spacing-3);
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform var(--spring-motion), box-shadow var(--smooth-motion);
}

.about-split__stat:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.10));
  border-color: var(--color-primary);
}

.about-split__stat-value {
  font-family: var(--font-heading);
  font-size: var(--fluid-h3);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--spacing-1);
}

.about-split__stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.3;
}

.about-split__actions {
  display: flex;
  gap: var(--spacing-4);
  margin-top: var(--spacing-10);
}

.about-split__visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

/* ══════════════════════════════════════════════════
   4. Feature Rows — zigzag via DOM order (no CSS reversal)
   ══════════════════════════════════════════════════ */
.feature-row,
.section__grid > .feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-10);
  align-items: center;
}

.feature-row + .feature-row,
.section__grid > .feature-row + .feature-row {
  margin-top: var(--spacing-10);
}

.feature-row--image-left,
.feature-row--image-right {
  direction: ltr;
}

.feature-row__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacing-3);
}

.feature-row__title {
  font-size: clamp(1.15rem, 1.5vw + 0.5rem, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.feature-row__desc {
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.feature-row__list {
  list-style: none;
  padding: 0;
  margin: var(--spacing-2) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.feature-row__list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
  display: block;
}

.feature-row__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success, #16a34a);
  font-weight: 700;
}

.feature-row__visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.feature-row__visual img,
.feature-row__visual svg {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-xl);
  transition: transform var(--smooth-motion);
}

.feature-row__visual:hover img {
  transform: scale(1.03);
}

/* ══════════════════════════════════════════════════
   5. Team Cards — stronger hierarchy
   ══════════════════════════════════════════════════ */
.team-header {
  text-align: center;
  margin-bottom: var(--spacing-10);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-8);
}

.member-card {
  padding: var(--spacing-6) var(--spacing-5);
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform var(--spring-motion), box-shadow var(--smooth-motion);
}

.member-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.10));
}

.member-card__name {
  font-size: var(--text-lg, 1.125rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--spacing-1);
}

.member-card__role {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary-hover, #2563EB);
  margin: 0 0 var(--spacing-3);
}

.member-card__bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ══════════════════════════════════════════════════
   6. Breadcrumb — visible separator
   ══════════════════════════════════════════════════ */
.breadcrumb__separator::after {
  content: "/";
}

/* ══════════════════════════════════════════════════
   7. Comparison Table — zebra striping
   ══════════════════════════════════════════════════ */
.comparison-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--color-surface) 94%, var(--color-text));
}

.comparison-table thead th {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide, 0.05em);
  color: var(--color-text-muted);
}

/* ══════════════════════════════════════════════════
   8. CTA Sections — unified boxed style
   ══════════════════════════════════════════════════ */
.section--cta,
.section--newsletter.section--brand {
  border-radius: var(--radius-2xl);
  margin: 0 var(--spacing-4) var(--spacing-8);
}

.section--cta .section__header {
  text-align: center;
  margin-inline: auto;
}

.section--cta .section__title {
  color: var(--color-on-primary, #fff);
}

.section--cta .section__subtitle,
.section--newsletter.section--brand .newsletter__subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin-inline: auto;
}

.section--cta .hero__actions {
  justify-content: center;
  margin-top: var(--spacing-6);
}

.section--cta .hero__cta--primary {
  background: #fff;
  color: var(--color-primary);
}

.section--cta .hero__cta--primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.section--cta .hero__cta--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.section--cta .hero__cta--secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ══════════════════════════════════════════════════
   9. Hero — layout safety
   ══════════════════════════════════════════════════ */
.hero__content .hero__title,
.hero__content .hero__subtitle {
  margin-bottom: 0;
}

.hero__content .about-split__stats {
  margin-top: var(--spacing-4);
}

.hero__visual {
  overflow: hidden;
  border-radius: var(--radius-2xl);
}

.hero--split .hero__image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.hero--compact .hero__image {
  max-height: 480px;
  object-fit: cover;
}

/* ══════════════════════════════════════════════════
   10. Newsletter CTA — inline form
   ══════════════════════════════════════════════════ */
.newsletter--full {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.newsletter--full .newsletter__form {
  display: flex;
  gap: var(--spacing-3);
  align-items: stretch;
  justify-content: center;
}

.newsletter__input--on-brand {
  flex: 1;
  min-height: 48px;
  padding: var(--spacing-3) var(--spacing-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-background);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
}

.newsletter__btn {
  min-height: 48px;
  padding: var(--spacing-3) var(--spacing-6);
  white-space: nowrap;
  border-radius: var(--radius-lg);
}

/* ══════════════════════════════════════════════════
   11. Centered Alternating Timeline
   ══════════════════════════════════════════════════ */
.timeline--centered {
  padding-left: 0;
}

.timeline--centered::before {
  left: 50%;
  transform: translateX(-50%);
}

.timeline--centered .timeline__item {
  width: 50%;
}

.timeline--centered .timeline__item:nth-child(odd) {
  margin-left: 50%;
  padding-left: var(--spacing-10);
}

.timeline--centered .timeline__item:nth-child(even) {
  padding-right: var(--spacing-10);
  text-align: right;
}

.timeline--centered .timeline__item:nth-child(odd) .timeline__marker {
  left: calc(-8px);
}

.timeline--centered .timeline__item:nth-child(even) .timeline__marker {
  left: auto;
  right: calc(-8px);
}

.timeline--centered .timeline__content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.timeline--centered .timeline__date {
  display: inline-block;
  margin-bottom: var(--spacing-2);
}

.timeline--centered .timeline__title {
  font-size: var(--text-lg, 1.125rem);
  font-weight: 700;
  margin-bottom: var(--spacing-2);
}

.timeline--centered .timeline__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ══════════════════════════════════════════════════
   12. Stats Section — brand gradient background
   ══════════════════════════════════════════════════ */
.section--stats-brand {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: var(--color-on-primary, #fff);
}

.section--stats-brand .section__title {
  color: #fff;
}

.section--stats-brand .section__subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.stat-card {
  text-align: center;
  padding: var(--spacing-6) var(--spacing-4);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  transition: transform var(--spring-motion), background var(--smooth-motion);
}

.stat-card:hover {
  transform: translateY(-4px) scale(1.01);
  background: rgba(255, 255, 255, 0.18);
}

.stat-card__number {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fluid-h2);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: var(--spacing-2);
}

.stat-card__label {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .section__header {
    text-align: center;
  }
  .section__header .section__subtitle {
    margin-inline: auto;
  }
  .about-split__stats {
    grid-template-columns: 1fr;
  }
  .about-split__actions {
    flex-direction: column;
  }
  .about-split__actions .btn {
    width: 100%;
    text-align: center;
  }
  .feature-row,
  .section__grid > .feature-row {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .timeline--centered {
    padding-left: var(--spacing-8);
  }
  .timeline--centered::before {
    left: 15px;
    transform: none;
  }
  .timeline--centered .timeline__item {
    width: 100%;
  }
  .timeline--centered .timeline__item:nth-child(odd) {
    margin-left: 0;
    padding-left: 0;
  }
  .timeline--centered .timeline__item:nth-child(even) {
    padding-right: 0;
    text-align: left;
  }
  .timeline--centered .timeline__item:nth-child(odd) .timeline__marker {
    left: calc(-1 * var(--spacing-8) + 8px);
  }
  .timeline--centered .timeline__item:nth-child(even) .timeline__marker {
    left: calc(-1 * var(--spacing-8) + 8px);
    right: auto;
  }
  .newsletter--full .newsletter__form {
    flex-direction: column;
  }
  .section--cta .hero__actions,
  .section--brand .hero__actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-split__stat:hover,
  .feature-row__visual:hover img,
  .member-card:hover,
  .stat-card:hover {
    transform: none;
  }
}
