/* Shared base marketing styles. */

:root {
      --cw-navy: #333B5C;
      --cw-navy-dark: #252d47;
      --cw-blue: #2563eb;
      --cw-blue-hover: #1d4ed8;
      --cw-bg-dark: #1f2937;
      --cw-shadow-card: 0px 5px 16px 0px rgba(0, 0, 0, 0.24);
      --cw-shadow-card-hover: 0px 14px 32px 0px rgba(0, 0, 0, 0.4);
      --cw-shadow-cta: 0px 4px 14px 0px rgba(37, 99, 235, 0.35);
      --cw-radius-card: 1.25rem;

      /* Dark theme surface + text tokens */
      --cw-bg: #131316;
      --cw-surface: #1f1f22;
      --cw-surface-low: #1b1b1e;
      --cw-surface-lowest: #0e0e10;
      --cw-surface-high: #2a2a2c;
      --cw-on-surface: #e4e1e5;
      --cw-heading: #ffffff;
      --cw-text-muted: rgba(255, 255, 255, 0.65);
      --cw-text-faint: rgba(255, 255, 255, 0.5);
      --cw-text-dim: rgba(255, 255, 255, 0.4);
      --cw-border-subtle: rgba(255, 255, 255, 0.1);
    }
    body {
      font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      background-color: var(--cw-bg) !important;
      color: var(--cw-on-surface) !important;
    }
    html { background-color: var(--cw-bg); }
    .mkt-page-content { background-color: var(--cw-bg); }
    .mkt-nav {
      background: rgba(19, 19, 22, 0.8);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 50;
      height: 64px;
      border-bottom: 1px solid var(--cw-border-subtle);
      transition: box-shadow 0.2s ease;
    }
    .mkt-nav .nav-link {
      color: rgba(255, 255, 255, 0.75);
      font-size: 0.875rem;
      font-weight: 500;
      transition: color 0.15s;
      text-decoration: none;
    }
    .mkt-nav .nav-link:hover { color: #ffffff; }
    .mkt-nav .nav-link-active { color: #ffffff; }
    .mkt-nav .cta-demo {
      background: var(--cw-blue);
      color: #ffffff;
      font-size: 0.875rem;
      font-weight: 600;
      padding: 0.5rem 1.25rem;
      border-radius: 0.625rem;
      transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
      text-decoration: none;
      display: inline-block;
      box-shadow: var(--cw-shadow-cta);
    }
    .mkt-nav .cta-demo:hover {
      background: var(--cw-blue-hover);
      transform: translateY(-1px);
    }
    .mkt-nav .auth-link {
      color: rgba(255, 255, 255, 0.6);
      font-size: 0.8125rem;
      font-weight: 400;
      transition: color 0.15s;
      text-decoration: none;
    }
    .mkt-nav .auth-link:hover { color: #ffffff; }
    .mobile-menu {
      display: none;
      position: fixed;
      top: 64px;
      left: 0;
      right: 0;
      bottom: 0;
      background: var(--cw-surface-lowest);
      z-index: 40;
      padding: 2rem 1.5rem;
      overflow-y: auto;
    }
    .mobile-menu.open {
      display: flex;
      flex-direction: column;
    }
    .mobile-menu a.nav-link {
      color: rgba(255, 255, 255, 0.8);
      font-size: 1.125rem;
      font-weight: 500;
      padding: 0.75rem 0;
      display: block;
      border-bottom: 1px solid var(--cw-border-subtle);
      text-decoration: none;
    }
    .mobile-menu a.nav-link:hover { color: #ffffff; }
    .mkt-footer {
      background: var(--cw-surface-lowest);
      color: rgba(255, 255, 255, 0.6);
      border-top: 1px solid var(--cw-border-subtle);
    }
    .mkt-footer a {
      color: rgba(255, 255, 255, 0.6);
      text-decoration: none;
      transition: color 0.15s;
    }
    .mkt-footer a:hover { color: #ffffff; }
    .mkt-footer .footer-heading {
      color: var(--cw-heading);
      font-weight: 600;
      font-size: 0.8125rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 1.25rem;
    }
    .citation-modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 60;
      align-items: center;
      justify-content: center;
    }
    .citation-modal-overlay.open { display: flex; }
    html { scroll-behavior: smooth; }
    .mkt-page-content { padding-top: 64px; }
