/* ===== MIRE Distribution — site styles ===== */

:root {
  --navy: #0e2240;
  --navy-2: #16304f;
  --navy-3: #1f3f66;
  --accent: #2f6db5;
  --accent-dark: #265b98;
  --ink: #1c2430;
  --ink-soft: #5b6775;
  --ink-muted: #8b95a3;
  --line: #e3e8ee;
  --bg-alt: #f4f6f9;
  --ok: #1f8f5a;
  --max: 1160px;
  --head: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 8px 24px rgba(14, 34, 64, .08);
  --shadow-lg: 0 20px 50px rgba(14, 34, 64, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: #fff; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--head); margin: 0 0 .5em; line-height: 1.15; color: var(--navy); letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 600; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.15rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.section { padding: clamp(60px, 8vw, 100px) 0; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.eyebrow.light { color: #9fbde6; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 4px; font-family: var(--body); font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; text-decoration: none !important; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

/* ----- Top bar ----- */
.topbar { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .8rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar-links { display: flex; }
.topbar-links li { display: flex; align-items: center; color: var(--ink-muted); }
.topbar-links li + li::before { content: "|"; margin: 0 10px; color: #c9d0da; }
.topbar-links a { color: var(--ink-soft); font-weight: 500; }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a { display: grid; place-items: center; width: 22px; height: 22px; color: var(--ink-muted); }
.topbar-social svg { width: 14px; height: 14px; fill: currentColor; }
.topbar-social a:hover { color: var(--accent); }

/* ----- Header ----- */
.site-header { position: relative; z-index: 40; background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none !important; }
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--head); }
.brand-text strong { font-size: 1.55rem; font-weight: 700; letter-spacing: .04em; color: var(--navy); }
.brand-text span { font-size: .68rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.header-contacts { display: flex; }
.header-contacts li { display: flex; align-items: center; gap: 12px; padding: 0 22px; border-left: 1px solid var(--line); }
.header-contacts li:first-child { border-left: 0; }
.header-contacts svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.header-contacts div { display: flex; flex-direction: column; line-height: 1.25; }
.header-contacts a, .header-contacts span { font-weight: 600; font-size: .92rem; color: var(--ink); }
.header-contacts small { font-size: .75rem; color: var(--ink-muted); }

.navbar { background: var(--navy); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.site-nav { display: flex; height: 100%; }
.site-nav a {
  display: flex; align-items: center; padding: 0 18px; height: 54px; color: rgba(255, 255, 255, .88);
  font-weight: 500; font-size: .92rem; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.active { color: #fff; border-bottom-color: #fff; text-decoration: none; }
.nav-cta { background: var(--accent); color: #fff; font-weight: 600; font-size: .92rem; padding: 0 22px; height: 54px; display: flex; align-items: center; }
.nav-cta:hover { background: var(--accent-dark); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* ----- Hero ----- */
.hero {
  position: relative; color: #fff; overflow: hidden; padding: clamp(60px, 8vw, 96px) 0 clamp(20px, 3vw, 36px);
  background: var(--navy);
  background-image: radial-gradient(900px 400px at 50% -5%, rgba(47, 109, 181, .32), transparent 70%);
}
.hero-copy { text-align: center; max-width: 800px; margin: 0 auto clamp(36px, 5vw, 56px); }
.hero-kicker { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #9fbde6; margin-bottom: 18px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero-sub { font-size: 1.08rem; color: #c3cfe0; max-width: 66ch; margin: 0 auto 28px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Flow diagram */
.flow { margin: 0 auto; max-width: 1100px; }
.flow-svg { width: 100%; height: auto; overflow: visible; }
.routes use { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1.2; stroke-dasharray: 4 7; animation: dash 1.8s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.node rect { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.node.dst rect { stroke: rgba(159, 189, 230, .45); }
.node text { fill: #dfe7f3; font-family: var(--body); font-weight: 500; font-size: 13px; letter-spacing: .02em; text-anchor: middle; }
.hub-ring { fill: #fff; }
.hub-pulse { fill: none; stroke: #9fbde6; stroke-width: 1; opacity: 0; transform-origin: 550px 170px; animation: pulse 3.6s ease-out infinite; }
.hub-pulse-2 { animation-delay: 1.8s; }
@keyframes pulse { 0% { transform: scale(.7); opacity: .5; } 100% { transform: scale(1.2); opacity: 0; } }
.hub-label { fill: #fff; font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: .01em; text-anchor: middle; }
.hub-sub { fill: #9fbde6; font-family: var(--body); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-anchor: middle; text-transform: uppercase; }
.parcels circle { fill: #9fbde6; }
.flow-caption { display: flex; justify-content: space-between; margin: 8px auto 0; max-width: 1100px; padding: 0 10px; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #7f93b0; }
@media (prefers-reduced-motion: reduce) {
  .routes use, .hub-pulse { animation: none; }
  .hub-pulse { opacity: .2; transform: scale(1); }
  .parcels { display: none; }
}

/* ----- Value props ----- */
.props { background: #fff; border-bottom: 1px solid var(--line); }
.props-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.prop { padding: clamp(32px, 4vw, 48px) clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
.prop:first-child { border-left: 0; padding-left: 0; }
.prop:last-child { padding-right: 0; }
.prop h3 { position: relative; padding-top: 16px; margin-bottom: 10px; }
.prop h3::before { content: ""; position: absolute; top: 0; left: 0; width: 36px; height: 2px; background: var(--accent); }
.prop p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ----- Intro split ----- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.buy-list { padding-right: clamp(24px, 4vw, 56px); }
.linesheet { border-top: 2px solid var(--navy); margin-top: 20px; }
.linesheet li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.linesheet span { font-weight: 600; font-size: .97rem; color: var(--navy); }
.linesheet em { font-style: normal; font-size: .84rem; color: var(--ink-muted); text-align: right; }
.buy-note { margin-top: 20px; font-size: .93rem; color: var(--ink-soft); }
.why-panel { background: var(--bg-alt); padding: clamp(32px, 4vw, 56px); border-left: 3px solid var(--navy); }
.why-panel p { color: var(--ink-soft); }
.why-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 28px; }
.why-facts div { border-top: 1px solid var(--navy); padding-top: 10px; display: flex; flex-direction: column; }
.why-facts strong { font-family: var(--head); font-size: 1.05rem; font-weight: 600; color: var(--navy); line-height: 1.2; }
.why-facts span { font-size: .8rem; color: var(--ink-muted); }

/* ----- Company snapshot ----- */
.profile { background: var(--bg-alt); border-top: 1px solid var(--line); }
.profile-card { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.profile-copy p { color: var(--ink-soft); }
.checklist { margin: 18px 0 28px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; font-weight: 500; font-size: .97rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.2 14.2l-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.2 14.2l-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.profile-doc { background: #fff; padding: 26px 28px 20px; border: 1px solid var(--line); border-top: 3px solid var(--navy); box-shadow: var(--shadow); }
.doc-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.doc-head div { display: flex; flex-direction: column; line-height: 1.2; }
.doc-head strong { font-family: var(--head); font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.doc-head span { font-size: .8rem; color: var(--ink-muted); }
.doc-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.doc-table th { text-align: left; font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); padding: 10px 12px 10px 0; width: 32%; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc-table td { padding: 10px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.doc-table tr:last-child th, .doc-table tr:last-child td { border-bottom: 0; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: 1px; }

/* ----- Process strip ----- */
.process { background: var(--navy); color: #fff; padding: clamp(44px, 6vw, 72px) 0; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-steps li { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .2); }
.process-steps span { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; color: #9fbde6; margin-bottom: 8px; }
.process-steps h3 { color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.process-steps p { margin: 0; font-size: .9rem; color: #b9c6da; }

/* ----- Category ticker ----- */
.ticker { display: flex; align-items: stretch; background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ticker-label { flex: none; display: flex; align-items: center; padding: 0 22px; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9fbde6; background: rgba(255, 255, 255, .05); border-right: 1px solid rgba(255, 255, 255, .1); white-space: nowrap; }
.ticker-viewport { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: flex; align-items: center; padding: 15px 0; font-size: .9rem; font-weight: 500; color: #c3cfe0; white-space: nowrap; }
.ticker-track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .3); margin: 0 26px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ----- Contact band ----- */
.callback { position: relative; background: var(--navy-2); padding: clamp(56px, 7vw, 88px) 0 0; }
.callback-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-bottom: clamp(60px, 8vw, 100px); }
.form-card { background: #fff; color: var(--ink); padding: clamp(28px, 4vw, 44px); display: grid; gap: 14px; box-shadow: var(--shadow-lg); border-top: 3px solid var(--accent); }
.form-kicker { color: var(--accent); margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.form-card h2 { margin-bottom: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; font: inherit; font-size: .95rem; padding: 12px 14px; border: 1px solid #cfd6df; border-radius: 4px; background: #fff; color: var(--ink);
}
.form-card select:invalid { color: #757575; }
.form-card textarea { resize: vertical; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 109, 181, .2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; font-size: .86rem; color: var(--ink-soft); }
.callback-copy { color: #fff; }
.callback-copy h2 { color: #fff; }
.callback-copy p { color: #c3cfe0; }
.callback-points { display: grid; gap: 10px; margin-top: 18px; }
.callback-points li { position: relative; padding-left: 24px; font-weight: 500; }
.callback-points li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: #9fbde6; }

/* ----- Footer ----- */
.site-footer { position: relative; color: #b9c6da; padding: 0 0 24px; background: #0a1a30; }
.contact-strip { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--navy); transform: translateY(-50%); box-shadow: var(--shadow-lg); border-top: 3px solid var(--accent); }
.contact-strip li { display: flex; align-items: flex-start; gap: 16px; padding: 26px 30px; border-left: 1px solid rgba(255, 255, 255, .08); }
.contact-strip li:first-child { border-left: 0; }
.contact-strip svg { width: 42px; height: 42px; flex: none; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; padding: 10px; }
.contact-strip h4 { color: #fff; margin: 0 0 4px; font-size: 1rem; }
.contact-strip p { margin: 0; font-size: .88rem; color: #b9c6da; }
.contact-strip a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: 48px; padding-bottom: 36px; margin-top: -20px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text span { color: #9fbde6; }
.footer-blurb { margin-top: 18px; font-size: .9rem; max-width: 42ch; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-links li { margin-bottom: 8px; font-size: .9rem; }
.footer-links a { color: #b9c6da; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: .82rem; color: #7f93b0; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 18px; }
.footer-bottom a { color: #b9c6da; }
.to-top { position: fixed; right: 22px; bottom: 22px; width: 40px; height: 40px; border-radius: 4px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 600; box-shadow: var(--shadow); z-index: 30; text-decoration: none !important; }

/* ----- Responsive ----- */
@media (max-width: 1100px) {
  .header-contacts li:last-child { display: none; }
}
@media (max-width: 960px) {
  .header-contacts { display: none; }
  .split { grid-template-columns: 1fr; }
  .buy-list { padding: 0 0 40px; }
  .profile-card { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .callback-inner { grid-template-columns: 1fr; gap: 40px; }
  .callback { padding-top: 40px; }
  .ticker-label { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; height: auto;
    background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .site-nav a { height: 50px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .site-nav a.active { border-bottom-color: rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .06); }
}
@media (max-width: 640px) {
  .topbar-links li:last-child { display: none; }
  .props-inner, .process-steps, .form-row, .footer-grid, .contact-strip, .why-facts { grid-template-columns: 1fr; }
  .prop { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-right: 0; }
  .prop:first-child { border-top: 0; }
  .contact-strip { transform: translateY(-30px); }
  .contact-strip li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .linesheet li { grid-template-columns: 1fr; gap: 2px; }
  .linesheet em { text-align: left; }
  .flow-caption { font-size: .64rem; letter-spacing: .08em; }
  .node text { font-size: 12px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
}
