/* ==========================================
   MERIDIAN — Theme CSS
   Global commerce meets AI-native
   ========================================== */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #10101a;
  --bg-card: #131320;
  --bg-card-hover: #181828;
  --fg-primary: #f5f0e8;
  --fg-secondary: #a09880;
  --fg-muted: #60584c;
  --accent: #c9a84c;
  --accent-dim: rgba(201, 168, 76, 0.12);
  --accent-glow: rgba(201, 168, 76, 0.06);
  --border: rgba(201, 168, 76, 0.12);
  --border-strong: rgba(201, 168, 76, 0.25);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
}

/* RESET & BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg-primary);
  color: var(--fg-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

/* SITE NAV */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 15, 0.85);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg-primary);
  letter-spacing: 0.02em;
}

.nav-tagline {
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 3rem 5rem;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

.hero-ambient {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.5; box-shadow: 0 0 3px var(--accent); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--fg-primary);
  margin-bottom: 2rem;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-secondary);
  font-weight: 300;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; gap: 0.25rem; }

.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-strong);
}

/* ==========================================
   MANIFESTO
   ========================================== */
.manifesto {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 7rem 3rem;
}

.manifesto-inner {
  max-width: 820px;
  margin: 0 auto;
}

.manifesto-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--fg-primary);
  margin-bottom: 3rem;
}

.manifesto-divider {
  width: 80px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 2.5rem;
}

.manifesto-body {
  font-size: 1.05rem;
  color: var(--fg-secondary);
  line-height: 1.8;
  font-weight: 300;
}

/* ==========================================
   NAVIGATOR
   ========================================== */
.navigator {
  padding: 8rem 3rem;
  background: var(--bg-primary);
}

.navigator-header {
  max-width: 820px;
  margin: 0 auto 5rem;
  text-align: center;
}

.navigator-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--fg-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.navigator-sub {
  font-size: 1rem;
  color: var(--fg-secondary);
  font-weight: 300;
}

.navigator-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.nav-card {
  background: var(--bg-card);
  padding: 3rem 2.5rem;
  transition: background 0.3s ease;
}

.nav-card:hover {
  background: var(--bg-card-hover);
}

.nav-icon {
  margin-bottom: 1.5rem;
}

.nav-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.nav-card-desc {
  font-size: 0.95rem;
  color: var(--fg-secondary);
  line-height: 1.7;
  font-weight: 300;
}

/* ==========================================
   OUTCOMES
   ========================================== */
.outcomes {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 7rem 3rem;
}

.outcomes-inner { max-width: 1100px; margin: 0 auto; }

.outcomes-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--fg-primary);
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: -0.02em;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.outcome {
  background: var(--bg-secondary);
  padding: 2.5rem 2rem;
  text-align: center;
}

.outcome-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.outcome-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.outcome-note {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.5;
  font-weight: 300;
}

/* ==========================================
   CLOSING
   ========================================== */
.closing {
  padding: 8rem 3rem 7rem;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.closing-globe {
  width: 160px;
  height: 160px;
  margin: 0 auto 3rem;
  opacity: 0.7;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--fg-primary);
  line-height: 1.2;
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
}

.closing-body {
  font-size: 1.05rem;
  color: var(--fg-secondary);
  line-height: 1.8;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.closing-vision {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.vision-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.vision-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--fg-secondary);
  line-height: 1.65;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem;
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg-primary);
  margin-bottom: 0.75rem;
}

.footer-note {
  font-size: 0.9rem;
  color: var(--fg-secondary);
  margin-bottom: 0.4rem;
  font-weight: 300;
}

.footer-sub {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-weight: 300;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  .site-nav { padding: 1rem 1.5rem; }
  .nav-tagline { display: none; }

  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .stat-divider { display: none; }

  .manifesto, .navigator, .outcomes, .closing { padding: 5rem 1.5rem; }

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

  .outcomes-grid .outcome:nth-child(3),
  .outcomes-grid .outcome:nth-child(4) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 480px) {
  .outcomes-grid { grid-template-columns: 1fr; }
  .outcomes-grid .outcome { border-top: 1px solid var(--border); }
  .outcomes-grid .outcome:first-child { border-top: none; }
  .hero-headline { font-size: 3rem; }
}
