:root {
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --primary-light: #4ade80;
  --accent: #22c55e;
  --bg: #0b1220;
  --bg-alt: #0e172a;
  --card: #111d33;
  --card-hover: #16243e;
  --border: #1e293b;
  --text: #e5e7eb;
  --text-muted: #94a3b8;
  --light-bg: #ffffff;
  --light-card: #eafaf0;
  --light-border: #dcf2e4;
  --text-dark: #17233d;
  --text-muted-dark: #64748b;
  --radius: 14px;
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

h1, h2, h3, h4, .logo, .btn { font-family: 'Montserrat', -apple-system, sans-serif; }
h1, h2 { font-weight: 800; letter-spacing: -0.5px; }
h3, h4 { font-weight: 700; }
.eyebrow, .btn, .pill, .nav-cta, .main-nav > ul > li > a { font-weight: 600; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

/* Light (white) section variant — alternates with dark sections like the reference */
.section-light { background: var(--light-bg); color: var(--text-dark); }
.section-light .eyebrow { color: var(--primary-dark); }
.section-light .section-head p { color: var(--text-muted-dark); }
.section-light h2, .section-light h3, .section-light h4 { color: var(--text-dark); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.eyebrow {
  display: inline-block;
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { font-size: 2.1rem; margin-bottom: 12px; }
.section-head p { color: var(--text-muted); font-size: 1.02rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #08210f;
  box-shadow: 0 8px 24px rgba(163, 230, 53, .25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(163, 230, 53, .35); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); }

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

/* Above-the-fold hero content: CSS-only entrance, never gated behind JS/observer state */
.hero-fade { opacity: 0; transform: translateY(16px); animation: heroFadeIn .7s ease forwards; }
@keyframes heroFadeIn { to { opacity: 1; transform: translateY(0); } }

/* ---------- Header ---------- */
header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
header.site-header.scrolled {
  background: rgba(11, 18, 32, .92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,.35);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; }
.logo .mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #06251f; font-weight: 900;
}
.logo span.logo-dot { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  font-weight: 500;
  font-size: .93rem;
  border-radius: 8px;
  color: var(--text);
  transition: color .2s, background .2s;
}
.main-nav > ul > li > a:hover { color: var(--primary-light); background: rgba(255,255,255,.04); }
.caret { font-size: .65rem; transition: transform .2s; opacity: .7; }
.main-nav > ul > li.has-dropdown:hover .caret { transform: rotate(180deg); }

.mega {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (min-width: 761px) {
  .mega {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 620px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
  }
  .main-nav > ul > li.has-dropdown:hover .mega {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  }
}
.mega .col h4 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--primary-light); margin-bottom: 10px;
}
.mega .col li a { display: block; padding: 5px 0; font-size: .86rem; color: var(--text-muted); }
.mega .col li a:hover { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); background: transparent; cursor: pointer; }
.hamburger span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; transition: transform .2s, opacity .2s; }
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto -10%;
  height: 700px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(34,197,94,.28), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.hero-sub { color: var(--primary-light); font-weight: 600; letter-spacing: 1px; margin-bottom: 14px; font-size: .95rem; }
.hero h1 { font-size: 3.2rem; line-height: 1.15; margin-bottom: 20px; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.type-cursor { display: inline-block; width: 3px; background: var(--primary-light); margin-left: 2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero p.lead { color: var(--text-muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }

/* Node-network hero graphic */
.hero-graphic { position: relative; max-width: 980px; height: 420px; margin: 0 auto 20px; }
.hero-graphic svg.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-graphic svg.hero-lines path {
  fill: none; stroke: var(--border); stroke-width: 1.5;
}
.hero-graphic svg.hero-lines path.flow {
  stroke: var(--primary-light); stroke-width: 2;
  stroke-dasharray: 6 10; animation: dashMove 3s linear infinite;
}
@keyframes dashMove { to { stroke-dashoffset: -160; } }

.hero-node {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  animation: floatNode 6s ease-in-out infinite;
}
.hero-node svg { width: 24px; height: 24px; stroke: var(--primary-light); }
@keyframes floatNode {
  0%, 100% { margin-top: 0; } 50% { margin-top: -12px; }
}

.hero-pill {
  position: absolute; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  background: var(--card); border: 1px solid var(--border);
  font-size: .85rem; font-weight: 600; color: var(--text);
  animation: floatNode 6s ease-in-out infinite;
}
.hero-pill .dot-ico { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-light); flex-shrink: 0; }

.hero-center-mark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; font-weight: 900; color: #06210f;
  box-shadow: 0 0 0 10px rgba(34,197,94,.08), 0 20px 50px rgba(34,197,94,.25);
  animation: pulseMark 4s ease-in-out infinite;
}
@keyframes pulseMark {
  0%, 100% { box-shadow: 0 0 0 10px rgba(34,197,94,.08), 0 20px 50px rgba(34,197,94,.25); }
  50% { box-shadow: 0 0 0 18px rgba(34,197,94,.04), 0 20px 50px rgba(34,197,94,.35); }
}

@media (max-width: 900px) { .hero-graphic { display: none; } }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat-card {
  background: var(--light-card); border: 1px solid var(--light-border); border-radius: var(--radius);
  padding: 36px 20px; text-align: center;
}
.stat-card .stat-icon {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--light-bg); display: flex; align-items: center; justify-content: center;
}
.stat-card .stat-icon svg { width: 24px; height: 24px; stroke: var(--primary-dark); }
.stat-num { font-size: 2.4rem; font-weight: 800; color: var(--text-dark); }
.stat-num .suffix { color: var(--primary-dark); }
.stat-label { color: var(--text-muted-dark); margin-top: 6px; font-size: .92rem; }

