@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #F7F8FB;
  --white: #FFFFFF;
  --navy: #002468;
  --navy-soft: #0B3A8F;
  --ink: #1B2436;
  --blue: #0064FD;
  --blue-soft: #E6EFFE;
  --gold: #B8863C;
  --border: #E3E7EF;
  --mid: #66708A;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
h1, h2, h3, h4 { font-family: 'Sora', sans-serif; color: var(--navy); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Nav ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: rgba(247,248,251,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { height: 22px; width: auto; display: block; }
.logo-wordmark {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  color: var(--navy);
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.nav-link {
  font-size: 0.88rem;
  color: var(--mid);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a.nav-link:hover, .nav-links a.nav-link.active { color: var(--navy); }

.nav-cta {
  background: var(--blue);
  color: var(--white);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 11px 22px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--navy); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 1px; }

.mobile-menu {
  position: fixed; top: 61px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px 24px 32px;
  display: none; flex-direction: column; gap: 22px;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; color: var(--navy); text-decoration: none; font-weight: 500; }
.mobile-menu .nav-cta { align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 40px 80px;
  position: relative;
}
.hero.with-visual {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}
.hero-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 26px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--blue); }
.hero p.lede {
  font-size: 1.1rem;
  color: var(--mid);
  max-width: 540px;
  margin-bottom: 42px;
  line-height: 1.7;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 32px;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); }

.btn-ghost {
  color: var(--navy);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 32px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
  background: var(--white);
}
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-soft); }

/* ---------- Hero padlock (signature element) ---------- */
.hero-visual { display: flex; align-items: center; justify-content: center; perspective: 900px; position: relative; }
.hero-visual::before {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(36,84,232,0.14) 0%, transparent 72%);
  border-radius: 50%;
  animation: ambientGlow 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ambientGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.12); opacity: 1; }
}
.lock-wrap {
  width: min(320px, 80vw);
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out, filter 0.25s ease;
  transform: scale(var(--lockScale, 1)) rotateX(var(--tiltY, 0deg)) rotateY(var(--tiltX, 0deg));
  animation: lockFloat 3.6s ease-in-out infinite;
  cursor: pointer;
}
@keyframes lockFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
.lock-wrap.hovering { animation-play-state: paused; filter: drop-shadow(0 14px 30px rgba(36,84,232,0.35)); }
.lock-svg { width: 100%; height: auto; overflow: visible; }
.lock-pulse {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  opacity: 0;
  transform-origin: 100px 132px;
}
.lock-ring {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  opacity: 0;
  transform-origin: 100px 132px;
  transition: opacity 0.3s ease;
  animation: ringSpin 12s linear infinite;
}
.lock-wrap.hovering .lock-ring { opacity: 0.55; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.lock-shackle {
  fill: none;
  stroke: var(--navy);
  stroke-width: 11;
  stroke-linecap: round;
  transform-origin: 100px 96px;
  transition: stroke 0.25s ease, transform 0.35s cubic-bezier(.34,1.56,.64,1);
  animation: lockShut 1.1s cubic-bezier(.34,1.56,.64,1) 0.3s both;
}
.lock-wrap.hovering .lock-shackle { stroke: var(--blue); transform: translateY(-6px) rotate(-6deg); }
.lock-body { fill: var(--blue); transition: fill 0.25s ease; }
.lock-body-shade { fill: var(--navy); opacity: 0.16; }
.lock-keyhole { fill: var(--white); opacity: 0.92; }
.lock-keyhole-stem { fill: var(--white); opacity: 0.92; }

@keyframes lockShut {
  0% { transform: rotate(-38deg) translateX(-6px); }
  60% { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}
.lock-wrap.settled .lock-pulse { animation: lockPulse 1s ease-out 1.3s; }
@keyframes lockPulse {
  0% { opacity: 0.55; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.5); }
}
@media (prefers-reduced-motion: reduce) {
  .lock-shackle { animation: none; }
  .lock-wrap, .hero-visual::before { animation: none !important; transform: none !important; }
}
@media (max-width: 900px) {
  .hero.with-visual { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; margin-bottom: 12px; }
  .lock-wrap { width: 200px; margin: 0 auto; }
}

/* ---------- Ticker ---------- */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--white);
}
.ticker-inner {
  display: inline-block;
  animation: ticker 28s linear infinite;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.73rem;
  color: var(--mid);
  letter-spacing: 0.06em;
}
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- Section shell ---------- */
.section { padding: 96px 40px; max-width: 1120px; margin: 0 auto; }
.section.tight { padding-top: 0; }

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before { content: ''; width: 24px; height: 1.5px; background: var(--blue); display: inline-block; }
.section-label .ref { color: var(--mid); letter-spacing: 0.08em; margin-left: auto; font-size: 0.66rem; opacity: 0.7; }

