.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: #0D203A; color: #fff; padding: 10px 18px; border-radius: 8px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: top .2s ease;
}
.skip-link:focus { top: 12px; outline: 2px solid #e6007e; }

:root {
  /* Brand palette */
  --midnight:      #0D203A;
  --midnight-ink:  #081628;
  --ice:           #EAF2F5;
  --cream:         #F4F1EC;
  --white:         #FFFFFF;
  --blue:          #2A85BE;
  --brand-blue:    #1e78e6;
  --magenta:       #d6006c;
  --pink:          #e6007e;
  --ink:           #0D203A;
  --rule:          rgba(13,32,58,0.10);
  --rule-dark:     rgba(255,255,255,0.12);
  --text-dim:      rgba(13,32,58,0.62);
  --text-dim-dark: rgba(255,255,255,0.60);
  --accent-grad:   linear-gradient(90deg, #1e78e6 0%, #7b2ff7 55%, #e6007e 100%);

  --font-title: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:  'Helvetica Neue', Helvetica, Arial, sans-serif;

  --fs-display-xl: clamp(2.6rem, 7vw, 6.5rem);
  --fs-display-md: clamp(1.9rem, 4vw, 3.6rem);
  --fs-h3: clamp(1.15rem, 1.8vw, 1.5rem);
  --fs-body: clamp(0.98rem, 1vw, 1.08rem);

  --container: 1280px;
  --gutter: 5vw;
  --section-pad: clamp(4rem, 8vw, 7.5rem);
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .title { font-family: var(--font-title); line-height: 1.05; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.accent-text {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-title); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pink);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-title); font-weight: 700; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 999px; cursor: pointer; border: 2px solid transparent;
  transition: transform var(--ease) .3s, box-shadow var(--ease) .3s, background .3s, color .3s;
}
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 10px 30px rgba(214,0,108,0.28); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(214,0,108,0.38); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-ghost:hover { background: #fff; color: var(--midnight); border-color: #fff; }
.btn-dark { background: var(--midnight); color: #fff; }
.btn-dark:hover { transform: translateY(-3px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Header */
header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,32,58,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand-logo { background: #fff; border-radius: 12px; padding: 7px 14px; display: flex; align-items: center; }
.brand-logo img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  font-family: var(--font-title); font-weight: 600; font-size: 0.92rem; color: rgba(255,255,255,0.82);
  position: relative; padding: 4px 0; transition: color .25s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--accent-grad); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(42,133,190,0.28), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(230,0,126,0.22), transparent 55%),
    var(--midnight);
  color: #fff; padding-top: calc(76px + clamp(3rem, 7vw, 6rem)); padding-bottom: var(--section-pad);
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: var(--fs-display-xl); font-weight: 800; max-width: 15ch; margin: 22px 0 24px; }
.hero p.lead { font-size: clamp(1rem, 1.3vw, 1.2rem); color: var(--text-dim-dark); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

/* Logo marquee */
.marquee-wrap { background: var(--midnight-ink); color: #fff; padding: 28px 0; overflow: hidden; border-top: 1px solid var(--rule-dark); }
.marquee-label { text-align: center; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim-dark); margin-bottom: 18px; font-family: var(--font-title); font-weight: 600; }
.marquee { display: flex; align-items: center; gap: 40px; white-space: nowrap; animation: scroll 28s linear infinite; width: max-content; }
.marquee .logo { flex: 0 0 auto; background: #fff; border-radius: 12px; padding: 14px 26px; height: 72px; display: flex; align-items: center; justify-content: center; }
.marquee .logo img { height: auto; max-height: 40px; width: auto; max-width: 200px; object-fit: contain; display: block; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

section.section { padding: var(--section-pad) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--fs-display-md); font-weight: 800; margin: 16px 0; }
.section-head p { color: var(--text-dim); font-size: 1.08rem; }
.dark { background: var(--midnight); color: #fff; }
.dark .section-head p { color: var(--text-dim-dark); }

/* Stats */
.stats { background: var(--midnight-ink); color: #fff; padding: clamp(3rem, 5vw, 4.5rem) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-family: var(--font-title); font-weight: 900; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.stat .lbl { color: var(--text-dim-dark); font-size: 0.95rem; margin-top: 6px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-points { list-style: none; display: grid; gap: 18px; }
.about-points li { display: flex; gap: 16px; align-items: flex-start; }
.about-points .dot { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-grad); color: #fff; display: grid; place-items: center; font-family: var(--font-title); font-weight: 800; }
.about-points strong { font-family: var(--font-title); font-size: 1.08rem; display: block; }
.about-points p { color: var(--text-dim); font-size: 0.98rem; }
.about-visual { border-radius: var(--radius); background: linear-gradient(160deg, var(--midnight), var(--midnight-ink)); color: #fff; padding: clamp(2rem, 4vw, 3rem); position: relative; overflow: hidden; min-height: 320px; }
.about-visual::after { content: ""; position: absolute; inset: auto -60px -60px auto; width: 220px; height: 220px; background: var(--accent-grad); filter: blur(70px); opacity: 0.6; }
.about-visual .pixel-canvas { display: block; width: 100%; height: clamp(230px, 30vw, 320px); position: relative; z-index: 1; }
.about-visual .cap { color: var(--text-dim-dark); margin-top: 10px; position: relative; z-index: 1; }
.about-visual-img img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(13,32,58,0.14); }
.about-visual-img .cap-img { color: var(--text-dim); margin-top: 16px; font-size: 0.98rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-card {
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; background: #fff;
  transition: transform var(--ease) .35s, box-shadow var(--ease) .35s, border-color .35s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(13,32,58,0.12); border-color: transparent; }
.svc-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--ice); display: grid; place-items: center; margin-bottom: 18px; }
.svc-icon svg { width: 24px; height: 24px; stroke: var(--brand-blue); }
.svc-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.svc-card p { color: var(--text-dim); font-size: 0.95rem; }

/* Industries */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 30px; }
.ind-grid a, .ind-grid span { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule-dark); font-family: var(--font-title); font-weight: 600; color: rgba(255,255,255,0.85); }
.ind-grid a { transition: color .25s, padding-left .25s; }
.ind-grid a::before { content: "→"; color: var(--pink); opacity: 0; transition: opacity .25s; margin-left: -20px; }
.ind-grid a:hover { color: #fff; padding-left: 8px; }
.ind-grid a:hover::before { opacity: 1; }

/* Work / case studies — full-width detailed tiles */
.cs-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.cs-filter { font-family: var(--font-title); font-weight: 600; font-size: 0.92rem; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: 10px 22px; cursor: pointer; transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.cs-filter:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.cs-filter.active { color: #fff; background: var(--accent-grad); border-color: transparent; box-shadow: 0 8px 22px rgba(214,0,108,0.26); }
.case-study.is-hidden { display: none; }
.case-list { display: grid; gap: 28px; }
.case-study { position: relative; overflow: hidden; border-radius: var(--radius); color: #fff; padding: clamp(1.8rem, 4vw, 3rem); background: linear-gradient(150deg, var(--midnight), var(--midnight-ink)); transition: transform var(--ease) .35s, box-shadow var(--ease) .35s; }
.case-study:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(13,32,58,0.22); }
.case-study::after { content: ""; position: absolute; inset: auto -90px -90px auto; width: 300px; height: 300px; background: var(--accent-grad); filter: blur(100px); opacity: 0.35; pointer-events: none; }
.case-study > * { position: relative; z-index: 1; }
.cs-tag { font-family: var(--font-title); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pink); }
.cs-title { font-family: var(--font-title); font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 800; margin: 12px 0 10px; max-width: 26ch; }
.cs-meta { color: var(--text-dim-dark); font-family: var(--font-title); font-weight: 600; font-size: 0.92rem; }
.cs-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 0; }
.cs-kpi { background: rgba(255,255,255,0.05); border: 1px solid var(--rule-dark); border-radius: 14px; padding: 20px; }
.cs-kpi .n { font-family: var(--font-title); font-weight: 900; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.05; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-kpi .l { color: var(--text-dim-dark); font-size: 0.85rem; margin-top: 8px; line-height: 1.35; }
.cs-proof { display: grid; gap: 10px; border-top: 1px solid var(--rule-dark); padding-top: 22px; }
.cs-proof p { color: rgba(255,255,255,0.82); font-size: 0.96rem; max-width: 90ch; }
.cs-proof strong { color: #fff; font-family: var(--font-title); font-weight: 700; }

/* Testimonials */
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tst-card { background: rgba(255,255,255,0.04); border: 1px solid var(--rule-dark); border-radius: var(--radius); padding: 28px; }
.tst-card .stars { color: #ffb703; letter-spacing: 2px; margin-bottom: 14px; }
.tst-card p { color: rgba(255,255,255,0.82); font-size: 0.98rem; }
.tst-card .who { margin-top: 18px; font-family: var(--font-title); font-weight: 700; }
.tst-card .role { color: var(--text-dim-dark); font-size: 0.85rem; }

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { list-style: none; cursor: pointer; padding: 24px 0; font-family: var(--font-title); font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-weight: 700; color: var(--pink); font-size: 1.6rem; transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .ans { padding: 0 0 24px; color: var(--text-dim); max-width: 70ch; }

/* CTA block */
.cta-block { background: linear-gradient(135deg, #1e78e6 0%, #7b2ff7 60%, #e6007e 100%); color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cta-grid h2 { font-size: var(--fs-display-md); font-weight: 900; }
.cta-grid p { color: rgba(255,255,255,0.85); margin-top: 14px; font-size: 1.08rem; }
.form { background: #fff; border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); color: var(--ink); box-shadow: 0 30px 70px rgba(0,0,0,0.25); }
.form label { display: block; font-family: var(--font-title); font-weight: 600; font-size: 0.85rem; margin: 14px 0 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--rule); border-radius: 12px;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); background: #fff; transition: border-color .25s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand-blue); }
.form input.invalid, .form select.invalid { border-color: #e11d48; }
.form .field-error { color: #e11d48; font-size: 0.78rem; margin-top: 5px; display: none; }
.form input.invalid ~ .field-error, .form select.invalid ~ .field-error { display: block; }
.form .btn { width: 100%; margin-top: 22px; }
.form-status { margin-top: 16px; padding: 13px 16px; border-radius: 12px; font-size: 0.92rem; font-family: var(--font-title); font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.success { background: #e7f7ee; color: #0f7a44; }
.form-status.error { background: #fde8ec; color: #c01443; }

/* Footer */
footer.site { background: var(--midnight-ink); color: #fff; padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.foot-brand .brand-logo { display: inline-flex; margin-bottom: 20px; }
.foot-brand p { color: var(--text-dim-dark); max-width: 34ch; }
.foot-col h4 { font-family: var(--font-title); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim-dark); margin-bottom: 18px; }
.foot-col ul { list-style: none; display: grid; gap: 11px; }
.foot-col a { color: rgba(255,255,255,0.78); font-size: 0.95rem; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-contact p { color: rgba(255,255,255,0.78); font-size: 0.92rem; margin-bottom: 14px; }
.foot-contact strong { color: #fff; font-family: var(--font-title); }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--rule-dark); display: grid; place-items: center; transition: background .25s, border-color .25s; }
.socials a:hover { background: var(--accent-grad); border-color: transparent; }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.foot-bottom { border-top: 1px solid var(--rule-dark); margin-top: 40px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; color: var(--text-dim-dark); font-size: 0.88rem; }
.foot-bottom .links { display: flex; gap: 22px; }

/* Back to top */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #1e78e6 0%, #7b2ff7 50%, #e6007e 100%); color: #fff;
  display: grid; place-items: center;
  /* crisp white ring defines both edges on any background + soft neutral lift */
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 8px 22px rgba(0,0,0,0.35);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.9);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, box-shadow .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 0 0 2px #fff, 0 14px 32px rgba(0,0,0,0.42); }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 768px) { .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }

/* Responsive */
@media (max-width: 1024px) {
  .services-grid, .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .tst-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-kpis { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  header.site.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px; list-style: none;
    position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(8,22,40,0.98); backdrop-filter: blur(10px);
    border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark);
    padding: 12px var(--gutter) 22px;
  }
  header.site.menu-open .nav-links a { display: block; width: 100%; padding: 13px 2px; font-size: 1.05rem; }
  header.site.menu-open .nav-links a.active::after { display: none; }
  .about-grid, .cta-grid { grid-template-columns: 1fr; }
  .services-grid, .ind-grid, .tst-grid { grid-template-columns: 1fr; }
  .cs-kpis { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-cta .btn { display: none; }
}
