/* MetaopAI — shared base styles (extracted verbatim from index.html design system) */
    /* ─────────────────────────────────────────────────
       DESIGN TOKENS
       ───────────────────────────────────────────────── */
    :root {
      /* Surface */
      --bg: #0b0b14;
      --bg-deep: #06060d;
      --bg-elevated: #11111e;
      --panel: #13131f;
      --panel-soft: #181826;
      --border: rgba(255, 255, 255, 0.08);
      --border-strong: rgba(255, 255, 255, 0.16);
      --border-bright: rgba(167, 139, 250, 0.28);

      /* Ink (text) — high-contrast, calibrated for readability */
      --ink: #f5f4ff;
      --ink-soft: #d8d4f0;
      --ink-muted: #a8a4c8;
      --ink-dim: #6e6a8e;

      /* Brand */
      --violet: #a78bfa;
      --violet-deep: #8b5cf6;
      --cyan: #7dd3fc;
      --cyan-deep: #38bdf8;
      --grad: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #38bdf8 100%);
      --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.16) 0%, rgba(56, 189, 248, 0.16) 100%);

      /* Semantic */
      --green: #2db86b;

      /* Typography */
      --font-display: 'Instrument Serif', Georgia, serif;
      --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
      --font-mono: 'JetBrains Mono', ui-monospace, monospace;

      /* Rhythm */
      --rad-sm: 8px;
      --rad: 12px;
      --rad-lg: 18px;
      --rad-xl: 24px;
    }

    /* ─────────────────────────────────────────────────
       RESET
       ───────────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
    img, svg { display: block; max-width: 100%; }
    button { font: inherit; }
    a { color: inherit; }

    body {
      font-family: var(--font-sans);
      background: var(--bg);
      color: var(--ink);
      font-weight: 400;
      font-size: 16px;
      line-height: 1.6;
      letter-spacing: -0.005em;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
      overflow-x: hidden;
      min-height: 100vh;
      position: relative;
    }

    /* Soft atmospheric backdrop */
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      background:
        radial-gradient(ellipse 60% 50% at 15% -10%, rgba(139, 92, 246, 0.12), transparent 60%),
        radial-gradient(ellipse 50% 45% at 90% 20%, rgba(56, 189, 248, 0.08), transparent 60%),
        radial-gradient(ellipse 40% 40% at 50% 100%, rgba(139, 92, 246, 0.05), transparent 70%);
      pointer-events: none;
      z-index: 0;
    }

    /* Subtle grain */
    body::after {
      content: "";
      position: fixed;
      inset: 0;
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.5'/></svg>");
      opacity: 0.025;
      pointer-events: none;
      z-index: 0;
      mix-blend-mode: overlay;
    }

    .container {
      max-width: 1240px;
      margin: 0 auto;
      padding: 0 40px;
      position: relative;
      z-index: 1;
    }
    .container.narrow { max-width: 880px; }
    .container.wide { max-width: 1400px; }

    /* ─────────────────────────────────────────────────
       TYPOGRAPHY UTILITIES
       ───────────────────────────────────────────────── */
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.22em;
      color: var(--violet);
      text-transform: uppercase;
    }
    .eyebrow::before {
      content: "";
      width: 28px; height: 1px;
      background: var(--violet);
      opacity: 0.55;
    }
    .eyebrow.no-line::before { display: none; }
    .eyebrow.dim { color: var(--ink-dim); }
    .eyebrow.dim::before { background: var(--ink-dim); }

    .section-number {
      position: absolute;
      top: 56px;
      right: 40px;
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.18em;
      color: var(--ink-dim);
      z-index: 2;
    }

    h1, h2, h3, h4 {
      font-family: var(--font-sans);
      font-weight: 700;
      letter-spacing: -0.025em;
      line-height: 1.1;
      color: var(--ink);
    }

    .display-serif {
      font-family: var(--font-display);
      font-weight: 400;
      letter-spacing: -0.02em;
      line-height: 1.05;
    }
    .display-serif em { font-style: normal; }

    /* The gradient text accent — used sparingly */
    .grad-text {
      background: var(--grad);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    nav.top {
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      background: rgba(11, 11, 20, 0.72);
      border-bottom: 1px solid var(--border);
    }
    nav.top .row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 0;
    }
    .brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      color: inherit;
    }
    .brand-mark {
      height: 32px;
      width: auto;
    }
    .brand-name {
      font-family: var(--font-sans);
      font-weight: 700;
      font-size: 19px;
      letter-spacing: -0.02em;
      color: var(--ink);
    }
    .brand-name .dot { color: var(--violet); }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 28px;
    }
    .nav-links a {
      color: var(--ink-muted);
      text-decoration: none;
      font-size: 14px;
      font-weight: 500;
      letter-spacing: -0.005em;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--ink); }
    .nav-links a.nav-whitepaper {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: var(--violet);
    }
    .nav-links a.nav-whitepaper:hover { color: var(--cyan); }
    .nav-links a.nav-whitepaper svg {
      transition: transform 0.2s;
    }
    .nav-links a.nav-whitepaper:hover svg {
      transform: translate(2px, -2px);
    }

    .cta-group { display: flex; align-items: center; gap: 10px; }

    /* ─────────────────────────────────────────────────
       BUTTONS
       ───────────────────────────────────────────────── */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 20px;
      border-radius: var(--rad);
      font-family: inherit;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: -0.005em;
      text-decoration: none;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      border: 1px solid transparent;
      white-space: nowrap;
    }
    .btn-ghost {
      color: var(--ink);
      background: transparent;
      border-color: var(--border-strong);
    }
    .btn-ghost:hover {
      background: rgba(255, 255, 255, 0.04);
      border-color: rgba(255, 255, 255, 0.24);
    }
    .btn-primary {
      color: white;
      background: var(--grad);
      box-shadow: 0 8px 28px -10px rgba(139, 92, 246, 0.55);
    }
    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 16px 40px -10px rgba(139, 92, 246, 0.7);
    }
    .btn-primary svg { transition: transform 0.25s; }
    .btn-primary:hover svg { transform: translateX(3px); }
    .btn-lg { padding: 15px 26px; font-size: 15px; }

