/* ==========================================================
   DigiPulse Labs LLC — Main Stylesheet
   ========================================================== */

:root {
  --bg: #0a0b1e;
  --bg-2: #11132e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e9eaf6;
  --muted: #a3a6c8;
  --primary: #7c3aed;
  --secondary: #06b6d4;
  --accent: #f472b6;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --gradient-2: linear-gradient(135deg, #f472b6 0%, #7c3aed 100%);
  --radius: 18px;
  --shadow: 0 20px 50px -15px rgba(124, 58, 237, 0.45);
  --container: 1200px;
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 110px 0; position: relative; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: grid;
  place-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hide { opacity: 0; visibility: hidden; }
.pulse-loader { position: relative; width: 80px; height: 80px; }
.pulse-loader span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--secondary);
  animation: pulseRing 1.6s var(--ease) infinite;
  opacity: 0;
}
.pulse-loader span:nth-child(2) { animation-delay: 0.4s; border-color: var(--primary); }
.pulse-loader span:nth-child(3) { animation-delay: 0.8s; border-color: var(--accent); }
@keyframes pulseRing {
  0% { transform: scale(0.2); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- Scroll progress + cursor glow ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--gradient);
  z-index: 1001;
}
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s, height 0.4s;
}
.header.scrolled {
  background: rgba(10, 11, 30, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  height: 70px;
}
.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; }
.logo img { width: 42px; height: 42px; }
.logo small { display: block; font-size: 0.62rem; font-weight: 500; color: var(--muted); letter-spacing: 3px; line-height: 1; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > li { position: relative; }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
  padding: 6px 0;
}
.nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { width: 100%; }

/* Dropdown */
.dropdown > a i { font-size: 0.7rem; margin-left: 4px; transition: transform 0.3s; }
.dropdown:hover > a i { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: 140%;
  left: 50%;
  transform: translate(-50%, 10px);
  min-width: 260px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease);
  box-shadow: var(--shadow);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.3s, padding 0.3s;
}
.dropdown-menu a i { width: 18px; color: var(--secondary); }
.dropdown-menu a:hover { background: var(--surface-2); padding-left: 20px; }

.menu-toggle { display: none; width: 30px; height: 22px; position: relative; z-index: 1002; }
.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.35s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }
.menu-toggle.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.menu-toggle.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow); }
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-2);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}
.btn-primary:hover::before { opacity: 1; }
.btn-outline { border: 1.5px solid var(--border); background: var(--surface); }
.btn-outline:hover { border-color: var(--secondary); color: var(--secondary); }
.btn:hover { transform: translateY(-3px); }
.btn i { transition: transform 0.3s; }
.btn:hover i { transform: translateX(4px); }
.btn-sm { padding: 10px 22px; font-size: 0.88rem; }

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple 0.7s linear;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Background blobs ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: -1;
  animation: blobFloat 14s ease-in-out infinite alternate;
}
.blob-1 { width: 480px; height: 480px; background: var(--primary); top: -120px; left: -140px; }
.blob-2 { width: 380px; height: 380px; background: var(--secondary); bottom: -80px; right: -100px; animation-delay: -5s; }
.blob-3 { width: 260px; height: 260px; background: var(--accent); top: 40%; left: 45%; opacity: 0.25; animation-delay: -9s; }
@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.12); }
  100% { transform: translate(-40px, 50px) scale(0.92); }
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  z-index: -1;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  overflow: hidden;
  isolation: isolate;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 50px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: dotPulse 1.8s infinite;
}
@keyframes dotPulse {
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 22px;
}
.typed-wrap { display: inline-block; min-height: 1.2em; }
.typed { border-right: 3px solid var(--secondary); padding-right: 4px; animation: caret 0.8s step-end infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 540px; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 50px; flex-wrap: wrap; }
.hero-stats h3 { font-size: 2rem; font-weight: 700; line-height: 1; }
.hero-stats p { font-size: 0.85rem; color: var(--muted); }

.hero-visual { position: relative; }
.hero-visual > img { animation: floatY 6s ease-in-out infinite; filter: drop-shadow(0 30px 60px rgba(124, 58, 237, 0.35)); }
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(17, 19, 46, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  animation: floatY 5s ease-in-out infinite;
}
.float-card i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
}
.float-card small { display: block; color: var(--muted); font-weight: 400; font-size: 0.75rem; }
.fc-1 { top: 8%; left: -6%; animation-delay: -1s; }
.fc-2 { bottom: 12%; right: -4%; animation-delay: -2.5s; }
.fc-3 { bottom: -2%; left: 10%; animation-delay: -3.5s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--muted);
  border-radius: 20px;
}
.scroll-down::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--secondary);
  border-radius: 2px;
  animation: scrollWheel 1.6s infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Marquee ---------- */
