/* ══════════════════════════════════════════════════════════
   miuz.css — shared stylesheet for all Miuz pages
   Design: mint on wheat · Inter + Space Grotesk
   ══════════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --cream:         #F4EDD8;
  --wheat:         #C9BE9D;
  --wheat-light:   #EDE3C9;
  --wheat-dark:    #B0A37E;
  --surface:       #EEE6CE;
  --border:        #D4C9A8;
  --mint:          #00FF87;
  --mint-dim:      rgba(0,255,135,0.12);
  --mint-border:   rgba(0,255,135,0.25);
  --teal:          #1DBFA0;
  --teal-dark:     #0F8070;
  --text:          #28261E;
  --text-mid:      #58543E;
  --text-light:    #8A8268;
  --text-on-mint:  #0A2018;
  --dark-bg:       #1C1A14;
  --dark-surface:  #242018;
  --dark-text:     #F0E8D0;
  --dark-sub:      rgba(240,232,208,0.55);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { max-width: 64ch; }
ul { list-style: none; }

/* ─── TYPE ───────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.55rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }
.label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.label-light { color: var(--mint); }

/* ─── NAV ────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,237,216,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  height: 66px; display: flex; align-items: center;
  justify-content: space-between; gap: 32px;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem; font-weight: 800;
  color: var(--mint); letter-spacing: -0.03em;
  flex-shrink: 0; line-height: 1;
  text-shadow: 0 0 0.01px rgba(0,0,0,0.1);
}
.nav-logo sup { font-size: 0.5em; color: var(--teal); vertical-align: super; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--text-mid); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links .dispatch-link a { color: var(--teal); }
.nav-links .dispatch-link a:hover { color: var(--teal-dark); }
.nav-pricing { display: flex; align-items: center; gap: 6px; opacity: 0.55; }
.nav-pricing a { font-size: 0.875rem; font-weight: 500; color: var(--text-mid); }
.soon-pill {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; background: var(--wheat-dark);
  color: var(--cream); padding: 2px 6px; border-radius: 3px;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--mint); color: var(--text-on-mint);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem; font-weight: 700;
  padding: 10px 20px; border-radius: 8px;
  transition: all 0.2s; flex-shrink: 0;
}
.nav-cta:hover { background: var(--teal); color: #fff; }
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 1px; transition: 0.3s;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mint); color: var(--text-on-mint);
  font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 700;
  padding: 14px 26px; border-radius: 10px; transition: all 0.2s;
}
.btn-primary:hover {
  background: var(--teal); color: #fff;
  transform: translateY(-1px); box-shadow: 0 8px 24px rgba(29,191,160,0.25);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 600;
  padding: 14px 26px; border-radius: 10px; border: 1.5px solid var(--wheat-dark);
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }
.btn-teal {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(29,191,160,0.1); color: var(--teal);
  font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 700;
  padding: 12px 22px; border-radius: 10px; border: 1.5px solid rgba(29,191,160,0.3);
  transition: all 0.2s; text-decoration: none;
}
.btn-teal:hover { background: var(--teal); color: #fff; border-color: var(--teal); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal); font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem; font-weight: 700; transition: gap 0.2s;
}
.btn-ghost:hover { gap: 14px; }
.btn-ghost-light {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--mint); font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem; font-weight: 700; transition: gap 0.2s;
}
.btn-ghost-light:hover { gap: 14px; }

/* ─── HERO (inner pages — shorter) ──────────────────────── */
.page-hero {
  background: var(--cream); padding: 80px 24px 72px;
  border-bottom: 1px solid var(--border); position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -120px; right: -80px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,135,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner { max-width: 1140px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mint-dim); border: 1px solid var(--mint-border);
  color: var(--teal-dark); font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem; font-weight: 700; padding: 6px 14px; border-radius: 20px;
  margin-bottom: 26px; letter-spacing: 0.05em; text-transform: uppercase;
}
.page-hero h1 { margin-bottom: 20px; }
.page-hero .accent { color: var(--teal); }
.page-hero .hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-mid);
  max-width: 52ch; line-height: 1.75; font-weight: 400;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* ─── DARK HERO (for pages with dark intro) ──────────────── */
