/* Nexus Landing — matches CB portal blue/navy theme */

:root {
  --primary-blue: #2563eb;
  --primary-blue-light: #3b82f6;
  --primary-blue-dark: #1d4ed8;
  --primary-blue-50: #eff6ff;
  --primary-blue-100: #dbeafe;
  --primary-blue-200: #bfdbfe;
  --primary-blue-700: #1d4ed8;
  --primary-blue-800: #1e40af;
  --primary-blue-900: #1e3a8a;

  --navy-950: #071228;
  --navy-900: #0b1b3a;
  --navy-800: #0f2248;
  --navy-700: #163066;

  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --success: #10b981;

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 8px 24px rgb(15 34 72 / 0.08);
  --shadow-lg: 0 20px 40px rgb(11 27 58 / 0.14);

  --radius: 0.5rem;
  --radius-lg: 0.875rem;
  --header-h: 4.25rem;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--gray-900);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

ul, ol {
  margin: 0;
  padding-left: 1.15rem;
}

li + li {
  margin-top: 0.4rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary-blue);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgb(11 27 58 / 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgb(11 27 58 / 0.92);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.2);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  flex-shrink: 0;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, var(--primary-blue-light), var(--primary-blue-800));
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.15), 0 8px 20px rgb(37 99 235 / 0.35);
}

.brand-mark-core {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.25);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.nav {
  display: none;
  gap: 1.35rem;
  margin-left: auto;
}

.nav a {
  color: rgb(255 255 255 / 0.78);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: white;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--radius);
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.28rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: white;
  border-radius: 2px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.5rem 1.25rem;
  background: var(--navy-900);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  color: rgb(255 255 255 / 0.88);
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.9rem 1.45rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: white;
  box-shadow: 0 8px 20px rgb(37 99 235 / 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--primary-blue) 100%);
}

.btn-ghost {
  color: rgb(255 255 255 / 0.9);
  background: transparent;
  border-color: rgb(255 255 255 / 0.18);
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 0.08);
}

.btn-outline {
  color: white;
  border-color: rgb(255 255 255 / 0.28);
  background: rgb(255 255 255 / 0.04);
}

.btn-outline:hover {
  background: rgb(255 255 255 / 0.1);
}

.btn-outline-light {
  color: white;
  border-color: rgb(255 255 255 / 0.35);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgb(255 255 255 / 0.1);
}

.header-actions .btn-ghost {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: flex;
  align-items: center;
  padding: 7rem 1.5rem 4.5rem;
  overflow: hidden;
  background: linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 42%, var(--navy-800) 100%);
  color: white;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: glowDrift 12s ease-in-out infinite alternate;
}

.hero-glow-a {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  background: rgb(37 99 235 / 0.45);
  top: -8%;
  right: -5%;
}

.hero-glow-b {
  width: 36vw;
  height: 36vw;
  max-width: 420px;
  max-height: 420px;
  background: rgb(59 130 246 / 0.28);
  bottom: 8%;
  left: -8%;
  animation-delay: -4s;
}

@keyframes glowDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-3%, 4%) scale(1.08); }
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.hero-content {
  animation: heroEnter 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-media {
  animation: heroEnter 1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero-media-frame {
  position: relative;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(7 18 40 / 0.65);
  box-shadow:
    0 24px 60px rgb(0 0 0 / 0.35),
    0 0 0 1px rgb(37 99 235 / 0.12);
  aspect-ratio: 16 / 9;
}

.hero-media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(11 27 58 / 0.08), transparent 30%, transparent 70%, rgb(11 27 58 / 0.22));
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
  margin: 0 0 1.35rem;
  color: #ffffff;
  text-shadow: 0 12px 40px rgb(37 99 235 / 0.35);
}