/* ---------- Services / Expertise ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--light-bg); border: 1px solid var(--light-border); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  box-shadow: 0 2px 10px rgba(23, 35, 61, .04);
}
.service-card:hover {
  transform: translateY(-6px); border-color: var(--primary-light);
  box-shadow: 0 20px 40px rgba(34, 197, 94, .16);
}
.icon-box {
  position: relative;
  width: 54px; height: 54px; border-radius: 12px 12px 12px 2px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.icon-box svg { width: 26px; height: 26px; stroke: #06210f; }
.section-light .service-card h3 { color: var(--text-dark); }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: .93rem; }
.section-light .service-card p { color: var(--text-muted-dark); }
.tech-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.tech-row span {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--light-card); display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: var(--primary-dark);
}

/* ---------- Process / Work Methodology ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-card {
  position: relative; padding: 30px 22px;
  background: var(--light-card); border: 1px solid var(--light-border); border-radius: var(--radius);
}
.process-card .step-num {
  font-size: 2.2rem; font-weight: 800; color: transparent;
  -webkit-text-stroke: 1.5px var(--primary-dark);
  margin-bottom: 14px; display: block;
}
.section-light .process-card h3 { color: var(--text-dark); }
.process-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.process-card p { color: var(--text-muted); font-size: .9rem; }
.section-light .process-card p { color: var(--text-muted-dark); }
.process-grid .process-card:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -22px; top: 30px;
  color: var(--light-border);
  font-size: 1.3rem;
  display: none;
}
@media (min-width: 900px) {
  .process-grid .process-card:not(:last-child)::after { display: block; }
}

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 16px; text-align: center;
  transition: border-color .2s, color .2s, transform .2s;
}
.industry-card:hover { border-color: var(--primary-light); transform: translateY(-4px); }
.industry-card .icon-box {
  margin: 0 auto 14px; background: none; width: auto; height: auto; border-radius: 0;
}
.industry-card .icon-box svg { width: 34px; height: 34px; stroke: var(--primary-light); }
.industry-card span { font-size: .9rem; color: var(--text-muted); font-weight: 500; }
.industry-card:hover span { color: var(--text); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.why-card { text-align: center; padding: 26px 16px; }
.why-card .icon-box { margin: 0 auto 16px; }
.why-card h3 { font-size: 1rem; margin-bottom: 6px; }
.why-card p { color: var(--text-muted); font-size: .86rem; }

/* ---------- Success Stories ---------- */
.success-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.success-copy .accent-text { color: var(--primary-dark); }
.success-copy p { color: var(--text-muted-dark); margin: 14px 0 28px; font-size: 1.02rem; }
.circle-stats { display: flex; gap: 30px; margin-bottom: 30px; }
.circle-stat { text-align: center; }
.circle-stat .circle {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--light-card); color: var(--text-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; margin-bottom: 10px;
}
.circle-stat span { color: var(--text-muted-dark); font-size: .88rem; }

