/* ==========================================================================
   MD Software — Landing Page
   Core Stylesheet: reset, tokens, layout, sections, theme
   ========================================================================== */

/* -------------------- DESIGN TOKENS -------------------- */
:root {
  /* Brand */
  --brand-1: #6366f1;
  --brand-2: #a855f7;
  --brand-3: #ec4899;
  --accent:  #22d3ee;

  /* Dark theme (default) */
  --bg:        #07070d;
  --bg-soft:   #0d0d18;
  --bg-elev:   #12121f;
  --surface:   rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);
  --fg:        #f1f1f6;
  --fg-muted:  #a4a4b8;
  --fg-dim:    #6d6d80;

  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-soft:  linear-gradient(135deg, rgba(99,102,241,.18), rgba(168,85,247,.12), rgba(236,72,153,.08));

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.25);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.35);
  --shadow-lg: 0 30px 60px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 60px rgba(99,102,241,0.35);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --container: 1220px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 180ms;
  --t-med:  380ms;
  --t-slow: 680ms;

  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

/* Light theme */
:root[data-theme="light"] {
  --bg:        #f7f7fb;
  --bg-soft:   #ffffff;
  --bg-elev:   #ffffff;
  --surface:   rgba(10, 10, 30, 0.03);
  --surface-2: rgba(10, 10, 30, 0.06);
  --border:    rgba(10, 10, 30, 0.08);
  --border-2:  rgba(10, 10, 30, 0.14);
  --fg:        #0a0a1a;
  --fg-muted:  #52526b;
  --fg-dim:    #83839a;

  --gradient-soft: linear-gradient(135deg, rgba(99,102,241,.09), rgba(168,85,247,.07), rgba(236,72,153,.05));
  --shadow-md: 0 10px 30px rgba(30,30,60,0.12);
  --shadow-lg: 0 30px 60px rgba(30,30,60,0.15);
  --shadow-glow: 0 0 60px rgba(99,102,241,0.18);
}

/* -------------------- RESET -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--t-slow) var(--ease-out), color var(--t-slow) var(--ease-out);
}
body.no-scroll { overflow: hidden; }
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 3px; border-radius: 4px; }

/* -------------------- TYPOGRAPHY -------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 6vw, 5.25rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.01em; }
p { margin: 0; color: var(--fg-muted); }

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  backdrop-filter: blur(12px);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-1);
  box-shadow: 0 0 12px var(--brand-1);
}

/* -------------------- LAYOUT -------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
}
.section-head {
  max-width: 800px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  text-align: center;
}
.section-head > .eyebrow { margin-bottom: 20px; }
.section-title { margin-bottom: 18px; }
.section-lead { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--fg-muted); max-width: 640px; margin: 0 auto; }

/* -------------------- GLASS -------------------- */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-radius: var(--radius-lg);
}
:root[data-theme="light"] .glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.6));
}