.section h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.015em;
}
.section-sub { font-size: 1.02rem; color: var(--mid); max-width: 600px; margin-bottom: 52px; font-weight: 400; }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 12px 30px;
  padding: 26px 0 0;
  margin-top: 34px;
  border-top: 1px solid var(--border);
}
.trust-item {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.82rem; color: var(--navy); font-weight: 500;
}
.trust-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

/* ---------- Stat grid (soft cards, not hard trellis) ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 72px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
}
.stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem; font-weight: 700; color: var(--navy);
  line-height: 1; margin-bottom: 8px;
}
.stat-num.blue { color: var(--blue); }
.stat-label { font-size: 0.85rem; color: var(--mid); line-height: 1.5; }

/* ---------- Cards grid ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 34px 30px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 12px 28px -14px rgba(14,33,72,0.18); transform: translateY(-2px); }
.card-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.63rem; color: var(--blue);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px;
}
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.005em; }
.card p { font-size: 0.9rem; color: var(--mid); line-height: 1.7; margin-bottom: 22px; font-weight: 400; }
.card-price { font-family: 'Sora', sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.card-price span { font-size: 0.72rem; color: var(--mid); font-weight: 400; }
.card.featured { background: linear-gradient(180deg, var(--blue-soft), var(--white) 55%); border-color: #C9D9FB; }
.card.featured .card-tag { color: var(--gold); }

/* ---------- Deliverables / decision framework ---------- */
.deliverables { list-style: none; margin: 18px 0 26px; }
.deliverables li {
  font-size: 0.85rem; color: var(--mid); font-weight: 400;
  padding-left: 20px; position: relative; margin-bottom: 10px; line-height: 1.5;
}
.deliverables li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--blue);
}
.price-note { font-size: 0.78rem; color: var(--mid); margin-top: 20px; font-weight: 400; line-height: 1.6; }

.decision-table { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.decision-col { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 34px; }
.decision-col.highlight { background: linear-gradient(180deg, var(--blue-soft), var(--white) 60%); border-color: #C9D9FB; }
.decision-col h4 {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; color: var(--blue);
  letter-spacing: 0.03em; margin-bottom: 18px; text-transform: uppercase; font-weight: 500;
}
.decision-col ul { list-style: none; }
.decision-col li {
  font-size: 0.88rem; color: var(--mid); font-weight: 400;
  padding-left: 18px; position: relative; margin-bottom: 13px; line-height: 1.6;
}
.decision-col li::before { content: '-'; position: absolute; left: 0; color: var(--blue); }

/* ---------- Sector cards ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.sector-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 34px 30px; transition: box-shadow 0.2s, transform 0.2s; }
.sector-card:hover { box-shadow: 0 12px 28px -14px rgba(14,33,72,0.18); transform: translateY(-2px); }
.sector-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.sector-card p { font-size: 0.88rem; color: var(--mid); line-height: 1.7; font-weight: 400; }
.sector-card .card-tag { margin-bottom: 14px; }

/* ---------- Process list ---------- */
.process-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--white); }
.process-item { display: grid; grid-template-columns: 70px 1fr; border-bottom: 1px solid var(--border); padding: 30px 36px; align-items: start; transition: background 0.15s; }
.process-item:last-child { border-bottom: none; }
.process-item:hover { background: var(--paper); }
.process-num { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: var(--blue); padding-top: 4px; font-weight: 500; }
.process-content h4 { font-size: 1.06rem; font-weight: 600; margin-bottom: 7px; }
.process-content p { font-size: 0.9rem; color: var(--mid); line-height: 1.65; font-weight: 400; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.team-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 32px 28px; }
.team-role {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.63rem; color: var(--blue);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; font-weight: 500;
}
.team-card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 9px; }
.team-card p { font-size: 0.87rem; color: var(--mid); line-height: 1.65; font-weight: 400; }

/* ---------- Layers (solution) ---------- */
.layers { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--white); margin-bottom: 24px; }
.layer { display: grid; grid-template-columns: 54px 1fr; padding: 26px 34px; border-bottom: 1px solid var(--border); align-items: center; }
.layer:last-child { border-bottom: none; }
.layer-num { font-family: 'IBM Plex Mono', monospace; color: var(--blue); font-size: 0.86rem; font-weight: 500; }
.layer h4 { font-size: 1.02rem; font-weight: 600; margin-bottom: 3px; }
.layer p { font-size: 0.85rem; color: var(--mid); font-weight: 400; }

