/* CaseHub Landing — casehub.legal
 * Neumorphic, granular, brand-aligned. Pure CSS + a sprinkle of JS for tilt/login.
 * Pairs with brand-logo.jsx (CubeMark, COLORS via window).
 */

:root {
  --c-paper: #FAFBF7;
  --c-cream: #F1F4EC;
  --c-bone:  #E6E2DA;
  --c-bone-2:#DDD9CE;
  --c-navy:  #001F3E;
  --c-ink:   #0B1426;
  --c-graphite: #4F4B51;
  --c-mute:  #8B8E86;
  --c-line:  rgba(0,31,62,0.10);

  --c-green: #6FBE54;
  --c-green-d:#008C4D;
  --c-blue:  #1E4890;
  --c-pollen:#DBE64C;
  --c-pollen-soft:#F2F49B;

  --shadow-dark: 14px 14px 32px rgba(0,31,62,0.16);
  --shadow-light:-14px -14px 32px rgba(255,255,255,0.95);
  --shadow-dark-sm: 6px 6px 14px rgba(0,31,62,0.16);
  --shadow-light-sm:-6px -6px 14px rgba(255,255,255,0.95);
  --shadow-dark-xs: 3px 3px 8px rgba(0,31,62,0.14);
  --shadow-light-xs:-3px -3px 8px rgba(255,255,255,0.92);

  --display: "Instrument Sans", -apple-system, system-ui, sans-serif;
  --sans:    "Maven Pro", -apple-system, system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;
  --serif:   "Fraunces", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--c-bone); color: var(--c-ink); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ─────────── Neumorphic primitives ─────────── */
.neu-raised   { background: var(--c-bone); box-shadow: var(--shadow-dark), var(--shadow-light); }
.neu-raised-sm{ background: var(--c-bone); box-shadow: var(--shadow-dark-sm), var(--shadow-light-sm); }
.neu-raised-xs{ background: var(--c-bone); box-shadow: var(--shadow-dark-xs), var(--shadow-light-xs); }
.neu-pressed  { background: var(--c-bone); box-shadow: inset var(--shadow-dark-sm), inset var(--shadow-light-sm); }
.neu-pressed-xs{ background: var(--c-bone); box-shadow: inset var(--shadow-dark-xs), inset var(--shadow-light-xs); }

.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--c-green-d); font-weight: 700;
}

.h-display {
  font-family: var(--display); font-weight: 700;
  letter-spacing: -0.035em; line-height: 0.95; color: var(--c-navy);
}

.mono { font-family: var(--mono); }

.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay; opacity: 0.55;
}

/* ─────────── Layout ─────────── */
.shell { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .shell { padding: 0 20px; } }

/* ─────────── Top nav ─────────── */
.nav-wrap { padding: 24px 0 0; position: sticky; top: 0; z-index: 50; }
.nav {
  display: flex; align-items: center; gap: 22px;
  padding: 10px 14px; border-radius: 100px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px; }
.nav-brand-word {
  font-family: var(--display); font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-brand-word .c1 { color: var(--c-blue); }
.nav-brand-word .c2 { color: var(--c-green-d); }
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--c-graphite); font-weight: 500; }
.nav-links a { padding: 6px 8px; border-radius: 8px; transition: color .2s; }
.nav-links a:hover { color: var(--c-navy); }
.nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-cta {
  background: var(--c-bone); color: var(--c-navy); border: none;
  padding: 10px 18px; border-radius: 100px; font-weight: 700; font-size: 13px;
  box-shadow: var(--shadow-dark-sm), var(--shadow-light-sm);
  transition: box-shadow .15s, transform .15s;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta:active {
  box-shadow: inset var(--shadow-dark-sm), inset var(--shadow-light-sm);
  transform: none;
}
.nav-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: var(--c-bone);
  box-shadow: inset var(--shadow-dark-xs), inset var(--shadow-light-xs);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  color: var(--c-green-d); font-weight: 700;
}
.nav-status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-green); box-shadow: 0 0 0 4px rgba(111,190,84,0.20);
}
@media (max-width: 880px) {
  .nav-links { display: none; }
}
