/* Allvue-style enterprise marketing shell — DealScout brand tokens */
:root {
  --navy: #0a1628;
  --navy-2: #12253f;
  --ink: #0e1a2b;
  --muted: #5b6b7f;
  --faint: #8a97a8;
  --line: #d8e0ea;
  --line-soft: #e8eef5;
  --paper: #ffffff;
  --mist: #f4f7fb;
  --mist-2: #eef3f9;
  --ds1: #305dff;
  --ds2: #7c5cff;
  --ds1-rgb: 48, 93, 255;
  --ds2-rgb: 124, 92, 255;
  --positive: #128a4a;
  --on-accent: #ffffff;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --max: 1180px;
  --radius: 12px;
  --shadow: 0 24px 80px rgba(10, 22, 40, 0.18);
  --shadow-soft: 0 8px 28px rgba(10, 22, 40, 0.08);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

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

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

img {
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

/* Offset sticky nav when jumping to in-page targets */
[id] {
  scroll-margin-top: 88px;
}

/* Nav — enterprise marketing chrome */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
  transition: transform 0.28s ease, opacity 0.28s ease;
  will-change: transform;
}

.nav.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.nav-inner {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 12px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.brand-logo {
  width: auto;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  background: #000;
}

.brand-logo-sm {
  height: 42px;
}

.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  z-index: 2;
}

.nav-item {
  position: relative;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.nav-trigger:hover,
.nav-item.is-open > .nav-trigger {
  color: var(--navy);
  background: var(--mist);
}

.nav-chevron {
  width: 10px;
  height: 10px;
  opacity: 0.7;
  transition: transform 0.18s ease;
}

.nav-item.is-open > .nav-trigger .nav-chevron {
  transform: rotate(180deg);
}

.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 320px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(10, 22, 40, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 50;
}

.nav-panel::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-panel-sm {
  min-width: 280px;
}

.nav-item.is-open > .nav-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Keep right-side menus on-screen */
.nav-item:nth-last-child(-n + 4) .nav-panel {
  left: auto;
  right: 0;
  transform: translateY(6px);
}

.nav-item:nth-last-child(-n + 4).is-open > .nav-panel {
  transform: translateY(0);
}

.nav-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--ink);
}

.nav-card:hover,
.nav-card:focus-visible {
  background: var(--mist);
  outline: none;
}

.nav-card strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--navy);
}

.nav-card span {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}

.nav-link-mobile {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.link-quiet {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 12px;
}

.link-quiet:hover {
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
}

.btn-primary {
  color: var(--on-accent);
  background: var(--ds1);
  box-shadow: 0 8px 20px rgba(var(--ds1-rgb), 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(var(--ds1-rgb), 0.34);
}

.btn-secondary {
  color: var(--navy);
  background: var(--paper);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: #b8c4d4;
  background: var(--mist);
}

.btn-ghost-light {
  color: var(--on-accent);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* Hero — full-bleed institutional composition */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 900px);
  display: grid;
  align-items: end;
  background: var(--navy);
  color: #e8eef8;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 70% 20%, rgba(var(--ds1-rgb), 0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(var(--ds2-rgb), 0.22), transparent 55%),
    linear-gradient(180deg, #0d1b31 0%, #0a1628 55%, #07101c 100%);
  pointer-events: none;
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 30%, #fff 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #fff 20%, transparent 72%);
  opacity: 0.7;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 96px) clamp(16px, 4vw, 28px) clamp(28px, 4vw, 40px);
  animation: rise 0.8s ease both;
}

.brand-lockup {
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 600;
  letter-spacing: -2.2px;
  line-height: 1;
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(22px, 4.2vw, 40px);
  font-weight: 400;
  letter-spacing: -0.8px;
  line-height: 1.25;
  max-width: 720px;
  color: #dce6f4;
  margin-bottom: 18px;
}

.lead {
  font-size: clamp(15px, 2.4vw, 17px);
  line-height: 1.6;
  color: #a8b6c9;
  max-width: 560px;
  margin-bottom: 32px;
  font-weight: 400;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

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

.hero-visual {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px) 0;
  animation: rise 1s 0.12s ease both;
}

.product-stage {
  background: #0c1524;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(0);
}

.product-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.product-dots {
  display: flex;
  gap: 6px;
}

.product-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.product-url {
  font-size: 11px;
  color: #7d8da3;
}

.product-body {
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 280px;
}

.product-rail {
  background: #070e18;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.rail-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--ds1);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.rail-item {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.rail-item.on {
  background: rgba(var(--ds1-rgb), 0.28);
  box-shadow: inset 0 0 0 1px rgba(var(--ds1-rgb), 0.5);
}

.rail-item.accent {
  background: rgba(var(--ds2-rgb), 0.22);
}

.product-main {
  padding: 22px 24px 28px;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.ph-eyebrow {
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #7d8da3;
  margin-bottom: 6px;
}

.ph-title {
  font-size: 20px;
  font-weight: 500;
  color: #f2f5fa;
  letter-spacing: -0.3px;
}

.ph-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #9eb0c5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 5px 10px;
}

.ph-live span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulse 1.8s ease infinite;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.metric {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 12px 14px;
}

.metric span {
  display: block;
  font-size: 11px;
  color: #7d8da3;
  margin-bottom: 6px;
}

.metric strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: #eef3f9;
  letter-spacing: -0.3px;
}

