/* ============================================================
   Apply Quantum — base.css
   Design tokens and the chrome shared by every page:
   cursor, nav, footer, buttons, scroll-reveal.

   Loaded FIRST by both the homepage and the blog.
   Page-specific rules live in home.css / blog.css.
   ============================================================ */

:root {
  --black: #000000;
  --white: #ffffff;
  --cyan: #00f5ff;
  --fuchsia: #ff00c8;
  --purple: #7b2fff;
  --purple-dim: #4a1a99;
  --cyan-dim: #00a8b5;
  --grey-1: #0a0a0a;
  --grey-2: #111111;
  --grey-3: #1a1a1a;
  --grey-4: #2a2a2a;
  --grey-5: #555555;
  --text-dim: #888888;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}

/* CUSTOM CURSOR */
.cursor {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  width: 12px; height: 12px;
  background: var(--cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.2s ease;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
  width: 40px; height: 40px;
  border: 1px solid rgba(0,245,255,0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.35s cubic-bezier(.17,.67,.35,1.2);
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 48px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%);
  backdrop-filter: blur(2px);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--white);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-mark {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  filter: brightness(1.05);
}
.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cyan); }
/* Marks the section the visitor is currently in. */
.nav-links a.is-current { color: var(--white); }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black) !important;
  background: var(--cyan);
  padding: 10px 20px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--white) !important; transform: translateY(-1px); }

/* SHARED PRIMITIVES */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--cyan);
}

/* DIVIDER */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
  margin: 0 10vw;
}

/* BUTTONS */
.btn-primary {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--cyan);
  padding: 16px 32px;
  border: none; border-radius: 2px;
  cursor: none;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
  display: inline-block;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.btn-primary:hover::after { transform: translateX(0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,245,255,0.3); }
.btn-secondary {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  padding: 16px 32px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  cursor: none;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--fuchsia); color: var(--fuchsia); transform: translateY(-2px); }

/* FOOTER */
footer {
  background: var(--grey-1);
  padding: 60px 10vw 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  gap: 48px;
}
.footer-brand { max-width: 280px; }
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.footer-logo-img {
  height: 32px;
  width: auto;
  filter: brightness(1.05);
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.footer-cols { display: flex; gap: 60px; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.05);
  gap: 20px;
  flex-wrap: wrap;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
}
.footer-badges { display: flex; gap: 16px; }
.footer-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 2px;
}

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; }
  .footer-cols { flex-direction: column; gap: 32px; }
}

/* Touch devices have no pointer to replace, so restore the native cursor. */
@media (hover: none) {
  body, .btn-primary, .btn-secondary { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}
