/* SourceA / Noetfield contract surfaces — institutional polish v2 */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #060b0e;
  --bg2: #0a1218;
  --panel: #0d1820;
  --panel2: #112530;
  --text: #eef6f7;
  --muted: #9eb0b8;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(125, 242, 194, 0.28);
  --accent: #7df2c2;
  --accent-dim: rgba(125, 242, 194, 0.12);
  --accent2: #9bbcff;
  --warn: #ffd166;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1160px;
  --section-y: clamp(56px, 8vw, 88px);
}

.theme-uk {
  --accent: #8ec5ff;
  --accent-dim: rgba(142, 197, 255, 0.12);
  --accent2: #7df2c2;
}

.theme-ca {
  --accent: #7df2c2;
  --accent-dim: rgba(125, 242, 194, 0.12);
  --accent2: #9bbcff;
}

.theme-nf {
  --accent: #c9b896;
  --accent-dim: rgba(201, 184, 150, 0.14);
  --accent2: #9bbcff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(125, 242, 194, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(155, 188, 255, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 11, 14, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.navin {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.navlinks {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.navlinks a:not(.btn) {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.navlinks a:not(.btn):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(125, 242, 194, 0.55);
  border-radius: 999px;
  padding: 13px 22px;
  color: #041014;
  background: linear-gradient(180deg, #9ef8d4 0%, var(--accent) 100%);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 32px rgba(125, 242, 194, 0.18);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(125, 242, 194, 0.24);
  filter: brightness(1.03);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  filter: none;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
}

/* Hero */
.hero {
  padding: clamp(48px, 10vw, 96px) 0 clamp(40px, 6vw, 72px);
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 62px);
  line-height: 1.02;
  margin: 0 0 20px;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero p.lead {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--muted);
  max-width: 640px;
  margin: 0;
  line-height: 1.65;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(17, 37, 48, 0.95), rgba(8, 16, 22, 0.88));
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-panel-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero-stat-row {
  display: grid;
  gap: 12px;
}

.hero-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.hero-stat b {
  font-size: 14px;
}

.hero-stat span {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.trustbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.metric {
  border: 1px solid var(--line);
  background: rgba(13, 24, 32, 0.72);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color 0.15s, background 0.15s;
}

.metric:hover {
  border-color: var(--line-strong);
  background: rgba(13, 24, 32, 0.9);
}

.metric b {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.45;
}

/* Sections */
.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin: 0 0 10px;
}

.section h2 {
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  font-weight: 800;
}

.section-head p,
.section > p {
  color: var(--muted);
  font-size: 17px;
  max-width: 780px;
  margin: 0;
  line-height: 1.65;
}

/* Cards */
.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 37, 48, 0.55), rgba(10, 18, 24, 0.75));
  border-radius: var(--radius-md);
  padding: 26px 24px;
  height: 100%;
  transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.card ul {
  padding-left: 18px;
  margin: 12px 0 0;
}

/* Flow steps */
.flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.step {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.025);
  min-height: 132px;
  position: relative;
}

.step small {
  color: var(--accent);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.step b {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.3;
}

.step span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.45;
}

/* Proof */
.proof-band {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  background: linear-gradient(135deg, var(--accent-dim), rgba(155, 188, 255, 0.06));
  margin-top: 8px;
}

.proofgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.proofmetric {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  background: rgba(0, 0, 0, 0.22);
}

.proofmetric b {
  display: block;
  font-size: clamp(28px, 4vw, 36px);
  color: var(--accent);
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1;
}

.proof-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.proofmetric span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.5;
}

.diagram {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 0;
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
  margin-top: 20px;
}

.diagram-head {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.diagram pre {
  margin: 0;
  padding: 22px 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-x: auto;
}

.diagram b {
  color: var(--accent2);
  font-weight: 700;
}

.reghook {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.reghook strong {
  color: var(--text);
}

/* Pills */
.pillrow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.03);
}

/* Demo grid (UK) */
.demogrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.democard {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.03);
}

.democard label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.democard strong {
  display: block;
  font-size: 24px;
  margin-top: 8px;
  color: var(--accent2);
  font-weight: 800;
}

.democard span {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

.demotag {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--warn);
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
}

/* Offer / contact */
.offer {
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, var(--accent-dim), rgba(155, 188, 255, 0.08));
  border-radius: calc(var(--radius-lg) + 4px);
  padding: clamp(28px, 5vw, 44px);
  box-shadow: var(--shadow);
}

.offer h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.offer > p {
  color: var(--muted);
  font-size: 17px;
  max-width: 720px;
}

.list {
  display: grid;
  gap: 10px;
  margin: 22px 0 28px;
}

.li {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
  align-items: flex-start;
}

.li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 900;
  flex-shrink: 0;
}

.note {
  font-size: 13px;
  color: #89a4ad;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 28px;
  line-height: 1.55;
}

.cta-strip {
  margin-top: 48px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 520px;
}

.proof-strip {
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: rgba(125, 242, 194, 0.06);
}

.proof-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.proof-strip strong {
  color: var(--text);
}

.proof-strip code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--accent2);
}

.buyer-path {
  padding: 28px clamp(20px, 4vw, 32px) 8px;
  border-top: 1px solid var(--line);
}

.buyer-path-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
}

.buyer-path-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.buyer-path-list a {
  color: var(--accent);
}

.diagram-svg {
  display: block;
  width: 100%;
  height: auto;
  padding: 16px;
}

.diagram-caption {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.eval-institutional-band {
  border-bottom: 1px solid rgba(4, 68, 65, 0.12);
  background: rgba(4, 68, 65, 0.04);
  padding: 12px 0;
  font-size: 0.9rem;
  color: var(--ar-text-muted);
  text-align: center;
}

.eval-institutional-band a {
  color: var(--ar-accent);
  font-weight: 600;
}

.eval-institutional-band code {
  font-family: var(--font-mono, monospace);
  font-size: 0.85em;
}

.contract-sku-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.contract-sku-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none !important;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}

.contract-sku-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.contract-sku-card em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

.decision-tree {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* Diligence scan table */
.scan-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 14px;
}

.scan-table th,
.scan-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.scan-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 30%;
}

.scan-table td {
  color: var(--text);
  line-height: 1.5;
}

.scan-table tr:last-child th,
.scan-table tr:last-child td {
  border-bottom: none;
}

/* Mobile sticky CTA */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 12px clamp(20px, 4vw, 32px) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(6, 11, 14, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-strong);
}

.mobile-cta .btn {
  width: 100%;
}

/* Footer */
.footer {
  padding: 40px 0 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footerin {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: -1;
  }

  .trustbar,
  .grid.two,
  .grid.three,
  .flow,
  .proofgrid,
  .demogrid {
    grid-template-columns: 1fr;
  }

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

  .navlinks a:not(.btn):not(.nav-cta-mobile) {
    display: none;
  }

  .nav-cta-mobile {
    display: inline-flex;
  }

  .mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 76px;
  }
}

@media (max-width: 560px) {
  .flow {
    grid-template-columns: 1fr;
  }

  .actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-strip .btn {
    width: 100%;
  }
}
