/* NUMICA home page redesign — standalone styles (prefix .nm-) */
.nm {
  --navy: #0F2942; --navy-2: #13325A; --navy-3: #0B2036; --line: #23406A;
  --mint: #3DD6A8; --mint-dk: #0F7A5C; --mint-bg: #E3F6EF; --blue: #7FB2FF;
  --ink: #0E1A2B; --muted: #4C5B70; --soft: #C9D4E3; --paper: #F5F6F2; --card: #FFFFFF; --bd: #E2E6EC;
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.6;
}
.nm *, .nm *::before, .nm *::after { box-sizing: border-box; }
.nm h1, .nm h2, .nm h3, .nm .nm-display { font-family: "Manrope", system-ui, sans-serif; letter-spacing: -0.01em; }
.nm-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.nm-section { padding: 96px 0; }
.nm-h2 { margin: 0; font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.nm-lead { margin: 0; color: var(--muted); }
.nm-row { display: flex; flex-wrap: wrap; gap: 24px; }
.nm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; }

/* Buttons */
.nm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px;
  border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
  transition: transform .2s, background-color .2s, box-shadow .2s; }
.nm-btn:hover { transform: translateY(-2px); }
.nm-btn:focus-visible, .nm-chip:focus-visible, .nm-tab:focus-visible, .nm-card-link:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.nm-btn-mint { background: var(--mint); color: var(--navy); }
.nm-btn-mint:hover { box-shadow: 0 12px 30px rgba(61,214,168,.35); }
.nm-btn-ghost { background: transparent; color: #F2F5F9; border: 1px solid #3A5578; }
.nm-btn-dark { background: var(--navy); color: #fff; }
.nm-btn-light { background: #F2F5F9; color: var(--navy); }
.nm-btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

.nm [x-cloak] { display: none !important; }

/* Hero */
.nm-hero { background: var(--navy); color: #F2F5F9; padding: 72px 0 104px; position: relative; overflow: hidden; }
.nm-hero-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.nm-hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.nm-eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8FE3C8; }
.nm-hero h1 { margin: 0; font-weight: 800; font-size: clamp(38px, 5.6vw, 64px); line-height: 1.05; color: #fff; letter-spacing: -0.02em; }
.nm-hero-sub { margin: 0; font-size: 20px; color: var(--soft); max-width: 580px; }
.nm-hero-desc { margin: 0; font-size: 17px; color: #A9B8CC; max-width: 580px; }
.nm-slogan { margin: 0; font-family: "Manrope", sans-serif; font-weight: 700; font-size: 18px; color: #fff; }

/* Xlade panel */
.nm-panel { flex: 1 1 420px; min-width: 0; max-width: 540px; background: #12294B; border: 1px solid var(--line); border-radius: 28px;
  padding: 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.25); position: relative; overflow: hidden; }
.nm-panel-glow { position: absolute; width: 320px; height: 320px; right: -120px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(61,214,168,.28), rgba(61,214,168,0) 70%); pointer-events: none; animation: nmGlow 9s ease-in-out infinite; }
.nm-panel-top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.nm-panel-name { display: flex; align-items: center; gap: 10px; font-family: "Manrope", sans-serif; font-weight: 700; font-size: 18px; color: #fff; }
.nm-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); animation: nmPulse 1.8s ease-in-out infinite; flex-shrink: 0; }
.nm-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: var(--navy-3); border-radius: 18px; position: relative; }
.nm-tab { flex: 1 1 auto; padding: 8px 12px; border: 0; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--soft); transition: background .3s, color .3s; }
.nm-tab[aria-selected="true"] { background: var(--mint); color: var(--navy); }
.nm-pane { min-height: 372px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.nm-bar { height: 3px; border-radius: 3px; background: var(--mint); transform-origin: left; animation: nmBar 4.2s linear both; }
.nm-item { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: #0E223F; border-radius: 16px; color: #E6ECF4; font-weight: 500;
  animation: nmIn .5s ease-out both; }
.nm-item .nm-grow { flex-grow: 1; }
.nm-tick { width: 32px; height: 32px; border-radius: 50%; background: #17334F; display: flex; align-items: center; justify-content: center; color: var(--mint);
  flex-shrink: 0; animation: nmPop .45s ease-out both; }
.nm-status { font-size: 14px; color: #8FE3C8; }
.nm-note { margin: 0; font-size: 14px; color: #8FE3C8; animation: nmIn .5s ease-out both; }
.nm-pane-lead { margin: 0; font-size: 15px; color: var(--soft); animation: nmIn .5s ease-out both; }
.nm-num { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
  flex-shrink: 0; animation: nmLight .4s ease-out both; }
.nm-fill { width: 90px; height: 6px; border-radius: 3px; background: #1C3658; overflow: hidden; flex-shrink: 0; }
.nm-fill span { display: block; height: 100%; background: var(--mint); transform-origin: left; animation: nmBar .7s ease-out both; }
.nm-doc { position: relative; flex: 0 0 120px; height: 160px; background: #E8EEF6; border-radius: 12px; padding: 16px 14px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; animation: nmIn .5s ease-out both; }
.nm-doc i { display: block; height: 7px; border-radius: 4px; background: #9AAAC0; filter: blur(2px); }
.nm-doc i:first-child { height: 10px; width: 60%; background: #3B5274; }
.nm-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--mint); box-shadow: 0 0 14px 4px rgba(61,214,168,.6); animation: nmScan 2.4s ease-in-out infinite; }
.nm-hidden { position: absolute; left: 6px; bottom: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(8,20,40,.85); color: #fff; font-size: 11px; }
.nm-chart { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding: 18px 18px 0; background: #0E223F; border-radius: 16px; animation: nmIn .5s ease-out both; }
.nm-chart span { flex: 1 1 0; border-radius: 6px 6px 0 0; background: var(--mint); transform-origin: bottom; animation: nmRise .8s cubic-bezier(.2,.8,.2,1) both; }
.nm-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.nm-pills span { padding: 6px 12px; border-radius: 999px; background: #0E223F; color: #E6ECF4; font-size: 13px; }
.nm-agent b { color: #fff; min-width: 124px; font-weight: 600; }
.nm-agent small { font-size: 14px; color: #A9B8CC; }
.nm-caption { margin: 0; font-size: 13px; color: #8FA3BF; position: relative; }

/* Services */
.nm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.nm-card { background: var(--card); border: 1px solid var(--bd); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; color: inherit; transition: border-color .25s, box-shadow .25s, transform .25s; }
a.nm-card:hover { border-color: var(--mint-dk); box-shadow: 0 18px 40px rgba(15,41,66,.08); transform: translateY(-3px); }
.nm-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--mint-bg); color: var(--mint-dk); display: flex; align-items: center; justify-content: center; }
.nm-card h3 { margin: 0; font-weight: 700; font-size: 21px; }
.nm-card p { margin: 0; color: var(--muted); font-size: 16px; }
.nm-more { margin-top: auto; padding-top: 6px; color: var(--mint-dk); font-weight: 700; font-size: 15px; }
.nm-also { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.nm-also b { color: var(--muted); font-weight: 600; }
.nm-also span { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--bd); font-weight: 500; font-size: 15px; }

/* Steps */
.nm-steps { background: var(--navy); color: #F2F5F9; border-radius: 32px; padding: clamp(36px, 5vw, 64px); }
.nm-steps .nm-h2 { color: #fff; margin-bottom: 40px; }
.nm-step { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.nm-step b { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 40px; color: var(--mint); }
.nm-step h3 { margin: 0; color: #fff; font-size: 20px; }
.nm-step p { margin: 0; color: var(--soft); font-size: 16px; }

/* Calculator */
.nm-calc-in { flex: 999 1 560px; min-width: 0; background: #fff; border: 1px solid var(--bd); border-radius: 28px; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 26px; }
.nm-field { display: flex; flex-direction: column; gap: 10px; }
.nm-label { font-weight: 600; font-size: 15px; }
.nm-hint { font-size: 14px; color: var(--muted); }
.nm-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.nm-chip { min-height: 46px; padding: 10px 18px; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid #C9D1DC; background: #fff; color: var(--ink); }
.nm-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.nm-chip:disabled { opacity: .4; cursor: not-allowed; }
.nm-nums { display: flex; flex-wrap: wrap; gap: 16px; }
.nm-nums > div { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.nm-stepper { display: flex; align-items: center; border: 1px solid #C9D1DC; border-radius: 12px; overflow: hidden; }
.nm-stepper button { width: 48px; height: 50px; border: 0; background: #F3F5F8; font: inherit; font-size: 20px; cursor: pointer; color: var(--ink); }
.nm-stepper input { flex: 1 1 auto; min-width: 0; width: 60px; height: 50px; border: 0; text-align: center; font: inherit; font-size: 18px; font-weight: 600; }
.nm-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.nm-check { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; cursor: pointer; border: 1px solid var(--bd); background: #fff; font-size: 15px; font-weight: 500; }
.nm-check.is-on { border-color: var(--mint-dk); background: #EEF8F4; }
.nm-check input { width: 20px; height: 20px; accent-color: var(--mint-dk); margin: 0; }
.nm-sum { flex: 1 1 360px; min-width: 0; background: var(--navy); color: #F2F5F9; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 20px; align-self: flex-start; }
.nm-sum-title { font-family: "Manrope", sans-serif; font-weight: 700; font-size: 20px; color: #fff; }
.nm-total { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 46px; line-height: 1.1; color: #fff; }
.nm-lines { border-top: 1px solid var(--line); padding-top: 12px; }
.nm-line { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 15px; }
.nm-line span:first-child { color: var(--soft); }
.nm-line span:last-child { font-weight: 600; color: #fff; white-space: nowrap; }
.nm-line.is-once { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; }
.nm-disc { margin: 0; font-size: 14px; color: #A9B8CC; }
.nm-note-dark { margin: 0; font-size: 14px; color: #8FE3C8; }

/* Forms */
.nm-form { display: flex; flex-direction: column; gap: 14px; background: #fff; color: var(--ink); border-radius: 20px; padding: 22px; }
.nm-form label.nm-label { display: block; margin-bottom: 6px; font-size: 14px; }
.nm-input { width: 100%; padding: 13px 15px; border: 1px solid #C9D1DC; border-radius: 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.nm-input:focus { outline: 2px solid var(--mint-dk); outline-offset: 1px; border-color: transparent; }
.nm-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.nm-consent input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--mint-dk); }
.nm-err { font-size: 14px; color: #B42318; }
.nm-ok { margin: 0; padding: 18px; border-radius: 16px; background: var(--mint-bg); color: #0B3D2E; font-weight: 600; line-height: 1.45; }
.nm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Video */
.nm-video { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 28px; background: var(--navy); box-shadow: 0 30px 60px rgba(15,41,66,.18); }

/* Stats */
.nm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.nm-stat { background: #fff; border: 1px solid var(--bd); border-radius: 22px; padding: 26px; }
.nm-stat b { display: block; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 40px; color: var(--navy); }
.nm-stat span { color: var(--muted); font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }

/* Why us */
.nm-why { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--bd); border-radius: 22px; padding: 24px 26px; }
.nm-why-dot { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--mint); display: flex; align-items: center; justify-content: center; }
.nm-why h3 { margin: 0 0 4px; font-size: 19px; }
.nm-why p { margin: 0; color: var(--muted); font-size: 16px; }

/* Blog */
.nm-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.nm-post { background: #fff; border: 1px solid var(--bd); border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.nm-post:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15,41,66,.08); }
.nm-post img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.nm-post div { padding: 18px; }
.nm-post h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.35; }
.nm-post time { font-size: 13px; color: var(--muted); }

/* Contact */
.nm-contact { background: var(--navy); color: #F2F5F9; padding: 96px 0; position: relative; overflow: hidden; }
.nm-contact .nm-wrap { position: relative; }
.nm-contact-grid { display: flex; flex-wrap: wrap; gap: 56px; }
.nm-contact-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.nm-badge { align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: #12294B; color: #8FE3C8; font-size: 14px; font-weight: 600; }
.nm-contact h2 { margin: 0; font-weight: 800; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.05; color: #fff; }
.nm-contact h2 em { font-style: normal; color: var(--mint); }
.nm-contact-lead { margin: 0; color: var(--soft); font-size: 19px; }
.nm-contact-list { display: flex; flex-direction: column; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 19px; }
.nm-contact-list a { color: #fff; font-weight: 600; text-decoration: none; }
.nm-contact-list a.is-mail { color: #8FE3C8; }
.nm-contact-list span { color: var(--soft); font-size: 17px; }
.nm-contact-card { flex: 1 1 440px; min-width: 0; background: #fff; color: var(--ink); border-radius: 28px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.nm-contact-card h3 { margin: 0; font-weight: 800; font-size: 28px; }
.nm-done { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 24px 0; }
.nm-done span { width: 64px; height: 64px; border-radius: 50%; background: var(--mint-bg); color: var(--mint-dk); display: flex; align-items: center; justify-content: center; }

/* Animated contact background */
.nm-bg { position: absolute; inset: 0; pointer-events: none; }
.nm-bg-grid { position: absolute; inset: -80px; opacity: .5; animation: nmGrid 14s linear infinite;
  background-image: linear-gradient(#16304F 1px, transparent 1px), linear-gradient(90deg, #16304F 1px, transparent 1px); background-size: 80px 80px; }
.nm-bg-b1 { position: absolute; width: 720px; height: 720px; left: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(61,214,168,.32), rgba(61,214,168,0) 68%); animation: nmB1 16s ease-in-out infinite; }
.nm-bg-b2 { position: absolute; width: 820px; height: 820px; right: -300px; bottom: -360px; border-radius: 50%; background: radial-gradient(circle, rgba(96,158,255,.30), rgba(96,158,255,0) 68%); animation: nmB2 19s ease-in-out infinite; }
.nm-bg-ring { position: absolute; width: 560px; height: 560px; right: 6%; top: -180px; border-radius: 50%; border: 1px dashed #2A4A72; animation: nmRing 60s linear infinite; }
.nm-bg-line { position: absolute; left: -40%; width: 35%; height: 2px; background: linear-gradient(90deg, rgba(61,214,168,0), var(--mint), rgba(61,214,168,0)); animation: nmLine 8s ease-in-out infinite; }
.nm-bg-line.l1 { top: 22%; } .nm-bg-line.l2 { top: 64%; animation-duration: 9s; animation-delay: 2.5s; background: linear-gradient(90deg, rgba(127,178,255,0), var(--blue), rgba(127,178,255,0)); } .nm-bg-line.l3 { top: 86%; animation-delay: 5s; }
.nm-bg-dot { position: absolute; border-radius: 50%; background: var(--mint); animation: nmDot 5s ease-in-out infinite; }
.nm-bg-dot.d1 { left: 12%; top: 78%; width: 8px; height: 8px; } .nm-bg-dot.d2 { left: 46%; top: 14%; width: 6px; height: 6px; background: var(--blue); animation-delay: 1.2s; } .nm-bg-dot.d3 { left: 88%; top: 58%; width: 10px; height: 10px; animation-delay: 2.4s; }

@keyframes nmIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes nmPop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
@keyframes nmBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nmRise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes nmScan { 0% { top: 0; } 50% { top: 156px; } 100% { top: 0; } }
@keyframes nmLight { from { background: #17334F; color: #5E7598; } to { background: #3DD6A8; color: #0F2942; } }
@keyframes nmPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(61,214,168,.6); } 50% { box-shadow: 0 0 0 8px rgba(61,214,168,0); } }
@keyframes nmGlow { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(-40px,30px); } }
@keyframes nmGrid { from { transform: translate(0,0); } to { transform: translate(80px,80px); } }
@keyframes nmB1 { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(260px,180px) scale(1.15); } }
@keyframes nmB2 { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-240px,-160px) scale(1.1); } }
@keyframes nmRing { to { transform: rotate(360deg); } }
@keyframes nmLine { 0% { transform: translateX(0); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateX(380%); opacity: 0; } }
@keyframes nmDot { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-26px); opacity: 1; } }

@media (max-width: 640px) {
  .nm { font-size: 16px; }
  .nm-section { padding: 64px 0; }
  .nm-hero { padding: 48px 0 72px; }
  .nm-pane { min-height: 400px; }
  .nm-doc { flex-basis: 96px; }
  .nm-total { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .nm *, .nm *::before, .nm *::after { animation: none !important; transition: none !important; }
}
