/* =====================
   LOADING SCREEN
   ===================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg, #050810);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: loader-fade-in 0.5s ease both;
}
@keyframes loader-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.loader__logo {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -1px;
  color: #ffffff;
}
.loader__logo span { color: #1E90FF; }

.loader__tagline {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(128,144,168,.7);
}

/* Progress bar */
.loader__bar-track {
  width: 200px;
  height: 3px;
  background: rgba(30,144,255,.15);
  border-radius: 999px;
  overflow: hidden;
}
.loader__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1E90FF, #3FAAFF);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(30,144,255,.7);
  transition: width 0.1s linear;
}

/* Dots */
.loader__dots {
  display: flex;
  gap: 7px;
}
.loader__dots span {
  width: 6px; height: 6px;
  background: rgba(30,144,255,.5);
  border-radius: 50%;
  animation: loader-dot 1.2s infinite ease-in-out;
}
.loader__dots span:nth-child(2) { animation-delay: 0.2s; }
.loader__dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes loader-dot {
  0%,60%,100% { transform: scale(1);   opacity: .4; }
  30%          { transform: scale(1.5); opacity: 1;  background: #3FAAFF; }
}

/* Lock scroll while loading */
body.loading { overflow: hidden; }

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1E90FF;
  --blue-bright:#3FAAFF;
  --blue-dim:   #0A3A6A;
  --bg:         #050810;
  --bg2:        #080D1A;
  --bg3:        #0D1526;
  --border:     rgba(30, 144, 255, 0.15);
  --text:       #E8EDF5;
  --text-muted: #8090A8;
  --white:      #ffffff;
  --radius:     14px;
  --font:       'Inter', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* =====================
   GRADIENT TEXT
   ===================== */
.gradient-text {
  background: linear-gradient(135deg, var(--blue-bright), #7EB8FF, var(--blue-bright));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font);
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 24px rgba(30,144,255,.35);
}
.btn--primary:hover {
  background: var(--blue-bright);
  box-shadow: 0 0 36px rgba(30,144,255,.55);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue-bright);
  background: rgba(30,144,255,.06);
}

.btn--sm { padding: 9px 20px; font-size: 0.875rem; }
.btn--full { width: 100%; justify-content: center; }

/* =====================
   NAV
   ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition:
    background   0.4s ease,
    border-color 0.4s ease,
    box-shadow   0.4s ease;
}

.nav.scrolled {
  background: rgba(5, 8, 16, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
  box-shadow:
    0 1px 0 rgba(30, 144, 255, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.55);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--white);
  flex-shrink: 0;
}
.nav__logo span { color: var(--blue); }

.nav__links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav__links a:hover { color: var(--white); }

.nav .btn--sm { margin-left: 8px; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(8,13,26,.98);
  border-top: 1px solid var(--border);
  padding: 8px 24px 24px;
}
.nav__mobile a {
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav__mobile a:hover { color: var(--white); }
.nav__mobile a:last-child { border-bottom: none; }

.nav__mobile.open { display: flex; }

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,144,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,144,255,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(30,144,255,.1);
  border: 1px solid rgba(30,144,255,.25);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-bright);
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}

.pulse {
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(30,144,255,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(30,144,255,.7); }
  70%  { box-shadow: 0 0 0 8px rgba(30,144,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(30,144,255,0); }
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: var(--white);
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}
.stat__number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
}
.stat > span:nth-child(2) {
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
}
.stat__label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

.stat__divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid var(--border);
  border-radius: 12px;
  position: relative;
}
.hero__scroll span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--blue);
  border-radius: 2px;
  animation: scroll-bounce 1.8s infinite;
}
@keyframes scroll-bounce {
  0%, 100% { top: 6px; opacity: 1; }
  70%       { top: 16px; opacity: 0; }
}

/* =====================
   SECTION COMMONS
   ===================== */
.section-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
}
.section-sub.left { max-width: 480px; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-sub { margin: 0 auto; }

/* =====================
   SERVICES
   ===================== */
.services {
  padding: 100px 0;
  background: var(--bg2);
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

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

.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(30,144,255,.07), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}
.card:hover::before { opacity: 1; }
.card:hover {
  border-color: rgba(30,144,255,.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4), 0 0 0 1px rgba(30,144,255,.15);
}

.card--featured {
  border-color: rgba(30,144,255,.45);
  background: linear-gradient(135deg, var(--bg3), rgba(30,144,255,.05));
  box-shadow: 0 0 40px rgba(30,144,255,.1);
}

.card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.card__icon {
  width: 52px;
  height: 52px;
  background: rgba(30,144,255,.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--blue-bright);
}
.card__icon svg { width: 26px; height: 26px; }

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.65;
}