.dark-hero {
  background: var(--dark-bg); padding: 80px 24px 72px;
  color: var(--dark-text);
}
.dark-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,255,135,0.07); border: 1px solid rgba(0,255,135,0.2);
  color: var(--mint); font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem; font-weight: 700; padding: 6px 14px; border-radius: 20px;
  margin-bottom: 26px; letter-spacing: 0.05em; text-transform: uppercase;
}
.dark-hero h1 { color: var(--dark-text); }
.dark-hero .hero-sub { color: var(--dark-sub); }
.dark-hero-inner { max-width: 1140px; margin: 0 auto; }

/* ─── CARDS ──────────────────────────────────────────────── */
.card-tag {
  display: inline-block; font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px; margin-bottom: 16px; width: fit-content;
}
.tag-ai    { background: var(--mint-dim); color: var(--teal-dark); border: 1px solid var(--mint-border); }
.tag-daw   { background: rgba(29,191,160,0.1); color: var(--teal); border: 1px solid rgba(29,191,160,0.25); }
.tag-tools { background: rgba(176,163,126,0.15); color: var(--text-mid); border: 1px solid var(--border); }

.product-card {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px; transition: all 0.25s;
  display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); }
.product-card.featured {
  border-color: rgba(0,255,135,0.35);
  background: linear-gradient(155deg, rgba(0,255,135,0.04) 0%, var(--cream) 55%);
}
.product-card.featured:hover { border-color: var(--mint); }
.product-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.product-card .tm { font-size: 0.6em; vertical-align: super; color: var(--text-light); font-weight: 500; }
.product-card > p { font-size: 0.875rem; color: var(--text-mid); max-width: none; margin-bottom: 20px; line-height: 1.7; flex: 1; }
.card-link {
  font-size: 0.825rem; font-weight: 600; color: var(--teal);
  display: inline-flex; align-items: center; gap: 5px; transition: gap 0.2s; margin-top: auto;
}
.card-link:hover { gap: 9px; }
.free-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--mint-dim); border: 1px solid var(--mint-border);
  color: var(--teal-dark); font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 6px; margin-bottom: 16px;
}