/* -------------------- SCROLL PROGRESS -------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-brand);
  z-index: 1200;
  box-shadow: 0 0 12px rgba(99,102,241,0.6);
  transition: width 40ms linear;
}

/* -------------------- HERO -------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.gradient-mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 40% at 20% 30%, rgba(99,102,241,0.35), transparent 60%),
    radial-gradient(45% 45% at 80% 20%, rgba(168,85,247,0.28), transparent 60%),
    radial-gradient(40% 40% at 70% 80%, rgba(236,72,153,0.22), transparent 60%),
    radial-gradient(35% 35% at 10% 90%, rgba(34,211,238,0.15), transparent 60%);
  filter: blur(40px);
  animation: meshMove 20s ease-in-out infinite alternate;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at center, black 30%, transparent 80%);
}
:root[data-theme="light"] .grid-overlay {
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.orb-1 { width: 480px; height: 480px; background: var(--brand-1); top: 10%; left: -10%; }
.orb-2 { width: 380px; height: 380px; background: var(--brand-2); top: 40%; right: -8%; }
.orb-3 { width: 300px; height: 300px; background: var(--brand-3); bottom: -15%; left: 30%; opacity: 0.35; }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }

.hero-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--fg-muted);
  margin-bottom: 28px;
  backdrop-filter: blur(12px);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  animation: pulse 2s ease-in-out infinite;
}
.hero-title {
  margin-bottom: 28px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .inner {
  display: inline-block;
}
.hero-title .typing-line em {
  font-style: normal;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.hero-title .typing-line em::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--brand-2);
  margin-left: 4px;
  vertical-align: middle;
  animation: caretBlink 1s steps(2) infinite;
}
.hero-subtitle {
  max-width: 720px;
  margin: 0 auto 44px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--fg-muted);
}
.hero-subtitle strong { color: var(--fg); font-weight: 600; }

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat {
  text-align: center;
  min-width: 140px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.4;
}
.stat-sep {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: floatY 2.5s ease-in-out infinite;
}
.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 1.5px solid currentColor;
  border-radius: 100px;
  position: relative;
}
.scroll-wheel {
  position: absolute;
  top: 8px; left: 50%;
  width: 3px; height: 6px;
  background: currentColor;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

/* -------------------- MARQUEE -------------------- */
.marquee-section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  overflow: hidden;
}
.marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  align-items: center;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 500;
  color: var(--fg);
  padding-right: 48px;
}
.marquee-track .dot {
  color: var(--brand-2);
  font-size: 0.6em;
}

/* -------------------- SERVICES -------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* -------------------- PROCESS -------------------- */
.process {
  position: relative;
  overflow: hidden;
}
.process-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.process-bg .orb-p1 { width: 400px; height: 400px; background: var(--brand-1); top: 10%; right: -10%; opacity: 0.2; }
.process-bg .orb-p2 { width: 350px; height: 350px; background: var(--brand-3); bottom: 10%; left: -10%; opacity: 0.18; }
.process .container { position: relative; z-index: 1; }

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 60px;
}
.timeline-line {
  position: absolute;
  top: 0; left: 24px;
  width: 2px; height: 100%;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.timeline-progress {
  display: block;
  width: 100%;
  height: 0%;
  background: var(--gradient-brand);
  box-shadow: 0 0 12px rgba(168,85,247,0.6);
  transition: height 120ms linear;
}
.timeline-step {
  position: relative;
  padding-bottom: 40px;
}
.timeline-step:last-child { padding-bottom: 0; }
.step-dot {
  position: absolute;
  left: -60px;
  top: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg-muted);
  transition: all var(--t-med) var(--ease-out);
  z-index: 2;
}
.timeline-step.active .step-dot,
.timeline-step.is-visible .step-dot {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 30px rgba(99,102,241,0.6);
  transform: scale(1.08);
}
.step-content {
  padding: 24px 28px;
  transition: transform var(--t-med) var(--ease-out);
}
.step-content:hover { transform: translateX(6px); }
.step-content h3 { margin-bottom: 10px; }
.step-content p { color: var(--fg-muted); margin-bottom: 16px; }
.step-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--fg-dim);
  font-family: var(--font-mono);
}