.card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.card__list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

.card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-bright);
  transition: var(--transition);
}
.card__link:hover { letter-spacing: 0.3px; }

/* =====================
   CASES
   ===================== */
.cases {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
}
.cases::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

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

/* ── Card base ── */
.case-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(28px);
  position: relative;
  overflow: hidden;
}
.case-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.case-card:hover::after { transform: scaleX(1); }
.case-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.4,0,.2,1),
              border-color var(--transition), box-shadow var(--transition);
}
.case-card:hover {
  border-color: rgba(30,144,255,.4);
  box-shadow: 0 24px 56px rgba(0,0,0,.45);
  transform: translateY(-5px) !important;
}

/* Featured card */
.case-card--featured {
  border-color: rgba(30,144,255,.4);
  background: linear-gradient(160deg, var(--bg3), rgba(30,144,255,.06));
  box-shadow: 0 0 40px rgba(30,144,255,.1);
}
.case-card--featured::after { background: linear-gradient(90deg, var(--blue), #4ade80); }

/* ── Header ── */
.case-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.case-card__industry {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}
.case-card__industry svg {
  width: 14px; height: 14px;
  color: var(--blue-bright);
  flex-shrink: 0;
}

.case-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(30,144,255,.15);
  color: var(--blue-bright);
  border: 1px solid rgba(30,144,255,.25);
  white-space: nowrap;
}
.case-card__tag--green  { background: rgba(74,222,128,.12); color: #4ade80; border-color: rgba(74,222,128,.25); }
.case-card__tag--purple { background: rgba(167,139,250,.12); color: #a78bfa; border-color: rgba(167,139,250,.25); }

/* ── Title & desc ── */
.case-card__title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}

.case-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Metrics row ── */
.case-card__metrics {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 10px;
  border-right: 1px solid var(--border);
  gap: 4px;
}
.metric:last-child { border-right: none; }

.metric__value {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1;
}
.metric__unit {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-bright);
}
.metric__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ── Quote ── */
.case-card__quote {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.65;
  border-left: 2px solid var(--blue);
  padding-left: 14px;
  margin: 0;
}
.case-card__quote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
  color: var(--blue-bright);
}

/* ── Progress bar ── */
.case-card__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.case-card__bar-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  display: none;   /* shown only on wider layout */
}
.case-card__bar-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  overflow: hidden;
}
.case-card__bar-fill {
  height: 100%;
  width: 0%;                    /* animated by JS */
  border-radius: 999px;
  background: var(--blue);
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 8px rgba(30,144,255,.6);
}
.case-card__bar-fill--green  {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,.6);
}
.case-card__bar-fill--purple {
  background: #a78bfa;
  box-shadow: 0 0 8px rgba(167,139,250,.6);
}
.case-card__bar-pct {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  min-width: 36px;
  text-align: right;
}

/* ── CTA ── */
.cases__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  padding: 48px 24px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.cases__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(30,144,255,.08), transparent);
  pointer-events: none;
}
.cases__cta p {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cases__grid { grid-template-columns: 1fr; max-width: 580px; margin-inline: auto; }
}

/* =====================
   WHY
   ===================== */
.why {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
}
.why::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.why__left {
  position: sticky;
  top: 100px;
}
.why__left .section-title { margin-bottom: 20px; }
.why__left .section-sub { margin-bottom: 36px; }

.why__right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.why__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: var(--transition);
  opacity: 0;
  transform: translateX(20px);
}
.why__item.visible {
  opacity: 1;
  transform: translateX(0);
}
.why__item:hover {
  border-color: rgba(30,144,255,.35);
  background: rgba(13,21,38,.8);
}

.why__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(30,144,255,.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-bright);
}
.why__icon svg { width: 20px; height: 20px; }

.why__item h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.why__item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =====================
   CONTACT
   ===================== */
