/* 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); }

/* ─────────── Skip link (keyboard a11y) ─────────── */
.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--c-navy);
  color: var(--c-paper);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-dark-sm), var(--shadow-light-sm);
  transition: top 160ms ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 2px solid var(--c-green);
  outline-offset: 2px;
}

/* ─────────── WIP badge (honest status marker) ─────────── */
.badge-wip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
  color: var(--c-blue);
  background: rgba(30,72,144,0.10);
  box-shadow: inset 0 0 0 1px rgba(30,72,144,0.22);
}
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);
}
/* Hamburguer button — desktop hidden, mobile visible */
.nav-hamburger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--c-line, rgba(0,31,62,.18));
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--c-navy, #001f3e);
  border-radius: 2px;
  margin: 2px 0;
  transition: transform 180ms ease, opacity 180ms ease;
}
.nav-hamburger:hover { background: rgba(0,31,62,0.04); }
.nav-hamburger:focus-visible { outline: 2px solid var(--c-green, #6FBE54); outline-offset: 2px; }

@media (max-width: 880px) {
  .nav-hamburger { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--c-line, rgba(0,31,62,.12));
    border-radius: 14px;
    background: var(--c-paper, #fff);
    box-shadow: 0 14px 40px rgba(0,31,62,.18);
    display: none;
    z-index: 50;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--c-navy, #001f3e);
    width: 100%;
  }
  .nav-links a:hover { background: rgba(0,31,62,0.04); }
  /* hide status text mobile, keep dot only */
  .nav-status { font-size: 0; gap: 0; }
  .nav-status .dot { width: 8px; height: 8px; }
}
