
:root {

  --bg:           #141413;
  --bg-2:         #1c1c1a;
  --bg-3:         #242421;
  --bg-4:         #2a2a27;

  --fg:           #f0eee6;
  --fg-2:         #b0aea5;
  --fg-3:         #87867f;

  --line:         rgba(240, 238, 230, 0.10);
  --line-2:       rgba(240, 238, 230, 0.07);

  --accent:       #d97757;
  --accent-soft:  rgba(217, 119, 87, 0.14);
  --accent-2:     #e8865e;
  --accent-deep:  #c46849;

  --sans:   'DM Sans', system-ui, sans-serif;
  --serif:  'DM Serif Display', Georgia, serif;
  --mono:   'JetBrains Mono', Consolas, monospace;

  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-2xl:  24px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
  --shadow-md:  0 4px 16px rgba(0,0,0,.32);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.36);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.44);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { max-width: 100%; }

.nf-container {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}
.nf-container-wide {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}
.nf-container-narrow {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
}

.nf-nav-shell {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 52px;
  background: rgba(20, 20, 19, 0.84);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
  backdrop-filter: saturate(160%) blur(24px);
  box-shadow: inset 0 1px rgba(240,238,230,0.05), 0 1px 0 rgba(0,0,0,.4);
  transition: background .2s ease, border-color .2s ease;
}
.nf-nav-shell.scrolled {
  background: rgba(20, 20, 19, 0.96);
  border-color: var(--line);
}
.nf-nav {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 0;
}
.nf-logo {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin-right: auto;
  transition: opacity .15s;
}
.nf-logo:hover { opacity: .75; }

.nf-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: 28px;
}
.nf-nav-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--fg-2);
  padding: 4px 0;
  transition: color .15s;
  border: 0; background: transparent;
}
.nf-nav-link:hover { color: var(--fg); }

.nf-dropdown-wrap { position: relative; }
.nf-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-4);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  gap: 2px;
}
.nf-dropdown.open { display: flex; }
.nf-dropdown a, .nf-dropdown button {
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--fg-2);
  border: 0; background: transparent; text-align: left; width: 100%;
  transition: background .12s, color .12s;
}
.nf-dropdown a:hover, .nf-dropdown button:hover {
  background: var(--accent-soft);
  color: var(--fg);
}

.nf-nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 14px;
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 500;
  border: 0;
  transition: opacity .15s;
}
.nf-nav-cta:hover { opacity: .88; }
.nf-nav-cta.outline {
  background: transparent;
  color: var(--fg-2);
  border-radius: var(--r-md);
}
.nf-nav-cta.outline:hover { color: var(--fg); }

.nf-hamburger {
  display: none;
  border: 0; background: transparent;
  color: var(--fg); font-size: 20px;
  padding: 4px 8px;
  margin-left: 8px;
}
.nf-mobile-menu {
  display: none;
  position: fixed;
  top: 52px; left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 12px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}
.nf-mobile-menu.open { display: flex; }
.nf-mobile-menu a, .nf-mobile-menu button {
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--fg-2);
  border: 1px solid var(--line);
  background: transparent;
  text-align: left; width: 100%;
  transition: background .12s, color .12s;
}
.nf-mobile-menu a:hover, .nf-mobile-menu button:hover {
  background: var(--bg-3); color: var(--fg);
}

.nf-page { padding-top: 52px; }

.nf-section {
  padding: 96px 0;
}
.nf-section + .nf-section {
  border-top: 1px solid var(--line-2);
}
.nf-section-alt { background: var(--bg-2); }

.nf-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.nf-eyebrow::before {
  content: ''; width: 18px; height: 1px;
  background: var(--accent);
}

.nf-h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nf-h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.nf-h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.nf-lead {
  font-size: 17px; font-weight: 300;
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 52ch;
}
.nf-body {
  font-size: 15px; line-height: 1.7;
  color: var(--fg-2);
}
.nf-caption {
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: .03em;
}
.nf-mono {
  font-family: var(--mono);
  font-size: 13px;
}

.nf-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)),
    var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: border-color .2s, box-shadow .2s;
}
.nf-card:hover {
  border-color: rgba(240,238,230,.16);
  box-shadow: var(--shadow-md);
}
.nf-card-sm {
  padding: 18px 20px;
  border-radius: var(--r-lg);
}

.nf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px;
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 500;
  border: 0; cursor: pointer;
  transition: opacity .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.nf-btn:hover { transform: translateY(-1px); }

.nf-btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.nf-btn-primary:hover { opacity: .9; box-shadow: var(--shadow-md); }

.nf-btn-accent {
  background: var(--accent);
  color: #fff;
}
.nf-btn-accent:hover { opacity: .9; box-shadow: 0 8px 24px var(--accent-soft); }

.nf-btn-ghost {
  background: transparent;
  color: var(--fg-2);
  border: 1px solid var(--line);
}
.nf-btn-ghost:hover { color: var(--fg); background: var(--bg-3); border-color: rgba(240,238,230,.16); }

.nf-btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.nf-btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }

.nf-input {
  width: 100%;
  height: 40px; padding: 0 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--fg);
  font: inherit; font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.nf-input:focus { border-color: var(--accent); }
.nf-input::placeholder { color: var(--fg-3); }

.nf-textarea {
  width: 100%; padding: 10px 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--fg); font: inherit; font-size: 14px;
  resize: vertical; outline: none;
  transition: border-color .15s;
}
.nf-textarea:focus { border-color: var(--accent); }

.nf-code {
  font-family: var(--mono);
  font-size: 13px;
  padding: 14px 16px;
  background: var(--bg-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--fg);
  overflow-x: auto;
}

.nf-badge {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--r-sm);
  font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
}
.nf-badge-neutral {
  background: var(--bg-4);
  color: var(--fg-2);
}

.nf-divider { border: 0; border-top: 1px solid var(--line-2); margin: 32px 0; }

.nf-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 28px 0 36px;
  color: var(--fg-3);
  font-size: 13px;
}
.nf-footer a:hover { color: var(--fg-2); }
.nf-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.nf-footer-links {
  display: flex;
  gap: 20px;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .024;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1);
}
[data-reveal].visible { opacity: 1; transform: none; }

@media (max-width: 768px) {
  .nf-nav-links { display: none; }
  .nf-nav-cta.desktop-only { display: none; }
  .nf-hamburger { display: block; }
  .nf-section { padding: 64px 0; }
  .nf-footer-row { flex-direction: column; gap: 12px; }
}