.marquee {
  padding: 26px 0;
  border-block: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 60px; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.4rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
}
.marquee-track span i { color: var(--secondary); -webkit-text-stroke: 0; font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section headings ---------- */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 14px;
}
.section-tag::before { content: "— "; }
.section-head h2,
.split h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.25; font-weight: 700; margin-bottom: 16px; }
.section-head p { color: var(--muted); }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.service-card {
  position: relative;
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
  isolation: isolate;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 58, 237, 0.2), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { border-color: rgba(124, 58, 237, 0.5); box-shadow: var(--shadow); }
.service-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--gradient);
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 26px;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .service-icon { transform: rotateY(360deg) scale(1.05); }
.service-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; }
.service-card .num {
  position: absolute;
  top: 20px;
  right: 26px;
  font-size: 3.6rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  line-height: 1;
}
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--secondary); font-size: 0.92rem; }
.link-arrow i { transition: transform 0.3s; }
.link-arrow:hover i { transform: translateX(6px); }

/* ---------- About / Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split p { color: var(--muted); margin-bottom: 18px; }
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); }
.experience-badge {
  position: absolute;
  bottom: -26px;
  right: -10px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--gradient);
  text-align: center;
  box-shadow: var(--shadow);
  animation: floatY 5s ease-in-out infinite;
}
.experience-badge h3 { font-size: 2.4rem; line-height: 1; }
.experience-badge p { color: #fff; margin: 0; font-size: 0.85rem; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 34px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check-list i { color: var(--secondary); }

/* ---------- Counters ---------- */
.counters { padding: 70px 0; background: var(--bg-2); border-block: 1px solid var(--border); }
.counters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.counter-item i { font-size: 2rem; margin-bottom: 12px; color: var(--secondary); }
.counter-item h3 { font-size: 2.8rem; font-weight: 800; line-height: 1.1; }
.counter-item p { color: var(--muted); }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.process-grid::before {
  content: "";
  position: absolute;
  top: 45px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 20px);
  z-index: -1;
}
.process-step { text-align: center; padding: 0 10px; }
.process-step .step-num {
  width: 90px;
  height: 90px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: var(--bg-2);
  border: 2px solid var(--border);
  position: relative;
  transition: all 0.4s var(--ease);
}
.process-step .step-num::after {
  content: attr(data-step);
  position: absolute;
  top: -4px;
  right: -4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient);
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.process-step:hover .step-num { border-color: var(--secondary); transform: translateY(-8px); box-shadow: 0 0 40px rgba(6, 182, 212, 0.35); }
.process-step h4 { font-size: 1.15rem; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Portfolio ---------- */
.filter-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 46px; }
.filter-btn {
  padding: 9px 24px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
}
.filter-btn.active,
.filter-btn:hover { background: var(--gradient); border-color: transparent; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transition: transform 0.5s var(--ease), opacity 0.5s;
}
.portfolio-item.hidden { display: none; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.portfolio-item:hover img { transform: scale(1.1) rotate(1deg); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(10, 11, 30, 0.95), transparent 70%);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s var(--ease);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; transform: translateY(0); }
.portfolio-overlay span { color: var(--secondary); font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.portfolio-overlay h4 { font-size: 1.2rem; }

/* ---------- Testimonials ---------- */
.testimonial-slider { max-width: 820px; margin: 0 auto; position: relative; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.7s var(--ease); }
.testimonial {
  min-width: 100%;
  padding: 50px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.testimonial .quote-icon { font-size: 2.4rem; margin-bottom: 18px; }
.testimonial p { font-size: 1.12rem; font-style: italic; color: var(--text); margin-bottom: 26px; }
.testimonial .stars { color: #fbbf24; margin-bottom: 18px; letter-spacing: 3px; }
.client { display: flex; align-items: center; justify-content: center; gap: 14px; }
.client .avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gradient);
  font-weight: 700;
  font-size: 1.1rem;
}
.client h5 { font-size: 1rem; text-align: left; }
.client small { color: var(--muted); display: block; text-align: left; }
.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 10px;
  background: var(--border);
  transition: all 0.4s var(--ease);
}
.slider-dots button.active { width: 34px; background: var(--gradient); }

