@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

/* ===== TOKENS ===== */
:root {
  --obsidian:    #0A0B0F;
  --surface:     #13141A;
  --surface-2:   #1A1C24;
  --surface-3:   #20232D;
  --border:      #1F2230;
  --border-light:#2A2D38;
  --cyan:        #22D3EE;
  --cyan-deep:   #0891B2;
  --cyan-light:  #67E8F9;
  --cyan-glow:   rgba(34, 211, 238, 0.15);
  --bone:        #FAFAFA;
  --bone-2:      #F4F4F5;
  --gray:        #71717A;
  --gray-light:  #A1A1AA;
  --gray-mid:    #52525B;
  --red:         #F87171;
  --green:       #4ADE80;

  --s-1:  4px;  --s-2:  8px;  --s-3:  12px; --s-4:  16px;
  --s-5:  20px; --s-6:  24px; --s-8:  32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--obsidian);
  color: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ===== MESH BACKGROUND ===== */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(34, 211, 238, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 60%, rgba(8, 145, 178, 0.04) 0%, transparent 55%);
  pointer-events: none;
}

/* ===== LAYOUT ===== */
.site-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }
.container  { max-width: 1180px; margin: 0 auto; padding: 0 var(--s-8); }
.container--prose { max-width: 780px; }
main { flex: 1; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--s-6);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark { flex-shrink: 0; }

.nav-wordmark {
  font-family: 'Geist', sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--bone);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-light);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--bone); }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--s-12) 0;
  margin-top: var(--s-24);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  align-items: center;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--border);
}

.footer-links a {
  font-size: 14px;
  color: var(--gray-light);
  transition: color 0.15s;
}

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

.footer-links a[href^="mailto"] {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.02em;
}

.footer-legal {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.55;
}

.footer-copy {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--gray-mid);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ===== BADGE / EYEBROW ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.badge--cyan {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--cyan);
}

.badge--cyan::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

.badge--neutral {
  background: rgba(161, 161, 170, 0.08);
  border: 1px solid var(--border-light);
  color: var(--gray-light);
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== LANDING ===== */
.hero {
  padding: var(--s-24) 0 var(--s-20);
}

.hero-eyebrow {
  margin-bottom: var(--s-8);
}

.hero-title {
  font-family: 'Geist', sans-serif;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: var(--s-6);
}

.hero-title--accent {
  background: linear-gradient(180deg, #FAFAFA 0%, #71717A 140%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray-light);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: var(--s-10);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  color: var(--bone);
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}

.hero-cta:hover {
  border-color: var(--gray-mid);
  background: var(--surface-3);
}

.hero-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--s-16) 0 0;
}

/* ===== PAGE HEADER (legal pages) ===== */
.page-header {
  padding: var(--s-16) 0 var(--s-8);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s-10);
}

.page-eyebrow {
  margin-bottom: var(--s-5);
}

.page-title {
  font-family: 'Geist', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: var(--s-4);
}

.page-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ===== PROSE (legal documents) ===== */
.prose {
  padding-bottom: var(--s-24);
}

.prose h2 {
  font-family: 'Geist', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--bone);
  margin-top: var(--s-12);
  margin-bottom: var(--s-4);
  padding-top: var(--s-8);
  border-top: 1px solid var(--border);
}

.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.prose h3 {
  font-family: 'Geist', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--bone);
  margin-top: var(--s-8);
  margin-bottom: var(--s-3);
}

.prose p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--bone-2);
  line-height: 1.75;
  margin-bottom: var(--s-4);
  max-width: 72ch;
}

.prose strong { color: var(--bone); font-weight: 600; }

.prose ul, .prose ol {
  padding-left: var(--s-6);
  margin-bottom: var(--s-5);
}

.prose li {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--bone-2);
  line-height: 1.7;
  margin-bottom: var(--s-2);
  max-width: 70ch;
}

.prose ol { list-style: decimal; }
.prose ul { list-style: disc; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-6) 0;
  font-size: 14px;
  overflow-x: auto;
  display: block;
}

.prose th {
  text-align: left;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: var(--s-3) var(--s-4);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-light);
}

.prose td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border);
  color: var(--bone-2);
  vertical-align: top;
  line-height: 1.6;
}

.prose tr:last-child td { border-bottom: none; }

.prose table { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }

.doc-meta-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--s-5) var(--s-6);
  margin-bottom: var(--s-10);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-8);
}

.doc-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.doc-meta-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.doc-meta-value {
  font-size: 13px;
  color: var(--bone-2);
  font-weight: 500;
}

/* ===== TERMS SELECTOR ===== */
.terms-selector {
  display: flex;
  gap: var(--s-2);
  margin-bottom: var(--s-10);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--s-2);
  width: fit-content;
}

.terms-tab {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: var(--s-2) var(--s-5);
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
  color: var(--gray-light);
}

.terms-tab:hover { color: var(--bone); }

.terms-tab.active {
  background: var(--surface-3);
  color: var(--bone);
  border: 1px solid var(--border-light);
}

.terms-content { display: none; }
.terms-content.visible { display: block; }

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-top: var(--s-8);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: var(--s-6);
}

.contact-card-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}

.contact-card-value {
  font-size: 15px;
  color: var(--bone);
  font-weight: 500;
  line-height: 1.5;
}

.contact-card-value a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-card-value a:hover { color: var(--cyan-light); }

.callout-box {
  background: rgba(34, 211, 238, 0.06);
  border-left: 2px solid var(--cyan);
  padding: var(--s-4) var(--s-5);
  margin: var(--s-8) 0;
  border-radius: 0 10px 10px 0;
  font-size: 15px;
  color: var(--gray-light);
  line-height: 1.65;
  max-width: 68ch;
}

.callout-box strong { color: var(--cyan); font-weight: 500; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container { padding: 0 var(--s-5); }

  .nav-links { gap: var(--s-4); }
  .nav-links a { font-size: 13px; }

  .hero { padding: var(--s-16) 0 var(--s-12); }

  .contact-grid { grid-template-columns: 1fr; }

  .terms-selector { width: 100%; }
  .terms-tab { flex: 1; text-align: center; }

  .prose table { font-size: 13px; }
  .prose th, .prose td { padding: var(--s-2) var(--s-3); }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
  .hero-title { font-size: 40px; }
  .page-title { font-size: 28px; }
}
