/*
 * SWARM — Base Stylesheet
 * Shared base styles for standalone/utility pages
 */

/* ============================================================
   SHARED PREMIUM NAV — used across all SWARM pages
   ============================================================ */
.swarm-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,229,255,0.08);
  transition: all 0.3s ease;
}
.swarm-header.scrolled {
  background: rgba(10,10,15,0.96);
  border-bottom-color: rgba(0,229,255,0.15);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.swarm-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 16px;
}
.swarm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.swarm-logo img { width: 28px; height: 28px; }
.swarm-logo-text {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  font-family: 'Space Grotesk', sans-serif;
}
.swarm-logo-text span { color: #00E5FF; }
.swarm-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto;
}
.swarm-nav-links a {
  display: inline-block;
  padding: 7px 13px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 7px;
  transition: color 0.2s, background 0.2s;
}
.swarm-nav-links a:hover,
.swarm-nav-links a.active {
  color: #00E5FF;
  background: rgba(0,229,255,0.07);
  text-decoration: none;
}
.swarm-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #00E5FF, #0077FF);
  border-radius: 8px;
  color: #000 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(0,229,255,0.25);
}
.swarm-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(0,229,255,0.4);
  text-decoration: none;
}

/* ============================================================
   SHARED PREMIUM FOOTER — used across all SWARM pages
   ============================================================ */
.swarm-footer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 0;
  margin-top: 80px;
}
.swarm-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
}
.swarm-footer-brand h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  font-family: 'Space Grotesk', sans-serif;
}
.swarm-footer-brand p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 20px;
}
.swarm-footer-socials {
  display: flex;
  gap: 10px;
}
.swarm-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.swarm-footer-socials a:hover {
  background: rgba(0,229,255,0.08);
  border-color: rgba(0,229,255,0.25);
  color: #00E5FF;
  text-decoration: none;
}
.swarm-footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.swarm-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.swarm-footer-col ul a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s;
}
.swarm-footer-col ul a:hover { color: #00E5FF; text-decoration: none; }
.swarm-footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.swarm-footer-bottom-copy {
  font-size: 11.5px;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
  max-width: 680px;
}
.swarm-footer-bottom-links {
  display: flex;
  gap: 20px;
}
.swarm-footer-bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.swarm-footer-bottom-links a:hover { color: #00E5FF; }

@media (max-width: 900px) {
  .swarm-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .swarm-nav-links { display: none; }
  .swarm-footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 600px) {
  .swarm-footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   SCROLL REVEAL — shared across all pages
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PREMIUM CARD BASE — applied via .card class
   ============================================================ */
.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.2s, background 0.2s;
}
.card:hover {
  border-color: rgba(0,229,255,0.25);
  background: rgba(0,229,255,0.04);
}

/* Gradient border glow for stat/featured cards */
.card-glow {
  box-shadow: 0 0 0 1px rgba(0,229,255,0.1), 0 4px 24px rgba(0,0,0,0.4);
}

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

:root {
  --bg: #0a0a0f;
  --bg-2: #12121a;
  --bg-3: #1a1a28;
  --border: rgba(255,255,255,0.08);
  --text: #e0e0e0;
  --text-2: #a0a0b8;
  --text-3: #6a6a88;
  --cyan: #00E5FF;
  --blue: #00AAFF;
  --blue-dk: #0077FF;
  --max-w: 1200px;
  --radius: 12px;
  --spacing-4: 1rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-12: 3rem;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   SEAMLESS SECTION TRANSITIONS
   Prevents hard-edged "box" cutoffs between sections
   ============================================================ */

/* Sections without an explicit background inherit the page color */
section:not([style*="background"]) {
  background: transparent;
}

/* No hard borders between adjacent sections */
section + section {
  border-top: none;
}

/* Gradient tint helper — use .section-tint class for colored overlays
   that fade out at top and bottom instead of cutting hard */
.section-tint {
  position: relative;
}
.section-tint::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