.contact {
  padding: 100px 0;
  background: var(--bg2);
  position: relative;
}
.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__left {
  position: sticky;
  top: 100px;
}
.contact__left .section-title { margin-bottom: 20px; }
.contact__left .section-sub { margin-bottom: 40px; }

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__detail {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.contact__detail svg {
  width: 20px; height: 20px;
  color: var(--blue-bright);
  flex-shrink: 0;
}

/* FORM */
.form {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.form__group input,
.form__group select,
.form__group textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.92rem;
  transition: var(--transition);
  outline: none;
  resize: none;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--blue);
  background: rgba(30,144,255,.06);
  box-shadow: 0 0 0 3px rgba(30,144,255,.12);
}

.form__group input::placeholder,
.form__group textarea::placeholder { color: rgba(128,144,168,.5); }

.form__group select option { background: var(--bg3); color: var(--text); }

.form__success {
  text-align: center;
  color: #4ade80;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px;
  background: rgba(74,222,128,.08);
  border-radius: 8px;
  border: 1px solid rgba(74,222,128,.2);
}

.btn__loader svg {
  width: 18px; height: 18px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================
   FOOTER
   ===================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer__brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 260px;
  margin-top: 14px;
  line-height: 1.65;
}

.footer__links {
  display: flex;
  gap: 64px;
}
.footer__links > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links h5 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}
.footer__links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer__links a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.footer__bottom p {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.footer__socials {
  display: flex;
  gap: 16px;
}
.footer__socials a {
  width: 36px; height: 36px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer__socials a:hover {
  border-color: var(--blue);
  color: var(--blue-bright);
  background: rgba(30,144,255,.08);
}
.footer__socials svg { width: 16px; height: 16px; }

/* =====================
   FLOAT STACK
   ===================== */
.float-stack {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* =====================
   CHAT WIDGET
   ===================== */
.chat-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  position: relative;
}

/* ── Toggle button ── */
.chat-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg3);
  border: 1px solid rgba(30,144,255,.4);
  border-radius: 999px;
  padding: 12px 20px 12px 14px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,.5), 0 0 0 1px rgba(30,144,255,.1);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  animation: chat-entrance 0.6s cubic-bezier(.34,1.56,.64,1) 1.5s both;
  position: relative;
}
@keyframes chat-entrance {
  from { opacity:0; transform: translateY(20px) scale(.88); }
  to   { opacity:1; transform: translateY(0)    scale(1); }
}
.chat-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 12px 36px rgba(0,0,0,.55), 0 0 20px rgba(30,144,255,.2);
}

.chat-toggle__icon {
  width: 32px; height: 32px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.chat-toggle__icon svg { width: 16px; height: 16px; color: #fff; }
.chat-toggle:hover .chat-toggle__icon { transform: scale(1.08); }

/* unread dot */
.chat-toggle__dot {
  position: absolute;
  top: 8px; left: 36px;
  width: 10px; height: 10px;
  background: #4ade80;
  border: 2px solid var(--bg3);
  border-radius: 50%;
  display: none;
  animation: dot-pulse 2s infinite;
}
.chat-toggle__dot.visible { display: block; }
@keyframes dot-pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}

/* ── Panel ── */
.chat-panel {
  width: 360px;
  background: var(--bg3);
  border: 1px solid rgba(30,144,255,.25);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,.7), 0 0 0 1px rgba(30,144,255,.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 10px;
  /* closed state */
  opacity: 0;
  transform: translateY(12px) scale(.97);
  pointer-events: none;
  transform-origin: bottom right;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(.4,0,.2,1);
  max-height: 520px;
}
.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── Header ── */
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(30,144,255,.18), rgba(30,144,255,.06));
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-header__avatar {
  position: relative;
  width: 40px; height: 40px;
  flex-shrink: 0;
}
.chat-header__avatar svg { width: 40px; height: 40px; }
.chat-header__status {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  background: #4ade80;
  border: 2px solid var(--bg3);
  border-radius: 50%;
}

.chat-header__info { flex: 1; }
.chat-header__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.chat-header__sub {
  font-size: 0.72rem;
  color: var(--blue-bright);
  font-weight: 500;
}

.chat-header__close {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-header__close svg { width: 12px; height: 12px; }
.chat-header__close:hover { background: rgba(255,255,255,.1); color: var(--white); }

/* ── Messages ── */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  min-height: 260px;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Bubble base */
.msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  animation: msg-in 0.28s cubic-bezier(.4,0,.2,1);
}
@keyframes msg-in {
  from { opacity:0; transform: translateY(8px); }
  to   { opacity:1; transform: translateY(0); }
}

