:root {
  --bg: #ffffff;
  --bg-alt: #f5f6fb;
  --dark: #0b0f2a;
  --text: #1a1d33;
  --muted: #5d6280;
  --border: #e3e5f0;
  --primary: #5b5bf7;
  --primary-dark: #4343d8;
  --accent: #19c3b0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 20, 60, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.25); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }

/* ---------- Announcement bar ---------- */
.topbar { background: linear-gradient(90deg, var(--primary), #7c3aed); color: #fff; font-size: 14px; }
.topbar-inner { display: flex; justify-content: center; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; text-align: center; }
.topbar a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .25s, box-shadow .25s;
}
.header.scrolled { background: rgba(11, 15, 42, .95); backdrop-filter: blur(12px); box-shadow: 0 4px 20px rgba(0,0,0,.25); }

/* Mega menu */
.nav-item { position: relative; }
.nav-trigger {
  background: none; border: 0; cursor: pointer; font: 500 15px "Inter", sans-serif;
  color: rgba(255,255,255,.8); display: inline-flex; align-items: center; gap: 6px; padding: 0;
}
.nav-trigger:hover, .nav-item.open .nav-trigger { color: #fff; }
.chev { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.nav-item.open .chev { transform: rotate(-135deg) translateY(-2px); }
.mega {
  position: absolute; top: calc(100% + 24px); left: -24px; display: grid; grid-template-columns: repeat(3, 220px); gap: 24px;
  background: #fff; border-radius: 14px; padding: 26px; box-shadow: 0 24px 60px rgba(11,15,42,.25);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease;
}
.mega::before { content: ""; position: absolute; top: -24px; left: 0; right: 0; height: 24px; }
.mega-sm { grid-template-columns: repeat(2, 200px); }
.nav-item:hover .mega, .nav-item.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 10px; }
.nav-links .mega a { display: block; color: var(--text); padding: 7px 0; font-size: 15px; }
.nav-links .mega a:hover { color: var(--primary); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -.5px; display: inline-flex; align-items: center; }
.logo-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 9px; color: #fff;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,.8); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-cta-mobile { display: none; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--dark); color: #fff;
  padding: 90px 0 60px;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(91,91,247,.35), transparent 70%),
    radial-gradient(500px 400px at 85% 60%, rgba(25,195,176,.22), transparent 70%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.hero .eyebrow, .eyebrow.light { color: var(--accent); }
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.08; letter-spacing: -1.5px; font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; letter-spacing: -1px; font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.2px; }
.gradient-text { background: linear-gradient(90deg, #8b8bff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: rgba(255,255,255,.75); margin: 22px 0 34px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.code-window {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.code-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-bar i:nth-child(2) { background: #febc2e; }
.code-bar i:nth-child(3) { background: #28c840; }
.code-bar span { margin-left: 10px; font-size: 12px; color: rgba(255,255,255,.5); }
.code-window pre { padding: 22px; font: 14px/1.75 ui-monospace, "SF Mono", Menlo, monospace; color: #dfe3ff; overflow-x: auto; }
.code-window .k { color: #a78bfa; } .code-window .s { color: #5eead4; }
.code-window .f { color: #93c5fd; } .code-window .c { color: #6b7194; }

.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; color: rgba(255,255,255,.65); font-size: 14px; font-weight: 500; }

/* Hub tiles */
.hubs { position: relative; margin-top: 64px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.hub {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  font-weight: 600; font-size: 14px; transition: .2s;
}
.hub span { font-size: 22px; color: var(--accent); }
.hub:hover { background: rgba(91,91,247,.25); border-color: var(--primary); transform: translateY(-2px); }

/* ---------- Marquee ---------- */
.marquee { background: var(--dark); border-top: 1px solid rgba(255,255,255,.08); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 40s linear infinite; }
.marquee-track span { color: rgba(255,255,255,.45); font-weight: 700; font-size: 18px; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 14px; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); margin-top: 10px; }

.service .icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; color: var(--primary); background: rgba(91,91,247,.1); margin-bottom: 20px;
}

/* Engagement models */
.model { position: relative; }
.model .tag {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: rgba(91,91,247,.1); color: var(--primary); margin-bottom: 16px;
}
.model.featured { background: var(--dark); color: #fff; border-color: var(--dark); }
.model.featured p { color: rgba(255,255,255,.7); }
.model.featured .tag { background: var(--accent); color: var(--dark); }
.checks { list-style: none; margin-top: 20px; }
.checks li { padding: 6px 0 6px 28px; position: relative; font-weight: 500; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(25,195,176,.15); color: var(--accent); display: grid; place-items: center; font-size: 12px; font-weight: 800;
}

/* Sub-service lists */
.sub-list { list-style: none; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.sub-list li { padding: 5px 0 5px 18px; position: relative; font-size: 15px; font-weight: 500; }
.sub-list li::before { content: "›"; position: absolute; left: 2px; color: var(--primary); font-weight: 800; }

/* Hire developers */
.hire-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hire h2 { margin-bottom: 16px; }
.hire .muted { font-size: 18px; }
.roles { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; }
.roles span { padding: 8px 14px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.steps { list-style: none; display: grid; gap: 16px; }
.steps li { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.steps b {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 17px;
}
.steps p { color: var(--muted); margin-top: 4px; }

/* Industries */
.ind-head { display: flex; align-items: center; gap: 14px; }
.ind-head span { font-size: 28px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-alt); }

/* CTA band */
.cta-band { background: linear-gradient(110deg, var(--primary), #7c3aed 60%, var(--accent)); color: #fff; padding: 56px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); max-width: 640px; }

/* At a glance */
.glance { margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 18px; background: var(--dark); color: #fff; overflow: hidden; }
.glance div { padding: 34px 28px; border-right: 1px solid rgba(255,255,255,.08); }
.glance div:last-child { border-right: 0; }
.glance strong { display: block; font-size: 42px; font-weight: 800; letter-spacing: -1px; background: linear-gradient(90deg, #a5a5ff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glance span { color: rgba(255,255,255,.65); }

/* Tech tabs */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.tab {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
  font: 600 15px "Inter", sans-serif; color: var(--muted); cursor: pointer; transition: .2s;
}
.tab.active, .tab:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-panel { display: none; flex-wrap: wrap; justify-content: center; gap: 14px; }
.tab-panel.active { display: flex; animation: fade .35s ease; }
.tab-panel span {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 26px;
  font-weight: 600; box-shadow: 0 2px 8px rgba(17,20,60,.04);
}
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* Process */
.process { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; counter-reset: s; }
.process li { position: relative; padding-top: 22px; border-top: 3px solid var(--border); }
.process li:hover { border-top-color: var(--primary); }
.process b { color: var(--primary); font-size: 14px; }
.process h3 { margin: 6px 0 6px; }
.process p { color: var(--muted); font-size: 15px; }

/* Case studies */
.case { padding: 0; overflow: hidden; }
.case > *:not(.case-img) { margin-left: 28px; margin-right: 28px; }
.case h3 { margin-top: 24px; }
.case-img { height: 180px; display: flex; align-items: flex-end; padding: 18px; }
.case-img span { background: rgba(255,255,255,.9); color: var(--dark); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.c1 { background: linear-gradient(135deg, #5b5bf7, #8b5cf6); }
.c2 { background: linear-gradient(135deg, #19c3b0, #0ea5e9); }
.c3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.case-metric { margin-top: 20px !important; margin-bottom: 28px !important; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); }
.case-metric strong { color: var(--primary); font-size: 22px; margin-right: 6px; }

/* Why */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.why h2 { margin-bottom: 18px; }
.why .muted { margin-bottom: 28px; font-size: 18px; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-item { padding: 26px; border-radius: var(--radius); background: var(--bg-alt); }
.why-item p { color: var(--muted); margin-top: 8px; }

/* FAQ */
.faq { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; }
.faq summary {
  cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 17px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--primary); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 24px 20px; color: var(--muted); }

/* Contact */
.contact { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 400px at 10% 90%, rgba(91,91,247,.3), transparent 70%);
}
.contact-inner { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.contact-text p { color: rgba(255,255,255,.7); font-size: 18px; margin-top: 16px; }
.contact-person {
  display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 18px 20px;
  border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); max-width: 420px;
}
.contact-person .avatar {
  flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); font-weight: 800; font-size: 18px;
}
.contact-person strong { display: block; font-size: 17px; }
.contact-person span { display: block; font-size: 13px; color: rgba(255,255,255,.55); }
.contact-person a { color: var(--accent); font-weight: 600; word-break: break-all; }
.contact-points { list-style: none; margin-top: 20px; }
.contact-points li { padding: 6px 0; color: rgba(255,255,255,.85); }
.contact-points a { color: var(--accent); }
.contact-form { background: #fff; color: var(--text); padding: 34px; border-radius: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; font: 15px "Inter", sans-serif; color: var(--text); background: #fafbff; transition: border-color .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.form-status { margin-top: 12px; font-size: 14px; color: var(--accent); text-align: center; min-height: 20px; }

/* Footer */
.footer { background: #070a1f; color: rgba(255,255,255,.7); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid .footer-cta { margin-top: 22px; color: #fff; }
.footer .muted { color: rgba(255,255,255,.5); margin-top: 16px; max-width: 320px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-grid a:not(.logo) { display: block; padding: 4px 0; font-size: 15px; transition: color .2s; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; color: rgba(255,255,255,.45); }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
  .hubs { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dark); padding: 8px 24px 24px; max-height: calc(100vh - 72px); overflow-y: auto;
    display: none; border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links > a, .nav-trigger { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); width: 100%; justify-content: space-between; font-size: 16px; }
  .mega, .mega-sm {
    position: static; display: none; grid-template-columns: 1fr; gap: 8px; opacity: 1; visibility: visible; transform: none;
    background: transparent; box-shadow: none; padding: 8px 0 12px 12px;
  }
  .mega::before { display: none; }
  .nav-item:hover .mega { display: none; }
  .nav-item.open .mega { display: grid; }
  .mega h5 { color: rgba(255,255,255,.45); margin: 8px 0 2px; }
  .nav-links .mega a { color: rgba(255,255,255,.8); padding: 6px 0; }
  .nav-links .nav-cta-mobile { display: flex; margin-top: 18px; border: 0; }
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding-top: 64px; }
  .hero-inner, .why, .contact-inner, .hire-inner { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .glance { grid-template-columns: 1fr 1fr; }
  .glance div:nth-child(2) { border-right: 0; }
  .glance div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .grid-3, .why-list, .contact-form .row { grid-template-columns: 1fr; }
  .contact-form .row { gap: 0; }
  .process { grid-template-columns: 1fr 1fr; }
  .hubs { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .glance strong { font-size: 32px; }
  .glance div { padding: 24px 18px; }
  .hero-card { display: none; }
  .contact-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
