/* ====================================================
   Heyblocks — shared.css
   Loaded by every page: index.html + all legal pages
   ==================================================== */

/* ===== FONTS ===== */
@font-face {
  font-family: 'Cal Sans';
  src: url('/assets/fonts/cal-sans-700.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('/assets/fonts/general-sans-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== CSS VARIABLES ===== */
:root {
  --color-void:   #09090f;
  --color-night:  #111118;
  --color-glass:  #1a1a24;
  --color-teal:   #3CDAFF;
  --color-blue:   #B067FF;
  --color-amber:  #F59E0B;
  --color-white:  #F8F8FF;
  --color-muted:  #9898A8;
  --color-border: #2a2a38;
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--color-void);
  color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

/* ===== TYPOGRAPHY ===== */
.font-display {
  font-family: 'Cal Sans', 'General Sans', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.05;
}
.font-section {
  font-family: 'General Sans', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.font-mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-weight: 400;
}

/* Legal page headings inherit General Sans */
h1, h2, h3 {
  font-family: 'General Sans', system-ui, sans-serif;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #3CDAFF, #B067FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== NAVIGATION ===== */
#main-nav {
  position: fixed; top: 0; width: 100%; z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
}
#main-nav.scrolled {
  background: rgba(9, 9, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}
.nav-link {
  position: relative; color: var(--color-muted); text-decoration: none;
  font-size: 15px; font-weight: 500; transition: color 0.2s;
}
.nav-link:hover { color: var(--color-white); }
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--color-teal); transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 10px;
  background: linear-gradient(135deg, #3CDAFF, #B067FF);
  color: #fff; font-weight: 600; font-size: 15px; text-decoration: none;
  position: relative; overflow: hidden; border: none; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover { transform: scale(1.02); box-shadow: 0 0 24px rgba(60,218,255,0.35); }
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}
.btn-primary:hover::before { left: 100%; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 10px;
  border: 1px solid var(--color-border); color: var(--color-muted);
  font-weight: 600; font-size: 15px; text-decoration: none;
  background: transparent; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: rgba(60,218,255,0.4); color: var(--color-white); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--color-void);
  z-index: 100; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }

/* ===== FOCUS ===== */
:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 2px; }

/* ===== KEYFRAMES ===== */
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container      { padding: 0 20px; }
  .nav-desktop    { display: none !important; }
  .nav-hamburger  { display: flex !important; }
}
@media (min-width: 769px) { .nav-hamburger { display: none !important; } }

/* ===== LEGAL PAGE CONTENT ===== */
.legal-content {
  max-width: 768px;
  margin: 0 auto;
  padding: 96px 40px 80px;
  line-height: 1.75;
}
.legal-content h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 56px;
  line-height: 1.1;
}
.legal-content h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  margin-top: 48px;
  color: var(--color-white);
}
.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 28px;
  color: var(--color-white);
}
.legal-content p {
  color: var(--color-muted);
  margin-bottom: 16px;
  font-size: 16px;
}
.legal-content ul, .legal-content ol {
  color: var(--color-muted);
  font-size: 16px;
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--color-teal); text-decoration: none; }
.legal-content a:hover { color: var(--color-blue); text-decoration: underline; }
.legal-content strong { color: var(--color-white); }
.legal-content section {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 40px;
  margin-bottom: 40px;
}
.legal-content section:last-child { border-bottom: none; }
@media (max-width: 768px) { .legal-content { padding: 88px 20px 64px; } }
