/* Neuma marketing site — design tokens aligned with new-ui/intelligence-view-design.html */
:root {
  /* Brand — cobalt/indigo family (design brand-500 / brand-700) */
  --brand:       #4a5bff;
  --brand-dark:  #2a2fa6;
  --brand-light: #eef1ff;

  /* Surfaces */
  --bg:    #f7f8fb;
  --ink:   #05061a;
  --muted: #64748b;
  --line:  #e2e8f0;
  --night: #0b0e2e;
  --cream: #f3efe7;
  --mist:  #b7bee6;

  /* Shadows */
  --shadow-soft: 0 4px 16px rgba(5, 6, 26, 0.07);
  --shadow-card: 0 16px 56px rgba(5, 6, 26, 0.16);
}

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

html {
  background: var(--bg);
  color: var(--ink);
  /* Inter first, then system stack — no external CDN needed */
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Layout shell ─────────────────────────────────────────────── */
.site {
  min-height: 100vh;
  background: var(--bg);
}

.shell {
  margin: 0 auto;
  max-width: 1152px;
  padding: 0 24px;
}

/* ── Header ───────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 251, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

/* ── Logo ─────────────────────────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 20px;
  color: var(--ink);
  flex-shrink: 0;
}

/* SVG aperture mark — matches new-ui/intelligence-view-design.html path shape */
.logo-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* ── Nav ──────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  border-radius: 6px;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  transition: background 0.12s, color 0.12s;
}

.nav a:hover {
  background: #f1f5f9;
  color: var(--ink);
}

.nav a[aria-current="page"] {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 600;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image: radial-gradient(rgba(183, 190, 230, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  gap: 48px;
  min-height: 72vh;
  padding-bottom: 72px;
  padding-top: 72px;
}

.hero-copy {
  max-width: 560px;
}

/* ── Eyebrow label ────────────────────────────────────────────── */
.eyebrow {
  color: #718096;
  /* JetBrains Mono matches design; fall back to system mono */
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--mist);
}

h1, h2, h3, p {
  margin: 0;
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-top: 16px;
}

.hero p {
  color: #c7cdec;
  font-size: 17px;
  line-height: 1.75;
  margin-top: 24px;
  max-width: 600px;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  min-height: 40px;
  padding: 9px 20px;
  transition: opacity 0.12s, box-shadow 0.12s;
  white-space: nowrap;
}

.button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.button-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 3px rgba(74, 91, 255, 0.4);
}

.button-primary:hover {
  opacity: 0.92;
  box-shadow: 0 4px 12px rgba(74, 91, 255, 0.35);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ── Product scene mockup ─────────────────────────────────────── */
.product-scene {
  display: none;
}

/* ── Feature cards band ───────────────────────────────────────── */
.cards-band,
.zoom-band,
.public-band {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.cards {
  display: grid;
  gap: 20px;
  padding-bottom: 52px;
  padding-top: 52px;
}

.card,
.zoom-card,
.legal-card,
.support-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.card {
  padding: 24px;
}

.icon-box {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  min-width: 32px;
  padding: 0 6px;
  letter-spacing: 0;
}

.card h2,
.zoom-card h3,
.support-panel h2 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 14px;
  letter-spacing: -0.01em;
}

.card p,
.zoom-card p,
.support-panel p,
.legal-card p,
.public-band p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 6px;
}

/* ── Zoom band ────────────────────────────────────────────────── */
.zoom-band {
  background: var(--bg);
}

.zoom-grid {
  display: grid;
  gap: 40px;
  padding-bottom: 64px;
  padding-top: 64px;
}

.zoom-grid h2,
.legal-hero h1,
.support-hero h1 {
  color: var(--ink);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.07;
  margin-top: 12px;
}

.zoom-grid > div > p,
.legal-hero p,
.support-hero p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 660px;
}

.text-link {
  color: var(--brand-dark);
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  margin-top: 18px;
  gap: 4px;
  align-items: center;
}

.text-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

.zoom-list {
  display: grid;
  gap: 14px;
}

.zoom-card {
  display: flex;
  gap: 16px;
  padding: 20px;
}

.zoom-card h3 {
  margin-top: 0;
}

/* ── Public band ──────────────────────────────────────────────── */
.public-band .shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
  padding-top: 40px;
}

.public-band strong {
  color: var(--ink);
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.public-band a {
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 14px;
}

.public-band a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ── Legal pages ──────────────────────────────────────────────── */
.legal-main,
.support-main {
  padding-bottom: 80px;
  padding-top: 56px;
}

.legal-hero,
.support-hero {
  max-width: 800px;
}

.updated {
  color: var(--muted);
  font-size: 13px;
  margin-top: 16px;
}

.legal-stack {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.legal-card {
  padding: 28px;
}

.legal-card h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal-card p + p {
  margin-top: 12px;
}

.legal-card a,
.support-main a {
  color: var(--brand-dark);
  font-weight: 600;
}

.legal-card a:hover,
.support-main a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ── Support page ─────────────────────────────────────────────── */
.support-grid {
  display: grid;
  gap: 36px;
}

.support-list {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.support-panel {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  gap: 16px;
  padding: 24px 0;
}

.support-panel:last-child {
  border-bottom: 0;
}

.zoom-support {
  display: grid;
  gap: 14px;
  margin-top: 42px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

/* Support page button in light context */
.support-cta {
  margin-top: 20px;
}

.support-cta .button-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 1px 3px rgba(74, 91, 255, 0.35);
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 32px;
  padding-top: 32px;
}

.footer-brand {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--ink);
}

/* ── Scene mockup (wide only) ─────────────────────────────────── */
@media (max-width: 640px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .nav {
    flex-wrap: wrap;
  }
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .public-band .shell,
  .footer-inner {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .zoom-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .support-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

@media (min-width: 1120px) {
  .hero-grid {
    grid-template-columns: minmax(0, 540px) minmax(500px, 1fr);
  }

  .product-scene {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 16px 0 0 16px;
    box-shadow: var(--shadow-card);
    display: block;
    height: 620px;
    justify-self: end;
    max-width: 720px;
    overflow: hidden;
    width: 100%;
  }

  .scene-inner {
    display: flex;
    height: 100%;
  }

  .scene-side {
    background: rgba(248, 250, 252, 0.8);
    border-right: 1px solid var(--line);
    flex: 0 0 210px;
    padding: 26px 14px;
  }

  .scene-nav {
    display: grid;
    gap: 4px;
    margin-top: 30px;
  }

  .scene-link {
    border-radius: 6px;
    color: #64748b;
    font-size: 13px;
    padding: 8px 10px;
    cursor: default;
  }

  .scene-link.active {
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    color: var(--ink);
    font-weight: 600;
  }

  .scene-views {
    margin-top: 28px;
  }

  .scene-main {
    flex: 1;
    min-width: 0;
    padding: 28px;
  }

  .scene-main h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
  }

  .scene-main > p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
  }

  .feed-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
  }

  .feed-row,
  .evidence {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    min-width: 0;
    padding: 12px 14px;
  }

  .feed-row.active {
    background: #f0f2ff;
    border-color: #bcc7ff;
  }

  .feed-row strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink);
  }

  .feed-row span {
    color: var(--muted);
    display: block;
    font-size: 11px;
    margin-top: 4px;
  }

  .evidence {
    margin-top: 22px;
    padding: 18px;
  }

  .evidence p {
    color: #475569;
    font-size: 13px;
    line-height: 1.7;
    margin-top: 8px;
  }
}

@media (min-width: 1440px) {
  .shell {
    max-width: 1280px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 600px) minmax(600px, 740px);
  }
}
