/* =========================================================================
   MatterWave AI — Design System
   Locked-in tokens, nav, footer, and section primitives.
   Ported from the MW-Release .dc.html source so every page shares one style.
   ========================================================================= */

:root {
  /* Color */
  --bg:            #080b14;
  --bg-deep:       #060709;
  --panel:         #0b0d12;
  --text:          #e9eaed;
  --text-soft:     #c2c5cd;
  --text-muted:    #b6b9c2;
  --text-dim:      #9aa0a9;
  --text-faint:    #8b8f99;
  --text-fainter:  #7e8290;
  --text-ghost:    #6b7488;
  --text-trace:    #3a3e48;

  --accent:        #2f8fff;  /* bright blue */
  --accent-2:      #4f8a63;  /* cedar green */
  --accent-3:      #2dd4bf;  /* teal  */

  --line:          rgba(255,255,255,0.07);
  --line-2:        rgba(255,255,255,0.10);
  --line-3:        rgba(255,255,255,0.14);
  --line-soft:     rgba(255,255,255,0.025);

  /* Type */
  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'IBM Plex Sans', system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --maxw:      1180px;
  --maxw-text: 1000px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; }

/* --- Page shell: radial glow + grid background ------------------------- */
.shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 720px at 72% -8%, rgba(47,143,255,0.08), transparent 60%),
    radial-gradient(1100px 800px at 12% 26%, rgba(79,138,99,0.07), transparent 55%),
    var(--bg);
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* --- Navigation ------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(7,8,11,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
}

/* Brand mark: sine wave spelling M (cyan) + W (purple) + "ai" footnote */
.brandmark {
  height: 30px; width: auto; display: block;
  /* gold glow + sunset haze are baked into the SVG itself */
}
.footer__brand--lg .brandmark { height: 34px; }
.nav__wordmark { font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; font-weight: 700; }
.nav__badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--text-ghost); border: 1px solid var(--line-3);
  padding: 2px 6px; border-radius: 3px;
}
.nav__links {
  display: flex; gap: 28px; align-items: center;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em;
  color: var(--text-faint);
}
.nav__links a { text-decoration: none; color: inherit; }
.nav__links a.is-active { color: var(--accent); }

/* --- Layout primitives ------------------------------------------------ */
.wrap     { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.wrap--text { max-width: var(--maxw-text); }

.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.32em;
  color: var(--accent); margin-bottom: 30px;
}
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  color: var(--text-fainter);
}

/* --- Typography ------------------------------------------------------- */
.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 8vw, 88px); line-height: 1.02;
  letter-spacing: -0.015em; margin: 0 0 34px;
}
.lead {
  font-size: 21px; line-height: 1.55; color: var(--text-muted); margin: 0;
}
.em-accent { font-style: italic; color: var(--accent); }

.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 48px); line-height: 1.08; margin: 0 0 28px; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; margin: 0 0 8px; }
.prose { font-size: 19px; line-height: 1.6; color: var(--text-dim); }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(47,143,255,0.4); }

/* Two-column labelled section (THE IDEA / HOW WE WORK …) */
.col2 {
  display: grid; grid-template-columns: 200px 1fr; gap: 48px;
  border-top: 1px solid var(--line-2); padding-top: 48px;
}
.col2__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--accent); padding-top: 6px; }
.col2__label--alt { color: var(--accent-2); }

/* --- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; font-family: var(--mono);
  font-size: 13px; letter-spacing: 0.06em;
  padding: 13px 22px; border-radius: 3px;
}
.btn--primary { color: #06121a; background: var(--accent); }
.btn--ghost   { color: #cfd2d9; border: 1px solid var(--line-3); }

/* --- Footer ----------------------------------------------------------- */
.footer { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,0.08); background: var(--bg-deep); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 54px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.footer__brand { display: flex; align-items: center; gap: 11px; }
.footer__wordmark { font-family: var(--mono); font-size: 14px; letter-spacing: 0.18em; font-weight: 700; }
.footer__links { display: flex; gap: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-fainter); }
.footer__links a { text-decoration: none; color: inherit; }
.footer__copy { font-family: var(--mono); font-size: 11px; color: var(--text-trace); letter-spacing: 0.08em; }

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
  .nav__links { gap: 16px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .col2 { grid-template-columns: 1fr; gap: 20px; }
}

/* --- Print ------------------------------------------------------------ */
@media print {
  body { background: #fff !important; color: #111 !important; font-size: 11pt; }
  .nav, .footer, .grid-bg { display: none !important; }
  .wrap { max-width: 100% !important; padding: 12pt 0 !important; }
  .display, .h2, .h3 { color: #111 !important; }
  .lead, .prose { color: #222 !important; }
}
