/* NDM website — design system
   Type: Plus Jakarta Sans (display) / Inter (body)
   Color: app-slate neutrals + NDM blue (#1f6fd0 family), navy depth section
   Rhythm: 4px spacing scale, radius 20/28, layered soft shadows */

:root {
  --paper: #edf1f6;
  --panel: #ffffff;
  --panel2: #f3f6fa;
  --ink: #131c26;
  --ink2: #3d4a59;
  --dim: #66788c;
  --line: #d8e0ea;
  --blue: #1f6fd0;
  --blue2: #2f7fd1;
  --navy: #1e3a5f;
  --green: #1d9d57;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --shadow-stage: 0 40px 90px -18px rgba(23, 52, 92, 0.35), 0 18px 36px -18px rgba(23, 52, 92, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(23, 52, 92, 0.14);
  --font-d: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-b: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
::selection { background: #bcd7f8; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 7px; font-size: 0.9em;
}
h1, h2, h3 { font-family: var(--font-d); letter-spacing: -0.02em; }

/* ambient aurora field */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  linear-gradient(180deg, #f2f5fa 0%, var(--paper) 340px); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.b1 { width: 560px; height: 560px; left: -160px; top: -180px; background: #bcd7f8; animation: drift 26s ease-in-out infinite alternate; }
.b2 { width: 520px; height: 520px; right: -140px; top: 40px; background: #bfe6cf; opacity: 0.42; animation: drift 32s ease-in-out infinite alternate-reverse; }
.b3 { width: 700px; height: 700px; left: 34%; top: 620px; background: #cfdcf5; opacity: 0.35; animation: drift 38s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(70px, 46px) scale(1.08); } }

/* reveal motion — one orchestrated system */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.22, 0.8, 0.3, 1), transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 13px 30px;
  background: rgba(246, 248, 251, 0.78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(216, 224, 234, 0.8);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue2), var(--blue));
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 18px -4px rgba(31, 111, 208, 0.5);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-mark.sm { width: 26px; height: 26px; border-radius: 8px; }
.brand-mark.sm svg { width: 14px; height: 14px; }
.brand-name { font-family: var(--font-d); font-weight: 800; font-size: 21px; letter-spacing: 0.2px; }
.nav-links { margin-left: auto; display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; }
.nav-links a { color: var(--ink2); position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--blue); border-radius: 2px; transform: scaleX(0); transform-origin: right;
  transition: transform 0.25s ease;
}
.nav-links a:hover { text-decoration: none; color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-ver {
  font-family: var(--font-d); font-weight: 700; font-size: 13px; color: var(--navy);
  background: #e3ecf8; border: 1px solid #c8daf2; border-radius: 999px; padding: 4px 12px;
}

/* hero */
.hero { max-width: 880px; margin: 0 auto; padding: 84px 28px 8px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 16px; font-size: 13.5px; color: var(--ink2);
  box-shadow: 0 6px 18px -8px rgba(23, 52, 92, 0.25);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2.2s infinite; }
.hero-badge .sep { width: 1px; height: 14px; background: var(--line); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(29, 157, 87, 0.35); } 55% { box-shadow: 0 0 0 6px rgba(29, 157, 87, 0); } }
.hero h1 { font-size: clamp(42px, 6.4vw, 66px); font-weight: 800; line-height: 1.06; letter-spacing: -0.032em; margin: 26px 0 20px; }
.lede { font-size: 18.5px; line-height: 1.62; color: var(--ink2); max-width: 40em; margin: 0 auto; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 32px 0 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-d); font-weight: 700; font-size: 16px;
  border-radius: 15px; padding: 13px 22px; border: 1px solid var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer; position: relative; overflow: hidden; text-align: left;
}
.btn svg { width: 21px; height: 21px; flex-shrink: 0; }
.btn small { display: block; font-family: var(--font-b); font-weight: 500; font-size: 12.5px; opacity: 0.85; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue2), var(--blue)); color: #fff; border: none;
  box-shadow: 0 16px 34px -10px rgba(31, 111, 208, 0.55);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-120%); transition: transform 0.6s ease;
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 20px 40px -10px rgba(31, 111, 208, 0.6); }
.btn-ghost { background: rgba(255, 255, 255, 0.9); color: var(--ink); box-shadow: var(--shadow-card); }
.btn-big { font-size: 17.5px; padding: 16px 30px; border-radius: 17px; }
.install {
  display: inline-flex; align-items: center; gap: 4px;
  background: #101c2a; border-radius: 12px; padding: 7px 7px 7px 18px;
  box-shadow: 0 14px 30px -12px rgba(16, 28, 42, 0.5);
}
.install code { background: none; border: none; color: #cfe3fa; font-size: 14px; padding: 0; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.12); color: #eaf2fc; border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.15s ease;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.22); }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn.done { background: var(--green); border-color: var(--green); color: #fff; }
.micro { color: var(--dim); font-size: 13.5px; margin-top: 16px; letter-spacing: 0.01em; }

/* stage */
.stage { max-width: 1120px; margin: 0 auto; padding: 44px 28px 4px; }
.stage-frame {
  position: relative; border-radius: var(--r-lg); overflow: visible;
  background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-stage);
}
.stage-bar {
  display: flex; align-items: center; gap: 7px;
  background: linear-gradient(180deg, #fbfcfe, #eef2f7);
  border-bottom: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 11px 16px;
}
.tdot { width: 12px; height: 12px; border-radius: 50%; }
.tdot.r { background: #ff5f57; } .tdot.y { background: #febc2e; } .tdot.g { background: #28c840; }
.stage-url {
  margin-left: 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  color: var(--dim); font-size: 13px; padding: 4px 16px;
}
.stage-frame video { display: block; width: 100%; height: auto; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 15px;
  padding: 10px 15px; box-shadow: 0 18px 36px -12px rgba(23, 52, 92, 0.35);
  font-size: 12.5px; color: var(--dim); line-height: 1.35;
  animation: floaty 7s ease-in-out infinite;
}
.chip b { display: block; font-family: var(--font-d); font-size: 13.5px; color: var(--ink); }
.chip svg { width: 19px; height: 19px; color: var(--blue); flex-shrink: 0; }
.chip-a { left: -26px; bottom: 64px; }
.chip-b { right: -26px; top: 88px; animation-delay: -3.2s; }
.chip-b svg { color: var(--green); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.stage-cap { text-align: center; color: var(--dim); font-size: 13.5px; margin-top: 16px; }

/* what's new */
.whatsnew {
  max-width: 1064px; margin: 36px auto 0;
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 22px; box-shadow: var(--shadow-card);
}
.wn-tag {
  background: #e7f6ee; color: #137347; border: 1px solid #bfe6cf;
  font-family: var(--font-d); font-size: 12.5px; font-weight: 700;
  border-radius: 999px; padding: 3px 12px; white-space: nowrap;
}
.whatsnew p { flex: 1; min-width: 260px; font-size: 15px; color: var(--ink2); }
.wn-live { color: var(--dim); font-size: 12.5px; }

/* sections */
section { padding-left: 28px; padding-right: 28px; }
.features, .how, .faq { max-width: 1120px; margin: 0 auto; padding-top: 84px; }
.features h2, .how h2, .faq h2 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; line-height: 1.14; text-align: center; margin-bottom: 40px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  grid-column: span 4;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px 24px; box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -16px rgba(23, 52, 92, 0.25); }
.card-wide { grid-column: span 7; }
.card-tall { grid-column: span 5; grid-row: span 2; }
.card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 10px; }
.ico {
  width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, #e8f1fc, #d6e7fa);
  border: 1px solid #c8daf2; color: var(--blue);
  display: grid; place-items: center;
}
.ico svg { width: 21px; height: 21px; }
.card h3 { font-size: 18px; font-weight: 700; }
.card p { color: var(--ink2); font-size: 15px; }

/* css mocks inside bento */
.mock { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel2); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; background: #e8edf3; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: #c3cedb; }
.mock-bar i { font-style: normal; margin-left: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; color: var(--dim); padding: 2px 12px; }
.mock-file { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-size: 14px; font-weight: 600; }
.mock-file svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }
.mock-file b { display: block; font-weight: 500; font-size: 12.5px; color: var(--dim); }
.mock-file em {
  margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: #137347;
  background: #e7f6ee; border: 1px solid #bfe6cf; border-radius: 999px; padding: 3px 11px; white-space: nowrap;
}
.mock-qualities { padding: 12px; display: flex; flex-direction: column; gap: 7px; background: var(--panel); }
.q { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 9px; padding: 7px 12px; font-size: 13.5px; }
.q i { margin-left: auto; font-style: normal; color: var(--dim); font-size: 12.5px; }
.q .radio { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #aebccb; flex-shrink: 0; }
.q.sel { border-color: var(--blue); background: #eaf3fd; font-weight: 600; }
.q .radio.on { border-color: var(--blue); background: radial-gradient(circle, var(--blue) 0 4.5px, transparent 5.5px); }
.q-btn {
  margin-top: 5px; text-align: center; background: linear-gradient(135deg, var(--blue2), var(--blue));
  color: #fff; font-family: var(--font-d); font-weight: 700; font-size: 14px;
  border-radius: 9px; padding: 9px;
}

/* dark speed section */
.speed { max-width: 1120px; margin: 84px auto 0; }
.speed-inner {
  background: linear-gradient(150deg, #12283f 0%, var(--navy) 55%, #0d1c30 100%);
  border-radius: var(--r-lg); padding: 56px 54px 48px; color: #e8f0f9;
  box-shadow: 0 34px 70px -22px rgba(13, 28, 48, 0.55); position: relative; overflow: hidden;
}
.speed-inner::before {
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 127, 209, 0.4), transparent 65%);
  right: -140px; top: -200px;
}
.speed h2 { font-size: clamp(28px, 3.8vw, 38px); font-weight: 800; line-height: 1.16; color: #fff; text-align: left; margin-bottom: 14px; position: relative; }
.speed p { color: #b9cadd; font-size: 16.5px; max-width: 36em; position: relative; }
.blocks { display: flex; gap: 5px; margin: 34px 0 8px; position: relative; }
.blocks span {
  flex: 1; height: 34px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.12);
  animation: fill 5.6s ease-in-out infinite;
}
@keyframes fill {
  0%, 8% { background: rgba(255, 255, 255, 0.09); }
  22%, 82% { background: linear-gradient(180deg, #4a9be8, #2f7fd1); border-color: rgba(255, 255, 255, 0.25); }
  96%, 100% { background: rgba(255, 255, 255, 0.09); }
}
.blocks span:nth-child(3n) { animation-delay: 0.25s; } .blocks span:nth-child(4n) { animation-delay: 0.5s; }
.blocks span:nth-child(5n) { animation-delay: 0.75s; } .blocks span:nth-child(7n) { animation-delay: 1s; }
.blocks span:nth-child(2n) { animation-delay: 0.12s; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 30px; position: relative; }
.stats b { display: block; font-family: var(--font-d); font-size: 31px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.stats span { color: #93a9c4; font-size: 13.5px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 27px; left: 17%; right: 17%;
  border-top: 2px dashed #bfd2e8; z-index: 0;
}
.step {
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 28px 24px; box-shadow: var(--shadow-card);
  position: relative; z-index: 1;
}
.step-n {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue2), var(--blue)); color: #fff;
  display: grid; place-items: center; font-family: var(--font-d); font-weight: 800; font-size: 16px;
  box-shadow: 0 8px 18px -4px rgba(31, 111, 208, 0.5); margin-bottom: 14px;
}
.step h3 { font-size: 17.5px; margin-bottom: 7px; }
.step p { color: var(--ink2); font-size: 15px; }

/* faq */
.faq-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 22px; align-items: start; }
.req-card {
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 26px 24px; box-shadow: var(--shadow-card);
}
.req-card h3 { font-size: 17.5px; margin-bottom: 12px; }
.req-card h3:not(:first-child) { margin-top: 24px; }
.req { list-style: none; }
.req li {
  padding: 8px 0 8px 26px; position: relative; font-size: 14.5px; color: var(--ink2);
  border-bottom: 1px dashed var(--line);
}
.req li:last-child { border-bottom: none; }
.req li::before {
  content: ""; position: absolute; left: 2px; top: 13px; width: 13px; height: 8px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}
.req-card p { font-size: 14.5px; color: var(--ink2); }
details {
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line);
  border-radius: 14px; padding: 15px 20px; margin-bottom: 11px; box-shadow: var(--shadow-card);
}
details summary {
  font-family: var(--font-d); font-weight: 700; cursor: pointer; font-size: 15.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; font-size: 21px; font-weight: 600; color: var(--blue);
  transition: transform 0.2s ease; line-height: 1;
}
details[open ] summary::after { transform: rotate(45deg); }
details p { color: var(--ink2); font-size: 14.5px; margin-top: 9px; }

/* final */
.final { max-width: 1120px; margin: 0 auto; padding: 84px 28px 88px; }
.final-card {
  text-align: center; border-radius: var(--r-lg); padding: 58px 30px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)) padding-box,
    linear-gradient(120deg, var(--blue2), #57b98a, var(--blue)) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-stage);
}
.final-card h2 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; margin-bottom: 10px; }
.final-card p { color: var(--ink2); font-size: 17px; margin-bottom: 28px; }

/* footer */
footer {
  border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  padding: 22px 30px; display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap; color: var(--dim); font-size: 13.5px;
}
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink2); }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--ink2); font-weight: 500; }

/* responsive */
@media (max-width: 1080px) {
  .chip-a { left: 10px; } .chip-b { right: 10px; }
}
@media (max-width: 980px) {
  .card, .card-wide, .card-tall { grid-column: span 12; }
  .steps, .faq-grid { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .speed-inner { padding: 40px 26px 36px; }
  .chip { display: none; }
  .hero { padding-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