.product-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 14px;
}

.panel-label {
  font-size: 11px;
  color: #8a9bb0;
  margin-bottom: 12px;
}

.bar {
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  margin-bottom: 8px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ds1), var(--ds2));
  border-radius: 99px;
}

.id-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 11px;
}

.id-line code {
  font-family: var(--mono);
  color: #c4d0e0;
}

.id-line em {
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #22c55e;
}

.id-line:last-child em {
  color: #8a9bb0;
}

/* Proof strip */
.proof {
  background: var(--mist);
  border-bottom: 1px solid var(--line-soft);
}

.proof-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px;
}

.proof-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.proof-grid strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.proof-grid span {
  font-size: 13px;
  color: var(--muted);
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 96px) clamp(16px, 4vw, 28px);
}

.section-band {
  max-width: none;
  background: var(--mist);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding-left: 0;
  padding-right: 0;
}

.section-band .section-head,
.section-band .cap-grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ds1);
  margin-bottom: 14px;
}

.eyebrow.accent-ds2 {
  color: var(--ds2);
}

.section h2 {
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 14px;
}

.section-lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 580px;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.solution {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 340px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.solution:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.1);
}

.tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: 6px;
}

.tag-ds1 {
  color: var(--ds1);
  background: rgba(var(--ds1-rgb), 0.1);
}

.tag-ds2 {
  color: var(--ds2);
  background: rgba(var(--ds2-rgb), 0.12);
}

.solution h3 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.4px;
  color: var(--navy);
}

.solution .meta {
  font-size: 14px;
  color: var(--muted);
}

.solution > p:not(.meta) {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

.solution ul {
  list-style: none;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.solution li {
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  gap: 8px;
}

.solution li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ds1);
  margin-top: 7px;
  flex-shrink: 0;
}

.solution:nth-child(2) li::before {
  background: var(--ds2);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.cap-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.cap-grid .num {
  display: block;
  font-size: 12px;
  color: var(--ds1);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.cap-grid h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.cap-grid p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.lifecycle-track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  counter-reset: step;
}

.lifecycle-track li {
  position: relative;
  background: var(--mist);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-increment: step;
}

.lifecycle-track li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ds1);
  letter-spacing: 0.5px;
}

.lifecycle-track strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.lifecycle-track span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* Security */
.section-security {
  max-width: none;
  padding: 0;
  background: linear-gradient(180deg, #f7f4ff 0%, var(--mist) 100%);
  border-top: 1px solid rgba(var(--ds2-rgb), 0.16);
  border-bottom: 1px solid rgba(var(--ds2-rgb), 0.12);
}

.security-split {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 88px) clamp(16px, 4vw, 28px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.security-split .section-lead {
  margin-bottom: 24px;
}

.status-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-list li {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ds2);
}

.status-list code {
  font-family: inherit;
  color: var(--navy);
  font-weight: 500;
}

.id-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.id-row code {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--navy);
}

.id-row span:not(.pill) {
  display: block;
  font-size: 12px;
  color: var(--faint);
  margin-top: 3px;
}

.pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
  flex-shrink: 0;
}

.pill-live,
.pill-active {
  color: var(--positive);
  background: rgba(18, 138, 74, 0.08);
  border-color: rgba(18, 138, 74, 0.28);
}

.pill-draft {
  color: var(--faint);
  background: rgba(10, 22, 40, 0.04);
  border-color: var(--line);
}

.pill-realised {
  color: var(--ds2);
  background: rgba(var(--ds2-rgb), 0.1);
  border-color: rgba(var(--ds2-rgb), 0.28);
}

/* CTA banner */
.cta-banner {
  background: var(--navy);
  color: #e8eef8;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(var(--ds1-rgb), 0.28), transparent 60%),
    radial-gradient(ellipse 40% 70% at 10% 80%, rgba(var(--ds2-rgb), 0.18), transparent 55%);
  pointer-events: none;
}