.success-visual { position: relative; }
.mock-window {
  background: var(--bg); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 60px rgba(23, 35, 61, .18);
}
.mock-bar { display: flex; gap: 6px; padding: 14px 16px; background: var(--card); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-bar span:first-child { background: #f87171; }
.mock-bar span:nth-child(2) { background: #fbbf24; }
.mock-bar span:nth-child(3) { background: var(--primary); }
.mock-body { padding: 30px; }
.mock-line { height: 12px; border-radius: 6px; background: var(--border); margin-bottom: 14px; }
.mock-line.w-60 { width: 60%; }
.mock-line.w-90 { width: 90%; }
.mock-line.w-40 { width: 40%; margin-bottom: 26px; }
.mock-chart { display: flex; align-items: flex-end; gap: 10px; height: 100px; }
.mock-chart span {
  flex: 1; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
}
.float-card {
  position: absolute; bottom: -30px; right: -20px;
  background: var(--bg); color: var(--text); border-radius: var(--radius);
  padding: 22px 24px; max-width: 220px;
  box-shadow: 0 20px 40px rgba(23, 35, 61, .25);
}
.float-card .num { font-size: 2rem; font-weight: 800; color: var(--primary-light); margin-bottom: 6px; }
.float-card p { color: var(--text-muted); font-size: .82rem; margin: 0; }
@media (max-width: 980px) {
  .success-grid { grid-template-columns: 1fr; }
  .float-card { position: static; margin-top: 20px; max-width: none; }
}
@media (max-width: 480px) {
  .circle-stats { gap: 14px; }
  .circle-stat .circle { width: 76px; height: 76px; font-size: 1.1rem; }
}

/* ---------- Testimonials ---------- */
.testimonial-wrap { max-width: 720px; margin: 0 auto; position: relative; }
.testimonial-track { overflow: hidden; }
.testimonial-slide {
  display: none;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; text-align: center;
}
.testimonial-slide.active { display: block; animation: fadeIn .5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: translateY(0);} }
.quote-mark { font-size: 3rem; color: var(--primary); line-height: 1; margin-bottom: 10px; }
.testimonial-slide p.quote { font-size: 1.05rem; color: var(--text); margin-bottom: 24px; }
.testimonial-person { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testimonial-person .avatar {
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #06210f; font-size: 1.1rem;
}
.testimonial-person .author { font-weight: 700; text-align: left; }
.testimonial-person .role { color: var(--text-muted); font-size: .85rem; text-align: left; }
.testimonial-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; transition: background .2s, transform .2s; }
.dot.active { background: var(--primary-light); transform: scale(1.3); }
.dots-row { display: flex; gap: 10px; }
.slide-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s;
}
.slide-arrow:hover { border-color: var(--primary-light); color: var(--primary-light); transform: scale(1.08); }
.slide-arrow svg { width: 16px; height: 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info .icon-box { flex-shrink: 0; }
.contact-info h4 { font-size: .95rem; margin-bottom: 4px; }
.contact-info p, .contact-info a { color: var(--text-muted); font-size: .92rem; }
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { margin-bottom: 14px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: .92rem;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-light); }
.form-note { font-size: .78rem; color: var(--text-muted); margin-top: 10px; text-align: center; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-grid h4 { font-size: .95rem; margin-bottom: 18px; }
.footer-grid p { color: var(--text-muted); font-size: .9rem; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a { color: var(--text-muted); font-size: .9rem; }
.footer-grid ul li a:hover { color: var(--primary-light); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact li svg { width: 18px; height: 18px; stroke: var(--primary-light); flex-shrink: 0; margin-top: 2px; }
.footer-contact li span { color: var(--text-muted); font-size: .9rem; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; transition: border-color .2s, color .2s;
}
.social-row a svg { width: 16px; height: 16px; }
.social-row a:hover { border-color: var(--primary-light); color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 22px 0; text-align: center;
  color: var(--text-muted); font-size: .85rem;
}

/* ---------- Responsive ---------- */
/* Nav collapses to the mobile drawer well before content grids reflow —
   the nav has 6 items + a CTA button and overflows the desktop layout
   on common tablet widths (e.g. 768px iPad portrait) long before 980px. */
@media (max-width: 1100px) {
  .main-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: 280px;
    background: var(--card); border-left: 1px solid var(--border);
    flex-direction: column; padding: 90px 24px 24px; transition: right .3s ease; overflow-y: auto; z-index: 99; }
  .main-nav.open { right: 0; }
  .main-nav > ul { flex-direction: column; align-items: flex-start; width: 100%; gap: 0; }
  .main-nav > ul > li { width: 100%; }
  .mega { position: static; transform: none; opacity: 1; visibility: visible; display: none;
    grid-template-columns: 1fr; width: 100%; box-shadow: none; margin-top: 8px; }
  .main-nav > ul > li.has-dropdown.open .mega { display: grid; }
  .hamburger { display: block; }
  .nav-cta .btn-primary { display: none; }
}
@media (max-width: 980px) {
  .hero h1 { font-size: 2.4rem; }
  .stats-grid, .services-grid, .process-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .stats-grid, .services-grid, .process-grid, .why-grid, .industry-grid { grid-template-columns: 1fr 1fr; }
  .process-grid .process-card::after { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero { padding: 150px 0 90px; }
  .hero h1 { font-size: 1.9rem; }
  .stats-grid, .services-grid, .process-grid, .why-grid, .industry-grid { grid-template-columns: 1fr; }
}
