/* ============================================================
   DMILLER TECH — Complete Design System
   ============================================================ */

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

:root {
  /* Core palette */
  --navy:        #0c2340;
  --navy-mid:    #163766;
  --navy-light:  #1e4d94;
  --blue:        #2563eb;
  --blue-bright: #3b82f6;
  --cyan:        #0ea5e9;
  --amber:       #f59e0b;
  --green:       #16a34a;
  --red:         #dc2626;
  --purple:      #7c3aed;

  /* Surfaces */
  --bg:          #ffffff;
  --bg-alt:      #f0f4fb;
  --bg-dark:     #080f1e;
  --bg-card:     #ffffff;
  --border:      #cbd5e8;
  --border-h:    #2563eb;

  /* Text */
  --text:        #0f172a;
  --text-muted:  #475569;
  --text-dim:    #94a3b8;

  /* Fonts */
  --font:        'Inter', system-ui, sans-serif;
  --font-head:   'Sora', 'Inter', sans-serif;

  /* Radii */
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Shadows */
  --sh-sm:  0 1px 6px rgba(15,45,94,.07);
  --sh:     0 4px 24px rgba(15,45,94,.11);
  --sh-lg:  0 16px 56px rgba(15,45,94,.16);
  --sh-xl:  0 32px 80px rgba(15,45,94,.22);
  --sh-glow:0 0 40px rgba(37,99,235,.35);
}

/* ---- BASE ---- */
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
@media (hover: none) { body { cursor: auto; } }
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: none; border: none; background: none; font: inherit; }
@media (hover: none) { button { cursor: pointer; } }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }
::selection { background: rgba(37,99,235,.15); }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
#cursor-dot, #cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
}
#cursor-dot {
  width: 10px; height: 10px;
  background: #fff;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width .2s, height .2s;
}
#cursor-ring {
  width: 38px; height: 38px;
  border: 2px solid #fff;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width .28s cubic-bezier(.22,1,.36,1),
              height .28s cubic-bezier(.22,1,.36,1),
              opacity .2s;
}
#cursor-ring.hover   { width: 60px; height: 60px; }
#cursor-ring.clicking { width: 22px; height: 22px; }
@media (hover: none) { #cursor-dot, #cursor-ring { display: none; } }

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-light), var(--blue), var(--cyan));
  z-index: 1001;
  width: 0%;
  transition: width .1s linear;
  box-shadow: 0 0 10px rgba(37,99,235,.6);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 108px 0; }

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 68px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.22);
  border-radius: 100px;
  padding: .3em 1em;
  margin-bottom: 1.1rem;
}
.section-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 6px var(--blue);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(.7); }
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.1rem;
  letter-spacing: -.02em;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

.gradient-text {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--blue) 55%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.animated-gradient {
  background-size: 220%;
  animation: grad-shift 5s ease infinite;
}
@keyframes grad-shift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .68rem 1.45rem;
  border-radius: var(--r);
  font-size: .92rem;
  font-weight: 600;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .5s ease;
}
.btn:hover::before { transform: translateX(100%); }

.btn-primary {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--blue) 100%);
  color: #fff;
  box-shadow: 0 2px 18px rgba(37,99,235,.38), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37,99,235,.5), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-primary:active { transform: translateY(-1px); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.55);
}
.btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
}

.btn-phone {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
}
.btn-phone:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.7);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy-mid);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(37,99,235,.04);
  transform: translateY(-2px);
}

