/* =======================
   MFTOS — Design System
   ======================= */

:root {
  --bg: #f4f0e8;
  --bg-alt: #ece8df;
  --surface: #ffffff;
  --text: #1c1c1e;
  --text-secondary: #5a5650;
  --accent: #c8a84b;
  --accent-dark: #a8892f;
  --charcoal: #1c1c1e;
  --border: #d4cfc5;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--charcoal);
  padding: 0 clamp(24px, 5vw, 60px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.nav-tagline {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding-top: 56px;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-colorblock {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--charcoal) 0%, #2d2b28 60%, #3a3529 100%);
  z-index: 0;
}

.hero-colorblock::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  height: 60%;
  background: var(--accent);
  opacity: 0.08;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) clamp(24px, 5vw, 60px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.hero-text {
  flex: 1;
  max-width: 680px;
}

.hero-kicker {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 28px;
  font-style: italic;
}

.hero-lede {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 560px;
}

.hero-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  text-align: center;
  margin-top: 20px;
}

.badge-year {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.badge-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
  line-height: 1.4;
}

/* ── Features ── */
.features {
  padding: clamp(80px, 10vw, 120px) clamp(24px, 5vw, 60px);
  background: var(--bg);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 60px;
}

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  max-width: 480px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  border: 1px solid var(--border);
}

.feature-item {
  padding: 40px 36px;
  background: var(--surface);
  transition: background 0.2s;
}

.feature-item:hover {
  background: #fdfcf8;
}

.feature-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Evolution / Timeline ── */
.evolution {
  padding: clamp(80px, 10vw, 120px) clamp(24px, 5vw, 60px);
  background: var(--charcoal);
}

.evolution-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.evolution-label-col {
  position: sticky;
  top: 80px;
}

.evolution-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 20px;
  font-style: italic;
}

.evolution-body {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.timeline {
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--charcoal);
}

.timeline-year {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.timeline-content {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

.timeline-content strong {
  display: block;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

/* ── Team / Stats ── */
.team {
  padding: clamp(60px, 8vw, 90px) clamp(24px, 5vw, 60px);
  background: var(--bg-alt);
}

.team-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.team-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 32px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  display: none;
}

.stat-number {
  display: block;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.team-quote {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.team-quote blockquote p {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
}

.team-quote cite {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: normal;
  font-weight: 500;
}

/* ── Closing ── */
.closing {
  padding: clamp(80px, 10vw, 110px) clamp(24px, 5vw, 60px);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.closing-statement {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 24px;
  font-style: italic;
}

.closing-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Footer ── */
.site-footer {
  padding: 40px clamp(24px, 5vw, 60px);
  background: var(--charcoal);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-name {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-meta {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-sep {
  color: rgba(255,255,255,0.3);
}

.footer-links a[href^="tel"] {
  color: rgba(255,255,255,0.6);
}

.footer-copy {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(255,255,255,0.3);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    gap: 32px;
  }

  .hero-badge {
    display: none;
  }

  .evolution-inner {
    grid-template-columns: 1fr;
  }

  .evolution-label-col {
    position: static;
  }

  .team-stats {
    flex-direction: column;
  }

  .stat-item {
    border-bottom: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-copy {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}