/* Instant Context — shared website styles (see WEBSITE_STYLE_GUIDE.md)
 *
 * NOTE: Each page also carries these styles inline so the page renders
 * correctly regardless of whether this file loads (file://, offline, etc.).
 * This file is the canonical reference and is loaded from Vercel in production.
 * Keep this file and each page's inline <style> block in sync.
 */

/* =============================================================
   RESET & BASE
============================================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black:     #060810;
  --surface:   #0c1120;
  --surface-2: #111827;
  --border:    rgba(255,255,255,0.07);
  --border-hi: rgba(0,212,255,0.25);
  --cyan:      #00d4ff;
  --cyan-dim:  rgba(0,212,255,0.15);
  --cyan-glow: rgba(0,212,255,0.08);
  --red:       #ff3b5c;
  --text-hi:   #f0f4ff;
  --text-mid:  #8892a4;
  --text-lo:   #4a5568;
  --mono:      'JetBrains Mono', 'Courier New', monospace;
  --sans:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:    10px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background-color: var(--black);
  color: var(--text-hi);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =============================================================
   GRID BACKGROUND
============================================================= */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* =============================================================
   LAYOUT
============================================================= */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================================
   NAV
============================================================= */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(6,8,16,0.88);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand img { height: 28px; width: auto; }

.nav-brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-hi);
  letter-spacing: -0.3px;
}

.nav-pill {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--cyan);
  background: var(--cyan-glow);
  border: 1px solid var(--border-hi);
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--cyan);
  color: #000;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  transition: opacity 0.15s;
}

.nav-cta:hover { opacity: 0.85; }

/* =============================================================
   BUTTONS
============================================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--cyan);
  color: #000;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  transition: opacity 0.15s, transform 0.15s;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--border-hi);
  color: var(--cyan);
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--cyan-glow);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn-secondary:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

/* =============================================================
   SECTION TYPOGRAPHY
============================================================= */
.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-hi);
  line-height: 1.15;
  margin-bottom: 12px;
}

/* =============================================================
   FOOTER
============================================================= */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 24px 36px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 22px; width: auto; opacity: 0.7; }
.footer-name { font-size: 0.85rem; font-weight: 600; color: var(--text-mid); }

.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-lo);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text-mid); }

.footer-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-lo);
  letter-spacing: 0.5px;
}

/* =============================================================
   LEGAL PAGES (privacy policy, etc.)
============================================================= */
.legal-page {
  padding: 60px 24px 80px;
}

.legal-page header {
  margin-bottom: 40px;
}

.legal-meta {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-mid);
  letter-spacing: 0.3px;
  margin-top: 8px;
}

.legal-meta + .legal-meta {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-lo);
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
}

.legal-card:first-of-type h2 {
  margin-top: 0;
}

.legal-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cyan);
  margin: 26px 0 12px;
  letter-spacing: -0.3px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-hi);
  margin: 18px 0 8px;
}

.legal-card p,
.legal-card li {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin: 10px 0;
  line-height: 1.7;
}

.legal-card ul {
  padding-left: 20px;
  margin: 8px 0;
}

.legal-card a {
  color: var(--cyan);
  text-decoration: none;
  transition: opacity 0.15s;
}

.legal-card a:hover {
  opacity: 0.8;
}

.legal-card strong {
  color: var(--text-hi);
  font-weight: 600;
}

/* =============================================================
   RESPONSIVE (shared chrome)
============================================================= */
@media (max-width: 560px) {
  .nav-pill { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .legal-page { padding: 40px 16px 60px; }
  .legal-card { padding: 20px 24px; }
}