.btn-xl   { padding: .9rem 2.1rem; font-size: 1rem; border-radius: 13px; }
.btn-full { width: 100%; justify-content: center; }
.magnetic { display: inline-block; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="100"] { transition-delay: .1s; }
.reveal[data-delay="150"] { transition-delay: .15s; }
.reveal[data-delay="200"] { transition-delay: .2s; }
.reveal[data-delay="300"] { transition-delay: .3s; }
.reveal[data-delay="400"] { transition-delay: .4s; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background .35s, padding .35s, box-shadow .35s;
}
.navbar.scrolled {
  background: rgba(8,15,30,.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 11px 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 24px rgba(0,0,0,.3);
}
.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-logo { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.logo-text { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: #fff; }
.logo-accent { color: #60a5fa; }
.logo-icon { display: flex; align-items: center; }

.nav-links { display: flex; gap: 1.75rem; margin-left: 1.5rem; }
.nav-links a {
  font-size: .865rem; font-weight: 500;
  color: rgba(255,255,255,.68);
  transition: color .2s;
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--blue-bright);
  transition: width .25s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: #fff; }

.nav-cta { display: flex; gap: .6rem; margin-left: auto; align-items: center; }

/* Always show dark navbar on blog/single pages (no fixed dark hero behind them) */
.is-blog .navbar,
.is-singular .navbar {
  background: rgba(8,15,30,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 24px rgba(0,0,0,.3);
}

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,.8); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(8,15,30,.97);
  backdrop-filter: blur(24px);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { text-align: center; }
.mobile-menu li { padding: .7rem 0; }
.mobile-menu a { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: rgba(255,255,255,.65); transition: color .2s; }
.mobile-menu a:hover { color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 148px 24px 100px;
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
}
.hero-bg {
  position: fixed;
  inset: 0; z-index: -1;
  background: linear-gradient(150deg, #080f1e 0%, #0c2340 45%, #091929 100%);
  overflow: hidden;
  pointer-events: none;
}
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .22;
  animation: orb-float 10s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #1e4d94, transparent 70%);
  top: -180px; left: -100px;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #0ea5e9, transparent 70%);
  bottom: -80px; right: -120px;
  animation-delay: -5s;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  top: 40%; left: 40%;
  opacity: .12;
  animation-delay: -3s;
}
@keyframes orb-float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(22px,-16px) scale(1.03); }
  66%      { transform: translate(-14px,24px) scale(.97); }
}
#particleCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .5;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, black 30%, transparent 100%);
}
.hero-content { z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .06em;
  color: #93c5fd;
  background: rgba(37,99,235,.14);
  border: 1px solid rgba(37,99,235,.32);
  border-radius: 100px;
  padding: .35em 1.05em;
  margin-bottom: 1.5rem;
  animation: hero-in .8s ease both;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #60a5fa; box-shadow: 0 0 10px #60a5fa;
  animation: pulse-dot 2s ease infinite;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  font-weight: 900; line-height: 1.08;
  color: #fff;
  margin-bottom: 1.3rem;
  letter-spacing: -.03em;
  animation: hero-in .8s .1s ease both;
}
.hero-subtitle {
  font-size: 1.05rem; color: rgba(255,255,255,.62);
  max-width: 490px; margin-bottom: 2.2rem; line-height: 1.85;
  animation: hero-in .8s .22s ease both;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem;
  animation: hero-in .8s .34s ease both;
}
.hero-stats {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
  animation: hero-in .8s .46s ease both;
}
.hero-stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: #fff; display: inline; }
.stat-num + span { font-size: 1.4rem; font-weight: 800; color: #60a5fa; }
.stat-label { font-size: .7rem; color: rgba(255,255,255,.42); margin-top: .1rem; letter-spacing: .04em; }
.stat-divider { width: 1px; height: 30px; background: rgba(255,255,255,.1); }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-visual { z-index: 1; animation: hero-in .8s .28s ease both; }
.hero-card-group { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-bottom: .9rem; }
.hero-info-card {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r-lg);
  padding: 1.3rem 1.1rem;
  display: flex; align-items: center; gap: .85rem;
  backdrop-filter: blur(14px);
  transition: background .25s, border-color .25s, transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
  cursor: default;
}
.hero-info-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
}
.card-main { grid-column: span 2; }
.hic-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform .3s;
}
.hero-info-card:hover .hic-icon { transform: scale(1.12) rotate(-4deg); }
.icon-blue   { background: rgba(37,99,235,.28);  color: #93c5fd; }
.icon-amber  { background: rgba(245,158,11,.22); color: #fcd34d; }
.icon-cyan   { background: rgba(14,165,233,.22); color: #7dd3fc; }
.icon-green  { background: rgba(22,163,74,.22);  color: #86efac; }
.icon-purple { background: rgba(124,58,237,.22); color: #c4b5fd; }
.icon-red    { background: rgba(220,38,38,.22);  color: #fca5a5; }
.hic-title { font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: .1rem; }
.hic-sub   { font-size: .73rem; color: rgba(255,255,255,.45); }
.hero-partner-badge {
  display: flex; align-items: center; gap: .75rem;
  background: rgba(37,99,235,.14);
  border: 1px solid rgba(37,99,235,.3);
  border-radius: var(--r);
  padding: .85rem 1.1rem;
  transition: background .25s, border-color .25s;
}
.hero-partner-badge:hover { background: rgba(37,99,235,.22); border-color: rgba(37,99,235,.5); }
.partner-logo {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(37,99,235,.3);
  display: flex; align-items: center; justify-content: center; color: #93c5fd; flex-shrink: 0;
}
.badge-title { font-size: .84rem; font-weight: 700; color: #fff; }
.badge-sub   { font-size: .71rem; color: rgba(255,255,255,.45); }
.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.28); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  animation: hero-in 1s 1.2s ease both;
}
.scroll-mouse {
  width: 20px; height: 32px;
  border: 2px solid rgba(255,255,255,.25); border-radius: 10px; position: relative;
}
.scroll-mouse::after {
  content: ''; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px; background: rgba(255,255,255,.5); border-radius: 2px;
  animation: scroll-wheel 1.6s ease infinite;
}
@keyframes scroll-wheel {
  0%   { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(9px); opacity: 0; }
}

/* ============================================================
   AREAS BAND
   ============================================================ */
.areas-band {
  background: var(--navy); padding: 26px 0;
  position: relative; overflow: hidden;
}
.areas-band::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(37,99,235,.08) 0%, transparent 50%, rgba(14,165,233,.08) 100%);
}
.areas-label { text-align: center; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.38); margin-bottom: 1.1rem; }
.areas-list { display: flex; align-items: center; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
.area-item { display: flex; align-items: center; gap: .38rem; font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.65); transition: color .2s; }
.area-item:hover { color: #fff; }
.area-item svg { color: #60a5fa; flex-shrink: 0; }
.area-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.18); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--bg-alt); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.8rem;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .25s;
  position: relative; overflow: hidden;
  transform-style: preserve-3d;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy-mid), var(--blue), var(--cyan));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.service-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.03) 0%, transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: rgba(37,99,235,.25); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after  { opacity: 1; }
