/* ====== Base Theme (no external libraries) ====== */
:root {
  --bg: #000000;
  --surface: rgba(255,255,255,0.06);
  --surface-2: rgba(255,255,255,0.08);
  --glass: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --text-muted: rgba(255,255,255,0.75);
  --brand-50:#eefaff; --brand-100:#d6f2ff; --brand-200:#b0e6ff; --brand-300:#7fd7ff;
  --brand-400:#4ec3ff; --brand-500:#1ea9ff; --brand-600:#0e88db; --brand-700:#0a6bb0; --brand-800:#0b5b90; --brand-900:#0e4b73;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --font: 'Noto Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --container: 1220px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.theme-dark { background: var(--bg); color: var(--text); }

/* ====== Background layers (fixed) ====== */
.bg-root {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: black;
  pointer-events: none;
}
#gradient, #circles, #quadrilaterals { position: absolute; inset: 0; }
#gradient { z-index: 0; }
#circles { z-index: 2; }
#quadrilaterals { z-index: 1; }
.circle { position: absolute; border-radius: 50%; background: white; opacity: 0.7; animation: rotateCircle linear infinite; }
@keyframes rotateCircle { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Content root sits above background */
.content-root { position: relative; z-index: 10; }

/* ====== Layout helpers ====== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-16);
}
.section { padding: var(--space-64) 0; }
.section-solid { background: rgba(0,0,0,0.7); border-block: 1px solid var(--border); }
.section-glass { background: var(--glass); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
.align-center { text-align: center; }

.grid {
  display: grid;
  gap: var(--space-32);
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.row {
  display: flex;
  flex-wrap: wrap;
}
.stack { display: flex; flex-direction: column; }
.gap-8 { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }
.gap-16 { gap: var(--space-16); }
.gap-24 { gap: var(--space-24); }
.gap-32 { gap: var(--space-32); }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ====== Typography ====== */
.display { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.1; }
.h2 { font-size: clamp(1.75rem, 2.5vw, 2.25rem); font-weight: 700; margin: 0 0 var(--space-16); }
.h4 { font-size: 1.125rem; font-weight: 600; margin: 0 0 var(--space-8); }
.lead { font-size: 1.125rem; color: var(--text-muted); }
.small { font-size: 0.9rem; }
.muted { color: var(--text-muted); }
.link { color: var(--text-muted); text-decoration: underline; text-underline-offset: 4px; }

/* ====== Panels / Cards ====== */
.panel {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.card {
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  box-shadow: var(--shadow);
}

/* ====== Buttons ====== */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, transform .02s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand-500);
  color: #001525;
  border-color: rgba(255,255,255,0.05);
}
.btn-primary:hover { background: var(--brand-400); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.icon-pill {
  height: 40px; width: 40px; border-radius: 12px;
  background: color-mix(in srgb, var(--brand-500) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-400) 40%, transparent);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--brand-200);
  margin-bottom: var(--space-16);
}

/* ====== Header ====== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.35);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-mark { display: block; }
.brand-name { font-weight: 700; letter-spacing: .2px; }

.nav-desktop { display: none; gap: 20px; }
.nav-desktop a { color: var(--text); text-decoration: none; opacity: .9; }
.nav-desktop a:hover { color: var(--brand-200); }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 4px;
  border: 0; background: transparent; color: var(--text);
  padding: 8px; border-radius: 12px;
}
.nav-toggle:hover { background: rgba(255,255,255,0.08); }
.nav-toggle-bar { width: 24px; height: 2px; background: currentColor; display: block; }

.nav-mobile { background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); border-top: 1px solid var(--border); }
.nav-mobile-inner { display: grid; gap: 8px; padding: var(--space-12) var(--space-16); }
.nav-mobile a { display: block; padding: 10px 0; text-decoration: none; color: var(--text); }

@media (min-width: 768px) {
  .nav-desktop { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ====== Hero / CTA ====== */
.hero .panel { min-height: 280px; }
.cta {
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  border-radius: 24px;
  padding: clamp(20px, 4vw, 48px);
  text-align: center;
  box-shadow: var(--shadow);
}
.cta .h2 { margin-bottom: var(--space-16); }

/* ====== Footer ====== */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.6);
  padding: var(--space-48) 0;
}
.footer-grid {
  display: grid; gap: var(--space-32);
  grid-template-columns: 1fr;
}
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.footer-links a { text-decoration: none; color: var(--text); opacity: .9; }
.footer-links a:hover { color: var(--brand-200); }

.logo-sq {
  width: 28px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #001525; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}

.circle-btn {
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--text);
}
.circle-btn:hover { background: rgba(255,255,255,0.1); }

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.2fr .8fr 1fr; }
}

/* ====== Lists ====== */
.bullet-list { margin: 0; padding-left: 18px; }
.bullet-list li { margin: 8px 0; }

/* ====== Accordion ====== */
.accordion { display: grid; gap: var(--space-16); }
.acc-item {
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.acc-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-16) var(--space-24);
  background: transparent; color: var(--text); border: 0; text-align: left;
  font-weight: 600; cursor: pointer;
	font-size: 1.5em;
}
.acc-btn:hover { background: rgba(255,255,255,0.06); }
.acc-icon { width: 20px; height: 20px; transition: transform .2s ease; }
.acc-panel { border-top: 1px solid var(--border); padding: var(--space-24); }
.acc-item.open .acc-icon { transform: rotate(180deg); }

/* ====== Utilities ====== */
.hidden { display: none !important; }
