/* ============================================================================
   motion.css — technical motion design system (rdevelopers location/contact)
   Transform/opacity only. No layout shift. Honours prefers-reduced-motion.
   ========================================================================== */

:root {
  --m-ink: #05070d;
  --m-surface: #0b1220;
  --m-panel: #0f1726;
  --m-line: rgba(255, 255, 255, .08);
  --m-accent: #007bff;
  --m-accent-2: #47b2e4;
  --m-text: #33445c;
  --m-muted: #5a6b80;
  --m-ease: cubic-bezier(.22, .61, .36, 1);
  --m-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--m-ease), transform .5s var(--m-ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.m-hero {
  position: relative;
  overflow: hidden;
  background: var(--m-ink);
  color: #fff;
  padding: 104px 0 84px;
  isolation: isolate;
}
.m-hero-bg {
  position: absolute; inset: -20%;
  background:
    radial-gradient(46% 60% at 22% 28%, rgba(0, 123, 255, .38), transparent 62%),
    radial-gradient(40% 55% at 78% 18%, rgba(71, 178, 228, .26), transparent 60%),
    radial-gradient(52% 52% at 62% 88%, rgba(0, 62, 140, .34), transparent 64%);
  filter: blur(14px);
  animation: m-drift 18s ease-in-out infinite alternate;
  z-index: -2;
}
@keyframes m-drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1.02); }
  50%  { transform: translate3d(2%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(-1%, 1%, 0) scale(1.03); }
}
.m-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--m-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--m-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 32%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 32%, transparent 76%);
}
.m-kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--m-mono); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: #9fd4ee;
  border: 1px solid rgba(71, 178, 228, .45); border-radius: 999px;
  padding: .38rem .95rem; margin-bottom: 1.4rem;
  background: rgba(71, 178, 228, .06);
}
.m-kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--m-accent-2); box-shadow: 0 0 0 0 rgba(71, 178, 228, .55);
  animation: m-pulse 2.4s infinite;
}
@keyframes m-pulse {
  0% { box-shadow: 0 0 0 0 rgba(71, 178, 228, .5); }
  70% { box-shadow: 0 0 0 10px rgba(71, 178, 228, 0); }
  100% { box-shadow: 0 0 0 0 rgba(71, 178, 228, 0); }
}
.m-hero h1 {
  font-weight: 800; font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  line-height: 1.08; letter-spacing: -.02em; margin-bottom: 1.1rem;
}
.m-hero h1 span { display: block; overflow: hidden; }
.m-hero h1 span > i {
  display: block; font-style: normal;
  transform: translateY(105%);
  animation: m-line-up .7s var(--m-ease) forwards;
}
.m-hero h1 span:nth-child(2) > i { animation-delay: .1s; }
.m-hero h1 span:nth-child(3) > i { animation-delay: .2s; }
@keyframes m-line-up { to { transform: translateY(0); } }

.m-hero .lead { color: #c3d2e3; max-width: 46rem; font-size: 1.06rem; }
.m-chip {
  font-family: var(--m-mono); font-size: .78rem; color: #b9c8d8;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
  padding: .32rem .85rem; background: rgba(255, 255, 255, .04);
}
.m-btn {
  background: var(--m-accent); border: 1px solid var(--m-accent); color: #fff;
  font-weight: 600; padding: .72rem 1.6rem; border-radius: 999px;
  transition: transform .2s var(--m-ease), box-shadow .2s var(--m-ease), background .2s;
  display: inline-block;
}
.m-btn:hover { background: #0069d9; color: #fff; transform: translateY(-2px);
               box-shadow: 0 10px 24px rgba(0, 123, 255, .32); }
.m-btn, .m-btn:hover, .m-btn:focus,
.m-btn-ghost, .m-btn-ghost:hover, .m-btn-ghost:focus { text-decoration: none; }
.m-btn-ghost {
  border: 1px solid rgba(255, 255, 255, .32); color: #fff; border-radius: 999px;
  padding: .72rem 1.6rem; font-weight: 600; display: inline-block;
  transition: background .2s, transform .2s var(--m-ease);
}
.m-btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; transform: translateY(-2px); }

/* ---------- sections ---------- */
.m-section { padding: 76px 0; }
.m-section-alt { background: #f6f9fd; }
.m-eyebrow {
  font-family: var(--m-mono); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--m-accent); font-weight: 700;
}
.m-h2 { font-weight: 800; letter-spacing: -.015em; font-size: clamp(1.6rem, 2.7vw, 2.1rem);
        margin: .45rem 0 1.3rem; color: #0e1826; }

/* proof strip */
.m-proof {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: #e4ebf5; border: 1px solid #e4ebf5; border-radius: 1rem; overflow: hidden;
}
.m-proof div { background: #fff; padding: 1.15rem 1.25rem; }
.m-proof strong { display: block; font-size: .95rem; color: #0e1826; }
.m-proof span { font-size: .84rem; color: var(--m-muted); }
@media (max-width: 767px) { .m-proof { grid-template-columns: 1fr 1fr; } }

/* cards */
.m-card {
  background: #fff; border: 1px solid #e6ebf2; border-radius: 1rem;
  padding: 1.5rem; height: 100%;
  transition: transform .22s var(--m-ease), border-color .22s, box-shadow .22s;
}
.m-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 123, 255, .45);
  box-shadow: 0 16px 36px rgba(13, 42, 84, .10);
}
.m-card .m-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0, 123, 255, .08); color: var(--m-accent); margin-bottom: .9rem;
  transition: transform .22s var(--m-ease), background .22s;
}
.m-card:hover .m-ico { transform: translateY(-2px) rotate(-4deg); background: rgba(0, 123, 255, .14); }
.m-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: .35rem; color: #0e1826; }
.m-card p { color: var(--m-muted); font-size: .93rem; margin: 0; }

