/* NFTY marketing site v2 — Editorial Dark. Self-contained: does not depend on Bootstrap or custom.css. */

:root {
  --orange: #E97853;
  --orange-hover: #EF8D6D;
  --orange-soft: #F2A085;
  --grad: linear-gradient(135deg, #ff6b35 0%, var(--orange) 100%);
  --black: #08090b;
  --ink: #0c0d10;
  --ink-2: #111318;
  --ink-3: #161920;
  --white: #ffffff;
  --text: #f3f4f6;
  --text-2: #9ca3af;
  --text-3: #6b7280;
  --line: #1f232b;
  --line-2: #2e3440;
  --surface: #12151b;
  --surface-2: #181c24;
  --ok: #10b981;
  --warn: #f59e0b;
  --radius: 6px;
  --radius-sm: 4px;
  --nav-h: 64px;
  --font-head: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--white);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
p { margin: 0; color: var(--text-2); }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--orange); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--orange-hover); }
img { max-width: 100%; display: block; }
code {
  font-family: var(--font-mono);
  font-size: .86em;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  padding: 1px 6px;
  border-radius: 3px;
}
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 3px; }
::selection { background: rgba(233, 120, 83, 0.28); color: #fff; }

.ic {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.nf-wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .nf-wrap { padding: 0 36px; } }

.nf-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--orange);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 13px;
}
.nf-skip:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.nf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.nf-btn:hover { transform: translateY(-1px); }
.nf-btn:active { transform: translateY(1px); }
.nf-btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.nf-btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: #fff;
}
.nf-btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.nf-btn-ghost:hover {
  color: var(--white);
  border-color: var(--text-2);
  background: var(--surface-2);
}
.nf-btn-lg { padding: 14px 24px; font-size: 14.5px; min-height: 48px; }
.nf-btn-sm { padding: 8px 14px; font-size: 13px; min-height: 44px; }
.nf-btn .ic { width: 15px; height: 15px; transition: transform .15s ease; }
.nf-btn:hover .ic { transform: translateX(2px); }

/* ---------- Nav ---------- */
.nf-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(12, 13, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nf-nav.is-scrolled { background: rgba(8, 9, 11, 0.96); border-bottom-color: var(--line-2); }
.nf-nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nf-brand { display: inline-flex; align-items: center; }
.nf-brand img { height: 28px; width: auto; }
.nf-nav-menu { display: flex; align-items: center; gap: 2px; }
.nf-nav-menu > a:not(.nf-btn) {
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
}
.nf-nav-menu > a:not(.nf-btn):hover { color: var(--white); background: var(--surface); }
.nf-nav-account { color: var(--text) !important; font-family: var(--font-mono); font-size: 12.5px !important; }
.nf-nav-sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 10px; }
.nf-nav-menu .nf-btn { margin-left: 8px; }
.nf-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nf-nav-toggle span { width: 16px; height: 1.5px; background: #fff; transition: transform .15s, opacity .15s; }
.nf-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nf-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nf-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nf-nav-toggle { display: inline-flex; }
  .nf-nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 20px;
    background: var(--black);
    border-bottom: 1px solid var(--line-2);
    display: none;
  }
  .nf-nav-menu.is-open { display: flex; }
  .nf-nav-menu > a:not(.nf-btn) { padding: 12px; font-size: 15px; width: 100%; }
  .nf-nav-sep { display: none; }
  .nf-nav-menu .nf-btn { margin: 10px 0 0; width: 100%; }
}

/* ---------- Eyebrow ---------- */
.nf-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nf-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orange);
  display: inline-block;
  flex-shrink: 0;
}
.nf-eyebrow-pill {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.nf-eyebrow-pill::before { display: none; }
.nf-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  display: inline-block;
}

