/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #FAF7F2;
  --bg-card:  #F3EDE4;
  --accent:   #C85A2A;
  --accent2:  #E8A04B;
  --text:     #1A1A1A;
  --muted:    #7A6E64;
  --border:   #E0D5C8;
  --radius:   12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--accent); }

/* ── Hero ── */
.hero {
  min-height: calc(90vh - 73px);
  display: flex;
  align-items: center;
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

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

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover {
  background: #b04e24;
  transform: translateY(-1px);
}

.hero-accent {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, #E8A04B22 0%, transparent 70%);
  pointer-events: none;
}

/* ── Mission ── */
.mission {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

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

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: #C85A2A18;
  padding: 6px 12px;
  border-radius: 20px;
}

.mission-text p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 640px;
}
.mission-text p + p { margin-top: 20px; }

/* ── Products ── */
.products {
  padding: 80px 0 120px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  color: var(--text);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-icon svg { width: 22px; height: 22px; }

.msoko-icon  { background: #C85A2A18; color: var(--accent); }
.elimu-icon  { background: #2A7AC818; color: #2A7AC8; }
.mtaa-icon   { background: #2AC89018; color: #1A9E72; }

.product-meta { display: flex; align-items: center; gap: 10px; }
.product-meta h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.status {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
}
.status.live   { background: #2AC89018; color: #1A9E72; }
.status.beta   { background: #E8A04B22; color: #B07A2A; }

.product-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.2s;
  margin-top: 4px;
}
.card-link svg { width: 14px; height: 14px; }
.card-link:hover { gap: 10px; }
.card-link.muted { color: var(--muted); pointer-events: none; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-email {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-email:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  .hero { padding: 60px 24px; min-height: auto; }
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-inner > * {
  animation: fadeUp 0.6s ease both;
}
.eyebrow      { animation-delay: 0.05s; }
h1            { animation-delay: 0.15s; }
.hero-sub     { animation-delay: 0.25s; }
.btn          { animation-delay: 0.35s; }