/* -------------------- SOLUTIONS / CAROUSEL -------------------- */
.carousel {
  position: relative;
}
.carousel-track {
  position: relative;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 24px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.carousel-track::-webkit-scrollbar { display: none; }

.solution-card {
  flex: 0 0 clamp(260px, 30vw, 340px);
  scroll-snap-align: start;
  padding: 32px 28px;
  transition: all var(--t-med) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.solution-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
}
.solution-card h3 { margin-bottom: 10px; }
.solution-card p { color: var(--fg-muted); font-size: 0.95rem; margin-bottom: 20px; }
.solution-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.solution-card li { font-size: 0.88rem; color: var(--fg-muted); font-family: var(--font-mono); }
.solution-card li::first-letter { color: var(--brand-2); }

.solution-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.solution-icon svg { width: 28px; height: 28px; }

.grad-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.grad-2 { background: linear-gradient(135deg, #a855f7, #ec4899); }
.grad-3 { background: linear-gradient(135deg, #ec4899, #f97316); }
.grad-4 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.grad-5 { background: linear-gradient(135deg, #10b981, #22d3ee); }
.grad-6 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.grad-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}
.carousel-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  display: grid; place-items: center;
  transition: all var(--t-med) var(--ease-out);
  backdrop-filter: blur(10px);
}
.carousel-btn:hover {
  background: var(--gradient-brand);
  border-color: transparent;
  transform: scale(1.08);
  box-shadow: var(--shadow-glow);
}
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-2);
  transition: all var(--t-med) var(--ease-out);
  cursor: pointer;
}
.carousel-dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--gradient-brand);
}

/* -------------------- STACK -------------------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 4px;
}
.stack-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all var(--t-med) var(--ease-out);
  backdrop-filter: blur(8px);
  font-size: 0.92rem;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
}
.stack-item > span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.stack-item:hover {
  border-color: var(--brand-1);
  background: var(--surface-2);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(99,102,241,0.15);
}
.stack-badge {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--gradient-brand);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

/* -------------------- QUOTE -------------------- */
.quote {
  text-align: center;
  padding: clamp(80px, 10vw, 140px) 0;
}
.quote-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.quote-mark {
  width: 72px; height: 72px;
  margin: 0 auto 32px;
  opacity: 0.9;
}
.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
  color: var(--fg);
}
.quote-text span { display: block; }
.quote-author {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
}
.author-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.quote-author strong { display: block; font-size: 0.95rem; }
.quote-author span { font-size: 0.82rem; color: var(--fg-muted); }

/* -------------------- CONTACT -------------------- */
.contact {
  position: relative;
  overflow: hidden;
}
.contact-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.mesh-contact {
  position: absolute; inset: -10%;
  background:
    radial-gradient(40% 50% at 10% 20%, rgba(99,102,241,0.22), transparent 60%),
    radial-gradient(45% 55% at 90% 80%, rgba(236,72,153,0.18), transparent 60%);
  filter: blur(60px);
}
.contact .container { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info .eyebrow { margin-bottom: 20px; }
.contact-info .section-title { text-align: left; margin-bottom: 16px; }
.contact-info .section-lead { text-align: left; margin: 0 0 36px; }

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  transition: all var(--t-med) var(--ease-out);
}
.contact-card:hover {
  transform: translateX(6px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
}
.cc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.cc-icon svg { width: 22px; height: 22px; }
.cc-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  display: block;
  margin-bottom: 4px;
}
.contact-card strong { font-size: 0.98rem; font-weight: 600; }

/* -------------------- FOOTER -------------------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 80px 0 0;
  margin-top: 40px;
}
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 320px;
  font-size: 0.92rem;
}
.footer-logo {
  font-size: 1.2rem;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin-bottom: 18px;
}
.footer-col a,
.footer-col span {
  display: block;
  margin-bottom: 10px;
  color: var(--fg-muted);
  font-size: 0.94rem;
  transition: color var(--t-fast) var(--ease-out);
}
.footer-col a:hover { color: var(--fg); }
.footer-col .btn { margin-top: 8px; display: inline-flex; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--fg-dim);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.heart { color: var(--brand-3); }

/* -------------------- BACK TO TOP -------------------- */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  transform: translateY(30px) scale(0.8);
  pointer-events: none;
  transition: all var(--t-med) var(--ease-out);
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover { transform: translateY(-4px) scale(1.06); }
.back-to-top svg { width: 20px; height: 20px; }

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero { padding-top: 110px; }
  .hero-stats { gap: 22px; }
  .stat-sep { display: none; }
  .footer-container { grid-template-columns: 1fr; }
  .timeline { padding-left: 48px; }
  .step-dot { left: -48px; width: 42px; height: 42px; font-size: 1rem; }
}

/* -------------------- MOTION PREFERENCE -------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-dot, .cursor-ring { display: none !important; }
}
