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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

:root {
  /* Surfaces */
  --paper: #ffffff;
  --paper-2: #f4f6fd;
  --paper-3: #e2e7f7;

  /* Text */
  --ink: #282828;
  --ink-2: #4a4f62;
  --ink-3: #8a8fa8;
  --ink-4: #b8bbca;

  /* Brand */
  --blue: #2F4AC7;
  --blue-2: #4560d4;
  --blue-pale: #eaedfa;

  /* Heading */
  --heading: #101942;

  /* Accent colours */
  --forest: #1a6647;
  --forest-pale: #ddf0e8;
  --teal: #0d7c8f;
  --teal-pale: #d9f2f5;
  --amber: #a05c00;
  --amber-pale: #fef3e2;
    /* Homepage legacy aliases — ember = blue for this page */
  --ember:#2F4AC7;
  --ember-2:#4560d4;
  --ember-pale:#eaedfa;
  --slate:#101942;
  --slate-pale:#dce4ed;

  /* Dark */
  --night: #1a2035;

  /* Type */
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'Courier New', Courier, monospace;

  /* Layout */
  --max: 1160px;
  --prose: 720px;
  --r: 4px;
  --r-lg: 10px;
  --article-width: 800px;

  --code-bg: #0f1624;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
.display {
  font-family: var(--serif);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--heading);
  font-variant-ligatures: no-common-ligatures;
  font-feature-settings: "liga" 0, "clig" 0;
  margin-bottom: 0.5em;
}

.label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.label-accent {
  color: var(--blue);
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section {
  padding: 6rem 0;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 13px 26px;
  border-radius: var(--r);
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-2);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--paper-3);
}

.btn-outline:hover {
  border-color: var(--ink-3);
  transform: translateY(-1px);
}

/* Shared light/white-border button base */
.btn-outline-white,
.btn-outline-light,
.btn-ghost-light {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline-white:hover,
.btn-outline-light:hover,
.btn-ghost-light:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.92);
}

/* ── NAV ────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-3);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-logo span {
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--ink-2);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.active {
  color: var(--blue);
  font-weight: 500;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ink);
}

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
  border-bottom: 1px solid var(--paper-3);
  padding: 0.9rem 0;
}

.breadcrumb-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-3);
}

.breadcrumb-inner a {
  color: var(--ink-3);
  transition: color 0.15s;
}

.breadcrumb-inner a:hover {
  color: var(--blue);
}

.breadcrumb-inner .sep {
  color: var(--ink-4);
}

.breadcrumb-inner .current {
  color: var(--ink-2);
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── PROBLEM SECTION (dark) ─────────────────────────────────── */
.problem {
  background: var(--night);
  padding: 6rem 0;
}

.problem .display {
  color: #ffffff;
}

.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.problem-left h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.problem-left h2 em {
  font-style: italic;
  color: var(--blue-2);
}

.problem-intro {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.problem-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.problem-card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-lg);
  padding: 1.75rem 2rem;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
}

.problem-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.problem-card-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.18);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.problem-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.problem-card-body {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.60);
  line-height: 1.75;
}

/* ── HOW-WE-WORK STEPS ──────────────────────────────────────── */
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--paper-3);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.how-step {
  background: var(--paper);
  padding: 2.5rem 2rem;
}

.how-step-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--blue-pale);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.how-step-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.6rem;
}

.how-step-body {
  font-size: 0.82rem;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ── FEATURE CARDS ──────────────────────────────────────────── */
.feature-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

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

.feature-card {
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: all 0.2s;
}

.feature-card:hover {
  background: var(--paper);
  border-color: var(--blue);
  box-shadow: 0 6px 24px rgba(47, 74, 199, 0.07);
}

.feature-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--heading);
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq {
  background: var(--paper-2);
  padding: 6rem 0;
}

.faq-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.faq-header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}

.faq-header h2 em {
  font-style: italic;
  color: var(--blue);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 4rem;
}

.faq-item {
  border-top: 1px solid var(--paper-3);
  padding: 1.5rem 0;
}

.faq-q {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.6rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  user-select: none;
}

.faq-q::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--ink-3);
  flex-shrink: 0;
  transition: transform 0.2s;
  margin-top: -1px;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin 0.2s;
}

