:root {
  --paper: #f5f8fc;
  --ink: #07162f;
  --muted: #64748b;
  --line: #dce6f2;
  --blue: #4387ee;
  --electric: #70a7ff;
  --navy: #07162f;
}

html { overflow-x: clip; }
body { overflow-x: hidden; overscroll-behavior-x: none; }

body {
  background: var(--paper);
  background-image: linear-gradient(rgba(67,135,238,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(67,135,238,.045) 1px, transparent 1px);
  background-size: 42px 42px;
  overflow-x: hidden;
}

.topbar { background: rgba(248,250,253,.82); border-color: rgba(191,210,232,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brand { letter-spacing: -.9px; }
.brand-mark { background: var(--navy); box-shadow: 0 7px 18px rgba(67,135,238,.24); }
.nav a, .nav-cta { transition: color .22s ease, transform .22s ease; }
.nav a:hover, .nav-cta:hover { color: var(--blue); transform: translateY(-2px); }
.hero { position: relative; min-height: 640px; }
.hero:before { content: ''; position: absolute; width: 420px; height: 420px; left: -250px; top: 100px; border-radius: 50%; background: rgba(112,167,255,.13); filter: blur(9px); pointer-events: none; }
.hero-copy, .hero-art { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(54px, 6vw, 78px); line-height: .96; letter-spacing: -4.8px; text-wrap: balance; }
.hero-copy > p, .section-intro > p, .why-copy > p { letter-spacing: .01em; }
.hero-actions .button { box-shadow: 0 12px 24px rgba(7,22,47,.16); transition: transform .25s ease, box-shadow .25s ease; }
.hero-actions .button:hover { transform: translateY(-4px); box-shadow: 0 17px 30px rgba(7,22,47,.23); }
.hero-art { perspective: 900px; }
.glow { opacity: .8; box-shadow: 0 0 90px rgba(67,135,238,.23); animation: breathe 5s ease-in-out infinite; }
.phone { animation: phoneFloat 6s ease-in-out infinite; box-shadow: 18px 22px 40px rgba(15,55,115,.22), 0 0 0 1px rgba(255,255,255,.12); }
.orbit-a, .orbit-b { animation: orbitPulse 7s ease-in-out infinite; }
.orbit-b { animation-delay: -2.5s; }
.floating-tag { box-shadow: 0 14px 28px rgba(28,66,117,.12); animation: tagFloat 4.5s ease-in-out infinite; }
.tag-bottom { animation-delay: -2s; }

.ticker { box-shadow: 0 9px 24px rgba(67,135,238,.15); }
.tracking { padding-top: 92px; padding-bottom: 30px; }
.tracking-shell { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: stretch; padding: 46px 52px; border-radius: 18px; color: #fff; background: linear-gradient(125deg, #07162f, #0d346b 70%, #1554a0); box-shadow: 0 20px 46px rgba(7,22,47,.18); position: relative; overflow: hidden; }
.tracking-shell:before { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; top: -190px; border: 1px solid rgba(112,167,255,.28); border-radius: 50%; box-shadow: 0 0 0 34px rgba(112,167,255,.045), 0 0 0 68px rgba(112,167,255,.03); }
.tracking-copy, .tracking-panel { position: relative; z-index: 1; }
.tracking-copy h2 { font: 600 44px/.98 'Space Grotesk'; letter-spacing: -2.5px; margin: 18px 0 16px; }
.tracking-copy h2 em { color: var(--electric); font-style: normal; }
.tracking-copy p { color: #b7c8df; font-size: 13px; line-height: 1.65; max-width: 325px; margin: 0; }
.tracking-note { color: #9dc2f8; font-size: 11px; margin-top: 27px; letter-spacing: .02em; }
.tracking-note span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 7px; border: 1px solid rgba(112,167,255,.5); border-radius: 50%; }
.tracking-panel { align-self: center; padding: 25px; border: 1px solid rgba(159,198,255,.22); border-radius: 13px; background: rgba(2,15,37,.31); backdrop-filter: blur(8px); }
.tracking-form label { display: block; color: #d7e5f7; font: 600 13px 'Space Grotesk'; margin-bottom: 10px; }
.tracking-input-row { display: flex; gap: 10px; }
.tracking-input-row input { min-width: 0; flex: 1; border: 1px solid #3c6090; border-radius: 7px; background: rgba(255,255,255,.08); color: #fff; font: 500 15px 'Space Grotesk'; padding: 15px 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.tracking-input-row input::placeholder { color: #8ba6c9; }
.tracking-input-row input:focus { border-color: var(--electric); box-shadow: 0 0 0 4px rgba(112,167,255,.13); }
.tracking-input-row .button { border: 0; cursor: pointer; white-space: nowrap; }
.tracking-form > small { display: block; color: #88a6cc; font-size: 10px; margin-top: 10px; }
.tracking-result { margin-top: 18px; padding: 18px; border-radius: 9px; background: rgba(255,255,255,.08); }
.tracking-result[hidden] { display: none; }
.tracking-result.error { color: #ffd1d1; border: 1px solid rgba(255,143,143,.32); }
.tracking-result.loading { color: #c9ddf8; }
.tracking-result-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 15px; border-bottom: 1px solid rgba(159,198,255,.18); }
.tracking-result-head small { color: #8faed4; font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; }
.tracking-result-head strong { color: #fff; font: 600 17px 'Space Grotesk'; }
.tracking-status { display: inline-flex; align-items: center; gap: 7px; color: #a9d0ff; font: 600 13px 'Space Grotesk'; }
.tracking-status:before { content: ''; width: 8px; height: 8px; background: var(--electric); border-radius: 50%; box-shadow: 0 0 0 5px rgba(112,167,255,.13); animation: statusPulse 2s infinite; }
.tracking-meta { display: flex; gap: 24px; padding-top: 15px; color: #9cb6d8; font-size: 11px; }
.tracking-meta strong { display: block; color: #e7f1ff; font: 500 12px 'Space Grotesk'; margin-top: 4px; }
@keyframes statusPulse { 50% { opacity: .45; transform: scale(.85); } }
.section-intro h2, .why h2, .contact h2 { text-wrap: balance; }
.service-grid { perspective: 1000px; }
.service-card { border: 1px solid rgba(187,207,230,.58); border-radius: 14px; box-shadow: 0 12px 30px rgba(28,66,117,.05); transform-style: preserve-3d; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.service-card:hover { transform: translateY(-9px) rotateX(2deg) rotateY(-2deg); border-color: rgba(67,135,238,.35); box-shadow: 0 20px 36px rgba(28,66,117,.14); }
.service-card.featured { border-color: transparent; background: linear-gradient(145deg, #07162f, #123d77); box-shadow: 0 18px 38px rgba(7,22,47,.19); }
.card-icon { text-shadow: 0 0 20px rgba(112,167,255,.38); }
.why { border-color: var(--line); }
.why-visual { border-radius: 18px; background: radial-gradient(circle at 70% 25%, #194d92, #07162f 62%); box-shadow: 0 20px 44px rgba(7,22,47,.18); }
.why-visual:after { content: ''; position: absolute; inset: 18px; border: 1px solid rgba(112,167,255,.18); border-radius: 12px; pointer-events: none; }
.why-visual:before { animation: rotateRing 18s linear infinite; }
.circle-copy { position: relative; z-index: 1; text-shadow: 0 0 22px rgba(112,167,255,.25); }
.values > div { transition: padding-left .25s ease, background .25s ease; border-radius: 8px; }
.values > div:hover { padding-left: 10px; background: rgba(67,135,238,.045); }
.contact-card { border-radius: 18px; background: linear-gradient(125deg, #07162f, #0d346b 70%, #1554a0); box-shadow: 0 22px 48px rgba(7,22,47,.2); overflow: hidden; position: relative; }
.contact-card:after { content: ''; position: absolute; width: 260px; height: 260px; right: -85px; top: -110px; border: 1px solid rgba(112,167,255,.32); border-radius: 50%; box-shadow: 0 0 0 30px rgba(112,167,255,.05), 0 0 0 60px rgba(112,167,255,.035); }
.contact-details { position: relative; z-index: 1; }
.contact-details a { transition: transform .24s ease; }
.contact-details a:hover { transform: translateX(7px); }
footer { background: rgba(248,250,253,.72); }
.footer-legal { color: #788da8; letter-spacing: .03em; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes phoneFloat { 0%, 100% { transform: rotate(12deg) translateY(0); } 50% { transform: rotate(9deg) translateY(-14px); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .72; } 50% { transform: scale(1.08); opacity: .95; } }
@keyframes tagFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes orbitPulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; transform: rotate(-21deg) scale(1.03); } }
@keyframes rotateRing { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; touch-action: pan-y; }
  .hero { min-height: auto; }
  .hero h1 { letter-spacing: -3px; }
  .hero:before { left: -340px; }
  .hero-art { width: 100%; overflow: hidden; }
  .service-card, .contact-card { border-radius: 12px; }
  .service-card { display: flex; flex-direction: column; min-height: 0; }
  .service-card p { margin-bottom: 0; }
  .service-card a { position: static; display: inline-flex; align-items: center; padding-top: 20px; margin-top: auto; }
  .contact-card:after { right: -150px; }
  .tracking { padding-top: 68px; }
  .tracking-shell { display: block; padding: 32px 22px; }
  .tracking-copy h2 { font-size: 40px; }
  .tracking-panel { margin-top: 28px; padding: 19px; }
  .tracking-input-row { display: block; }
  .tracking-input-row .button { width: 100%; justify-content: center; margin-top: 10px; }
  .tracking-result-head { align-items: flex-start; flex-wrap: wrap; }
  .tracking-status { margin-left: 0; }
  .tracking-meta { flex-wrap: wrap; gap: 14px 24px; }
  .hero-actions { flex-wrap: wrap; gap: 18px 24px; }
  .trust-row { flex-wrap: wrap; row-gap: 14px; }
  footer { height: auto; min-height: 138px; flex-wrap: wrap; justify-content: flex-start; gap: 12px 18px; padding: 24px 22px; }
  footer .brand { width: 100%; }
  footer p { display: block; width: 100%; margin: 0; }
  footer .footer-legal { margin-left: 0; }
  footer > span:last-child { margin-left: auto; }
}