/* ---------- CTA ---------- */
.cta-box {
  position: relative;
  padding: 70px 50px;
  border-radius: 28px;
  text-align: center;
  background: var(--gradient);
  overflow: hidden;
  isolation: isolate;
}
.cta-box::before,
.cta-box::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  z-index: -1;
  animation: spin 25s linear infinite;
}
.cta-box::before { width: 400px; height: 400px; top: -200px; left: -100px; border-style: dashed; }
.cta-box::after { width: 300px; height: 300px; bottom: -150px; right: -60px; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-box h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 14px; line-height: 1.25; }
.cta-box p { max-width: 560px; margin: 0 auto 32px; color: rgba(255, 255, 255, 0.85); }
.cta-box .btn { background: #fff; color: var(--primary); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.info-item {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.info-item:hover { transform: translateX(8px); border-color: var(--secondary); }
.info-item i {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--gradient);
  font-size: 1.2rem;
}
.info-item h5 { font-size: 1rem; }
.info-item p { color: var(--muted); font-size: 0.92rem; word-break: break-word; }

.contact-form {
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { position: relative; margin-bottom: 22px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group select option { background: var(--bg-2); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group label {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: all 0.25s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15); }
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  font-size: 0.75rem;
  color: var(--secondary);
  background: var(--bg-2);
  border-radius: 4px;
}
.form-msg { margin-top: 16px; font-size: 0.92rem; display: none; }
.form-msg.show { display: block; animation: fadeUp 0.5s var(--ease); }
.form-msg.success { color: #22c55e; }
.form-msg.error { color: #f87171; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.footer { background: #070816; padding: 80px 0 0; border-top: 1px solid var(--border); position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer p { color: var(--muted); font-size: 0.92rem; margin: 18px 0 22px; }
.footer h4 { font-size: 1.1rem; margin-bottom: 22px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--gradient); }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--muted); font-size: 0.92rem; transition: color 0.3s, padding 0.3s; }
.footer-links a:hover { color: var(--secondary); padding-left: 6px; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
}
.socials a:hover { background: var(--gradient); transform: translateY(-5px) rotate(360deg); border-color: transparent; }
.newsletter { display: flex; margin-top: 10px; border-radius: 50px; overflow: hidden; border: 1px solid var(--border); }
.newsletter input { flex: 1; min-width: 0; padding: 12px 18px; background: transparent; border: none; color: var(--text); font: inherit; font-size: 0.9rem; outline: none; }
.newsletter button { padding: 0 20px; background: var(--gradient); color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding: 24px 0; text-align: center; color: var(--muted); font-size: 0.88rem; }
.footer-bottom p { margin: 0; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--ease);
  z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-5px); }