.service-icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.15rem;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.service-card:hover .service-icon { transform: scale(1.12) rotate(-5deg); }
.service-card .icon-blue   { background: rgba(37,99,235,.1);  color: var(--blue); }
.service-card .icon-amber  { background: rgba(245,158,11,.1); color: var(--amber); }
.service-card .icon-cyan   { background: rgba(14,165,233,.1); color: var(--cyan); }
.service-card .icon-green  { background: rgba(22,163,74,.1);  color: var(--green); }
.service-card .icon-purple { background: rgba(124,58,237,.1); color: var(--purple); }
.service-card .icon-red    { background: rgba(220,38,38,.1);  color: var(--red); }
.service-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: .7rem; }
.service-card p { font-size: .875rem; color: var(--text-muted); margin-bottom: 1.1rem; line-height: 1.75; }
.service-features { margin-bottom: 1.4rem; display: flex; flex-direction: column; gap: .38rem; }
.service-features li { font-size: .8rem; color: var(--text-muted); padding-left: 1.1rem; position: relative; line-height: 1.5; }
.service-features li::before { content: '→'; position: absolute; left: 0; color: var(--blue); font-size: .75rem; }
.service-link { font-size: .82rem; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: .25rem; transition: gap .25s, color .2s; }
.service-link:hover { gap: .5rem; color: var(--navy-mid); }

/* ============================================================
   SOFTWARE SECTION
   ============================================================ */
