/* ── DNP shared styles ── */
:root {
  --ink: #0A0A0A;
  --paper: #FAFAFA;
  --paper-pure: #FFFFFF;
  --accent: #7B33EB;
  --rule: rgba(10,10,10,0.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Match the FOOTER colour so iOS Safari rubber-band overscroll past
   the bottom of the page does NOT reveal a strip of system white below
   the dark footer. The translucent sticky nav at the top still covers
   any momentary dark-on-dark flicker if the user pulls down at the top. */
html { background-color: var(--ink); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Heebo', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,250,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 56px; }
.nav-logo { height: 60px; width: auto; display: block; margin: -12px 0; transition: transform 0.3s; }
.nav-logo:hover { transform: scale(1.04); }
.nav-links { display: flex; gap: 32px; align-items: center; font-family: 'Heebo'; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--ink); text-decoration: none; padding: 8px 0; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 0.5; }
.nav-cta {
  background: var(--ink); color: var(--paper);
  padding: 12px 22px; text-decoration: none;
  font-family: 'Heebo'; font-size: 14px; font-weight: 500;
  border: 1px solid var(--ink);
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); }

/* Buttons */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-family: 'Heebo'; font-size: 15px; font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.arrow { font-size: 14px; transform: scaleX(-1); display: inline-block; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }
.eyebrow .dot { width: 8px; height: 8px; background: var(--accent); }

/* FOOTER */
.footer { background: var(--ink); color: var(--paper); padding: 64px 0 32px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250,250,250,0.2);
}
.footer-logo { height: 56px; width: auto; display: block; margin-bottom: 16px; }
.footer-tag { font-size: 14px; line-height: 1.6; opacity: 0.7; max-width: 320px; margin: 0; }
.footer-col h5 { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.5; margin: 0 0 20px; font-weight: 500; }
.footer-col a { display: block; color: var(--paper); text-decoration: none; padding: 6px 0; font-size: 15px; opacity: 0.85; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); opacity: 1; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.5; direction: ltr; }
.footer-bottom > span { unicode-bidi: isolate; }

/* PAGE TRANSITION OVERLAY — styles applied via JS to avoid CSS cache issues */

/* PAGE-IN ANIMATION
   Opacity-only — never apply `transform` to <body>. A non-`none` transform on
   <body> turns it into the containing block for every `position: fixed`
   descendant (mobile nav drawer, drawer backdrop, a11y panel, etc.), which
   makes them appear to "scroll" with the page on iOS Safari. Opacity-only
   keeps the gentle fade-in without that side effect. */
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.page-in { animation: pageIn 0.5s ease both; }

/* Hero scroll-target marker for logo click */
.hero-flash {
  animation: heroFlash 1s ease-out;
}
@keyframes heroFlash {
  0% { background-color: rgba(123,51,235,0.12); }
  100% { background-color: transparent; }
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}