.hero h1 {
  color: white;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 600;
  max-width: 18ch;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.hero-lead {
  max-width: 34rem;
  color: rgb(226 232 240 / 0.88);
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Trust strip */
.trust-strip {
  background: var(--navy-900);
  border-top: 1px solid rgb(255 255 255 / 0.06);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.trust-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgb(226 232 240 / 0.82);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

a.trust-item:hover {
  color: white;
}

.trust-item .material-icons-round {
  color: var(--primary-blue-light);
  font-size: 1.2rem;
}

.arch-standard {
  margin: 1.5rem 0 0;
  max-width: 42rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 10px;
  color: rgb(226 232 240 / 0.9);
  font-size: 0.95rem;
  line-height: 1.55;
}

.arch-standard a {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--primary-blue-light);
}

.cert-dl {
  display: grid;
  gap: 1rem;
}

.cert-dl > div {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--gray-200, #e2e8f0);
  border-radius: 12px;
  background: #fff;
}

.cert-dl dt {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-blue, #2563eb);
}

.cert-dl dd {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--navy-900, #071228);
}

@media (min-width: 800px) {
  .cert-dl {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Sections */
.section {
  padding: 5.5rem 1.5rem;
}

.section-alt {
  background: var(--gray-50);
}

.section-dark {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: rgb(226 232 240 / 0.88);
}

.section-cta {
  background:
    radial-gradient(ellipse 80% 80% at 70% 0%, rgb(37 99 235 / 0.35), transparent 55%),
    linear-gradient(165deg, var(--navy-950), var(--navy-800));
  color: white;
  text-align: center;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section-intro-light h2,
.section-cta h2 {
  color: white;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
}

.section-dark .eyebrow,
.section-cta .eyebrow {
  color: var(--primary-blue-200);
}

.section-lead {
  color: var(--gray-600);
  font-size: 1.08rem;
}

.section-dark .section-lead,
.section-cta .section-lead {
  color: rgb(203 213 225 / 0.9);
}

.section h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
}

/* Problem compare */
.problem-grid {
  display: grid;
  gap: 1rem;
}

.problem-block {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: white;
}

.problem-block h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.problem-block-accent {
  border-color: var(--primary-blue-200);
  background: linear-gradient(180deg, var(--primary-blue-50), white);
  box-shadow: var(--shadow-md);
}

.problem-block-accent h3 {
  color: var(--primary-blue-800);
}

.problem-block ul {
  color: var(--gray-600);
  padding-left: 1.1rem;
}

/* Capabilities */
.capability-list {
  display: grid;
  gap: 1.25rem;
}

.capability {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.capability:last-child {
  border-bottom: none;
}

.capability-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: var(--primary-blue-50);
  color: var(--primary-blue);
}

.capability h3 {
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}

.capability p {
  margin: 0;
  color: var(--gray-600);
}

/* Outcomes over modules */
.outcome-grid {
  display: grid;
  gap: 1.25rem;
}

.outcome-card {
  padding: 1.6rem 1.5rem 1.45rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: white;
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.outcome-card:hover {
  border-color: var(--primary-blue-200);
  box-shadow: var(--shadow-md);
}

.outcome-metric {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary-blue);
  line-height: 1.05;
  margin: 0;
}

.outcome-card h3 {
  font-size: 1.05rem;
  line-height: 1.45;
  margin: 0;
  font-weight: 700;
}

.outcome-module {
  margin: 0;
  font-size: 0.72rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.outcome-compare {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.outcome-compare caption {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.85rem;
}

.outcome-compare th,
.outcome-compare td {
  text-align: left;
  padding: 1rem 1.15rem;
  vertical-align: top;
  border-bottom: 1px solid var(--gray-200);
}

.outcome-compare th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  background: var(--gray-50);
}

.outcome-compare tr:last-child td {
  border-bottom: none;
}

.outcome-compare td:first-child {
  color: var(--gray-500);
  font-size: 0.95rem;
  width: 38%;
}

.outcome-compare td:last-child {
  color: var(--gray-900);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.45;
}

@media (max-width: 699px) {
  .outcome-compare thead {
    display: none;
  }

  .outcome-compare,
  .outcome-compare tbody,
  .outcome-compare tr,
  .outcome-compare td {
    display: block;
    width: 100%;
  }

  .outcome-compare tr {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--gray-200);
  }

  .outcome-compare td {
    padding: 0.2rem 1.15rem;
    border: none;
    width: auto;
  }

  .outcome-compare td:first-child {
    font-size: 0.72rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

/* Audiences */
.audience-grid {
  display: grid;
  gap: 1.25rem;
}

.audience {
  padding: 1.75rem 0;
  border-top: 2px solid var(--primary-blue);
}

.audience-role {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.audience h3 {
  font-size: 1.25rem;
}

.audience p {
  color: var(--gray-600);
}

.audience ol {
  color: var(--gray-700);
  font-size: 0.95rem;
  padding-left: 1.2rem;
}

/* Compliance */
.compliance-grid {
  display: grid;
  gap: 1.5rem;
}

.compliance-item {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.compliance-item .material-icons-round {
  color: var(--primary-blue-light);
  font-size: 1.6rem;
  margin-bottom: 0.65rem;
}

.compliance-item h3 {
  color: white;
  font-size: 1.08rem;
}

.compliance-item p {
  margin: 0;
  color: rgb(203 213 225 / 0.88);
}

/* Architecture */
.arch-flow {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.arch-stage {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}

.arch-stage-core {
  background: linear-gradient(135deg, var(--primary-blue-50), white);
  border-color: var(--primary-blue-200);
}

.arch-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.2rem;
}

.arch-detail {
  font-size: 0.92rem;
  color: var(--gray-600);
}

.arch-arrow {
  display: none;
  color: var(--primary-blue);
  font-weight: 700;
}

.tech-grid {
  display: grid;
  gap: 2rem;
}

.tech-grid h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.tech-list {
  color: var(--gray-600);
  padding-left: 1.1rem;
}

/* Roadmap */
.roadmap {
  display: grid;
  gap: 1rem;
  margin-bottom: 3rem;
}

.roadmap-item {
  padding: 1.35rem 1.25rem;
  border-left: 3px solid var(--gray-300);
  background: white;
}

.roadmap-item.is-done {
  border-left-color: var(--success);
}

.roadmap-phase {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.4rem;
}

.roadmap-item.is-done .roadmap-phase {
  color: var(--success);
}

.roadmap-item h3 {
  font-size: 1.08rem;
}

.roadmap-item p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.98rem;
}

.portal-links h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.portal-row {
  display: grid;
  gap: 0.75rem;
}

.portal-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.portal-link:hover {
  border-color: var(--primary-blue-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.portal-link .material-icons-round {
  color: var(--primary-blue);
  font-size: 1.5rem;
}

.portal-link strong {
  display: block;
  font-family: var(--font-display);
  color: var(--gray-900);
}

.portal-link small {
  color: var(--gray-500);
  font-size: 0.85rem;
}

/* CTA */
.cta-inner {
  max-width: 40rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.75rem 0 1rem;
}

.cta-note {
  color: rgb(148 163 184 / 0.95);
  font-size: 0.9rem;
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: rgb(203 213 225 / 0.85);
  padding: 3.5rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto 2.5rem;
  display: grid;
  gap: 2rem;
}

.footer-brand .brand-text {
  color: white;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  max-width: 28rem;
  margin: 0;
  color: rgb(148 163 184);
}

.footer-brand .footer-legal {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgb(100 116 139);
}

.footer-brand .footer-compliance {
  margin-top: 0.85rem;
  max-width: 36rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgb(148 163 184);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-cols > div:last-child {
  grid-column: 1 / -1;
}

.footer-cols h4 {
  color: white;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.footer-cols a {
  display: block;
  margin-bottom: 0.45rem;
  color: rgb(148 163 184);
  font-size: 0.95rem;
}

.footer-cols a:hover {
  color: white;
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgb(100 116 139);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-legal-links a {
  font-size: 0.85rem;
  color: rgb(148 163 184);
}

.footer-legal-links a:hover {
  color: white;
}

.form-note a {
  color: var(--primary-blue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.form-note a:hover {
  color: var(--primary-blue-dark);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (min-width: 640px) {
  .trust-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-grid {
    grid-template-columns: 1fr 1fr;
  }

  .compliance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portal-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .header-actions .btn-ghost {
    display: none;
  }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .header-actions {
    margin-left: 0;
  }

  .trust-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .capability-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }

  .audience-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .compliance-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .arch-flow {
    flex-direction: row;
    align-items: center;
  }

  .arch-stage {
    flex: 1;
  }

  .arch-arrow {
    display: block;
    padding: 0 0.35rem;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .roadmap {
    grid-template-columns: repeat(4, 1fr);
  }

  .roadmap-item {
    border-left: none;
    border-top: 3px solid var(--gray-300);
  }

  .roadmap-item.is-done {
    border-top-color: var(--success);
  }

  .footer-inner {
    grid-template-columns: 1.35fr 1.25fr;
  }

  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-cols > div:last-child {
    grid-column: auto;
  }

  .hero {
    align-items: center;
    padding-top: 7.5rem;
    padding-bottom: 4.5rem;
  }

  .hero-shell {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2.75rem;
  }

  .hero-brand {
    font-size: clamp(3.8rem, 6.5vw, 5.8rem);
  }

  .hero-media-frame {
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transform-origin: left center;
  }
}

/* Inner pages */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 7.5rem 1.5rem 3.5rem;
  background: linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 50%, var(--navy-800) 100%);
  color: white;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, black, transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero .eyebrow {
  color: var(--primary-blue-200);
}

.page-hero h1 {
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 16ch;
  margin-bottom: 1rem;
}

.legal-hero h1 {
  max-width: 22ch;
}

.legal-meta {
  margin: 1.25rem 0 0;
  color: rgb(148 163 184);
  font-size: 0.9rem;
}

.legal-layout {
  display: grid;
  gap: 2.5rem;
}

.legal-toc {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
}

.legal-toc h2 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.85rem;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--gray-700);
}

.legal-toc a {
  color: var(--primary-blue-800);
}

.legal-toc a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

.legal-doc {
  max-width: 46rem;
}

.legal-doc h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.legal-doc h2:first-child {
  margin-top: 0;
}

.legal-doc h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.legal-doc p,
.legal-doc li {
  color: var(--gray-700);
}

.legal-doc a {
  color: var(--primary-blue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-doc a:hover {
  color: var(--primary-blue-dark);
}

.legal-doc section[id] {
  scroll-margin-top: 5.5rem;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--gray-200);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--gray-50);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-600);
}

@media (min-width: 900px) {
  .legal-layout {
    grid-template-columns: 16rem minmax(0, 1fr);
    align-items: start;
  }

  .legal-toc {
    position: sticky;
    top: 5.5rem;
  }
}

.page-hero-lead {
  max-width: 40rem;
  color: rgb(226 232 240 / 0.88);
  font-size: 1.08rem;
  margin-bottom: 1.5rem;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.85rem;
  color: rgb(148 163 184);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: rgb(191 219 254);
}

.breadcrumb a:hover {
  color: white;
}

.nav a.is-active,
.mobile-nav a.is-active {
  color: white;
}

.nav a.is-active {
  box-shadow: inset 0 -2px 0 var(--primary-blue-light);
}

.page-grid {
  display: grid;
  gap: 1.25rem;
}

.page-card,
.detail-block,
.form-panel {
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: white;
}

.page-card h3,
.detail-block h3 {
  font-size: 1.12rem;
}

.page-card p:last-child,
.detail-block p:last-child {
  margin-bottom: 0;
}

.page-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.85rem;
  color: var(--primary-blue);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.page-card-link:hover {
  color: var(--primary-blue-dark);
}

.next-steps {
  display: grid;
  gap: 0.85rem;
}

.next-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.next-step:hover {
  border-color: var(--primary-blue-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.next-step .material-icons-round {
  color: var(--primary-blue);
}

.next-step strong {
  display: block;
  font-family: var(--font-display);
  color: var(--gray-900);
}

.next-step span {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.form-panel {
  max-width: 40rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--gray-800);
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px var(--primary-blue-100);
}

.form-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.form-actions .btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-field.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error,
.form-alert {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.95rem;
  line-height: 1.45;
}

.form-alert[hidden],
.field-error[hidden],
.success-panel[hidden] {
  display: none !important;
}

.field-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.4;
}

.field-error {
  margin: 0;
  font-size: 0.85rem;
  color: #b91c1c;
}

.form-field.is-invalid input {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px #fee2e2;
}

.form-note {
  margin: 1rem 0 0;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.success-panel {
  display: grid;
  justify-items: start;
  gap: 0.55rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.success-panel-icon {
  color: #059669;
  font-size: 2rem;
}

.success-panel h3 {
  margin: 0;
  color: #065f46;
  font-size: 1.2rem;
}

.success-panel p {
  margin: 0;
  max-width: 34rem;
  color: #047857;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.7rem;
  margin-top: 0.55rem;
  color: var(--gray-600);
}

.checklist li::before {
  content: "check_circle";
  font-family: "Material Icons Round";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-size: 1.15rem;
}

.stat-row {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
}

.stat {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.1);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: white;
  margin-bottom: 0.2rem;
}

.stat span {
  color: rgb(203 213 225 / 0.85);
  font-size: 0.9rem;
}

@media (min-width: 700px) {
  .page-grid.cols-2,
  .form-grid.cols-2,
  .stat-row,
  .outcome-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .next-steps.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .page-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-glow,
  .hero-content,
  .hero-media,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-video {
    display: none;
  }

  .hero-media-frame {
    background:
      center / cover no-repeat url("assets/nexus-hero-poster.jpg");
  }
}