html.js:not(.nf-rest-in) .nf-rest {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
html.js.nf-rest-in .nf-rest {
  opacity: 1;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  html.js .nf-rest {
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }
}

/* ---------- Hero ---------- */
.hero-section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: calc(var(--nav-h) + 8px) 0 0;
  background: var(--ink);
  border-bottom: 0;
}
.nf-hero-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.nf-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 8px 28px;
  align-items: center;
}
.hero-title {
  grid-column: 1;
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.038em;
  margin: 0;
  max-width: 11em;
}
.hero-title .highlight {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nf-hero-side {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.hero-fact {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.45;
  color: var(--text);
}
.nf-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.nf-mock-hero .nf-shot {
  width: 100%;
  height: auto;
  object-fit: fill;
}
@keyframes nf-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-section [data-enter] { animation: nf-enter .65s ease both; }
  .hero-section [data-enter="2"] { animation-delay: .08s; }
  .hero-section [data-enter="3"] { animation-delay: .16s; }
}
@media (max-width: 800px) {
  .hero-section { height: auto; overflow: visible; }
  .nf-hero-copy { grid-template-columns: 1fr; }
  .hero-title, .nf-hero-side { grid-column: 1; }
  .nf-hero-cta .nf-btn { flex: 1 1 auto; }
}
@media (max-width: 520px) {
  .nf-hero-cta { flex-direction: column; }
  .nf-hero-cta .nf-btn { width: 100%; }
}

/* ---------- Product Frame (Mock window) ---------- */
.nf-mock {
  margin: 0;
  width: 100%;
  background: var(--black);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}
.nf-mock.nf-mock-hero {
  margin-top: 32px;
}
.nf-mock-hero { grid-column: 1 / -1; }
.nf-mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.nf-mock-bar i {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--line-2);
}
.nf-mock-bar span {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
}
.nf-shot { display: block; width: 100%; height: auto; background: var(--black); }
.nf-mock figcaption { display: none; }

/* ---------- Proof ---------- */
.nf-proof {
  background: var(--black);
  border-bottom: 1px solid var(--line);
  padding: clamp(80px, 10vh, 120px) 0;
}
.nf-proof h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.032em;
  margin-bottom: clamp(28px, 4vh, 48px);
}
.nf-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.nf-stat-grid > div {
  padding: clamp(22px, 3vw, 36px) 20px clamp(22px, 3vw, 36px) 0;
  border-right: 1px solid var(--line);
}
.nf-stat-grid > div:last-child { border-right: 0; padding-right: 0; }
.nf-stat-grid b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 0.95;
}
.nf-stat-grid span {
  display: block;
  margin-top: 10px;
  max-width: 18ch;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.4;
}
.nf-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  margin-top: clamp(28px, 4vh, 44px);
}
.nf-marks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.nf-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #f4f1ec;
  border-radius: 10px;
  flex: none;
}
.nf-mark img { width: 26px; height: 26px; object-fit: contain; }
.nf-mark-wide { width: 92px; }
.nf-mark-wide img { width: 72px; height: auto; }
@media (max-width: 800px) {
  .nf-stat-grid { grid-template-columns: 1fr 1fr; }
  .nf-stat-grid > div:nth-child(1),
  .nf-stat-grid > div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .nf-stat-grid > div:nth-child(2) { border-right: 0; }
}

/* ---------- Sections & Editorial Headers ---------- */
.nf-section {
  padding: clamp(64px, 8vw, 108px) 0;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.nf-section-alt { background: var(--ink-2); }
.nf-section-ops { background: var(--black); }
.nf-section-contact { background: var(--black); border-bottom: 0; }

.nf-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 12px 36px;
  align-items: end;
  margin: 0 0 clamp(36px, 5vw, 56px);
  text-align: left;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.nf-head .nf-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}