.cta-banner-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 88px) clamp(16px, 4vw, 28px);
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 500;
  letter-spacing: -0.8px;
  color: #fff;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 16px;
  color: #a8b6c9;
  margin-bottom: 28px;
}

.cta-email {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-email:hover {
  color: #dce6f4;
}

.cta-banner .cta-row {
  justify-content: center;
}

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

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer .brand {
  font-size: 14px;
}

.footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer nav a {
  font-size: 13px;
  color: var(--muted);
}

.footer nav a:hover {
  color: var(--navy);
}

.footer-note {
  width: 100%;
  font-size: 12px;
  color: var(--faint);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08);
  }
}

/* Laptop / packed nav: collapse to accordion menu */
@media (max-width: 1280px) {
  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .nav-toggle {
    display: flex;
    grid-column: 3;
    grid-row: 1;
  }

  .nav-links {
    display: none;
    position: static;
    transform: none;
    top: auto;
    left: auto;
  }

  .nav.open .nav-links {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-top: 10px;
    padding: 8px;
    box-shadow: var(--shadow-soft);
    max-height: min(70vh, 640px);
    overflow-y: auto;
  }

  .nav-item {
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-item:last-of-type {
    border-bottom: 0;
  }

  .nav-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 14px 12px;
    border-radius: 8px;
  }

  .nav-panel,
  .nav-item:nth-last-child(-n + 4) .nav-panel {
    position: static;
    transform: none !important;
    left: auto;
    right: auto;
    min-width: 0;
    max-width: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 4px 10px;
    display: none;
  }

  .nav-item.is-open > .nav-panel {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .nav-panel::before {
    display: none;
  }

  .nav-card {
    padding: 10px 12px;
  }

  .nav.open .nav-link-mobile {
    display: block;
    border-top: 1px solid var(--line-soft);
    margin-top: 4px;
    padding: 14px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    border-radius: 8px;
  }

  .nav.open .nav-link-mobile:hover {
    color: var(--navy);
    background: var(--mist);
  }

  .nav-actions .link-quiet {
    display: none;
  }

  .brand-logo {
    height: 42px;
  }
}

@media (max-width: 960px) {
  .section {
    padding: 72px clamp(16px, 4vw, 28px);
  }

  .section-band .section-head,
  .section-band .cap-grid {
    padding-left: clamp(16px, 4vw, 28px);
    padding-right: clamp(16px, 4vw, 28px);
  }

  .security-split {
    padding: 64px clamp(16px, 4vw, 28px);
    gap: 36px;
  }

  .proof-inner {
    padding: 24px clamp(16px, 4vw, 28px);
  }

  .proof-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
  }

  .solution-grid,
  .cap-grid,
  .audience-grid,
  .security-split,
  .product-panels {
    grid-template-columns: 1fr 1fr;
  }

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

  .metric-row {
    grid-template-columns: 1fr 1fr;
  }

  .product-main {
    padding: 18px 16px 22px;
  }

  .metric strong {
    font-size: 16px;
  }

  .cta-banner-inner {
    padding: 64px clamp(16px, 4vw, 28px);
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
  }

  .solution-grid,
  .cap-grid,
  .audience-grid,
  .security-split,
  .lifecycle-track,
  .product-panels {
    grid-template-columns: 1fr;
  }

  .lifecycle-track {
    gap: 10px;
  }

  .solution {
    min-height: 0;
    padding: 28px 22px;
  }

  .product-body {
    grid-template-columns: 1fr;
  }

  .product-rail {
    flex-direction: row;
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 12px;
    overflow-x: auto;
  }

  .rail-mark {
    margin-bottom: 0;
  }

  .product-url {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .id-line code,
  .id-row code {
    font-size: 11px;
    word-break: break-all;
  }

  .cta-row {
    width: 100%;
  }

  .cta-row .btn {
    flex: 1 1 auto;
    min-width: min(100%, 160px);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer nav {
    gap: 14px 18px;
  }
}

@media (max-width: 480px) {
  .nav-actions .btn {
    padding: 9px 12px;
    font-size: 13px;
  }

  .brand-logo {
    height: 38px;
  }

  .proof-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .product-header {
    flex-direction: column;
    gap: 10px;
  }

  .ph-title {
    font-size: 18px;
  }

  .cta-row .btn-lg {
    width: 100%;
    flex: 1 1 100%;
  }

  .id-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .section h2,
  .cta-banner h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .btn:hover {
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