/* ---------- Page banner (service pages) ---------- */
.page-banner {
  padding: calc(var(--header-h) + 90px) 0 90px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.page-banner h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.page-banner p { color: var(--muted); max-width: 640px; margin: 0 auto 26px; }
.breadcrumb { display: inline-flex; gap: 10px; align-items: center; font-size: 0.9rem; color: var(--muted); padding: 8px 20px; border-radius: 50px; background: var(--surface-2); border: 1px solid var(--border); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb i { font-size: 0.65rem; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-box {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.feature-box:hover { transform: translateY(-10px); border-color: var(--secondary); }
.feature-box i { font-size: 1.8rem; margin-bottom: 18px; display: inline-block; }
.feature-box h4 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-box p { color: var(--muted); font-size: 0.92rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: center; }
.price-card {
  padding: 44px 34px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.price-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.price-card.featured { background: linear-gradient(160deg, rgba(124, 58, 237, 0.25), rgba(6, 182, 212, 0.12)); border-color: rgba(124, 58, 237, 0.6); padding: 56px 34px; }
.price-card .ribbon {
  position: absolute;
  top: 18px;
  right: -1px;
  padding: 4px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--gradient-2);
  border-radius: 20px 0 0 20px;
}
.price-card h4 { font-size: 1.2rem; color: var(--muted); font-weight: 500; }
.price-card .price { font-size: 3rem; font-weight: 800; margin: 12px 0 24px; line-height: 1; }
.price-card .price span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.price-card ul { text-align: left; margin-bottom: 30px; }
.price-card li { padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 0.92rem; display: flex; gap: 10px; align-items: center; }
.price-card li i { color: var(--secondary); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 14px; background: var(--surface); overflow: hidden; transition: border-color 0.3s; }
.faq-item.open { border-color: rgba(124, 58, 237, 0.6); }
.faq-q { width: 100%; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; font-weight: 600; font-size: 1rem; }
.faq-q i { transition: transform 0.4s var(--ease); color: var(--secondary); }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-a p { padding: 0 24px 22px; color: var(--muted); }

.tech-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tech-list span { padding: 8px 18px; border-radius: 50px; background: var(--surface-2); border: 1px solid var(--border); font-size: 0.88rem; transition: all 0.3s; }
.tech-list span:hover { background: var(--gradient); border-color: transparent; transform: translateY(-3px); }

.other-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.other-services a {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-weight: 600;
  transition: all 0.4s var(--ease);
}
.other-services a i { font-size: 1.5rem; color: var(--secondary); }
.other-services a:hover { transform: translateY(-6px); border-color: var(--primary); background: var(--surface-2); }

/* ---------- Legal pages ---------- */
.legal-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 50px; align-items: start; }
.legal-toc {
  position: sticky;
  top: 100px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.legal-toc h5 { font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; color: var(--secondary); margin-bottom: 12px; }
.legal-toc a { display: block; padding: 6px 0; font-size: 0.88rem; color: var(--muted); transition: color 0.3s, padding 0.3s; }
.legal-toc a:hover { color: var(--text); padding-left: 6px; }
.legal-content {
  padding: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.legal-content .updated { display: inline-block; font-size: 0.85rem; color: var(--muted); padding: 6px 16px; border-radius: 50px; background: var(--surface-2); margin-bottom: 26px; }
.legal-content h2 { font-size: 1.35rem; margin: 34px 0 12px; padding-top: 10px; scroll-margin-top: 90px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.legal-content p,
.legal-content li { color: var(--muted); font-size: 0.96rem; }
.legal-content p { margin-bottom: 12px; }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--secondary); }
.legal-content strong { color: var(--text); }
.legal-contact { margin-top: 14px; padding: 20px 24px; border-radius: 14px; background: var(--surface-2); border-left: 3px solid var(--secondary); }
.legal-contact p { margin-bottom: 4px; }

/* ---------- Merchant / payment ---------- */
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--muted); font-size: 0.92rem; }
.footer-contact i { color: var(--secondary); margin-top: 5px; width: 16px; }
.payment-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 2rem; color: var(--muted); }
.payment-icons i { transition: color 0.3s, transform 0.3s; }
.payment-icons i:hover { color: var(--text); transform: translateY(-3px); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.legal-links a:hover { color: var(--secondary); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); margin-bottom: 22px; cursor: pointer; }
.consent input { margin-top: 5px; accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.consent a { color: var(--secondary); }
.price-note { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 34px; }
.price-note a { color: var(--secondary); }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); will-change: opacity, transform; }
[data-reveal="up"] { transform: translateY(60px); }
[data-reveal="down"] { transform: translateY(-60px); }
[data-reveal="left"] { transform: translateX(-70px); }
[data-reveal="right"] { transform: translateX(70px); }
[data-reveal="zoom"] { transform: scale(0.85); }
[data-reveal].revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container, .split { grid-template-columns: 1fr; gap: 60px; }
  .hero { text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-btns, .hero-stats { justify-content: center; }
  .hero-visual { width: 100%; max-width: 520px; margin: 0 auto; }
  .scroll-down { display: none; }
  .portfolio-grid, .features-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid, .counters-grid, .other-services { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .process-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid, .legal-wrap { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .price-card.featured { padding: 44px 34px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 30px 30px;
    background: var(--bg-2);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5); }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 18px; width: 100%; }
  .nav-links > li { width: 100%; }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 6px 0 0 8px;
    min-width: 0;
    display: none;
  }
  .dropdown.open .dropdown-menu { display: block; transform: none; }
  .dropdown:hover .dropdown-menu { transform: none; }
}

@media (max-width: 640px) {
  section { padding: 80px 0; }
  .container { padding: 0 16px; }
  .portfolio-grid, .features-grid, .pricing-grid, .other-services, .footer-grid, .form-row, .check-list { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .counters-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 26px; }
  .float-card { font-size: 0.72rem; padding: 8px 12px; gap: 8px; white-space: nowrap; }
  .float-card i { width: 28px; height: 28px; }
  .fc-1 { left: 0; top: 0; }
  .fc-2 { right: 0; bottom: 4%; }
  .fc-3 { display: none; }
  .testimonial { padding: 34px 22px; }
  .contact-form, .legal-content { padding: 26px 20px; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .cta-box { padding: 50px 22px; }
  .experience-badge { right: 10px; }
}
