/* CaseHub Landing — HERO + LOGIN + DEMO STRIP */

/* ─── Hero ─── */
.hero { padding: 32px 0 0; }

/* Anchor offset: when nav-cta or in-page links jump to #login, account for the
   sticky nav (~92px) so the form header isn't hidden under it. */
#login { scroll-margin-top: 100px; }

/* Dark gradient surface — the hero's canvas is the brand's deep ramp
   (pollen → green → blue → navy) with grain overlay. Mirrors the .demo strip:
   blue here is structural, not decorative. Login-card stays cream to pop. */
.hero-card {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 20%, #DBE64C 0%, #6FBE54 25%, #1E4890 60%, #001F3E 100%),
    var(--c-navy);
  color: #fff;
  border-radius: 36px;
  box-shadow: var(--shadow-dark), var(--shadow-light);
  padding: 56px 60px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  isolation: isolate;
}
/* Grain overlay — fractal noise via inline SVG, blend overlay for paper-like
   tactility. Mirrors .grad-granular treatment from brand-kit.css. */
.hero-card::before {
  content: ""; position: absolute; inset: 0;
  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.4' 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.85 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay; opacity: 0.55;
  pointer-events: none; z-index: 0;
}

.hero-left { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; }

/* Dark-mode glass badge — sits on top of the deep gradient surface. */
.hero-badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 100px;
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.92); font-weight: 700;
}
/* Pill stays bright (pollen on navy) — the brand's accent over the dark canvas. */
.hero-badge .pill {
  background: var(--c-pollen); color: var(--c-navy);
  padding: 3px 9px; border-radius: 100px; font-size: 9.5px; letter-spacing: 0.14em;
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 4px 10px -4px rgba(0,0,0,0.45);
}

/* Light-on-dark typography. Italic carries pollen (mirrors .demo h3 em). */
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(48px, 6vw, 84px);
  letter-spacing: -0.04em; line-height: 0.95;
  color: #fff; margin: 0;
}
.hero h1 .accent { color: var(--c-pollen); }
.hero h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--c-pollen);
}

.hero-lede {
  font-size: 18px; line-height: 1.55; color: rgba(255,255,255,0.82);
  max-width: 520px;
}

.hero-stats {
  display: flex; gap: 28px; margin-top: 4px;
}
.hero-stat .n {
  font-family: var(--display); font-weight: 700; font-size: 28px;
  color: #fff; letter-spacing: -0.025em; line-height: 1;
}
.hero-stat .l {
  font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.55);
  letter-spacing: 0.16em; text-transform: uppercase; margin-top: 4px;
}

.hero-meta {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 8px;
}
.hero-meta span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.78);
  padding: 8px 14px; border-radius: 100px;
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ─── Login (right side of hero) ─── */
.login-card {
  position: relative; z-index: 1;
  background: var(--c-bone); border-radius: 28px;
  /* Floating-on-dark shadow: deeper drop, brighter rim — pops the card off
     the navy/blue gradient surface. */
  box-shadow:
    0 24px 48px -16px rgba(0,0,0,0.45),
    0 8px 20px -8px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.85);
  padding: 32px 32px 28px;
  display: flex; flex-direction: column; gap: 18px;
  align-self: center;
  min-width: 0;
}
.login-head {
  display: flex; justify-content: space-between; align-items: baseline;
}
.login-title {
  font-family: var(--display); font-weight: 700; font-size: 22px;
  color: var(--c-navy); letter-spacing: -0.02em;
}
.login-tabs {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 100px;
  background: var(--c-bone);
  box-shadow: inset var(--shadow-dark-xs), inset var(--shadow-light-xs);
}
.login-tab {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; font-weight: 700;
  padding: 6px 12px; border-radius: 100px; border: none;
  background: transparent; color: var(--c-mute);
  transition: all .18s;
}
.login-tab.is-active {
  background: var(--c-bone); color: var(--c-navy);
  box-shadow: var(--shadow-dark-xs), var(--shadow-light-xs);
}

.field { position: relative; }
.field label {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; color: var(--c-mute); margin-bottom: 8px;
  text-transform: uppercase; font-weight: 600;
}
.field input {
  width: 100%; padding: 14px 16px; border: none; outline: none;
  border-radius: 14px; background: var(--c-bone);
  box-shadow: inset var(--shadow-dark-xs), inset var(--shadow-light-xs);
  font-family: var(--sans); font-size: 15px; color: var(--c-navy);
  transition: box-shadow .15s;
}
.field input:focus {
  box-shadow:
    inset 4px 4px 10px rgba(0,31,62,0.18),
    inset -4px -4px 10px rgba(255,255,255,0.95),
    0 0 0 2px var(--c-blue),
    0 0 0 6px rgba(30,72,144,0.14);
}
.field input::placeholder { color: var(--c-mute); opacity: 0.7; }

.field-row { display: flex; justify-content: space-between; align-items: center; margin-top: -4px; }
.field-row a {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--c-blue); font-weight: 600;
}
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--c-graphite); cursor: pointer; }
.checkbox input { display: none; }
.checkbox .box {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--c-bone);
  box-shadow: inset var(--shadow-dark-xs), inset var(--shadow-light-xs);
  display: inline-flex; align-items: center; justify-content: center;
}
.checkbox input:checked + .box {
  background: var(--c-green-d);
  box-shadow: var(--shadow-dark-xs), var(--shadow-light-xs);
}
.checkbox input:checked + .box::after {
  content: "✓"; color: #fff; font-size: 11px; font-weight: 800;
}

/* Brand-defining CTA: rides the azure gradient (green → blue) — the one place where the
   shift between the two primary brand colors lives as a continuous motion. Shadow ramps
   from emerald to deep blue to make the transition tangible. */
.login-submit {
  background: linear-gradient(135deg, #6FBE54 0%, #008C4D 38%, #1E4890 100%);
  background-size: 180% 180%;
  background-position: 0% 0%;
  color: #fff; border: none;
  padding: 16px 22px; border-radius: 14px; font-weight: 700; font-size: 15px;
  box-shadow:
    8px 8px 22px rgba(30,72,144,0.32),
    -6px -6px 14px rgba(255,255,255,0.85),
    inset 0 1px 0 rgba(255,255,255,0.22);
  transition: transform .12s, box-shadow .2s, background-position .5s ease;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.login-submit:hover {
  transform: translateY(-1px);
  background-position: 100% 100%;
  box-shadow:
    10px 12px 28px rgba(30,72,144,0.38),
    -6px -6px 14px rgba(255,255,255,0.9),
    inset 0 1px 0 rgba(255,255,255,0.28);
}
.login-submit:active {
  transform: translateY(1px);
  box-shadow: inset 4px 4px 12px rgba(0,31,62,0.32), inset -3px -3px 10px rgba(255,255,255,0.10);
}
.login-submit .arrow { transition: transform .2s; }
.login-submit:hover .arrow { transform: translateX(3px); }

.login-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--c-mute); padding-top: 4px;
}
.login-foot strong { color: var(--c-green-d); }

@media (max-width: 980px) {
  .hero-card { grid-template-columns: 1fr; padding: 40px 28px; }
  .login-card { padding: 26px 24px; }
}
