/* ──────────────────────────────────────────────────────────
   BASE — reset, shared primitives, nav and footer.
   Shared by the landing page and the blog (via base.html).
   Depends on tokens.css.
   ────────────────────────────────────────────────────────── */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  cursor: none;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: none; font-family: inherit; border: none; background: none; }

/* ── CURSOR ── */
#cursor {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px;
  background: #fff; border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  mix-blend-mode: difference;
}
#cursor-ring {
  position: fixed; top: 0; left: 0; width: 36px; height: 36px;
  border: 1.5px solid #fff; border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s;
  mix-blend-mode: difference;
}

/* ── MONO LABEL ── */
.label-mono {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-5);
}
.label-mono-light { color: var(--gray-4); }

/* ── CORNER MARKS ── */
.corner-mark {
  position: absolute;
  width: 12px; height: 12px;
  border-color: currentColor;
  border-style: solid;
  opacity: 0.3;
}
.corner-mark.tl { top: 16px; left: 16px; border-width: 1px 0 0 1px; }
.corner-mark.tr { top: 16px; right: 16px; border-width: 1px 1px 0 0; }
.corner-mark.bl { bottom: 16px; left: 16px; border-width: 0 0 1px 1px; }
.corner-mark.br { bottom: 16px; right: 16px; border-width: 0 1px 1px 0; }

/* ── REVEAL ANIMATIONS ── */
.reveal, .reveal-stagger {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible, .reveal-stagger.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > * { animation: staggerIn 0.6s cubic-bezier(0.16,1,0.3,1) both; }
.reveal-stagger.visible > *:nth-child(1) { animation-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { animation-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { animation-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { animation-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { animation-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { animation-delay: 0.40s; }
@keyframes staggerIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 64px);
  height: 64px;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
#nav.scrolled {
  background: rgba(10,10,10,0.9);
  border-bottom-color: var(--rule-dark);
  backdrop-filter: blur(12px);
}
#nav .logo { display: flex; align-items: center; }
#nav .nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
#nav .nav-links a {
  font-size: 13px; font-weight: 400; color: var(--gray-3);
  transition: color 0.2s;
}
#nav .nav-links a:hover { color: var(--paper); }
#nav .nav-cta {
  font-size: 12px !important;
  font-family: var(--font-mono) !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--gray-5);
  color: var(--paper) !important;
  transition: border-color 0.2s, color 0.2s !important;
}
#nav .nav-cta:hover { border-color: var(--paper); }
#lang-toggle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gray-5);
  padding: 6px 10px;
  border: 1px solid var(--rule-dark);
  transition: color 0.2s, border-color 0.2s;
}
#lang-toggle:hover { color: var(--paper); border-color: var(--gray-5); }
@media (max-width: 768px) {
  #nav .nav-links { gap: 16px; }
  #nav .nav-links li:not(:last-child):not(:nth-last-child(2)) { display: none; }
}

/* ── FOOTER ── */
footer {
  background: var(--ink-2);
  border-top: 1px solid var(--rule-dark);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 64px clamp(24px,5vw,64px) 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid var(--rule-dark);
}
.footer-tagline {
  font-size: 13px; color: var(--gray-6);
  line-height: 1.65; margin-top: 16px;
  font-weight: 300; max-width: 280px;
}
.footer-nav-title {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gray-6);
  margin-bottom: 16px;
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: 13px; color: var(--gray-5);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--paper); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 24px clamp(24px,5vw,64px);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; color: var(--gray-6);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 12px; color: var(--gray-6);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--gray-4); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
