:root {
  --bg-primary: #05070A;
  --bg-secondary: #0D1117;
  --bg-section: #101820;
  --navy: #071C3F;
  --royal: #0D47C7;
  --accent: #2D6DFF;
  --steel: #9099A6;
  --lightgrey: #D6DCE5;
  --card-bg: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg-primary);
  color: var(--lightgrey);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4, .brand-name { font-family: 'Plus Jakarta Sans', sans-serif; color: #fff; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .wrap { padding: 0 2.5rem; } }
.wrap-narrow { max-width: 720px; }
.center { text-align: center; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-accent { color: var(--accent); width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 2rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(90deg, #0D47C7, #2D6DFF); color: #fff; border: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(45,109,255,0.45); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.14); }
.btn-outline:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.04); }

/* ---------- Header / Nav ---------- */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
#site-header.scrolled { background: rgba(13,17,23,0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: rgba(255,255,255,0.06); }
.nav-wrap { max-width: 1280px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
@media (min-width: 768px) { .nav-wrap { padding: 1rem 2.5rem; } }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0D47C7, #2D6DFF); color: #fff; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif;
}
.brand-name { font-weight: 700; font-size: 1.05rem; }
.nav-links { display: none; gap: 2rem; }
.nav-links a { font-size: 0.9rem; color: rgba(255,255,255,0.75); position: relative; transition: color .25s ease; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0%; background: var(--accent); transition: width .25s ease; }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: none; }
#menu-toggle { background: none; border: none; color: #fff; cursor: pointer; display: flex; }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  #menu-toggle { display: none; }
}
#mobile-menu {
  display: none; flex-direction: column; gap: 1rem; margin: 0 1rem 1rem; padding: 1.25rem 1.5rem; border-radius: 1rem;
  background: rgba(13,17,23,0.92); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.08);
}
#mobile-menu.open { display: flex; }
#mobile-menu a { color: #fff; font-size: 0.95rem; }
#mobile-menu .btn { text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, #071C3F 0%, #05070A 55%);
  padding: 11rem 0 7rem;
}
.hero-grid-fade {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 30%, transparent 80%);
}
.glow { position: absolute; border-radius: 9999px; filter: blur(90px); pointer-events: none; }
.glow-hero { width: 520px; height: 520px; background: rgba(45,109,255,0.2); top: -160px; left: 50%; transform: translateX(-50%); }
.glow-cta { width: 380px; height: 380px; background: rgba(45,109,255,0.15); top: -40px; left: 30%; }
.hero-network { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.4; }
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; padding: 0 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 500; color: var(--steel); margin-bottom: 1.5rem; }
.eyebrow-accent { color: var(--accent); font-weight: 600; }
.eyebrow.center, h2.center { display: block; text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.12; }
.hero-sub { max-width: 640px; margin: 1.5rem auto 0; color: var(--steel); font-size: 1.05rem; line-height: 1.7; }
.hero-actions { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; justify-content: center; } }
.scroll-indicator { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: var(--steel); animation: bounce 2s infinite; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ---------- Sections ---------- */
.section { padding: 7rem 0; }
.section-alt { background: var(--bg-section); }
.section-head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.section-head h2, .about h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; margin-top: 1rem; }
.two-col { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }
.muted { color: var(--steel); }
.muted.small { font-size: 0.9rem; }
.about p { margin-top: 1.5rem; line-height: 1.75; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 1rem; padding: 1.75rem;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(45,109,255,0.45); background: rgba(255,255,255,0.06); }
.card h3 { margin-top: 1rem; font-size: 1.05rem; font-weight: 700; }
.card p { margin-top: 0.75rem; }
.service-icon-wrap, .why-icon-wrap {
  width: 48px; height: 48px; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0D47C7, #2D6DFF); margin-bottom: 1.25rem;
}
.why-icon-wrap { border-radius: 999px; margin: 0 auto 1.25rem; }
.card.center-text { text-align: center; }
.service-learn { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-top: 1.25rem; opacity: 0; transition: opacity .25s ease; }
.card:hover .service-learn { opacity: 1; }

.industry-card { display: flex; align-items: center; gap: 0.75rem; }
.industry-card span { font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.9); }

.solution-card { display: flex; gap: 1rem; }
.solution-card .icon { flex-shrink: 0; margin-top: 0.2rem; }

.insight-card { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.insight-tag { font-size: 0.75rem; font-weight: 600; color: var(--accent); }
.insight-title { margin-top: 0.75rem; font-weight: 700; line-height: 1.4; }
.insight-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.5rem; }
.insight-foot span { font-size: 0.75rem; color: var(--steel); }

/* ---------- Stats ---------- */
.stats-section { padding: 5rem 0; background: linear-gradient(90deg, #071C3F, #05070A); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; text-align: center; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(6, 1fr); } }
.stat-num { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; }
.stat-label { font-size: 0.8rem; margin-top: 0.5rem; color: var(--steel); }

/* ---------- Testimonials ---------- */
.testimonials h2 { margin-top: 1rem; }
.testimonial-slider { position: relative; min-height: 220px; margin-top: 3rem; display: flex; align-items: center; justify-content: center; }
.testimonial-item {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .7s ease; pointer-events: none; text-align: center; padding: 0 1rem;
}
.testimonial-item.active { opacity: 1; pointer-events: auto; }
.testimonial-item p { font-size: 1.1rem; max-width: 620px; margin-top: 1.25rem; color: rgba(255,255,255,0.9); line-height: 1.7; }
.testimonial-item .t-name { margin-top: 1.5rem; font-weight: 700; color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; }
.testimonial-item .t-role { font-size: 0.85rem; color: var(--steel); }
.dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.dot { height: 8px; width: 8px; border-radius: 999px; background: rgba(255,255,255,0.15); border: none; cursor: pointer; transition: all .3s ease; }
.dot.active { width: 28px; background: var(--accent); }

/* ---------- CTA ---------- */
.cta-section { position: relative; overflow: hidden; padding: 7rem 0; text-align: center; background: radial-gradient(ellipse 70% 100% at 50% 100%, #071C3F 0%, #05070A 60%); }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { margin-bottom: 2rem; }
.cta-section .btn { margin-top: 0.5rem; }

/* ---------- Footer ---------- */
footer { background: var(--bg-secondary); border-top: 1px solid rgba(255,255,255,0.06); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 1.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); padding: 4rem 2.5rem; } }
footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel); margin-bottom: 1rem; }
.footer-links li { margin-bottom: 0.75rem; font-size: 0.9rem; }
.footer-links a { color: rgba(255,255,255,0.75); transition: color .25s ease; }
.footer-links a:hover { color: #fff; }
.social-row { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.social-icon { width: 36px; height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--card-bg); border: 1px solid var(--card-border); }
.social-icon .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; color: rgba(255,255,255,0.8); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 1.5rem; text-align: center; font-size: 0.8rem; color: var(--steel); }

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; width: 44px; height: 44px; border-radius: 999px; border: none;
  display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 40;
  background: linear-gradient(90deg, #0D47C7, #2D6DFF); color: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
#back-to-top.visible { display: flex; }
#back-to-top:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(45,109,255,0.45); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
