:root {
  --navy: #0A2540;
  --accent: #00D9C0;
  --purple: #6B4EFF;
  --bg: #F7F9FC;
  --text: #1A1A2E;

  /* Derived, contrast-safe tokens */
  --text-muted: #4a4a5e;          /* >=4.5:1 on --bg */
  --accent-on-dark: #2fe8d2;      /* brighter cyan, >=4.5:1 on --navy */
  --purple-on-dark: #b3a6ff;      /* lightened purple, >=4.5:1 on --navy */
  --card-bg: rgba(255, 255, 255, 0.62);
  --card-border: rgba(10, 37, 64, 0.10);
  --glass-dark-bg: rgba(255, 255, 255, 0.08);
  --glass-dark-border: rgba(255, 255, 255, 0.16);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --gutter: clamp(1rem, 4vw, 2rem);

  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow-glow-accent: 0 0 0 1px rgba(0, 217, 192, 0.5), 0 12px 40px -8px rgba(0, 217, 192, 0.45);
  --shadow-glow-purple: 0 0 0 1px rgba(107, 78, 255, 0.5), 0 12px 40px -8px rgba(107, 78, 255, 0.5);
  --shadow-card: 0 10px 30px -12px rgba(10, 37, 64, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

a { color: inherit; }

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

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); position: relative; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.btn-primary {
  /* navy->purple keeps white text >=4.5:1 across the whole gradient */
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy), var(--purple));
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow-accent); }
.btn-primary:focus-visible { box-shadow: var(--shadow-glow-purple); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 252, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--navy); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.brand-mark svg { display: block; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bar { display: block; height: 2px; width: 100%; background: var(--navy); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  position: absolute;
  inset: 66px 0 auto 0;
  background: rgba(247, 249, 252, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.primary-nav.open { max-height: 340px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0.5rem var(--gutter) 1.2rem; display: flex; flex-direction: column; gap: 0.25rem; }
.primary-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  padding: 0.4rem 0.2rem;
}
.primary-nav a:hover { color: var(--purple); }
.nav-cta {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--navy), var(--purple));
  border-radius: 999px;
  padding-inline: 1.2rem !important;
  justify-content: center;
  font-weight: 600;
}

/* ---------- Animated gradient blobs ---------- */
.blob-field { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  width: 42vw;
  max-width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.blob-a { top: -8%; left: -6%; background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%); animation: drift-a 22s ease-in-out infinite; }
.blob-b { top: 20%; right: -10%; background: radial-gradient(circle at 60% 40%, var(--purple), transparent 70%); animation: drift-b 26s ease-in-out infinite; }
.blob-c { bottom: -14%; left: 22%; background: radial-gradient(circle at 50% 50%, var(--accent), transparent 72%); opacity: 0.4; animation: drift-a 30s ease-in-out infinite reverse; }
.blob-field--muted .blob { opacity: 0.3; }

@keyframes drift-a { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(6%, 8%, 0) scale(1.12); } }
@keyframes drift-b { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-7%, 5%, 0) scale(1.08); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(4rem, 12vw, 8rem); background: linear-gradient(180deg, #eef2f9, var(--bg)); overflow: hidden; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--text-muted); max-width: 60ch; margin-bottom: 2rem; }

.trust-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem 1.4rem; padding: 0; margin: 2.5rem 0 0; }
.trust-strip li { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 500; color: var(--navy); }
.trust-dot { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--purple)); flex: none; }

/* ---------- Glass surfaces ---------- */
.glass {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* ---------- About ---------- */
.about-inner { display: grid; gap: 2rem; }
.credential { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--navy); background: rgba(107, 78, 255, 0.08); border: 1px solid rgba(107, 78, 255, 0.25); padding: 0.55rem 0.9rem; border-radius: 999px; margin-top: 0.5rem; }
.credential-badge { color: var(--purple); font-weight: 700; }
.about-panel { padding: clamp(1.4rem, 4vw, 2rem); display: grid; gap: 1.25rem; align-content: center; }
.stat { margin: 0; display: grid; gap: 0.15rem; }
.stat strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); }
.stat span { color: var(--text-muted); font-size: 0.95rem; }
.stat + .stat { padding-top: 1.25rem; border-top: 1px solid var(--card-border); }

/* ---------- Section heads ---------- */
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-lead { color: var(--text-muted); }

/* ---------- Services cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.card { padding: clamp(1.5rem, 4vw, 2rem); display: flex; flex-direction: column; gap: 0.4rem; transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow-purple); border-color: rgba(107, 78, 255, 0.4); }
.card-icon { color: var(--navy); margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); margin: 0; }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 1.5rem 1.5rem 1.5rem 1.5rem; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font-family: var(--font-head); font-weight: 700; color: #ffffff; background: linear-gradient(135deg, var(--navy), var(--purple)); margin-bottom: 0.75rem; }
.step h3 { margin-bottom: 0.25rem; }
.step p { color: var(--text-muted); margin: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #eaf1fb; overflow: hidden; }
.contact-inner { position: relative; z-index: 1; max-width: 640px; text-align: center; margin-inline: auto; }
.contact .eyebrow { color: var(--accent-on-dark); }
.contact h2 { color: #ffffff; }
.contact-lead { color: #c6d4e6; margin-bottom: 2rem; }
.contact-plain { margin-top: 1.5rem; color: #c6d4e6; }
.contact-email { color: var(--accent-on-dark); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: #061a2e; color: #b8c6d9; padding-block: 2.5rem; }
.footer-inner { display: grid; gap: 0.75rem; max-width: 720px; }
.footer-brand { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.1rem; margin: 0; }
.footer-compliance { font-size: 0.9rem; margin: 0; }
.footer-legal { font-size: 0.85rem; color: #8ea1b8; margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */
@media (min-width: 768px) {
  .about-inner { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 3rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .primary-nav { position: static; max-height: none; overflow: visible; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .primary-nav ul { flex-direction: row; align-items: center; gap: 0.5rem; padding: 0; }
  .primary-nav a { padding: 0.4rem 0.9rem; }
  .nav-cta { padding-block: 0.6rem !important; }
}

@media (min-width: 1440px) {
  :root { --maxw: 1200px; }
  h1 { font-size: 3.6rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .blob { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