.software { background: var(--bg); }
.software-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; margin-bottom: 2.5rem; }
.software-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.8rem;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .25s;
  position: relative;
}
.software-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.software-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: rgba(37,99,235,.25); }
.software-card:hover::before { transform: scaleX(1); transform-origin: left; }
.sw-header { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.sw-badge {
  font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(37,99,235,.09); color: var(--blue);
  border: 1px solid rgba(37,99,235,.2); border-radius: 6px; padding: .22em .65em;
}
.software-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.software-card p { font-size: .875rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1.1rem; }
.software-cta {
  text-align: center; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2rem;
}
.software-cta p { font-size: .95rem; color: var(--text-muted); margin-bottom: 1.25rem; }

/* ============================================================
   WHY US
   ============================================================ */
.why-us { background: var(--bg-alt); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.why-text p { font-size: .97rem; color: var(--text-muted); line-height: 1.82; }
.why-list { margin: 1.75rem 0; display: flex; flex-direction: column; gap: .9rem; }
.why-list li { display: flex; align-items: flex-start; gap: .85rem; font-size: .9rem; color: var(--text-muted); line-height: 1.65; }
.why-check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(22,163,74,.12); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; margin-top: 1px;
  transition: transform .25s, background .25s;
}
.why-list li:hover .why-check { transform: scale(1.15); background: rgba(22,163,74,.2); }
.why-metrics { display: flex; flex-direction: column; gap: .85rem; }
.metric-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 1.2rem 1.4rem;
  transition: border-color .25s, transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
  position: relative; overflow: hidden;
}
.metric-card::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.metric-card:hover { border-color: rgba(37,99,235,.3); transform: translateX(4px); box-shadow: var(--sh); }
.metric-card:hover::after { transform: scaleY(1); }
.metric-num { font-family: var(--font-head); font-size: 1.75rem; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: .2rem; }
.metric-label { font-size: .8rem; color: var(--text-muted); margin-bottom: .7rem; }
.metric-bar { height: 4px; background: var(--bg-alt); border-radius: 2px; overflow: hidden; }
.metric-fill { height: 100%; background: linear-gradient(90deg, var(--navy-mid), var(--blue-bright)); border-radius: 2px; width: 0; transition: width 1.5s cubic-bezier(.22,1,.36,1); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 5rem; align-items: start; }
.about-card-main {
  background: var(--navy); border-radius: var(--r-xl); padding: 2.5rem;
  color: #fff; box-shadow: var(--sh-xl);
  position: relative; overflow: hidden;
}
.about-card-main::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(37,99,235,.3); filter: blur(60px);
}
.about-card-main::after {
  content: ''; position: absolute; bottom: -60px; left: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(14,165,233,.15); filter: blur(50px);
}
.about-icon-wrap {
  width: 68px; height: 68px; border-radius: 16px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; color: #93c5fd;
  transition: transform .3s;
}
.about-card-main:hover .about-icon-wrap { transform: scale(1.08) rotate(-5deg); }
.about-headline { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: .25rem; }
.about-sub { font-size: .88rem; color: rgba(255,255,255,.5); margin-bottom: 1.5rem; }
.about-divider { height: 1px; background: rgba(255,255,255,.1); margin-bottom: 1.5rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.about-tag {
  font-size: .71rem; font-weight: 600;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px; padding: .25em .7em; color: rgba(255,255,255,.72);
  transition: background .2s, color .2s;
}
.about-tag:hover { background: rgba(255,255,255,.18); color: #fff; }
.about-location-card {
  display: flex; align-items: center; gap: .75rem;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r);
  padding: 1rem 1.2rem; margin-top: 1rem;
  transition: border-color .25s, box-shadow .25s;
}
.about-location-card:hover { border-color: rgba(37,99,235,.35); box-shadow: var(--sh); }
.about-location-card svg { color: var(--blue); flex-shrink: 0; }
.about-location-card .badge-title { color: var(--text); font-size: .9rem; font-weight: 600; }
.about-location-card .badge-sub   { color: var(--text-muted); font-size: .78rem; }
.about-text .section-title { color: var(--navy); }
.about-text p { font-size: .97rem; color: var(--text-muted); line-height: 1.82; }
.about-values { margin-top: 1.75rem; display: flex; flex-direction: column; gap: .7rem; }
.value-item { display: flex; align-items: center; gap: .75rem; font-size: .9rem; color: var(--text-muted); padding: .6rem .8rem; border-radius: var(--r); transition: background .2s; }
.value-item:hover { background: var(--bg-alt); }
.value-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-alt); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
  transition: transform .25s;
}
.value-item:hover .value-icon { transform: scale(1.1) rotate(-5deg); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--bg-alt); overflow: hidden; }
.testimonial-track-wrapper { overflow: hidden; margin: 0 -24px; padding: 0 24px; }
.testimonial-track { display: flex; gap: 1.15rem; transition: transform .55s cubic-bezier(.25,.46,.45,.94); }
.testimonial-card {
  min-width: 360px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.75rem; flex-shrink: 0;
  box-shadow: var(--sh-sm);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, border-color .25s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: rgba(37,99,235,.22); }