.msg__bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.855rem;
  line-height: 1.55;
}
.msg__time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: block;
  padding: 0 4px;
}

/* Bot messages — left aligned */
.msg--bot { align-items: flex-end; }
.msg--bot .msg__avatar {
  width: 28px; height: 28px;
  background: rgba(30,144,255,.2);
  border: 1px solid rgba(30,144,255,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.msg--bot .msg__avatar svg { width: 14px; height: 14px; color: var(--blue-bright); }
.msg--bot  .msg__bubble {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}

/* User messages — right aligned */
.msg--user { flex-direction: row-reverse; }
.msg--user .msg__bubble {
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.msg--typing .msg__bubble {
  padding: 12px 16px;
}
.typing-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 14px;
}
.typing-dots span {
  width: 6px; height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%,60%,100% { transform: translateY(0); opacity:.5; }
  30%          { transform: translateY(-5px); opacity:1; }
}

/* ── Quick replies ── */
.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 16px 12px;
  flex-shrink: 0;
}
.chat-quick button {
  background: transparent;
  border: 1px solid rgba(30,144,255,.35);
  border-radius: 999px;
  color: var(--blue-bright);
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 13px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.chat-quick button:hover {
  background: rgba(30,144,255,.12);
  border-color: var(--blue);
}

/* ── Input ── */
.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  flex-shrink: 0;
}
.chat-input input {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.855rem;
  outline: none;
  transition: var(--transition);
}
.chat-input input:focus {
  border-color: var(--blue);
  background: rgba(30,144,255,.06);
}
.chat-input input::placeholder { color: rgba(128,144,168,.45); }

.chat-input button[type=submit] {
  width: 36px; height: 36px;
  background: var(--blue);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-input button[type=submit] svg { width: 15px; height: 15px; }
.chat-input button[type=submit]:hover {
  background: var(--blue-bright);
  transform: scale(1.08);
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .float-stack { right: 16px; bottom: 20px; }
  .chat-panel  { width: calc(100vw - 32px); }
  .chat-toggle__label { display: none; }
  .chat-toggle { padding: 12px; }
}

/* =====================
   WHATSAPP FLOAT
   ===================== */
.wa-float {
  position: static;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  padding: 14px 20px 14px 16px;
  box-shadow: 0 8px 30px rgba(37, 211, 102, .45);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1),
              box-shadow 0.3s cubic-bezier(.4,0,.2,1),
              padding 0.3s cubic-bezier(.4,0,.2,1);
  animation: wa-entrance 0.6s cubic-bezier(.34,1.56,.64,1) 1.2s both;
  overflow: hidden;
}

/* entrance from bottom-right */
@keyframes wa-entrance {
  from { opacity: 0; transform: translateY(24px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* pulse ring behind the button */
.wa-float__ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid #25D366;
  animation: wa-ring 2.4s ease-out 2s infinite;
  pointer-events: none;
}
@keyframes wa-ring {
  0%   { transform: scale(1);    opacity: 0.7; }
  80%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.wa-float__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
  transition: transform 0.3s ease;
}

.wa-float__label {
  white-space: nowrap;
  letter-spacing: 0.2px;
}

/* hover */
.wa-float:hover {
  background: #1ebe5d;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 40px rgba(37,211,102,.55);
}
.wa-float:hover .wa-float__icon {
  transform: rotate(-8deg) scale(1.1);
}

/* collapse to circle on small screens */
@media (max-width: 480px) {
  .wa-float {
    padding: 15px;
    bottom: 24px;
    right: 20px;
  }
  .wa-float__label { display: none; }
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__inner     { grid-template-columns: 1fr; gap: 48px; }
  .why__left      { position: static; }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .contact__left  { position: static; }
}

@media (max-width: 768px) {
  .nav__links, .nav .btn--sm { display: none; }
  .nav__burger { display: flex; }

  .services__grid { grid-template-columns: 1fr; }
  .form__row      { grid-template-columns: 1fr; }
  .form           { padding: 28px 20px; }
  .footer__links  { gap: 32px; }
  .hero__stats    { gap: 24px; }
  .stat__divider  { display: none; }
  .br-desktop     { display: none; }
}

@media (max-width: 480px) {
  .footer__inner  { flex-direction: column; }
  .footer__links  { flex-direction: column; gap: 24px; }
  .hero__title    { letter-spacing: -0.8px; }
}
