/* ============================================================
   MrMigrator — Shared Design System
   Palette: deep navy · azure · teal · gold
   Type: Fraunces (display) + Instrument Sans (UI/body)
   ============================================================ */


/* ── TOKENS ── */
:root {
  --ink:      #05101E;
  --ink2:     #091627;
  --ink3:     #0D1E32;
  --ink4:     #122440;
  --azure:    #0EA5E9;
  --azure2:   #0284C7;
  --azure3:   #0369A1;
  --teal:     #0D9488;
  --teal2:    #0F766E;
  --gold:     #D97706;
  --gold2:    #F59E0B;
  --gold3:    #FCD34D;
  --white:    #F0F7FF;
  --off:      #BAD0E8;
  --muted:    #607D96;
  --muted2:   #445E78;
  --border:   rgba(14,165,233,.13);
  --border2:  rgba(14,165,233,.07);
  --card:     rgba(14,165,233,.045);
  --glow:     0 0 56px rgba(14,165,233,.12);
  --shadow:   0 24px 64px rgba(0,0,0,.4);
  --r:        12px;
  --r2:       16px;
  --ff-head:  'Fraunces', Georgia, serif;
  --ff-body:  'Instrument Sans', system-ui, sans-serif;
  --ff-mono:  'JetBrains Mono', monospace;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--ff-body);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── GRID BG ── */
.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(14,165,233,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,.018) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ══════════════════════════
   NAVIGATION
══════════════════════════ */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  background: rgba(5,16,30,.93);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
#site-nav.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,.5); }

.nav-logo {
  font-family: var(--ff-head);
  font-size: 1.65rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--white);
  letter-spacing: -.3px;
  flex-shrink: 0;
}
.nav-logo .dot { color: var(--gold2); }
.nav-logo .sub {
  font-family: var(--ff-body);
  font-size: .58rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 2.5px;
  display: block;
  margin-top: -5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex; gap: 2rem; list-style: none;
}
.nav-links a {
  font-size: .84rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
  letter-spacing: .2px;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a.active { color: var(--azure); }

.nav-right { display: flex; align-items: center; gap: .9rem; }

.nav-cta {
  background: linear-gradient(135deg, var(--azure2), var(--azure));
  color: #fff;
  padding: .5rem 1.25rem;
  border-radius: 7px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s, transform .18s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: .88; transform: translateY(-1px); }

/* Mobile nav */
#nav-burger {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  flex-direction: column; gap: 5px;
}
#nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--off); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
#nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-burger.open span:nth-child(2) { opacity: 0; }
#nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#nav-mobile {
  display: none;
  position: fixed; top: 70px; left: 0; right: 0;
  background: rgba(5,16,30,.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.8rem 5%; z-index: 399;
}
#nav-mobile.open { display: block; }
#nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }
#nav-mobile ul a {
  color: var(--off); font-size: 1rem; text-decoration: none;
  font-weight: 500; transition: color .2s;
}
#nav-mobile ul a:hover { color: var(--azure); }
#nav-mobile .mob-cta {
  margin-top: 1.5rem;
  display: block; text-align: center;
  background: linear-gradient(135deg, var(--azure2), var(--azure));
  color: #fff; padding: .85rem;
  border-radius: 8px; font-weight: 700; font-size: .95rem;
  text-decoration: none;
}

@media (max-width: 860px) {
  .nav-links, .nav-phone { display: none !important; }
  #nav-burger { display: flex; }
}

/* ══════════════════════════
   FOOTER
══════════════════════════ */
#site-footer {
  background: var(--ink2);
  border-top: 1px solid var(--border);
  padding: 72px 5% 32px;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .fb-logo {
  font-family: var(--ff-head);
  font-size: 1.45rem; font-weight: 700;
  text-decoration: none; color: var(--white);
}
.footer-brand .fb-logo .dot { color: var(--gold2); }
.footer-brand p {
  margin-top: .8rem; font-size: .83rem;
  color: var(--muted); line-height: 1.7;
  max-width: 260px;
}
.footer-brand .fb-contact {
  margin-top: 1.2rem; display: flex; flex-direction: column; gap: .5rem;
}
.footer-brand .fb-contact a {
  font-size: .82rem; color: var(--azure);
  text-decoration: none; font-weight: 500;
  transition: opacity .2s;
}
.footer-brand .fb-contact a:hover { opacity: .75; }