.testimonial-stars { color: var(--amber); font-size: 1rem; margin-bottom: .9rem; letter-spacing: .07em; }
.testimonial-card blockquote { font-size: .9rem; color: var(--text-muted); line-height: 1.82; margin-bottom: 1.4rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .7rem; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-mid), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: .88rem; color: var(--navy); }
.testimonial-author span  { font-size: .77rem; color: var(--text-dim); }
.testimonial-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.t-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-card); border: 1.5px solid var(--border);
  color: var(--text-muted); font-size: 1rem;
  transition: all .22s; display: flex; align-items: center; justify-content: center;
}
.t-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: scale(1.08); }
.t-dots { display: flex; gap: .42rem; }
.t-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); transition: all .3s cubic-bezier(.22,1,.36,1); }
.t-dot.active { background: var(--blue); width: 22px; border-radius: 4px; }

/* ============================================================
   BLOG POSTS PREVIEW (homepage)
   ============================================================ */
/* latest-posts: create a stacking context above the fixed hero-bg (z-index:-1)
   position:relative + z-index:1 guarantees this section's background covers it */
.latest-posts {
  background: #ffffff;
  position: relative;
  z-index: 1;
}
.blog-preview { background: var(--bg); }
.blog-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.hp-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 1024px) { .hp-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .hp-blog-grid { grid-template-columns: 1fr; } }
.bp-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .25s;
  display: flex; flex-direction: column;
}
.bp-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: rgba(37,99,235,.25); }
.bp-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt); }
.bp-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bp-card:hover .bp-thumb img { transform: scale(1.04); }
.bp-thumb-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--blue); opacity: .3; }
.bp-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.bp-meta { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; font-size: .73rem; color: var(--text-dim); }
.bp-cat { background: rgba(37,99,235,.08); color: var(--blue); border: 1px solid rgba(37,99,235,.18); border-radius: 5px; padding: .18em .55em; font-weight: 600; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }
.bp-meta time { color: var(--text-dim); }
.bp-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .6rem; line-height: 1.4; }
.bp-title a:hover { color: var(--blue); }
.bp-excerpt { font-size: .85rem; color: var(--text-muted); line-height: 1.75; margin-bottom: auto; padding-bottom: 1.2rem; }
.bp-link {
  font-size: .82rem; font-weight: 600; color: var(--blue);
  display: inline-flex; align-items: center; gap: .3rem;
  margin-top: 1rem;
  transition: gap .25s, color .2s;
}
.bp-link:hover { gap: .55rem; color: var(--navy-mid); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--navy); padding: 108px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.12) 0%, transparent 50%, rgba(14,165,233,.08) 100%);
}
.cta-inner { text-align: center; max-width: 660px; margin: 0 auto; position: relative; }
.cta-orb { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .3; pointer-events: none; }
.cta-orb-1 { width: 300px; height: 300px; background: radial-gradient(var(--blue), transparent); top: -120px; left: -140px; }
.cta-orb-2 { width: 300px; height: 300px; background: radial-gradient(var(--cyan), transparent); bottom: -120px; right: -140px; }
.cta-inner h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 800; color: #fff; line-height: 1.18; margin: 1rem 0; letter-spacing: -.02em; }
.cta-inner p { font-size: 1rem; color: rgba(255,255,255,.6); margin-bottom: 2.2rem; line-height: 1.8; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--bg); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: .55rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq-item:hover, .faq-item.open { border-color: rgba(37,99,235,.32); }
.faq-item.open { box-shadow: var(--sh-sm); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1.1rem 1.4rem;
  font-size: .92rem; font-weight: 600; color: var(--navy);
  text-align: left; gap: 1rem; transition: color .2s;
}
.faq-question:hover { color: var(--blue); }
.faq-icon { font-size: 1.25rem; color: var(--blue); flex-shrink: 0; transition: transform .35s cubic-bezier(.22,1,.36,1); line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .42s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 1.4rem 1.1rem; font-size: .88rem; color: var(--text-muted); line-height: 1.82; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start; }
.contact-info p { font-size: .97rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.82; }
.contact-items { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-item { display: flex; align-items: flex-start; gap: .9rem; }
.contact-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.16);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); flex-shrink: 0; margin-top: 2px;
  transition: background .25s, transform .25s;
}
.contact-item:hover .contact-icon { background: rgba(37,99,235,.14); transform: scale(1.08); }
.contact-item strong { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: .32rem; }
.contact-item a { font-size: .9rem; color: var(--text-muted); display: block; transition: color .2s; }
.contact-item a:hover { color: var(--blue); }
.contact-item span { font-size: .9rem; color: var(--text-muted); }
.contact-form-wrap {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 2.25rem; box-shadow: var(--sh);
  transition: box-shadow .3s;
}
.contact-form-wrap:focus-within { box-shadow: var(--sh-lg); }
.contact-form { display: flex; flex-direction: column; gap: 1.05rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-group { display: flex; flex-direction: column; gap: .38rem; }
.form-group label { font-size: .77rem; font-weight: 600; color: var(--text-muted); letter-spacing: .03em; }
.form-group input, .form-group select, .form-group textarea {
  background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: var(--r); padding: .72rem 1rem;
  font: inherit; font-size: .88rem; color: var(--text);
  transition: border-color .22s, box-shadow .22s, background .22s;
  resize: vertical; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); background: #fff;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:hover:not(:focus), .form-group select:hover:not(:focus), .form-group textarea:hover:not(:focus) { border-color: #a0aec0; }
.btn-spinner .spin { animation: spin-anim .75s linear infinite; }
@keyframes spin-anim { to { transform: rotate(360deg); } }
.form-success {
  text-align: center; padding: 1rem;
  background: rgba(22,163,74,.08); border: 1px solid rgba(22,163,74,.2);
  border-radius: var(--r); color: var(--green); font-size: .88rem; font-weight: 600;
  animation: hero-in .4s ease both;
}
.form-error {
  text-align: center; padding: .75rem;
  background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.2);
  border-radius: var(--r); color: var(--red); font-size: .85rem; font-weight: 500;
  animation: hero-in .4s ease both;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-dark); border-top: 1px solid rgba(255,255,255,.05); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3.5rem; }
