/* ── Mission Page ─────────────────────────────────────────
   Glass-morphism dark mode, apptics.ai-inspired layout
   Inherits variables from /styles.css
   ───────────────────────────────────────────────────────── */

/* Page layout */
.ms-page {
  padding-top: 80px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.ms-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

/* ── Shared ───────────────────────────────────────────── */

.ms-section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.ms-section-title--center {
  text-align: center;
}

.ms-section-intro {
  text-align: center;
  color: var(--text-secondary);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 56px;
}

/* Glass card base */
.ms-glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.ms-glass-card:hover {
  border-color: rgba(212, 168, 83, 0.25);
  box-shadow: inset 0 0 20px 2px rgba(212, 168, 83, 0.04),
              0 8px 32px -8px rgba(212, 168, 83, 0.12);
}

/* ── Hero ─────────────────────────────────────────────── */
.ms-hero {
  text-align: center;
  padding: 140px 0 80px;
}

.ms-hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.2);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 36px;
}

.ms-hero-title {
  font-size: clamp(42px, 6.5vw, 72px);
  font-weight: 800;
  line-height: 1.04;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.ms-hero-accent {
  color: var(--accent-gold);
}

.ms-hero-sub {
  max-width: 640px;
  margin: 0 auto 44px;
  color: var(--text-secondary);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.7;
}

/* Gradient CTA button */
.ms-cta-btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(131deg, #d4a853, #c49a3c);
  color: var(--bg-primary);
  font-size: 15px;
  font-weight: 600;
  padding: 15px 36px;
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ms-cta-btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -6px rgba(212, 168, 83, 0.45);
}

.ms-cta-btn-gradient svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.ms-cta-btn-gradient:hover svg {
  transform: translateX(3px);
}

/* Outline CTA button */
.ms-cta-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--accent-gold);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 16px;
  border: 1px solid rgba(212, 168, 83, 0.35);
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.ms-cta-btn-outline:hover {
  background: rgba(212, 168, 83, 0.08);
  border-color: rgba(212, 168, 83, 0.5);
  transform: translateY(-2px);
}

.ms-cta-btn-outline svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.ms-cta-btn-outline:hover svg {
  transform: translateX(3px);
}

/* ── Stats Bar ────────────────────────────────────────── */
.ms-stats {
  padding: 0 0 80px;
}

.ms-stats-row {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 6vw, 72px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 48px;
}

.ms-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ms-stat-value {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  letter-spacing: -0.03em;
}

.ms-stat-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ── Problem / Why ────────────────────────────────────── */
.ms-problem {
  padding: 80px 0;
}

.ms-problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.ms-problem-left {
  position: sticky;
  top: 120px;
}

.ms-problem-statement {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
  margin-top: 16px;
}

.ms-problem-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ms-problem-card {
  padding: 28px;
}

.ms-problem-contrast-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.ms-problem-contrast-label--gold {
  color: var(--accent-gold);
}

.ms-problem-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ms-problem-list li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  padding-left: 22px;
  position: relative;
}

.ms-problem-list li::before {
  position: absolute;
  left: 0;
  font-size: 12px;
  top: 4px;
}

.ms-problem-list--sells li::before {
  content: "\2715";
  color: var(--text-muted);
}

.ms-problem-list--works li::before {
  content: "\2192";
  color: var(--accent-gold);
}

/* ── What We Build ────────────────────────────────────── */
.ms-build {
  padding: 80px 0;
}

.ms-build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ms-build-card {
  padding: 36px 30px;
}

.ms-build-card:hover {
  transform: translateY(-4px);
}

.ms-build-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 12px;
  color: var(--accent-gold);
  margin-bottom: 22px;
  padding: 10px;
}

.ms-build-icon svg {
  width: 100%;
  height: 100%;
}

.ms-build-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.ms-build-card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Mid-section CTA */
.ms-mid-cta {
  text-align: center;
  margin-top: 48px;
}

/* ── Principles / Testimonials ────────────────────────── */
.ms-principles {
  padding: 80px 0;
}

.ms-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ms-testimonial-card {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}

.ms-testimonial-card:hover {
  transform: translateY(-4px);
}

.ms-testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
}

.ms-testimonial-stars svg {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
}

.ms-testimonial-quote {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 24px;
}

.ms-testimonial-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.ms-testimonial-role {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Core Pillars ─────────────────────────────────────── */
.ms-pillars {
  padding: 80px 0;
}

.ms-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ms-pillar-card {
  padding: 32px;
}

.ms-pillar-card:hover {
  transform: translateY(-4px);
}

.ms-pillar-number {
  display: block;
  font-size: 40px;
  font-weight: 800;
  color: var(--accent-gold);
  opacity: 0.25;
  margin-bottom: 14px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.ms-pillar-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.ms-pillar-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Values ───────────────────────────────────────────── */
.ms-values {
  padding: 80px 0;
}

.ms-values-list {
  max-width: 720px;
  margin: 40px auto 0;
}

.ms-value {
  padding: 28px 0 28px 20px;
  border-left: 3px solid rgba(212, 168, 83, 0.2);
  margin-bottom: 8px;
  transition: border-color 0.3s ease, padding-left 0.3s ease;
}

.ms-value:hover {
  border-left-color: var(--accent-gold);
  padding-left: 28px;
}

.ms-value-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.ms-value-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Bottom CTA ──────────────────────────────────────── */
.ms-cta {
  text-align: center;
  padding: 120px 0 100px;
  position: relative;
}

.ms-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.ms-cta-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.ms-cta-sub {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.ms-cta .ms-cta-btn-gradient {
  position: relative;
  z-index: 1;
}

/* ── Animations ───────────────────────────────────────── */
.ms-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.ms-fade-in.ms-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .ms-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .ms-problem-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ms-problem-left {
    position: static;
  }

  .ms-build-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ms-principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ms-hero {
    padding: 100px 0 56px;
  }

  .ms-hero-title {
    font-size: clamp(34px, 9vw, 48px);
  }

  .ms-build-grid,
  .ms-principles-grid,
  .ms-pillars-grid {
    grid-template-columns: 1fr;
  }

  .ms-stats-row {
    flex-wrap: wrap;
    gap: 24px 40px;
    padding: 32px 24px;
  }

  .ms-problem,
  .ms-build,
  .ms-principles,
  .ms-pillars,
  .ms-values {
    padding: 56px 0;
  }

  .ms-cta {
    padding: 80px 0 64px;
  }

  .ms-cta-glow {
    width: 300px;
    height: 300px;
  }
}
