/* ════════════════════════════════════════════════════
   EVOLVIA — Global design system
   Shared by index.html (landing) & diagnostic.html
   ════════════════════════════════════════════════════ */

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

:root {
  --bg:          #F5F0E8;
  --surface:     #FFFFFF;
  --surface-2:   #EDE8DF;
  --gold:        #C9A84C;
  --gold-bright: #E0C26A;
  --gold-soft:   rgba(201, 168, 76, 0.15);
  --gold-dim:    rgba(201, 168, 76, 0.07);
  --green:       #2D6A4F;
  --green-dim:   rgba(45, 106, 79, 0.08);
  --text:        #1A1A1A;
  --muted:       #6B7280;
  --border:      rgba(26, 26, 26, 0.10);
  --border-hover:rgba(45, 106, 79, 0.30);
  --danger:      #c0392b;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Satoshi', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold-soft); color: #8B6914; }

a { color: inherit; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(245, 240, 232, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.16em;
  color: var(--text);
  transition: color 0.3s;
}
.nav-logo span { color: var(--gold); }
.nav-tagline {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.3s;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  transition: color 0.3s;
}

/* Nav over dark hero — white text when not scrolled */
.nav:not(.scrolled) .nav-logo { color: #ffffff; }
.nav:not(.scrolled) .nav-tagline { color: rgba(255,255,255,0.58); }
.nav:not(.scrolled) .nav-links a:not(.btn-gold) { color: rgba(255,255,255,0.78); }
.nav:not(.scrolled) .nav-links a:not(.btn-gold):hover { color: #ffffff; }
.nav:not(.scrolled) .nav-toggle { color: #ffffff; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: #1A1A1A;
  font-family: 'Satoshi', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 15px 32px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.30);
}
.btn-gold:active { transform: translateY(0); }
.btn-gold.btn-sm { padding: 10px 20px; font-size: 13px; border-radius: 7px; }
.btn-gold.btn-lg { padding: 18px 44px; font-size: 16px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--text);
  font-family: 'Satoshi', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 15px 32px;
  border: 1px solid rgba(26,26,26,0.25);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: rgba(26,26,26,0.5); }

/* ── SECTION PRIMITIVES ──────────────────────────── */
.section { padding: 80px 0; }
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── SCROLL REVEAL ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── FOOTER ──────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
  background: var(--surface-2);
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand-col { max-width: 340px; }
.footer-logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.16em;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-logo span { color: var(--gold); }
.footer-line {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-cta {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(201,168,76,0.35);
  padding: 8px 18px;
  border-radius: 100px;
  transition: background 0.2s, border-color 0.2s;
}
.footer-cta:hover { background: var(--gold-soft); border-color: rgba(201,168,76,0.6); }
.footer-nav {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-right: 80px;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.footer-nav-col a {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s, color 0.15s;
}
.footer-nav-col a:hover { opacity: 1; color: var(--gold); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  opacity: 0.7;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-nav { gap: 32px; }
}

/* ── NAV MOBILE ──────────────────────────────────── */
@media (max-width: 820px) {
  .nav-tagline { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(245, 240, 232, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-of-type { border-bottom: none; }
  .nav-links .btn-gold { margin-top: 12px; }
  .nav-toggle { display: block; }
  .section { padding: 60px 0; }
}