.footer-brand p { font-size: .84rem; color: rgba(255,255,255,.38); margin: 1rem 0 .75rem; max-width: 225px; line-height: 1.75; }
.footer-col h4 { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.42); margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .52rem; }
.footer-col a { font-size: .84rem; color: rgba(255,255,255,.36); transition: color .2s; }
.footer-col a:hover { color: rgba(255,255,255,.75); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.05);
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.27); }
.footer-legal { display: flex; gap: 1.4rem; }
.footer-legal a { font-size: .76rem; color: rgba(255,255,255,.27); transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,.55); }
/* WordPress nav in footer */
.footer-legal-links { display: flex; gap: 1.4rem; }
.footer-legal-links li a { font-size: .76rem; color: rgba(255,255,255,.27); transition: color .2s; }
.footer-legal-links li a:hover { color: rgba(255,255,255,.55); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .software-grid  { grid-template-columns: 1fr 1fr; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .blog-preview-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero         { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-visual  { display: none; }
  .why-grid     { grid-template-columns: 1fr; gap: 3rem; }
  .about-grid   { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .software-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-cta    { display: none; }
  .hamburger  { display: flex; }
}
@media (max-width: 768px) {
  .section    { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row   { grid-template-columns: 1fr; }
  .hero-stats { gap: 1rem; }
  .stat-divider { display: none; }
  .testimonial-card { min-width: calc(100vw - 48px); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .areas-list { gap: .75rem; }
  .blog-preview-grid { grid-template-columns: 1fr; }
}