/* ─── PILLAR CARDS ───────────────────────────────────────── */
.pillar {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 24px;
  display: flex; gap: 18px; align-items: flex-start; transition: border-color 0.2s;
}
.pillar:hover { border-color: var(--teal); }
.pillar-icon {
  width: 42px; height: 42px; background: var(--mint-dim);
  border: 1px solid var(--mint-border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.pillar-body h4 { margin-bottom: 5px; }
.pillar-body p { font-size: 0.855rem; color: var(--text-mid); max-width: none; margin: 0; line-height: 1.6; }

/* ─── PROVENANCE STEPS ───────────────────────────────────── */
.prov-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.prov-steps::before {
  content: ''; position: absolute; top: 19px; left: 48px; right: 48px; height: 1px;
  background: linear-gradient(90deg, var(--mint-border), var(--border), var(--mint-border));
}
.prov-step { position: relative; }
.step-num {
  width: 40px; height: 40px; background: var(--cream);
  border: 1.5px solid var(--mint-border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 0.8rem; font-weight: 800;
  color: var(--teal-dark); margin-bottom: 20px; position: relative; z-index: 1;
}
.prov-step h4 { margin-bottom: 8px; }
.prov-step p { font-size: 0.84rem; color: var(--text-mid); max-width: none; line-height: 1.65; }

/* ─── PRICING CARDS ──────────────────────────────────────── */
.p-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.p-card { background: #141210; border: 1px solid #2a2620; border-radius: 14px; padding: 24px 18px; }
.p-tier { font-family: 'Space Grotesk', sans-serif; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.p-name { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; color: #d8d0b8; margin-bottom: 8px; }
.p-desc { font-size: 11px; color: #786850; margin-bottom: 16px; line-height: 1.5; min-height: 44px; }
.p-price { font-family: 'Space Grotesk', sans-serif; font-size: 2.1rem; font-weight: 800; color: #d8d0b8; letter-spacing: -0.04em; line-height: 1; margin-bottom: 4px; }
.p-price .cur { font-size: 0.85rem; vertical-align: super; font-weight: 600; }
.p-price-note { font-size: 11px; color: #786850; margin-bottom: 18px; }
.p-btn { display: block; width: 100%; padding: 10px; border-radius: 8px; font-size: 12px; font-weight: 600; text-align: center; background: #201e18; color: #786850; border: 1px solid #2a2620; margin-bottom: 16px; cursor: pointer; transition: opacity 0.2s; }
.p-btn:hover { opacity: 0.85; }
.p-sect { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #3a3628; margin: 14px 0 8px; padding-bottom: 4px; border-bottom: 1px solid #2a2620; }
.p-feat { font-size: 11px; color: #786850; padding: 3px 0; display: flex; gap: 7px; line-height: 1.4; }

/* ─── DISPATCH / DARK SECTIONS ───────────────────────────── */
.dark-section { background: var(--dark-bg); color: var(--dark-text); }
.dark-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px; padding: 32px;
}
.d-stat { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.d-stat:first-child { padding-top: 0; }
.d-stat:last-child { border-bottom: none; padding-bottom: 0; }
.d-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(240,232,208,0.35); margin-bottom: 5px; }
.d-val { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--dark-text); margin-bottom: 3px; }
.d-desc { font-size: 0.8rem; color: rgba(240,232,208,0.45); }

/* ─── WHEAT SECTIONS ─────────────────────────────────────── */
.wheat-section { background: var(--wheat-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ─── STAT STRIP ─────────────────────────────────────────── */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.stat-item {
  background: var(--cream); padding: 28px 24px;
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 800;
  color: var(--teal); letter-spacing: -0.04em; line-height: 1; margin-bottom: 6px;
}
.stat-label { font-size: 0.825rem; color: var(--text-mid); }

/* ─── TEAM CARD ──────────────────────────────────────────── */
.team-card {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
}
.team-avatar {
  width: 72px; height: 72px; border-radius: 12px;
  background: var(--mint-dim); border: 1.5px solid var(--mint-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 16px;
}
.team-name { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 0.8rem; color: var(--teal); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.team-bio { font-size: 0.86rem; color: var(--text-mid); line-height: 1.65; max-width: none; }

/* ─── VALUE LIST ─────────────────────────────────────────── */
.value-item {
  border-top: 1px solid var(--border); padding: 28px 0;
  display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start;
}
.value-item:first-child { border-top: none; }
.value-heading { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; }
.value-body { font-size: 0.9rem; color: var(--text-mid); line-height: 1.75; max-width: none; }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer { background: var(--dark-bg); border-top: 1px solid rgba(255,255,255,0.06); color: var(--dark-sub); padding: 60px 24px 40px; }
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-brand .f-logo { font-family: 'Space Grotesk', sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--mint); letter-spacing: -0.03em; margin-bottom: 12px; line-height: 1; }
.footer-brand .f-logo sup { font-size: 0.5em; color: var(--teal); vertical-align: super; }
.footer-brand p { font-size: 0.825rem; color: var(--dark-sub); max-width: 28ch; line-height: 1.7; }
.f-col h5 { font-family: 'Space Grotesk', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(240,232,208,0.3); margin-bottom: 16px; }
.f-col ul li { margin-bottom: 10px; }
.f-col ul li a { font-size: 0.855rem; color: var(--dark-sub); transition: color 0.2s; }
.f-col ul li a:hover { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.footer-bottom p, .footer-bottom small { font-size: 0.775rem; max-width: none; color: rgba(240,232,208,0.3); }

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
.dot { width: 6px; height: 6px; background: var(--mint); border-radius: 50%; animation: pulse 2s infinite; display: inline-block; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .p-grid { grid-template-columns: 1fr 1fr; }
  .prov-steps { grid-template-columns: 1fr 1fr; gap: 24px; }
  .prov-steps::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .value-item { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  .p-grid { grid-template-columns: 1fr; }
  .prov-steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 66px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px; gap: 16px; z-index: 99;
  }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
}
