/* ==========================================================
   Mi Tech Now — Global Styles
   ========================================================== */
:root {
  --blue: #3b9fff;
  --blue-dark: #2f7fcc;
  --blue-light: #4ea8ff;
  --navy: #171943;
  --navy-2: #272a71;
  --ink: #171943;
  --body: #475569;
  --muted: #64748b;
  --border: #e5eaf2;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { text-decoration: none; color: inherit; }

h1, h2, h3, h4, .btn, .nav-link, .eyebrow, .pill, .text-link,
.stat-value, .case-stat strong, .chart-title { font-family: var(--font-head); }

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 10px;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn .arrow { width: 15px; height: 15px; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(59, 159, 255, .3);
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--ink);
  background: #fff;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-outline-blue {
  border: 1.5px solid var(--blue);
  color: var(--blue);
  background: #fff;
  padding: 11px 20px;
  font-size: 14px;
}
.btn-outline-blue:hover { background: var(--blue); color: #fff; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 600;
  font-size: 15px;
}
.text-link .arrow { width: 15px; height: 15px; transition: transform .2s ease; }
.text-link:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 74px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 34px; width: auto; }
.logo-img-footer { height: 40px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-inline: auto;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color .15s;
}
.nav-link:hover { color: var(--blue); }
.chev { width: 10px; height: 7px; opacity: .55; transition: transform .2s ease; }

/* ---------- Services dropdown ---------- */
.nav-item { position: relative; }
.nav-item > .nav-link { padding: 26px 0; }
.nav-item:hover .chev { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -18px;
  width: 480px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60;
}
.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav-dropdown a:hover { background: var(--bg-soft); color: var(--blue); }
.nav-dropdown a.current { color: var(--blue); background: var(--bg-soft); font-weight: 700; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .2s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 80px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(59, 159, 255, .07), transparent 60%),
    linear-gradient(#fff, #fff);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
}
.pill {
  display: inline-block;
  border: 1px solid rgba(59, 159, 255, .35);
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.accent { color: var(--blue); }
.lede {
  font-size: 17.5px;
  color: var(--body);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.trusted { margin-top: 54px; }
.trusted-label { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.trusted-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  filter: grayscale(1);
  opacity: .55;
}
.tlogo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink);
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
}
.tlogo small { font-size: 8px; font-weight: 500; letter-spacing: .2em; }
.tlogo-serif { font-family: Georgia, serif; letter-spacing: .25em; }
.tlogo-script { font-style: italic; font-family: Georgia, serif; letter-spacing: .02em; text-transform: none; }
.tlogo-bold { font-size: 16px; }