.nf-head h2, .nf-split h2 {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.1;
}
.nf-head > p:last-child {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.nf-head > h2:last-child {
  grid-column: 1 / -1;
}
.nf-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nf-lead { font-size: 16.5px; margin-top: 16px; line-height: 1.6; }

@media (max-width: 820px) {
  .nf-head { grid-template-columns: 1fr; }
}

.nf-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.nf-icon .ic { width: 16px; height: 16px; }
.nf-icon-sm { width: 28px; height: 28px; margin-bottom: 12px; }
.nf-icon-sm .ic { width: 14px; height: 14px; }

/* ---------- Services ---------- */
.nf-offers {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.nf-offer {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 100%;
  transition: transform .18s ease, background .15s ease;
}
.nf-offer-wide { grid-column: span 3; }
.nf-offer:hover { transform: translateY(-2px); background: var(--surface-2); }
.nf-offer h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 4px 4px 0;
}
.nf-offer p { font-size: 14.5px; line-height: 1.5; margin: 0 4px 6px; }
.nf-frame {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--black);
  aspect-ratio: 16 / 10;
}
.nf-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform .45s ease;
}
.nf-frame-phone img { object-position: center 16%; }
.nf-offer:hover .nf-frame img,
.nf-work:hover .nf-frame img { transform: scale(1.03); }
.nf-frame-phone { aspect-ratio: 16 / 10; }
.nf-records {
  display: grid;
  gap: 0;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  background: var(--ink);
  border: 1px solid var(--line);
  overflow: hidden;
}
.nf-records span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 13px;
}
.nf-records span:last-child { border-bottom: 0; }
.nf-records b { color: var(--white); font-size: 14px; font-weight: 600; }
@media (max-width: 900px) {
  .nf-offers { grid-template-columns: 1fr 1fr; }
  .nf-offer, .nf-offer-wide { grid-column: span 1; }
}
@media (max-width: 640px) {
  .nf-offers { grid-template-columns: 1fr; }
  .nf-frame, .nf-records { aspect-ratio: 16 / 9; }
}

/* ---------- Ops ---------- */
.nf-ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}
.nf-mock-chat .nf-shot { background: var(--black); }

.nf-risk {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-top: 16px;
  overflow: hidden;
}
.nf-risk li {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(168px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
  align-items: baseline;
}
.nf-risk li:last-child { border-bottom: 0; }
.nf-risk b {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
}
.nf-risk b::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 1px;
  display: inline-block;
  flex-shrink: 0;
}
.nf-risk li:nth-child(1) b::before { background: var(--ok); }
.nf-risk li:nth-child(2) b::before { background: var(--orange); }
.nf-risk li:nth-child(3) b::before { background: var(--warn); }
.nf-risk span { color: var(--text-2); line-height: 1.45; display: block; }

.nf-modules {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.nf-tabs {
  display: flex;
  flex-wrap: wrap;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.nf-tabs button {
  flex: 1 1 auto;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  font-weight: 500;
  font-size: 13px;
  padding: 13px 16px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.nf-tabs button:last-child { border-right: 0; }
.nf-tabs button:hover { color: var(--white); background: var(--surface); }
.nf-tabs button[aria-selected="true"] {
  background: var(--surface);
  color: var(--white);
  border-bottom-color: var(--orange);
}
.nf-panel { padding: 0; }
.js .nf-panel[hidden] { display: none; }
.nf-mods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.nf-mods li {
  display: block;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.nf-mods li:nth-child(2n) { border-right: 1px solid var(--line); }
.nf-mods b {
  display: block;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-head);
  margin-bottom: 3px;
}
.nf-mods span { display: block; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.nf-modules-note {
  margin: 14px 0 0;
  padding: 0;
  background: transparent;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}

@media (max-width: 1000px) { .nf-ops-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .nf-mods { grid-template-columns: 1fr; border-right: 1px solid var(--line); }
  .nf-mods li { border-right: 0; }
  .nf-risk li { grid-template-columns: 1fr; gap: 4px; }
}

.nf-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-bottom: 40px;
}
.nf-feature {
  padding: 24px 22px;
  background: var(--ink);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}
.nf-feature:hover { background: var(--surface); }
.nf-feature h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.015em; }
.nf-feature p { font-size: 13.5px; line-height: 1.55; }
@media (max-width: 1000px) { .nf-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nf-feature-grid { grid-template-columns: 1fr; } }

.nf-ops-grid .nf-risk { margin-top: 0; }
.nf-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; margin-top: 28px; }

/* ---------- Work ---------- */
.nf-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(220px, 0.7fr);
  gap: 16px;
  align-items: stretch;
}
.nf-work {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 100%;
  transition: transform .18s ease, background .15s ease;
}
.nf-work:hover { transform: translateY(-2px); background: var(--surface-2); }
.nf-work h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 4px 4px 0; }
.nf-work p { font-size: 14.5px; line-height: 1.5; margin: 0 4px 8px; }
.nf-work-consult {
  justify-content: flex-end;
  padding: 28px 24px;
  background: var(--ink);
}
.nf-work-consult .nf-btn { align-self: flex-start; margin-top: 12px; pointer-events: none; }
@media (max-width: 900px) {
  .nf-work-grid { grid-template-columns: 1fr; }
}