.footer-col h5 {
  font-family: var(--ff-body);
  font-size: .78rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul a {
  font-size: .83rem; color: var(--muted);
  text-decoration: none; transition: color .2s;
}
.footer-col ul a:hover { color: var(--azure); }

.footer-bottom {
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .8rem;
}
.footer-bottom p { font-size: .78rem; color: var(--muted2); }
.footer-bottom .fb-domain {
  font-family: var(--ff-mono); font-size: .75rem; color: var(--azure);
}

/* ══════════════════════════
   SHARED LAYOUT UTILITIES
══════════════════════════ */
.section-pad { padding: 96px 5%; }
.section-pad-sm { padding: 72px 5%; }
.max-w { max-width: 1180px; margin: 0 auto; }

.section-eyebrow {
  font-family: var(--ff-mono);
  font-size: .7rem; letter-spacing: 2.5px;
  color: var(--azure); text-transform: uppercase;
  margin-bottom: .9rem;
  display: flex; align-items: center; gap: .6rem;
}
.section-eyebrow::before {
  content: ''; width: 22px; height: 1px; background: var(--azure);
}

.section-title {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700; letter-spacing: -.3px;
  line-height: 1.1; margin-bottom: .9rem;
}
.section-title em { font-style: italic; color: var(--azure); }

.section-sub {
  color: var(--off);
  font-size: .98rem; line-height: 1.85;
  max-width: 560px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, var(--azure2), var(--azure));
  color: #fff; padding: .9rem 2.2rem;
  border-radius: 8px; font-weight: 700; font-size: .95rem;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 4px 24px rgba(14,165,233,.3);
  transition: transform .2s, box-shadow .2s;
  font-family: var(--ff-body);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(14,165,233,.44); }

.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--border);
  color: var(--white); padding: .9rem 2.2rem;
  border-radius: 8px; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; background: none;
  transition: border-color .2s, color .2s;
  font-family: var(--ff-body);
}
.btn-outline:hover { border-color: var(--azure); color: var(--azure); }

.btn-ghost {
  color: var(--muted); font-size: .86rem; font-weight: 500;
  text-decoration: none; background: none; border: none;
  cursor: pointer; display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--ff-body); padding: 0;
  transition: color .2s;
}
.btn-ghost:hover { color: var(--azure); }