/* ---------- Dashboard mockup ---------- */
.hero-visual { position: relative; }
.dashboard {
  display: flex;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  font-size: 12px;
}
.dash-side {
  background: var(--navy);
  width: 52px;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.dash-logo { width: 22px; height: auto; margin-bottom: 8px; }
.dash-dot {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  position: relative;
}
.dash-dot::after {
  content: '';
  position: absolute; inset: 8px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 3px;
}
.dash-dot.active { background: rgba(96, 165, 250, .25); }
.dash-dot.active::after { border-color: #9cceff; }

.dash-main { flex: 1; padding: 16px 18px; background: #fbfcfe; min-width: 0; }
.dash-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.dash-top strong { font-size: 13.5px; }
.dash-top-right { display: flex; align-items: center; gap: 10px; }
.dash-select {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 10.5px;
  color: var(--muted);
  background: #fff;
}
.dash-select.sm { padding: 3px 8px; font-size: 10px; }
.dash-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #94a3b8, #475569);
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label label" "value value" "delta spark";
  align-items: end;
  gap: 2px;
}
.stat-label { grid-area: label; font-size: 10px; color: var(--muted); }
.stat-value { grid-area: value; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.stat-delta { font-size: 9.5px; font-weight: 600; }
.stat-delta.up { color: #16a34a; grid-area: delta; }
.spark { grid-area: spark; width: 52px; height: 20px; }

.dash-bottom {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 10px;
}
.dash-chart, .dash-channels {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.dash-chart-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.chart-title { font-size: 11px; font-weight: 700; }
.chart-body { display: flex; gap: 8px; }
.chart-y {
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: 8px; color: var(--muted);
  padding-bottom: 16px;
}
.chart-plot { flex: 1; min-width: 0; }
.chart-plot svg { width: 100%; height: 110px; }
.chart-x {
  display: flex; justify-content: space-between;
  font-size: 8px; color: var(--muted);
  margin-top: 4px;
}

.dash-channels ul { list-style: none; margin-top: 12px; display: grid; gap: 12px; }
.dash-channels li {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px;
}
.dash-channels strong { font-size: 10.5px; }
.ch-name { display: inline-flex; align-items: center; gap: 7px; color: var(--body); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-g { background: #f59e0b; }
.dot-m { background: #3b82f6; }
.dot-o { background: #10b981; }
.dot-d { background: #f97316; }

/* ---------- Sections shared ---------- */
.eyebrow {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  margin-bottom: 12px;
}
.eyebrow-light { text-align: center; color: #9cceff; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
}
.section-head .text-link { margin-bottom: 6px; }

/* ---------- Services ---------- */
.services {
  background: var(--bg-soft);
  padding: 88px 0 96px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  transition: all .22s ease;
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 159, 255, .35);
}
.service-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(59, 159, 255, .08);
  color: var(--blue);
  margin-bottom: 30px;
}
.service-icon svg { width: 20px; height: 20px; }
.service-card h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 12.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.card-arrow {
  margin-top: 18px;
  color: var(--muted);
  transition: all .2s;
}
.card-arrow .arrow { width: 15px; height: 15px; }
.service-card:hover .card-arrow { color: var(--blue); transform: translateX(3px); }

/* ---------- Why choose ---------- */
.why {
  background: var(--navy);
  color: #fff;
  padding: 72px 0;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 40px;
}
.why-item {
  text-align: center;
  padding: 0 22px;
  border-left: 1px solid rgba(255, 255, 255, .1);
}
.why-item:first-child { border-left: 0; }
.why-icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 18px;
  color: #fff;
}
.why-icon svg { width: 40px; height: 40px; }
.why-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.why-item p { font-size: 13.5px; color: rgba(255, 255, 255, .65); line-height: 1.6; }

/* ---------- Case studies ---------- */
.cases {
  background: var(--bg-soft);
  padding: 88px 0 96px;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}
.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .22s ease;
  box-shadow: var(--shadow-sm);
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.case-img {
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .9);
}
.case-img svg { width: 54px; height: 54px; opacity: .9; }
.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.case-card:hover .case-img img { transform: scale(1.07); }
/* gradient fallbacks shown while photos load */
.case-img-1 { background: linear-gradient(135deg, #f7f0e6, #e3d2bd); }
.case-img-2 { background: linear-gradient(135deg, #3a352e, #1e1b17); }
.case-img-3 { background: linear-gradient(160deg, #a8c4e0, #5f83ad); }
.case-img-4 { background: linear-gradient(135deg, #9db77f, #5f7d4a); }
.case-img-5 { background: linear-gradient(135deg, #4b4f57, #23262c); }
.case-body { padding: 16px 16px 18px; }
.case-body h3 { font-size: 14.5px; font-weight: 700; }
.case-sub { font-size: 12px; color: var(--muted); margin: 3px 0 14px; }
.case-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.case-stat strong {
  display: block;
  color: var(--blue);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.case-stat span { font-size: 10.5px; color: var(--muted); line-height: 1.3; display: block; margin-top: 2px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-copy h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.cta-copy p { color: var(--body); font-size: 16px; }
.cta-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 1fr 1.3fr;
  gap: 36px;
  padding-bottom: 48px;
}
.footer-brand p {
  font-size: 13.5px;
  color: rgba(203, 213, 225, .75);
  margin: 18px 0 22px;
  max-width: 30ch;
  line-height: 1.65;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  color: #cbd5e1;
  transition: all .2s;
}
.socials a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.socials svg { width: 16px; height: 16px; }

.footer-col h4 {
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 13px;
  color: rgba(203, 213, 225, .72);
  margin-bottom: 10px;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }

.footer-contact a, .footer-contact span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer-contact svg { width: 15px; height: 15px; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(203, 213, 225, .6);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(203, 213, 225, .6); transition: color .15s; }
.footer-legal a:hover { color: #fff; }

/* ---------- About page: Our Story ---------- */
.about-story-section { padding: 88px 0; }
.about-story {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-story-text h2 {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 4px 0 20px;
}
.about-story-text p {
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-story-panel {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.about-story-panel h3 { font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.about-story-panel ul { list-style: none; display: grid; gap: 16px; }
.about-story-panel li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.guide-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(59, 159, 255, .1);
  color: var(--blue);
}
.guide-icon svg { width: 17px; height: 17px; }

@media (max-width: 900px) {
  .about-story { grid-template-columns: 1fr; }
}

/* ---------- Service detail page ---------- */
.page-hero { padding: 48px 0 72px; }
.page-hero .hero-copy { max-width: 720px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 36px;
  font-family: var(--font-head);
}
.breadcrumb a { color: var(--muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

.included-grid { grid-template-columns: repeat(3, 1fr); }
.included-grid .service-card { padding: 28px 24px 24px; }
.included-grid .service-card h3 { font-size: 16px; }
.included-grid .service-card p { font-size: 13.5px; }

.process { padding: 80px 0; }
.why-grid.process-grid { grid-template-columns: repeat(4, 1fr); }
.step-num {
  display: block;
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  color: var(--blue);
  opacity: .9;
  margin-bottom: 14px;
}

.feature-case {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 56px;
}
.feature-case-img { min-height: 320px; }
.feature-case-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.feature-case-body { padding: 40px 44px; align-self: center; }
.feature-case-body h3 { font-size: 24px; font-weight: 800; }
.feature-case-body .case-sub { font-size: 14px; margin: 4px 0 18px; }
.feature-case-text { font-size: 15px; color: var(--body); margin-bottom: 26px; line-height: 1.7; }
.feature-case .case-stats { max-width: 340px; }
.feature-case .case-stat strong { font-size: 26px; }
.feature-case .case-stat span { font-size: 12px; }

@media (max-width: 900px) {
  .included-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid.process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .feature-case { grid-template-columns: 1fr; }
  .feature-case-img { min-height: 240px; }
  .feature-case-body { padding: 28px 24px; }
}
@media (max-width: 560px) {
  .services-grid.included-grid, .why-grid.process-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   Animations
   ========================================================== */

/* --- Hero entrance (on page load) --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px) scale(.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
.hero-copy > * { animation: fadeUp .7s cubic-bezier(.22,.61,.36,1) both; }
.hero-copy .pill         { animation-delay: .05s; }
.hero-copy h1            { animation-delay: .15s; }
.hero-copy .lede         { animation-delay: .28s; }
.hero-copy .hero-actions { animation-delay: .4s; }
.hero-copy .trusted      { animation-delay: .55s; }
.hero-visual { animation: fadeInRight .9s cubic-bezier(.22,.61,.36,1) .35s both; }

/* --- Floating dashboard --- */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.dashboard { animation: floaty 7s ease-in-out 1.5s infinite; will-change: transform; }

/* --- Pill shimmer --- */
.pill {
  position: relative;
  overflow: hidden;
}
.pill::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(105deg, transparent, rgba(59, 159, 255, .18), transparent);
  animation: shimmer 3.2s ease-in-out 1s infinite;
}
@keyframes shimmer {
  0%   { left: -60%; }
  60%, 100% { left: 130%; }
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .7s cubic-bezier(.22,.61,.36,1),
    transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(var(--stagger, 0) * 70ms);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
/* keep hover lift working after reveal */
.service-card.reveal.in-view,
.case-card.reveal.in-view {
  transition:
    opacity .7s cubic-bezier(.22,.61,.36,1),
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

/* --- Chart line draw (triggered by JS when visible) --- */
.chart-line {
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
}
.chart-line.draw {
  animation: drawLine 1.6s cubic-bezier(.4,0,.2,1) forwards;
}
.chart-area { opacity: 0; transition: opacity .8s ease .9s; }
.chart-area.draw { opacity: 1; }
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* --- Why-choose icons: slow spin on the gear, pulse on hover --- */
.why-item .why-icon { transition: transform .3s ease; }
.why-item:hover .why-icon { transform: translateY(-4px) scale(1.08); }

/* --- Button glow pulse on primary CTA --- */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(59, 159, 255, .3); }
  50%      { box-shadow: 0 6px 28px rgba(59, 159, 255, .55); }
}
.cta-banner .btn-primary { animation: glowPulse 2.6s ease-in-out infinite; }

/* --- Case study image zoom on hover --- */
.case-img { overflow: hidden; }
.case-img svg { transition: transform .45s cubic-bezier(.22,.61,.36,1); }
.case-card:hover .case-img svg { transform: scale(1.18) rotate(-3deg); }

/* --- Trusted logos: lift color on hover --- */
.trusted-logos { transition: filter .4s ease, opacity .4s ease; }
.trusted-logos:hover { filter: grayscale(0); opacity: .85; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .chart-line { stroke-dasharray: none; stroke-dashoffset: 0; }
  .chart-area { opacity: 1; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .services-grid, .cases-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .why-item:nth-child(4) { border-left: 0; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 48px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav .nav-link { padding: 12px 0; width: 100%; }
  .nav-item { width: 100%; }
  .nav-item > .nav-link { padding: 12px 0; }
  .nav-dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 0;
    padding: 0 0 6px 14px;
    grid-template-columns: 1fr;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-item.open .nav-dropdown { display: grid; }
  .nav-dropdown a { padding: 9px 10px; }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-cta { margin-left: auto; }
  .header-inner { gap: 16px; }
}

@media (max-width: 720px) {
  .services-grid, .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-item { border-left: 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 32px 24px; }
  .header-cta { display: none; }
}

@media (max-width: 480px) {
  .services-grid, .cases-grid, .why-grid, .footer-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr; }
  .dash-bottom { grid-template-columns: 1fr; }
  .trusted-logos { gap: 18px; }
}