/* why grid */
.m-why { display: flex; gap: .9rem; align-items: flex-start; }
.m-why .m-ico-dot {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; margin-top: .15rem;
  background: rgba(0, 123, 255, .1); color: var(--m-accent); font-size: .72rem;
}
.m-why h3 { font-size: .99rem; font-weight: 700; margin-bottom: .18rem; color: #0e1826; }
.m-why p { color: var(--m-muted); font-size: .92rem; margin: 0; }

/* timeline */
.m-timeline { position: relative; padding-left: 2.1rem; }
.m-timeline::before {
  content: ""; position: absolute; left: .55rem; top: .35rem; bottom: .35rem; width: 2px;
  background: linear-gradient(#007bff, #47b2e4);
  transform: scaleY(0); transform-origin: top;
  transition: transform .9s var(--m-ease);
}
.m-timeline.is-in::before { transform: scaleY(1); }
.m-step { position: relative; padding: 0 0 1.6rem 0; }
.m-step::before {
  content: ""; position: absolute; left: -1.72rem; top: .3rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--m-accent);
  box-shadow: 0 0 0 4px rgba(0, 123, 255, .12);
}
.m-step .m-num { font-family: var(--m-mono); font-size: .74rem; letter-spacing: .14em;
                 text-transform: uppercase; color: var(--m-accent); font-weight: 700; }
.m-step h3 { font-size: 1.02rem; font-weight: 700; margin: .2rem 0 .25rem; color: #0e1826; }
.m-step p { color: var(--m-muted); font-size: .93rem; margin: 0; max-width: 46rem; }

/* marquee */
.m-marquee {
  overflow: hidden; border-top: 1px solid #e4ebf5; border-bottom: 1px solid #e4ebf5;
  background: #fff; padding: .85rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.m-marquee-track {
  display: flex; gap: 2.6rem; width: max-content;
  animation: m-scroll 28s linear infinite;
  font-family: var(--m-mono); font-size: .86rem; color: #47536b;
}
.m-marquee:hover .m-marquee-track { animation-play-state: paused; }
.m-marquee-track span { white-space: nowrap; }
.m-marquee-track span::after { content: "·"; margin-left: 2.6rem; color: #b7c3d4; }
@keyframes m-scroll { to { transform: translateX(-50%); } }

/* FAQ */
.m-faq .accordion-item { border: 1px solid #e6ebf2; border-radius: .85rem; margin-bottom: .65rem; overflow: hidden; }
.m-faq .accordion-button { font-weight: 600; color: #0e1826; background: #fff; box-shadow: none; }
.m-faq .accordion-button:not(.collapsed) { background: #eef5ff; color: #0b5ed7; }
.m-faq .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .18); }
.m-faq .accordion-body { color: var(--m-text); font-size: .95rem; }

/* CTA band */
.m-cta {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #061225, #0d2a4a 60%, #122f52);
  color: #fff; border-radius: 1.25rem; padding: 2.6rem;
}
.m-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 20%, transparent 70%);
}
.m-cta h2 { font-weight: 800; font-size: clamp(1.4rem, 2.5vw, 1.95rem); }
.m-related a {
  display: inline-block; margin: 0 1.1rem .6rem 0; color: #0056b3; font-weight: 600;
  border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
.m-related a:hover { border-color: #0056b3; color: #004494; }

/* ---------- contact page ---------- */
.m-contact-hero { padding: 88px 0 56px; }
.m-form-card {
  background: #fff; border: 1px solid #e6ebf2; border-radius: 1.1rem;
  padding: 1.8rem; box-shadow: 0 18px 40px rgba(13, 42, 84, .06);
}
.m-form-card label, .m-form-card .form-label { font-weight: 600; color: #0e1826; font-size: .9rem; }
.m-form-card input, .m-form-card textarea, .m-form-card select {
  border: 1px solid #dbe3ee; border-radius: .6rem; padding: .65rem .8rem;
  transition: border-color .18s, box-shadow .18s;
}
.m-form-card input:focus, .m-form-card textarea:focus, .m-form-card select:focus {
  outline: none; border-color: var(--m-accent); box-shadow: 0 0 0 3px rgba(0, 123, 255, .16);
}
.m-channel {
  display: flex; gap: .9rem; align-items: flex-start;
  border: 1px solid #e6ebf2; border-radius: .9rem; padding: 1rem 1.1rem; background: #fff;
  transition: border-color .2s, transform .2s var(--m-ease);
}
.m-channel:hover { border-color: rgba(0, 123, 255, .4); transform: translateY(-3px); }
.m-channel .m-ico-dot { flex: 0 0 34px; width: 34px; height: 34px; font-size: .95rem; }
.m-channel strong { display: block; color: #0e1826; font-size: .95rem; }
.m-channel a, .m-channel span { color: var(--m-muted); font-size: .9rem; text-decoration: none; }
.m-channel a:hover { color: var(--m-accent); }
.m-next { counter-reset: mnext; }
.m-next li {
  position: relative; padding-left: 2.3rem; margin-bottom: .85rem; color: var(--m-text); font-size: .94rem;
}
.m-next li::before {
  counter-increment: mnext; content: counter(mnext, decimal-leading-zero);
  position: absolute; left: 0; top: .1rem;
  font-family: var(--m-mono); font-size: .78rem; color: var(--m-accent); font-weight: 700;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .m-hero h1 span > i { transform: none !important; }
  .m-timeline::before { transform: scaleY(1) !important; }
}
