/* ============================================================
   Night Owl IT · shared design system
   Loaded by every page; page-specific styles stay in the page.
   ============================================================ */

:root {
  --ink: #0a0d12;
  --ink-2: #11151c;
  --ink-3: #1a1f29;
  --bone: #ece4d2;
  --bone-dim: #b8b09e;
  --bone-faint: #6c6557;
  --amber: #d99a3b;
  --amber-bright: #f0b859;
  --sage: #8fb08a;
  --rust: #8a3a1f;
  --rule: rgba(236, 228, 210, 0.12);
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(217, 154, 59, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(138, 58, 31, 0.06), transparent);
  background-attachment: fixed;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.05 0 0 0 0 0.05 0 0 0 0.15 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(10, 13, 18, 0.75);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1240px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
}
.brand-mark img, .brand-mark svg { width: 28px; height: 28px; display: block; }
.nav-links {
  display: flex; gap: 36px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.nav-links a {
  color: var(--bone-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--amber-bright); }
.nav-links a.nav-product { color: var(--amber); }

/* ============ SHARED TYPE PIECES ============ */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--amber);
}

/* Sub-page header */
.page-head {
  padding: 180px 0 72px;
  border-bottom: 1px solid var(--rule);
}
.page-head h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--bone);
}
.page-head h1 em { font-style: italic; color: var(--amber-bright); }
.page-head .lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--bone-dim);
  max-width: 640px;
  font-weight: 300;
}
.page-head .lede strong { color: var(--bone); font-weight: 500; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--rule);
  color: var(--bone);
  transition: all 0.3s;
  background: transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--amber-bright);
  border-color: var(--amber-bright);
  transform: translateY(-1px);
}
.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber-bright);
}
.btn .arrow { transition: transform 0.3s; }
.btn:hover .arrow { transform: translateX(4px); }
.cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* ============ SECTION SHELL ============ */
section { padding: 120px 0; position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  margin-bottom: 72px;
  align-items: start;
}
.section-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--amber);
  padding-top: 12px;
  border-top: 1px solid var(--amber);
}
.section-num span { color: var(--bone-faint); }
.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--amber-bright); }
.section-sub {
  color: var(--bone-dim);
  font-size: 18px;
  max-width: 640px;
}
.divider {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: 0;
}
.band { background: var(--ink-2); border-block: 1px solid var(--rule); }

/* ============ SMALL PIECES ============ */
.chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  color: var(--bone-dim);
}
.pending {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  background: var(--rust);
  color: var(--bone);
  white-space: nowrap;
}
.callout {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  padding: 20px 24px;
  margin: 24px 0;
  background: var(--ink-2);
  font-size: 15px;
  color: var(--bone-dim);
  max-width: 720px;
}
.callout strong { color: var(--bone); font-weight: 500; }

/* Data table (definition rows) */
.data-table {
  border: 1px solid var(--rule);
  margin: 20px 0 24px;
  background: var(--ink-2);
  max-width: 720px;
}
.data-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule);
}
.data-row:last-child { border-bottom: none; }
.data-row dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  padding-top: 3px;
}
.data-row dd {
  color: var(--bone-dim);
  font-size: 15px;
  line-height: 1.55;
}
.data-row dd strong { color: var(--bone); font-weight: 500; }
.data-row dd a { color: var(--amber-bright); text-decoration: none; }
.data-row dd a:hover { text-decoration: underline; }

/* ============ CTA STRIP ============ */
.cta-strip {
  padding: 120px 0;
  text-align: center;
  position: relative;
}
.cta-strip h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  max-width: 880px;
  margin-inline: auto;
}
.cta-strip h2 em { font-style: italic; color: var(--amber-bright); }
.cta-strip p {
  color: var(--bone-dim);
  font-size: 19px;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--rule);
  padding: 56px 0 40px;
  background: var(--ink-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p {
  color: var(--bone-dim);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--bone);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--amber-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .data-row { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .nav-links { display: none; }
  section { padding: 80px 0; }
  .page-head { padding: 140px 0 56px; }
}
