/* ============ Design tokens (shared) ============ */
:root {
  --color-bg: #050816;
  --color-bg-alt: #0b1020;
  --color-surface: #0f172a;
  --color-surface-soft: #111827;
  --color-accent: #38bdf8;
  --color-accent-soft: rgba(56, 189, 248, 0.15);
  --color-text: #f9fafb;
  --color-muted: #9ca3af;

  --radius-lg: 1rem;
  --radius-md: 0.75rem;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-width: 1120px;
}

/* ============ Global reset-ish ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(circle at top, #111827 0%, #020617 55%, #000 100%);
  color: var(--color-text);
  padding-top: 64px; /* space for fixed navbar */
}

/* Content width container */
.main-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

/* ============ Header (structural) ============ */

.site-header {
  position: relative;
  color: var(--color-text);
  overflow: hidden;
}

/* If you re-enable overlay later */
.site-header__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ============ Navbar (shared) ============ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.9)
  );
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.navbar__logo-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0, #38bdf8, #1d4ed8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.7);
}

.navbar__brand-text {
  display: flex;
  flex-direction: column;
}

.navbar__brand-title {
  font-size: 1rem;
  font-weight: 600;
}

.navbar__brand-subtitle {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.navbar__links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.navbar__link {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 0.25rem;
}

.navbar__link:hover {
  color: #e5e7eb;
}

.navbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #38bdf8, #a855f7);
  transition: width 0.2s ease-out;
}

.navbar__link:hover::after {
  width: 100%;
}

.navbar__link--active {
  color: #f9fafb;
  font-weight: 500;
}

.navbar__link--active::after {
  width: 100%;
}

.navbar__toggle {
  display: none;
  background: rgba(15, 23, 42, 0.85);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--color-text);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

/* ============ Buttons (shared) ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    border-color 0.12s ease-out,
    background-color 0.12s ease-out;
}

.btn--primary {
  background: linear-gradient(to right, #38bdf8, #a855f7);
  color: #0b1020;
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.9);
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
}

.btn--ghost:hover {
  border-color: rgba(248, 250, 252, 0.7);
}

.btn--secondary {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
}

/* ============ Generic sections (shared) ============ */

.section {
  padding: 3.5rem 0;
  background: transparent;
}

.section--alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.3));
}

.section__title {
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
}

.section__lead {
  max-width: 42rem;
  font-size: 0.98rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.section__grid {
  display: grid;
  gap: 1.5rem;
}

.section__grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section__block {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.section__heading {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* ============ Generic cards (shared) ============ */

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.75rem;
}

.card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.7);
}

.card__title {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.card__text {
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* ============ Footer (shared) ============ */

.site-footer {
  margin-top: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.98),
    rgba(15, 23, 42, 0.94),
    rgba(15, 23, 42, 0.9)
  );
  backdrop-filter: blur(14px);
}

.site-footer__inner {
  padding: 1.3rem 1.25rem 1.5rem;
}

.site-footer__text {
  font-size: 0.85rem;
  margin: 0;
}

.site-footer__text--muted {
  color: var(--color-muted);
}

/* ============ Responsive (shared) ============ */

@media (max-width: 768px) {
  .navbar__links {
    position: absolute;
    inset: 56px 1.25rem auto;
    background: rgba(15, 23, 42, 0.98);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    display: none;
  }

  .navbar__links.navbar__links--open {
    display: flex;
  }

  .navbar__toggle {
    display: inline-flex;
  }

  .section__grid--two {
    grid-template-columns: 1fr;
  }
}