/* ---------- Architecture ---------- */
.nf-arch { max-width: 100%; margin: 0; display: flex; flex-direction: column; align-items: stretch; }
.nf-arch-layer {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: var(--surface);
}
.nf-arch-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.nf-arch-layer ul { display: grid; gap: 12px; }
.nf-arch-top ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nf-arch-top li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink-2);
  border: 1px solid var(--line);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  color: var(--white);
}
.nf-arch-top li .ic { color: var(--text-2); }
.nf-arch-top li.is-hub {
  background: var(--surface-2);
  border-color: var(--orange);
}
.nf-arch-top li.is-hub .ic { color: var(--orange); }
.nf-arch-core {
  border-color: var(--line-2);
  background: var(--ink-2);
}
.nf-arch-core ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nf-arch-core li {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}
.nf-arch-core li .ic { color: var(--orange); margin-bottom: 10px; width: 18px; height: 18px; }
.nf-arch-core b {
  display: block;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 4px;
}
.nf-arch-core span { font-size: 13px; color: var(--text-2); line-height: 1.45; display: block; }
.nf-arch-base ul { display: flex; flex-wrap: wrap; gap: 8px; }
.nf-arch-base li {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  font-size: 13px;
  color: var(--text);
}
.nf-arch-link {
  height: 24px;
  width: 1px;
  margin: 0 auto;
  background: var(--line-2);
}
@media (max-width: 860px) { .nf-arch-top ul, .nf-arch-core ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .nf-arch-top ul, .nf-arch-core ul { grid-template-columns: 1fr; } }

/* ---------- Solutions ---------- */
.nf-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.nf-filter button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.nf-filter button:hover { color: var(--white); border-color: var(--line-2); }
.nf-filter button.is-on {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}
.nf-solutions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.nf-sol {
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background .15s ease;
}
.nf-sol:hover { background: var(--surface-2); }
.nf-sol[hidden] { display: none; }
.nf-sol h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.015em; }
.nf-sol > p { font-size: 14px; line-height: 1.55; margin-bottom: 18px; flex: 1; }
.nf-sol-flagship {
  grid-column: span 2;
  background: var(--ink);
}
.nf-sol-flagship h3 { font-size: 22px; }
.nf-sol-flagship > p { font-size: 15px; max-width: 56ch; }
.nf-sol-cta {
  grid-column: span 2;
  background: var(--ink);
  justify-content: center;
}
.nf-sol-cta > p { flex: none; max-width: 56ch; }
.nf-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(233, 120, 83, 0.14);
  border: 1px solid rgba(233, 120, 83, 0.4);
  color: var(--orange);
  font-weight: 500;
}
.nf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.nf-tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--ink-2);
  color: var(--text-2);
  border: 1px solid var(--line);
}
.nf-sol-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
@media (max-width: 980px) { .nf-solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .nf-solutions { grid-template-columns: 1fr; }
  .nf-sol-flagship, .nf-sol-cta { grid-column: span 1; }
}