/* ---------- Vision block ---------- */
.vision-block { border-left: 3px solid var(--blue); padding: 6px 0 6px 30px; margin: 36px 0; }
.vision-block p { font-size: 1.35rem; font-weight: 600; line-height: 1.5; color: var(--navy); font-family: 'Sora', sans-serif; }
.vision-block p.sub { font-size: 1rem; color: var(--mid); font-weight: 400; margin-top: 14px; font-family: 'Inter', sans-serif; }

/* ---------- CTA block ---------- */
.cta-block {
  background: var(--navy);
  border-radius: 18px;
  padding: 72px 56px;
  text-align: center;
  margin: 0 40px;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(36,84,232,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.cta-block h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; margin-bottom: 14px; color: var(--white); }
.cta-block p { color: #B7C2DE; font-size: 1rem; margin-bottom: 36px; font-weight: 400; }
.cta-block .btn-primary { background: var(--white); color: var(--navy); }
.cta-block .btn-primary:hover { background: var(--blue-soft); }
.cta-note { margin-top: 18px; font-size: 0.8rem; color: #8494B8; font-family: 'IBM Plex Mono', monospace; }

/* ---------- Footer ---------- */
footer {
  padding: 36px 40px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 80px; flex-wrap: wrap; gap: 16px;
}
footer .logo-wordmark { font-size: 0.9rem; }
footer p { font-size: 0.8rem; color: var(--mid); font-family: 'IBM Plex Mono', monospace; }
footer .footer-links { display: flex; gap: 24px; }
footer .footer-links a { font-size: 0.85rem; color: var(--mid); text-decoration: none; font-weight: 500; }
footer .footer-links a:hover { color: var(--navy); }

/* ---------- Risk calculator ---------- */
.calc-box { border: 1px solid var(--border); border-radius: 14px; background: var(--white); padding: 44px; }
.calc-question { margin-bottom: 30px; }
.calc-question:last-of-type { margin-bottom: 0; }
.calc-question p { font-size: 0.95rem; margin-bottom: 14px; font-weight: 600; color: var(--navy); }
.calc-options { display: flex; gap: 10px; flex-wrap: wrap; }
.calc-opt {
  background: var(--paper); border: 1px solid var(--border); color: var(--mid);
  font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 500;
  padding: 10px 18px; border-radius: 7px; cursor: pointer; transition: all 0.15s;
}
.calc-opt:hover { border-color: var(--blue); color: var(--navy); }
.calc-opt.selected { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.calc-result { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--border); display: none; }
.calc-result.show { display: block; }
.calc-score { font-family: 'Sora', sans-serif; font-size: 2.8rem; font-weight: 700; color: var(--blue); }
.calc-score span { font-size: 1.1rem; color: var(--mid); }
.calc-verdict { font-size: 1rem; color: var(--ink); margin: 12px 0 22px; max-width: 480px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form-col, .contact-info-col {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 44px;
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block; font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem;
  color: var(--mid); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 9px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--paper); border: 1px solid var(--border); border-radius: 8px;
  color: var(--ink); font-family: 'Inter', sans-serif; font-size: 0.95rem; padding: 13px 15px;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  background: var(--blue); color: var(--white); font-family: 'Sora', sans-serif; font-weight: 600;
  font-size: 0.95rem; padding: 15px 32px; border: none; border-radius: 8px; cursor: pointer; width: 100%;
}
.form-submit:hover { background: var(--navy); }
.form-note { font-size: 0.8rem; color: var(--mid); margin-top: 14px; }

.info-item { margin-bottom: 30px; }
.info-item:last-child { margin-bottom: 0; }
.info-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: var(--blue); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 9px; }
.info-item p { font-size: 1rem; color: var(--navy); font-weight: 500; }
.info-item p.mid-text { color: var(--mid); font-size: 0.9rem; font-weight: 400; margin-top: 4px; }

/* ---------- Two-col generic ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .decision-table { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .nav-links .nav-link { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  nav { padding: 14px 20px; }
  .hero { padding: 100px 20px 56px; }
  .section { padding: 56px 20px; }
  .cta-block { padding: 46px 24px; margin: 0 20px; border-radius: 14px; }
  footer { padding: 28px 20px; flex-direction: column; text-align: center; }
  .process-item { grid-template-columns: 1fr; padding: 24px 22px; }
  .card { padding: 26px 22px; }
  .layer { grid-template-columns: 1fr; gap: 6px; padding: 22px; }
  .calc-box { padding: 26px 18px; }
  .contact-form-col, .contact-info-col { padding: 28px 22px; }
}