﻿/* ===== SYNAPLUX SHARED THEME ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #06070b; --bg-2: #0a0b10;
  --surface: rgba(255,255,255,0.025);
  --border: rgba(255,255,255,0.06);
  --border-hi: rgba(255,255,255,0.14);
  --text: #f4f1ec; --text-2: #a8a8b3; --muted: #5e6068;
  --amber: #ffb547; --amber-soft: #ffd28a;
  --cyan: #4dd4ff; --pink: #ff3d7f; --green: #5dd39e;
  --blue: #ffb547; --purple: #ffb547;
  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', monospace;
  --serif: 'Instrument Serif', serif;
}

html { overflow-x: hidden; scroll-behavior: smooth; }
html, body { background: var(--bg) !important; }
body {
  font-family: var(--sans) !important;
  color: var(--text) !important;
  font-size: 15px; line-height: 1.6;
  overflow-x: hidden; max-width: 100vw;
  cursor: none !important;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--amber); color: #000; }
a { color: inherit; text-decoration: none; cursor: none; }
button { font: inherit; color: inherit; cursor: none; background: none; border: none; }
h1, h2, h3, h4, h5 { font-family: var(--sans) !important; }

/* GRAIN */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9990;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.06; mix-blend-mode: overlay;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,181,71,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

/* SCROLL PROGRESS */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--amber), var(--pink), var(--cyan));
  z-index: 9999; box-shadow: 0 0 12px var(--amber); transition: width 0.08s linear;
}

/* CURSOR */
.cur-dot {
  position: fixed; top: 0; left: 0; width: 6px; height: 6px;
  background: var(--amber); border-radius: 50%; pointer-events: none;
  z-index: 99999; transform: translate(-50%,-50%);
  transition: width 0.2s, height 0.2s;
}
.cur-ring {
  position: fixed; top: 0; left: 0; width: 40px; height: 40px;
  border: 1px solid rgba(255,181,71,0.5); border-radius: 50%;
  pointer-events: none; z-index: 99998; transform: translate(-50%,-50%);
  transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s;
}
.cur-ring.hover { width: 60px; height: 60px; background: rgba(255,181,71,0.06); border-color: var(--amber); }

/* NAV */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 40px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 32px;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(6,7,11,0.85);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}
.brand { font-family: var(--serif) !important; font-style: italic; font-size: 22px; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 8px; }
.brand a { display: flex; align-items: baseline; gap: 8px; color: var(--text); }
.brand-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); flex-shrink: 0; }
.nav-mid { display: flex; gap: 4px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 100px; padding: 4px; }
.nav-mid a { font-size: 12px; color: var(--text-2); padding: 8px 16px; border-radius: 100px; transition: color 0.2s, background 0.2s; letter-spacing: 0.01em; }
.nav-mid a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.nav-time { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.nav-btn {
  font-size: 12px; font-weight: 500; padding: 9px 18px;
  background: var(--text); color: var(--bg); border-radius: 100px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.2s, background 0.2s; cursor: none;
}
.nav-btn:hover { transform: translateY(-1px); background: var(--amber); }
.nav-btn .arr { display: inline-block; transition: transform 0.2s; }
.nav-btn:hover .arr { transform: translate(2px,-2px); }

/* HAMBURGER — defined before media queries */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px 10px; background: transparent;
  border: 1px solid var(--border-hi) !important; border-radius: 8px;
  cursor: pointer; margin-left: 4px;
}
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; pointer-events: none; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* MOBILE NAV */
.mobile-nav {
  display: none; position: fixed; inset: 0;
  background: rgba(6,7,11,0.97); backdrop-filter: blur(24px);
  z-index: 9997; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 34px; font-family: var(--serif); font-style: italic; color: var(--text-2); padding: 12px 32px; transition: color 0.2s; border-radius: 8px; }
.mobile-nav a:hover, .mobile-nav a:active { color: var(--amber); }
.mobile-nav-signin { margin-top: 24px; font-size: 14px !important; font-family: var(--sans) !important; font-style: normal !important; background: var(--amber); color: #1a1004 !important; border-radius: 100px; padding: 12px 32px !important; font-weight: 600; }
.mobile-nav-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-hi) !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text-2); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.mobile-nav-close:hover { color: var(--amber); border-color: var(--amber) !important; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 80px 40px 40px;
  background: var(--bg) !important;
  position: relative; z-index: 10;
}
.footer-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 80px; }
.footer-brand { font-family: var(--serif); font-style: italic; font-size: 48px; letter-spacing: -0.02em; line-height: 1; margin-bottom: 20px; }
.footer-tag { font-size: 14px; color: var(--text-2); max-width: 280px; line-height: 1.6; }
.footer-col-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--text-2); transition: color 0.2s; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { max-width: 1400px; margin: 0 auto; border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }

/* PAGE CONTENT SPACING */
main, .page-wrapper, .page-content, body > section:first-of-type { padding-top: 80px; }
.page-hero { padding-top: 140px !important; }

/* ── CRITICAL: make old .anim elements always visible ──────────
   The old pages hide content with .anim { opacity:0 } and rely
   on IntersectionObserver to add .visible. Our new cursor shim
   lets the IO run, but this !important is a failsafe. */
body .anim,
body [class*="anim-delay"],
body .visible { opacity: 1 !important; transform: none !important; filter: none !important; }

/* Block GSAP blur on all text elements — blur-in only works on homepage */
h1, h2, h3, h4, h5, h6, p, li, a, span,
.hero-title, .page-hero *, .section-title,
.hero-sub, .section-desc, .section-label { filter: none !important; }

/* COMMON CARD/SECTION STYLES for consistency */
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
@media(max-width:768px){ .container { padding: 0 20px; } }
@media(max-width:480px){ .container { padding: 0 16px; } }

/* COMMON ACCENT OVERRIDES — old blue/purple → amber */
.btn-primary, .btn-main, [class*="btn-primary"] { background: var(--amber) !important; color: #1a1004 !important; border-color: var(--amber) !important; }
.btn-outline, .btn-ghost { border-color: var(--border-hi) !important; color: var(--text) !important; background: transparent !important; }
.btn-outline:hover, .btn-ghost:hover { border-color: var(--amber) !important; color: var(--amber) !important; }
[style*="#3B82F6"], [style*="color:#06B6D4"], [style*="color:#8B5CF6"] { color: var(--amber) !important; }

/* RESPONSIVE NAV */
@media (max-width: 1100px) {
  #nav { padding: 18px 24px; grid-template-columns: 1fr auto; }
  .nav-mid { display: none; }
  .hamburger { display: flex; }
  .nav-time { display: none; }
}
@media (max-width: 480px) {
  #nav { padding: 14px 16px; }
  .brand { font-size: 18px; }
  .nav-btn { display: none; }
}

/* RESPONSIVE FOOTER */
@media (max-width: 768px) {
  footer { padding: 56px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 48px; }
  .footer-brand { font-size: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  footer { padding: 44px 16px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* TOUCH: disable custom cursor */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto !important; }
  a, button { cursor: pointer !important; }
  .cur-dot, .cur-ring { display: none !important; }
}