.faq-item.open .faq-a {
  max-height: 300px;
}

/* ── CTA SECTION ────────────────────────────────────────────── */
.cta-section {
  background: var(--night);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(47, 74, 199, 0.12);
  pointer-events: none;
}

.cta-section .display {
  color: #ffffff;
}

.cta-label {
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
}

.cta-headline {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  color: #fff;
  max-width: 680px;
  margin: 0 auto 1.25rem;
}

.cta-headline em {
  font-style: italic;
  color: var(--blue-2);
}

.cta-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-note {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ── TRUST / CREDIBILITY ────────────────────────────────────── */
.trust {
  background: var(--paper-2);
}

.trust-header {
  text-align: center;
  margin-bottom: 4rem;
}

.trust-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.trust-headline em {
  font-style: italic;
  color: var(--blue);
}

.trust-intro {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.8;
  max-width: 520px;
  margin: 1rem auto 0;
}

.trust-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.trust-pillar {
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.trust-pillar-logo {
  height: 52px;
  display: flex;
  align-items: center;
}

.trust-pillar-logo img,
.trust-pillar-logo svg {
  height: 100%;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.trust-pillar-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.4rem;
}

.trust-pillar-body {
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.7;
}

/* Logo marquee */
.logo-marquee-wrap {
  border-top: 1px solid var(--paper-3);
  padding-top: 3rem;
}

.logo-marquee-label {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-marquee {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.logo-marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: marquee 32s linear infinite;
}

.logo-marquee-inner:hover {
  animation-play-state: paused;
}

.logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 2.5rem;
  height: 56px;
  border-right: 1px solid var(--paper-3);
}

.logo-item:first-child {
  border-left: 1px solid var(--paper-3);
}

.logo-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-3);
  letter-spacing: -0.01em;
  transition: color 0.2s;
  white-space: nowrap;
}

.logo-marquee-inner:hover .logo-text {
  color: var(--ink-2);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--night);
  color: rgba(247, 244, 239, 0.35);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
}

.footer-brand-desc {
  font-size: 0.82rem;
  color: rgba(247, 244, 239, 0.3);
  line-height: 1.75;
  max-width: 260px;
  margin-bottom: 1.5rem;
}

.footer-trust {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-trust span {
  font-size: 0.75rem;
  color: rgba(247, 244, 239, 0.25);
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.25);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(247, 244, 239, 0.4);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: rgba(247, 244, 239, 0.8);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(247, 244, 239, 0.25);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.75rem;
  color: rgba(247, 244, 239, 0.25);
  transition: color 0.15s;
}

.footer-bottom-links a:hover {
  color: rgba(247, 244, 239, 0.5);
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── MOBILE NAV DRAWER ──────────────────────────────────────── */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
}

.nav-drawer.open {
  display: block!important;
}

.nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 25, 66, 0.4);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.2s ease;
}

.nav-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-3);
  box-shadow: 0 8px 32px rgba(16, 25, 66, 0.12);
  animation: slideDown 0.22s ease;
  padding: 1rem 1.5rem 1.5rem;
}

.nav-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  margin-bottom: 0.75rem;
}

.nav-drawer-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--heading);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-drawer-logo span {
  color: var(--blue);
}

.nav-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.15s;
}

.nav-drawer-close:hover {
  background: var(--paper-2);
}

.nav-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.nav-drawer-links li a {
  display: block;
  padding: 0.875rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--paper-3);
  transition: color 0.15s;
}

.nav-drawer-links li:last-child a {
  border-bottom: none;
}

.nav-drawer-links li a:hover,
.nav-drawer-links li a.active {
  color: var(--blue);
}

.nav-drawer-cta {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: center;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
  margin-top: 0.25rem;
}

.nav-drawer-cta:hover {
  opacity: 0.88;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .inner,
  .nav-inner,
  .breadcrumb-inner {
    padding: 0 1.5rem;
  }

  .nav-links,
  .nav-right {
    display: none;
  }

  .nav-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .problem-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .how-steps {
    grid-template-columns: 1fr 1fr;
  }

  .feature-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .trust-pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 4rem 0;
  }

  .feature-grid-3,
  .feature-grid-2,
  .how-steps {
    grid-template-columns: 1fr;
  }

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

  .nav-right .btn {
    display: none;
  }
}