/* ==========================================================================
   99 AI WORKFLOWS — base design system
   Editorial / premium / warm. No neon, no gradients, no dashboard.
   ========================================================================== */

:root {
  --nn-cream: #FBF7F0;
  --nn-cream-2: #F4EDE1;
  --nn-paper: #FFFDF9;
  --nn-ink: #12313A;          /* deep teal navy — primary type */
  --nn-ink-soft: #46626B;
  --nn-ink-mute: #566C75;   /* darkened to pass WCAG AA on cream/sand at small sizes */
  --nn-cobalt: #1E3FC4;       /* CTA blue */
  --nn-cobalt-deep: #12246E;  /* deep blue sections */
  --nn-terra: #C9552F;        /* accent fills, dots, rules */
  --nn-terra-text: #AE4523;   /* accent TEXT — AA-safe on cream and sand */
  --nn-line: rgba(18, 49, 58, 0.14);
  --nn-line-soft: rgba(18, 49, 58, 0.08);
  --nn-shadow-sm: 0 1px 2px rgba(18, 49, 58, 0.04), 0 6px 18px -12px rgba(18, 49, 58, 0.25);
  --nn-shadow-md: 0 2px 4px rgba(18, 49, 58, 0.04), 0 24px 48px -28px rgba(18, 49, 58, 0.35);
  --nn-shadow-lg: 0 40px 80px -40px rgba(18, 49, 58, 0.45);

  --nn-serif: "Editorial New", "Canela", "Freight Display", Georgia, "Times New Roman", Times, serif;
  --nn-sans: "Suisse Intl", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --nn-page: 1280px;
  --nn-gutter: 20px;
  --nn-radius: 4px;
  --nn-radius-lg: 10px;
  --nn-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 750px) {
  :root { --nn-gutter: 36px; }
}
@media (min-width: 1100px) {
  :root { --nn-gutter: 56px; }
}

/* ---------- resets scoped to our sections ---------- */
.nn { color: var(--nn-ink); font-family: var(--nn-sans); -webkit-font-smoothing: antialiased; }
.nn *, .nn *::before, .nn *::after { box-sizing: border-box; }
.nn img { display: block; max-width: 100%; height: auto; }
.nn a { color: inherit; text-decoration: none; }
.nn p { margin: 0; }
.nn h1, .nn h2, .nn h3, .nn h4 { margin: 0; font-weight: 400; }
.nn ul { margin: 0; padding: 0; list-style: none; }
.nn button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.nn-wrap {
  width: 100%;
  max-width: var(--nn-page);
  margin: 0 auto;
  padding-left: var(--nn-gutter);
  padding-right: var(--nn-gutter);
}
.nn-wrap--narrow { max-width: 940px; }

/* ---------- type scale ---------- */
.nn-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--nn-ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nn-eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--nn-terra);
  flex: none;
}
.nn-eyebrow--plain::before { display: none; }

.nn-display {
  font-family: var(--nn-serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-size: clamp(40px, 8.2vw, 88px);
}
.nn-h2 {
  font-family: var(--nn-serif);
  letter-spacing: -0.022em;
  line-height: 1.06;
  font-size: clamp(32px, 5.4vw, 58px);
}
.nn-h3 {
  font-family: var(--nn-serif);
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-size: clamp(22px, 2.6vw, 30px);
}
.nn-condensed {
  font-family: var(--nn-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.94;
  font-size: clamp(38px, 7.6vw, 82px);
}
.nn-lede {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.62;
  color: var(--nn-ink-soft);
}
.nn-body { font-size: 15.5px; line-height: 1.62; color: var(--nn-ink-soft); }
.nn-small { font-size: 13px; line-height: 1.5; color: var(--nn-ink-mute); }
.nn-num {
  font-family: var(--nn-sans);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--nn-terra-text);
}

/* ---------- buttons ---------- */
/* NOTE: selector is `.nn .nn-btn` (not `.nn-btn`) so it outranks the
   `.nn a { color: inherit }` reset — otherwise light buttons placed on the
   dark/blue sections inherit white text on a white pill. */
.nn .nn-btn {
  --btn-bg: var(--nn-cobalt);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 28px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  overflow: hidden;
  transition: transform 0.4s var(--nn-ease), box-shadow 0.4s var(--nn-ease);
  box-shadow: 0 10px 24px -14px rgba(30, 63, 196, 0.9);
  isolation: isolate;
}
.nn-btn span { position: relative; z-index: 1; }
.nn-btn .nn-arrow { position: relative; z-index: 1; transition: transform 0.4s var(--nn-ease); }
.nn-btn::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--nn-ink);
  transform: translateY(101%);
  transition: transform 0.45s var(--nn-ease);
  z-index: 0;
}
.nn-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -18px rgba(18, 49, 58, 0.7); }
.nn-btn:hover::after { transform: translateY(0); }
.nn-btn:hover .nn-arrow { transform: translateX(4px); }
.nn-btn:focus-visible { outline: 2px solid var(--nn-terra); outline-offset: 3px; }

.nn .nn-btn--light { --btn-bg: var(--nn-paper); --btn-fg: var(--nn-ink); box-shadow: var(--nn-shadow-sm); }
.nn .nn-btn--light::after { background: var(--nn-cobalt); }
.nn .nn-btn--light:hover { color: #fff; }
.nn .nn-btn--terra { --btn-bg: var(--nn-terra); }
.nn .nn-btn--ink { --btn-bg: var(--nn-ink); }
.nn .nn-btn--ink::after { background: var(--nn-cobalt); }
.nn-btn--lg { padding: 20px 34px; font-size: 13.5px; }
.nn .nn-btn--block { display: flex; width: 100%; }

.nn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.45s var(--nn-ease), color 0.3s var(--nn-ease);
}
.nn-link:hover { background-size: 0% 1px; color: var(--nn-terra); }
.nn-link--arrow:hover { color: inherit; }

/* ---------- section rhythm ---------- */
.nn-section { padding-top: clamp(64px, 9vw, 132px); padding-bottom: clamp(64px, 9vw, 132px); }
.nn-section--tight { padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(48px, 6vw, 84px); }
.nn-bg-cream { background: var(--nn-cream); }
.nn-bg-cream2 { background: var(--nn-cream-2); }
.nn-bg-paper { background: var(--nn-paper); }
.nn-rule { height: 1px; background: var(--nn-line); border: 0; margin: 0; }

.nn-head { display: grid; gap: 22px; }
@media (min-width: 990px) {
  .nn-head--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: end; }
}
.nn-head__title { margin-top: 18px; }

/* ---------- ticks ---------- */
.nn-tick { display: inline-flex; align-items: baseline; gap: 9px; font-size: 14px; color: var(--nn-ink-soft); }
.nn-tick i { font-style: normal; color: var(--nn-terra-text); font-size: 12px; }

/* ---------- scroll reveal ---------- */
[data-nn-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--nn-ease), transform 0.85s var(--nn-ease);
  transition-delay: var(--nn-delay, 0ms);
  will-change: opacity, transform;
}
[data-nn-reveal].nn-in { opacity: 1; transform: none; }
.nn-no-js [data-nn-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .nn *, .nn *::before, .nn *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-nn-reveal] { opacity: 1 !important; transform: none !important; }
}

/* utility */
.nn-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