/* pulse-green for footer status */
    @keyframes pulse-green {
      0% { box-shadow: 0 0 0 0 rgba(45, 184, 107, 0.5); }
      70% { box-shadow: 0 0 0 6px rgba(45, 184, 107, 0); }
      100% { box-shadow: 0 0 0 0 rgba(45, 184, 107, 0); }
    }
    footer {
      padding: 56px 0 44px;
      border-top: 1px solid var(--border);
      position: relative;
      z-index: 1;
    }
    footer .footer-nav {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px 28px;
      padding-bottom: 32px;
      margin-bottom: 32px;
      border-bottom: 1px solid var(--border);
    }
    footer .footer-nav a {
      font-size: 14px;
      color: var(--ink-muted);
      text-decoration: none;
      transition: color 0.2s;
    }
    footer .footer-nav a:hover { color: var(--ink); }
    footer .contact-row {
      display: flex;
      justify-content: center;
      padding-bottom: 32px;
      margin-bottom: 32px;
      border-bottom: 1px solid var(--border);
    }
    footer .email {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 14px;
      font-weight: 500;
      color: var(--ink-muted);
      text-decoration: none;
      padding: 10px 18px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: rgba(255, 255, 255, 0.015);
      transition: all 0.25s;
    }
    footer .email:hover {
      color: var(--ink);
      background: rgba(167, 139, 250, 0.07);
      border-color: rgba(167, 139, 250, 0.25);
      transform: translateY(-1px);
    }
    footer .email svg {
      width: 16px; height: 16px;
      color: var(--violet);
    }
    footer .row {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      gap: 24px;
      align-items: center;
    }
    footer .copyright {
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.18em;
      color: var(--ink-dim);
      text-transform: uppercase;
    }
    footer .copyright .accent { color: var(--violet); }
    footer .socials {
      display: flex;
      align-items: center;
      gap: 6px;
      justify-self: center;
    }
    footer .socials a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px; height: 34px;
      border-radius: var(--rad-sm);
      color: var(--ink-dim);
      text-decoration: none;
      transition: all 0.25s;
      border: 1px solid transparent;
    }
    footer .socials a:hover {
      color: var(--violet);
      background: rgba(167, 139, 250, 0.08);
      border-color: rgba(167, 139, 250, 0.22);
      transform: translateY(-1px);
    }
    footer .socials svg { width: 16px; height: 16px; display: block; }
    footer .meta {
      display: flex;
      align-items: center;
      gap: 12px;
      justify-self: end;
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.16em;
      color: var(--ink-dim);
      text-transform: uppercase;
    }
    footer .meta .dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--green);
      animation: pulse-green 2s infinite;
    }
    .reveal {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                  transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.in { opacity: 1; transform: translateY(0); }
    .reveal-stagger > * {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                  transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-stagger.in > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
    .reveal-stagger.in > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
    .reveal-stagger.in > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
    .reveal-stagger.in > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
    .reveal-stagger.in > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce){ .reveal,.reveal-stagger>*{opacity:1;transform:none;} }
@media (max-width:640px){ .nav-links{display:none;} .container{padding:0 24px;} }