/* ---------- Split sections ---------- */
.nf-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.nf-checks {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.nf-checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.55;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.nf-checks li b { color: var(--white); font-weight: 600; }
.nf-checks .ic {
  width: 18px;
  height: 18px;
  color: var(--ok);
  margin-top: 3px;
  stroke-width: 2.25;
}
.nf-stack-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.nf-stack-card + .nf-stack-card { margin-top: 16px; }
.nf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.nf-chips li {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 2px;
  background: var(--ink);
  border: 1px solid var(--line-2);
  color: var(--text);
}
.nf-stack-note { font-size: 13.5px; }
.nf-stack-card-cta {
  background: var(--ink-2);
  border-color: var(--line-2);
}
.nf-stack-card-cta h3 { font-size: 18px; margin-bottom: 8px; }
.nf-stack-card-cta p { margin-bottom: 16px; font-size: 14px; }
@media (max-width: 900px) { .nf-split { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.nf-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-bottom: 8px;
}
.nf-path {
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px;
}
.nf-step {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.nf-path h3 { font-size: 20px; margin-bottom: 8px; }
.nf-path p { font-size: 14.5px; }
.nf-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}
.nf-timeline li {
  padding: 20px 20px 0 0;
  position: relative;
}
.nf-timeline li::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--orange);
}
.nf-timeline b {
  display: block;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15.5px;
  margin-bottom: 6px;
}
.nf-timeline span { font-size: 13.5px; color: var(--text-2); display: block; line-height: 1.5; }
@media (max-width: 900px) {
  .nf-paths { grid-template-columns: 1fr; }
  .nf-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 520px) { .nf-timeline { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.nf-wrap-narrow { max-width: 920px; }
.nf-faq details { border-top: 1px solid var(--line); }
.nf-faq details:last-child { border-bottom: 1px solid var(--line); }
.nf-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 36px 20px 0;
  position: relative;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16.5px;
  letter-spacing: -0.015em;
  color: var(--white);
}
.nf-faq summary::-webkit-details-marker { display: none; }
.nf-faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-2);
  transition: transform .15s ease, color .15s ease;
}
.nf-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--orange); }
.nf-faq summary:hover { color: var(--orange); }
.nf-faq details p { padding: 0 36px 22px 0; font-size: 15px; line-height: 1.65; color: var(--text-2); }

/* ---------- Contact ---------- */
.nf-split-form { align-items: start; }
.nf-direct {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.nf-direct li { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 15px; }
.nf-direct .ic { color: var(--orange); }
.nf-form {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  gap: 16px;
}
.nf-field { display: grid; gap: 6px; }
.nf-field > span { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.nf-field input, .nf-field select, .nf-field textarea {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  min-height: 44px;
  transition: border-color .15s ease;
}
.nf-field textarea { resize: vertical; min-height: 112px; }
.nf-field select option { background: var(--ink-2); color: #fff; }
.nf-field input:focus, .nf-field select:focus, .nf-field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.nf-form.was-validated .nf-field input:invalid,
.nf-form.was-validated .nf-field textarea:invalid { border-color: #ef4444; }
.nf-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .nf-field-row { grid-template-columns: 1fr; } }
.nf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nf-form-submit { width: 100%; }
.nf-form-submit[disabled] { opacity: .7; cursor: progress; }
.nf-form-msg { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13.5px; }
.nf-form-msg[hidden] { display: none; }
.nf-form-ok { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.35); color: var(--ok); }
.nf-form-err { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.35); color: #f87171; }

/* ---------- Footer ---------- */
.nf-footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}
.nf-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.nf-wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1;
}
.nf-footer-brand p:last-child { font-size: 13.5px; max-width: 32ch; }
.nf-footer h4 {
  font-size: 11.5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 14px;
  font-weight: 500;
}
.nf-footer li { margin: 0; font-size: 13.5px; }
.nf-footer li a {
  color: var(--text-2);
  display: flex;
  align-items: center;
  min-height: 44px;
}
.nf-footer li a:hover { color: var(--white); }
.nf-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}
.nf-footer-bottom p, .nf-footer-bottom a { font-size: 12.5px; color: var(--text-3); }
.nf-footer-bottom a:hover { color: var(--white); }
.nf-marks-note {
  margin: 20px 0 0;
  font-size: 12px;
  color: var(--text-3);
}
.nf-agents {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.nf-agents h4 { margin-bottom: 6px; }
.nf-agents p { font-size: 12px; line-height: 1.65; color: var(--text-3); margin-bottom: 6px; word-break: break-word; }
.nf-agents p:last-child { margin-bottom: 0; }
@media (max-width: 800px) {
  .nf-footer-grid { grid-template-columns: 1fr 1fr; }
  .nf-footer-brand { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  .nf-btn:hover, .nf-btn:active,
  .nf-offer:hover, .nf-work:hover,
  .nf-offer:hover .nf-frame img,
  .nf-work:hover .nf-frame img { transform: none; }
}