/* ── CARDS ── */
.card {
  background: var(--ink2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover {
  border-color: rgba(14,165,233,.28);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

/* ── TAGS ── */
.tag {
  font-family: var(--ff-mono); font-size: .67rem;
  padding: .2rem .6rem; border-radius: 4px;
  background: rgba(14,165,233,.07);
  border: 1px solid rgba(14,165,233,.14);
  color: var(--azure); letter-spacing: .3px;
}

/* ── PHASE STEPS ── */
.phase-step {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.4rem; background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color .2s;
}
.phase-step:hover { border-color: rgba(14,165,233,.28); }
.phase-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(14,165,233,.1);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: .78rem;
  font-weight: 700; color: var(--azure); flex-shrink: 0;
}
.phase-content h4 {
  font-family: var(--ff-body); font-weight: 700;
  font-size: 1rem; margin-bottom: .3rem;
}
.phase-content p { font-size: .85rem; color: var(--muted); line-height: 1.65; }

/* ── CTA BANNER ── */
.cta-band {
  background: linear-gradient(135deg, var(--azure2) 0%, var(--teal) 100%);
  padding: 72px 5%; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-band h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 700; color: #fff; margin-bottom: .6rem; position: relative;
}
.cta-band p {
  color: rgba(255,255,255,.85); font-size: 1rem;
  max-width: 520px; margin: 0 auto 1.8rem;
  line-height: 1.7; position: relative;
}
.cta-band .cta-btns {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; position: relative;
}
.btn-white {
  background: #fff; color: var(--azure2);
  padding: .9rem 2.2rem; border-radius: 8px;
  font-weight: 800; font-size: .95rem;
  text-decoration: none; font-family: var(--ff-body);
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.3); }
.btn-ghost-w {
  border: 2px solid rgba(255,255,255,.5);
  color: #fff; padding: .9rem 2.2rem; border-radius: 8px;
  font-weight: 700; font-size: .95rem;
  text-decoration: none; font-family: var(--ff-body);
  transition: border-color .2s;
}
.btn-ghost-w:hover { border-color: #fff; }

/* ── PROOF STRIP ── */
.proof-strip {
  background: linear-gradient(135deg, var(--azure2) 0%, #064B70 50%, var(--teal) 100%);
  padding: 56px 5%; position: relative; overflow: hidden;
}
.proof-strip::before {
  content: 'PROVEN'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--ff-head); font-size: 9rem; font-weight: 800;
  color: rgba(255,255,255,.035); white-space: nowrap; pointer-events: none;
  letter-spacing: 10px;
}
.proof-inner {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0; position: relative; z-index: 1;
}
.proof-stat {
  text-align: center; flex: 1; min-width: 120px;
  padding: .8rem 1.4rem; position: relative;
}
.proof-stat:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 15%;
  height: 70%; width: 1px; background: rgba(255,255,255,.15);
}
.ps-val {
  font-family: var(--ff-head); font-size: 3.4rem;
  font-weight: 700; line-height: 1; color: #fff;
}
.ps-label { font-size: .82rem; color: rgba(255,255,255,.9); margin-top: .35rem; font-weight: 700; }
.ps-sub { font-size: .7rem; color: rgba(255,255,255,.5); margin-top: .15rem; font-family: var(--ff-mono); }

/* ── TICKER ── */
.ticker {
  background: rgba(14,165,233,.035);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden; padding: .5rem 0;
}
.ticker-inner {
  display: flex; animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  font-family: var(--ff-mono); font-size: .7rem;
  color: var(--azure); letter-spacing: .8px;
  padding: 0 2.4rem;
  display: flex; align-items: center; gap: .8rem;
}
.ticker-item::after { content: '◆'; font-size: .32rem; color: rgba(14,165,233,.3); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── FLOATING CTA ── */
.float-cta {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  background: linear-gradient(135deg, var(--azure2), var(--azure));
  color: #fff; padding: .8rem 1.4rem;
  border-radius: 50px; font-weight: 700; font-size: .84rem;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(14,165,233,.45);
  transition: transform .2s, box-shadow .2s;
  display: flex; align-items: center; gap: .5rem; letter-spacing: .2px;
  font-family: var(--ff-body);
}
.float-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(14,165,233,.6); }
.float-cta .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (max-width: 500px) { .float-cta { bottom: 16px; right: 16px; font-size: .78rem; padding: .7rem 1.1rem; } }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── SUCCESS MODAL ── */
#successModal {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(5,16,30,.92); backdrop-filter: blur(14px);
  align-items: center; justify-content: center;
}
#successModal.active { display: flex; }
.modal-box {
  background: var(--ink2);
  border: 1px solid rgba(14,165,233,.25);
  border-radius: 20px; padding: 3rem;
  max-width: 500px; width: 90%;
  text-align: center; position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  animation: modal-in .35s ease both;
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(.94) translateY(12px); }
  to { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: none; border: none; color: var(--muted);
  font-size: 1.4rem; cursor: pointer; line-height: 1;
  transition: color .2s;
}
.modal-close:hover { color: var(--white); }
.modal-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(13,148,136,.15);
  border: 2px solid rgba(13,148,136,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 1.5rem;
}
.modal-box h3 {
  font-family: var(--ff-head); font-size: 1.9rem;
  font-weight: 700; margin-bottom: .8rem;
}
.modal-box > p {
  color: var(--off); font-size: .95rem;
  line-height: 1.8; margin-bottom: 1.6rem;
}
.modal-steps {
  background: rgba(14,165,233,.07);
  border: 1px solid rgba(14,165,233,.15);
  border-radius: 12px; padding: 1.2rem;
  margin-bottom: 1.4rem; text-align: left;
}
.modal-steps-label {
  font-family: var(--ff-mono); font-size: .68rem;
  color: var(--azure); letter-spacing: 1.5px; margin-bottom: .8rem;
}
.modal-steps-list { font-size: .85rem; color: var(--off); line-height: 2.1; }
.modal-note {
  display: none;
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.2);
  border-radius: 8px; padding: .8rem 1rem;
  font-size: .82rem; color: #FDE68A;
  margin-top: 1rem;
}
.modal-contacts {
  display: flex; flex-direction: column; gap: .6rem; margin-top: .8rem;
}
.modal-contacts a {
  color: var(--azure); font-size: .88rem;
  font-weight: 600; text-decoration: none;
}
.modal-contacts a:hover { text-decoration: underline; }

/* ── FORM STYLES ── */
.cf-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem;
}
@media (max-width: 640px) { .cf-grid { grid-template-columns: 1fr; } }
.cf-group { display: flex; flex-direction: column; gap: .4rem; }
.cf-group.full { grid-column: 1 / -1; }
.cf-group label {
  font-size: .8rem; font-weight: 600;
  color: var(--off); letter-spacing: .3px;
}
.cf-group input,
.cf-group select,
.cf-group textarea {
  background: rgba(14,165,233,.045);
  border: 1px solid var(--border);
  border-radius: 8px; padding: .8rem 1rem;
  color: var(--white); font-family: var(--ff-body); font-size: .9rem;
  outline: none;
  transition: border-color .2s, background .2s;
  width: 100%;
}
.cf-group input:focus,
.cf-group select:focus,
.cf-group textarea:focus {
  border-color: var(--azure);
  background: rgba(14,165,233,.07);
}
.cf-group select option { background: var(--ink3); color: var(--white); }
.cf-group textarea { resize: vertical; min-height: 110px; }
.cf-group input::placeholder,
.cf-group textarea::placeholder { color: var(--muted2); }

/* ── MISC COMPONENTS ── */
.urgency-bar {
  background: linear-gradient(90deg, var(--azure2), var(--teal));
  padding: .45rem 5%;
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; font-size: .8rem; font-weight: 600;
  letter-spacing: .3px; position: relative; z-index: 200;
}
.urgency-bar a { color: #fff; text-decoration: underline; }

section { position: relative; z-index: 1; }

/* ── SCREEN READER ONLY (HONEYPOT) ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap;
  border-width: 0;
}
