:root {
  --blue: #2f75b8;
  --blue-light: #4a9be0;
  --teal: #76ae9f;
  --teal-light: #9fd6c6;
  --navy: #14244a;
  --ink: #0a1020;
  --dark: #060a14;
  --text: #2a3346;
  --muted: #6b7489;
  --line: #e6e9f0;
  --bg-soft: #f5f8fb;
  --radius: 16px;
  --grad: linear-gradient(90deg, var(--blue-light), var(--teal-light));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: "Montserrat", sans-serif; color: var(--navy); line-height: 1.2; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: 100px 0; }
.center { text-align: center; }
.light { color: #fff !important; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: "✦"; color: var(--teal); }
.eyebrow.center { display: flex; justify-content: center; }
.eyebrow.light { color: var(--teal-light); }
h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 20px; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  font-family: inherit;
}
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; box-shadow: 0 8px 24px rgba(47,117,184,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(47,117,184,.5); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { height: 54px; width: auto; }
.brand-word { height: 30px; width: auto; filter: brightness(0) invert(1); transition: filter .3s; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) { color: rgba(255,255,255,.85); font-weight: 500; font-size: 15px; position: relative; transition: color .2s; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad); transition: width .25s; }
.nav-links a:not(.btn):hover::after { width: 100%; }
.site-header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); box-shadow: 0 2px 20px rgba(10,16,32,.08); }
.site-header.scrolled .brand-word { filter: none; }
.site-header.scrolled .nav-links a:not(.btn) { color: var(--navy); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }
.site-header.scrolled .menu-toggle span { background: var(--navy); }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: var(--dark); color: #fff; overflow: hidden; padding: 130px 0 60px; }
.hero-bg { position: absolute; inset: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: float 14s ease-in-out infinite; }
.orb-1 { width: 520px; height: 520px; background: var(--blue); top: -120px; left: -100px; }
.orb-2 { width: 460px; height: 460px; background: var(--teal); bottom: -160px; right: -80px; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: #1b3f7a; top: 40%; left: 55%; animation-delay: -9s; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,-30px); } }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
#sparks { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content { position: relative; text-align: center; }
.hero-mark { width: clamp(110px, 14vw, 150px); margin: 0 auto 32px; filter: drop-shadow(0 0 24px rgba(118,174,159,.5)); animation: pulse 4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.hero h1 { color: #fff; font-size: clamp(36px, 6.5vw, 76px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 28px; }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-bottom: 40px; }
.hero-tags li { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.hero-tags li::before { content: "✦ "; color: var(--teal-light); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 72px; }
.trusted-label { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: scroll 30s linear infinite; }
.marquee-track span { font-family: "Montserrat"; font-weight: 700; font-size: 20px; letter-spacing: .12em; color: rgba(255,255,255,.4); white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.about-copy p { margin-bottom: 18px; font-size: 17px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.stats strong { display: block; font-family: "Montserrat"; font-size: 40px; font-weight: 800; background: var(--grad); background-image: linear-gradient(90deg, var(--blue), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { font-size: 14px; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy), #1d4f8a 60%, #3d7f78); color: #fff; text-align: center; padding: 72px 0; }
.cta-band h3 { color: #fff; font-size: clamp(22px, 3vw, 32px); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.75); margin-bottom: 28px; }

/* Services */
.services { background: var(--bg-soft); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 32px; transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden; }
.step::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--blue), var(--teal)); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.step:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(20,36,74,.12); border-color: transparent; }
.step:hover::before { transform: scaleX(1); }
.step-num { position: absolute; top: 24px; right: 28px; font-family: "Montserrat"; font-size: 48px; font-weight: 800; color: rgba(47,117,184,.1); }
.step-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(47,117,184,.12), rgba(118,174,159,.18)); color: var(--blue); margin-bottom: 24px; }
.step-icon svg { width: 28px; height: 28px; }
.step h3 { font-size: 22px; margin-bottom: 12px; }
.step .lead { font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.step p { color: var(--muted); margin-bottom: 20px; }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; font-size: 15px; }
.checks li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(118,174,159,.2); color: #3e8a76; font-size: 12px; font-weight: 700; display: grid; place-items: center; }

/* Solutions */
.solutions { background: var(--ink); position: relative; overflow: hidden; }
.solutions::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: var(--blue); filter: blur(160px); opacity: .25; top: -200px; right: -200px; }
.roles { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.role { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 32px 26px; transition: background .3s, transform .3s, border-color .3s; }
.role:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); border-color: rgba(118,174,159,.5); }
.role h4 { color: #fff; font-size: 20px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.role ul { list-style: none; display: grid; gap: 12px; }
.role li { color: rgba(255,255,255,.72); font-size: 15px; padding-left: 20px; position: relative; }
.role li::before { content: "✦"; position: absolute; left: 0; color: var(--teal-light); font-size: 11px; top: 4px; }

/* Certs */
.certs { padding: 56px 0; border-bottom: 1px solid var(--line); }
.certs-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 56px; }
.certs-row .eyebrow { margin: 0; }
.cert { display: flex; align-items: center; gap: 16px; }
.badge { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--blue); display: grid; place-items: center; font-family: "Montserrat"; font-weight: 800; color: var(--blue); font-size: 14px; }
.cert strong { display: block; color: var(--navy); }
.cert span { font-size: 14px; color: var(--muted); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.quote { background: var(--bg-soft); border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column; gap: 20px; transition: transform .3s; }
.quote:hover { transform: translateY(-4px); }
.stars { color: #f5b301; letter-spacing: 3px; }
.quote blockquote { font-size: 17px; color: var(--text); flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: "Montserrat"; }
.quote figcaption strong { display: block; color: var(--navy); }
.quote figcaption span { font-size: 14px; color: var(--muted); }

/* Insights */
.insights { background: var(--bg-soft); }
.insights-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; }
.link-arrow { color: var(--blue); font-weight: 600; font-size: 15px; transition: color .2s; }
.link-arrow:hover { color: var(--teal); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.post { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; padding-bottom: 28px; }
.post:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(20,36,74,.1); }
.post-img { height: 190px; margin-bottom: 22px; position: relative; }
.post-img::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; color: rgba(255,255,255,.7); }
.p1 { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.p2 { background: linear-gradient(135deg, var(--blue), var(--teal)); }
.p3 { background: linear-gradient(135deg, #2b5f58, var(--navy)); }
.p4 { background: linear-gradient(135deg, #1d4f8a, #5a9c8d); }
.p5 { background: linear-gradient(135deg, var(--teal), var(--navy)); }
.p6 { background: linear-gradient(135deg, #0f1a36, #2f75b8 70%, #76ae9f); }
.post { display: flex; flex-direction: column; }
.post-img { display: block; }
.post-cat { position: absolute; top: 16px; left: 16px; z-index: 1; background: rgba(255,255,255,.92); color: var(--navy); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.post time, .post h3, .post .link-arrow, .post-excerpt { margin-inline: 26px; display: block; }
.post time { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.post h3 { font-size: 19px; margin-bottom: 10px; }
.post h3 a:hover { color: var(--blue); }
.post-excerpt { color: var(--muted); font-size: 15px; margin-bottom: 18px; flex: 1; }

/* Subpages */
.nav-links a.active { color: var(--blue) !important; }
.page-hero { background: var(--ink); color: #fff; padding: 150px 0 80px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--blue); filter: blur(150px); opacity: .35; top: -200px; right: -120px; }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 56px); font-weight: 800; margin-bottom: 16px; max-width: 820px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 18px; max-width: 640px; }
.article-hero::before { display: none; }
.article-hero h1 { font-size: clamp(28px, 4.2vw, 46px); }
.narrow { width: min(800px, 100% - 32px); }
.back-link { display: table; color: rgba(255,255,255,.8); font-weight: 500; margin-bottom: 28px; }
.back-link:hover { color: #fff; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-size: 15px; }
.article-meta .avatar { width: 36px; height: 36px; font-size: 14px; background: rgba(255,255,255,.2); }
.article-body { font-size: 18px; line-height: 1.8; color: var(--text); }
.article-body p, .article-body ul { margin-bottom: 22px; }
.article-body h2 { font-size: 26px; margin: 40px 0 14px; }
.article-body ul { padding-left: 22px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--navy); }
.article-body blockquote { margin: 32px 0; padding: 20px 28px; border-left: 4px solid var(--teal); background: var(--bg-soft); border-radius: 0 12px 12px 0; font-family: "Montserrat"; font-weight: 600; font-size: 20px; color: var(--navy); line-height: 1.5; }
.share { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.btn-ghost-dark { background: transparent; border-color: var(--line); color: var(--navy); }
.btn-ghost-dark:hover { border-color: var(--blue); color: var(--blue); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters button { font: inherit; font-size: 14px; font-weight: 600; padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; transition: .2s; }
.filters button:hover { border-color: var(--blue); }
.filters button[aria-selected="true"] { background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; border-color: transparent; }
.subscribe { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; max-width: 520px; margin: 0 auto; }
.subscribe input { flex: 1 1 240px; font: inherit; padding: 13px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; outline: none; }
.subscribe input::placeholder { color: rgba(255,255,255,.6); }
.cta-band .form-note { margin-top: 16px; margin-bottom: 0; }

/* Contact */
.contact { background: var(--ink); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: var(--teal); filter: blur(160px); opacity: .2; bottom: -200px; left: -150px; }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.muted-light { color: rgba(255,255,255,.7); font-size: 17px; margin-bottom: 28px; }
.contact-list { list-style: none; display: grid; gap: 10px; color: rgba(255,255,255,.85); }
.contact-form { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 36px; display: grid; gap: 18px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500; }
.contact-form input, .contact-form textarea { font: inherit; padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; outline: none; transition: border-color .2s; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--teal-light); }
.contact-form .btn { justify-self: start; }
.form-note { color: var(--teal-light); font-weight: 600; }

/* Footer */
.footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 18px; background: #fff; padding: 8px 14px; border-radius: 10px; box-sizing: content-box; }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-grid a { display: block; margin-bottom: 10px; font-size: 15px; transition: color .2s; }
.footer-grid a:hover { color: var(--teal-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; font-size: 14px; }

.to-top { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; display: grid; place-items: center; font-size: 20px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 40; box-shadow: 0 8px 24px rgba(47,117,184,.4); }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .roles { grid-template-columns: repeat(2, 1fr); }
  .steps, .quotes, .posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 88px 0 auto; flex-direction: column; gap: 0; align-items: stretch;
    background: #fff; padding: 12px 16px 24px; box-shadow: 0 20px 40px rgba(0,0,0,.15);
    transform: translateY(-120%); transition: transform .35s; z-index: -1;
  }
  .nav-links.open { transform: none; }
  .nav-links a:not(.btn) { color: var(--navy) !important; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links .btn { margin-top: 16px; justify-content: center; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps, .quotes, .posts, .roles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; gap: 16px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .page-hero { padding: 120px 0 56px; }
  .article-body { font-size: 17px; }
  .article-body blockquote { font-size: 18px; padding: 16px 20px; }
  .subscribe .btn { width: 100%; justify-content: center; }
}
