@import url('nm-system.css');

/* Public landing page. Same white and dark-green tokens as the portal. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--nm-text);
  background: var(--nm-surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 50; background: #fff; padding: 12px; }
.skip-link:focus { top: 12px; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--nm-primary-700); outline-offset: 3px; }
section[id] { scroll-margin-top: 90px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--nm-border);
  box-shadow: 0 1px 2px rgba(10, 82, 56, 0.04);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(8px); }
}
.site-header__inner {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--nm-primary-900); font-weight: 750; font-size: 18px; letter-spacing: -0.03em; text-decoration: none; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand small { display: block; color: var(--nm-muted); font-size: 11px; font-weight: 650; letter-spacing: 0.08em; }
.site-menu summary { display: none; }
.site-menu nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 650;
}
.site-menu a { text-decoration: none; white-space: nowrap; }
.site-menu a:not(.button) { position: relative; color: #2d3e35; }
.site-menu a:not(.button)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--nm-primary-800);
  transition: width 0.2s ease;
}
.site-menu a:not(.button):hover { color: var(--nm-primary-900); }
.site-menu a:not(.button):hover::after { width: 100%; }
.site-menu a.button--solid { color: #fff; }
.site-menu:not([open]) > nav { display: none; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.button .icon { width: 18px; height: 18px; }
.button--lg { min-height: 50px; padding: 12px 22px; font-size: 15px; }
.button--solid { background: var(--nm-primary-900); color: #fff; }
.button--solid:hover { background: var(--nm-primary-800); box-shadow: 0 10px 20px -10px rgba(10, 82, 56, 0.55); transform: translateY(-1px); }
.button--outline { border-color: var(--nm-primary-800); color: var(--nm-primary-900); background: #fff; }
.button--outline:hover { background: var(--nm-primary-50); }

/* Hero */
.hero {
  background-color: var(--nm-primary-50);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(15, 110, 74, 0.08) 0, transparent 38%),
    radial-gradient(rgba(15, 110, 74, 0.12) 1.2px, transparent 1.2px),
    linear-gradient(115deg, #f7fbf8 0%, #e9f4ed 100%);
  background-size: auto, 26px 26px, auto;
  border-bottom: 1px solid var(--nm-border);
}
.hero__inner {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: 72px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid #cfe4d6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--nm-primary-800);
  font-size: 13px;
  font-weight: 700;
}
.pill__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--nm-primary-700); }
.pill__dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: var(--nm-primary-700); opacity: 0.25; }
.hero h1 { margin: 22px 0 18px; font-size: clamp(40px, 5.2vw, 66px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 700; color: #16231c; }
.hero h1 em {
  font-style: normal;
  color: var(--nm-primary-800);
  background: linear-gradient(135deg, var(--nm-primary-900) 0%, var(--nm-primary-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__copy > p { max-width: 430px; margin: 0; color: var(--nm-text-soft); font-size: 18px; line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 34px 0 0; padding: 20px 0 0; border-top: 1px solid #d3e4d9; list-style: none; color: #34443b; font-size: 14px; font-weight: 650; }
.hero__proof li { display: flex; align-items: center; gap: 8px; }
.hero__proof .icon { color: var(--nm-primary-700); }

.hero__visual { position: relative; padding: 0 0 28px 28px; }
.hero__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 735 / 490;
  border: 6px solid #fff;
  border-radius: 22px;
  background: var(--nm-primary-900);
  box-shadow: 0 30px 60px -30px rgba(10, 82, 56, 0.45), 0 0 0 1px rgba(10, 82, 56, 0.06);
}
.hero__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__visual::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 28px -18px -2px 6px;
  border-radius: 26px;
  background: var(--nm-primary-100);
}
.hero__visual { isolation: isolate; }
.hero__note {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: calc(100% - 24px);
  padding: 14px 18px 14px 14px;
  background: #fff;
  border: 1px solid var(--nm-border);
  border-radius: 14px;
  box-shadow: 0 18px 36px -18px rgba(10, 82, 56, 0.35);
}
.hero__note strong, .hero__note small { display: block; }
.hero__note strong { color: #16231c; font-size: 15px; }
.hero__note small { color: var(--nm-muted); font-size: 13px; }
.hero__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--nm-primary-900);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}
.hero__badge .icon { width: 16px; height: 16px; }
.icon-tile { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--nm-primary-100); color: var(--nm-primary-900); }
.icon-tile .icon { width: 22px; height: 22px; }

/* Sections */
.section__heading { max-width: 640px; }
.eyebrow { display: inline-block; color: var(--nm-primary-700); font-size: 12px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.section h2, .chain h2, .workflow h2, .closing h2 { margin: 8px 0 0; color: var(--nm-primary-900); font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; font-weight: 700; line-height: 1.15; }

/* Production chain */
.chain { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 76px 0 8px; }
.chain__steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; counter-reset: none; }
.chain__steps::before {
  content: '';
  position: absolute;
  top: 37px;
  left: 6%;
  right: 6%;
  border-top: 2px dashed #b9d7c4;
}
.chain__steps li {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 4px;
  min-height: 132px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--nm-border);
  border-radius: 14px;
}
.chain__number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--nm-primary-900);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px #cfe4d6;
}
.chain__steps li:last-child .chain__number { background: var(--nm-primary-600); }
.chain__steps strong { color: #16231c; font-size: 16px; line-height: 1.3; }
.chain__steps small { color: var(--nm-muted); font-size: 13px; }

/* Workspace modules */
.section { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 72px 0 80px; }
.capability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.capability-grid article {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--nm-border);
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.capability-grid article:hover { transform: translateY(-4px); box-shadow: inset 0 -3px 0 var(--nm-primary-800), 0 22px 34px -22px rgba(10, 82, 56, 0.35); }
.capability-grid h3 { margin: 18px 0 6px; color: #16231c; font-size: 17px; }
.capability-grid p { margin: 0; color: var(--nm-text-soft); font-size: 14px; }

/* How it works */
.workflow {
  color: #fff;
  background-color: var(--nm-primary-900);
  background-image: radial-gradient(circle at 85% 10%, rgba(68, 160, 91, 0.28) 0, transparent 45%), radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: auto, 22px 22px;
}
.workflow__inner { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 72px 0; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.workflow .eyebrow { color: #a9dcb9; }
.workflow h2 { color: #fff; }
.workflow p { margin: 12px 0 0; color: #d7ebe0; font-size: 17px; }
.workflow ol { position: relative; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.workflow ol::before { content: ''; position: absolute; top: 30px; bottom: 30px; left: 37px; border-left: 2px dashed rgba(255, 255, 255, 0.22); }
.workflow li {
  position: relative;
  display: grid;
  grid-template-columns: 40px 110px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
}
.workflow__number { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--nm-primary-900); font-weight: 800; }
.workflow li strong { color: #fff; font-size: 16px; }
.workflow li > span:last-child { color: #d7ebe0; font-size: 14px; }

/* Closing call to action */
.closing {
  width: min(1180px, calc(100% - 40px));
  margin: 56px auto;
  padding: 30px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: linear-gradient(115deg, #ffffff 0%, var(--nm-primary-50) 100%);
  border: 1px solid #d3e4d9;
  border-radius: 18px;
}
.closing__copy { display: flex; align-items: center; gap: 18px; min-width: 0; }
.closing__copy img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.closing p { margin: 4px 0 0; color: var(--nm-text-soft); }
.closing .button { flex-shrink: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--nm-border); background: var(--nm-surface-muted); color: var(--nm-muted); font-size: 13px; }
.site-footer__inner { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 28px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px 28px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__brand img { width: 40px; height: 40px; object-fit: contain; }
.site-footer__brand span { display: grid; gap: 2px; }
.site-footer strong { color: var(--nm-primary-900); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { min-height: 32px; display: inline-flex; align-items: center; color: var(--nm-primary-900); font-weight: 650; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }

/* Gentle entrance, skipped when motion is reduced. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy, .hero__visual { animation: rise 0.6s ease-out both; }
  .hero__visual { animation-delay: 0.12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Tablet */
@media (max-width: 980px) {
  .site-header__inner { width: calc(100% - 28px); }
  .site-menu { position: relative; }
  .site-menu summary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #b7cfc2;
    border-radius: 10px;
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--nm-primary-900);
    background: #fff;
  }
  .site-menu summary::-webkit-details-marker { display: none; }
  .site-menu nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: min(280px, 80vw); padding: 10px; flex-direction: column; align-items: stretch; gap: 4px; background: #fff; border: 1px solid var(--nm-border); border-radius: 12px; box-shadow: 0 16px 40px rgba(10, 82, 56, 0.16); }
  .site-menu[open] nav { display: flex; }
  .site-menu nav a { min-height: 44px; display: flex; align-items: center; padding: 0 10px; border-radius: 8px; }
  .site-menu nav a:not(.button)::after { display: none; }
  .site-menu nav a:not(.button):hover { background: var(--nm-primary-50); }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 56px; width: calc(100% - 32px); }
  .hero__visual { max-width: 620px; }
  .chain, .section, .workflow__inner, .closing, .site-footer__inner { width: calc(100% - 32px); }
  .chain__steps { gap: 10px; }
  .chain__steps li { min-height: 120px; padding: 16px; }
  .chain__steps strong { font-size: 15px; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* Narrow tablet and phone: the chain becomes a vertical list. */
@media (max-width: 760px) {
  .chain__steps { grid-template-columns: 1fr; gap: 10px; }
  .chain__steps::before { top: 30px; bottom: 30px; left: 37px; right: auto; border-top: 0; border-left: 2px dashed #b9d7c4; }
  .chain__steps li { min-height: 0; grid-template-columns: 36px 1fr; align-items: center; column-gap: 14px; padding: 14px 18px; }
  .chain__number { grid-row: span 2; margin: 0; }
}

/* Phone */
@media (max-width: 600px) {
  .hero__inner { padding: 36px 0 44px; }
  .hero h1 { font-size: 38px; }
  .hero__copy > p { font-size: 17px; }
  .hero__actions .button { flex: 1 1 100%; }
  .hero__visual { padding: 0 0 24px 12px; }
  .hero__visual::before { inset: 20px -8px -2px 2px; }
  .hero__badge { top: 12px; right: 12px; font-size: 12px; }
  .hero__note { padding: 12px 14px 12px 12px; }
  .chain { padding-top: 52px; }
  .section { padding: 52px 0 56px; }
  .capability-grid { grid-template-columns: 1fr; }
  .workflow__inner { padding: 52px 0; }
  .workflow li { grid-template-columns: 40px 1fr; row-gap: 2px; }
  .workflow__number { grid-row: span 2; }
  .closing { flex-direction: column; align-items: stretch; padding: 24px 20px; margin: 40px auto; }
  .closing__copy { align-items: flex-start; }
  .closing__copy img { width: 44px; height: 44px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}
