/* Global layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #05060a;
  color: #f5f5f7;
  line-height: 1.6;
}

/* Wrapper */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header / Branding */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top, #182848 0, #05060a 55%);
  padding: 1.25rem 1.75rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.9rem;
  opacity: 0.75;
}

/* Nav */
.navbar {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #e5e5f0;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              transform 0.1s ease;
}

.nav-link:hover {
  background: rgba(0, 209, 255, 0.12);
  border-color: rgba(0, 209, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-link.active {
  background: linear-gradient(135deg, #00d1ff, #5c7cff);
  border-color: transparent;
  color: #05060a;
}

/* Main content */
main {
  flex: 1;
  padding: 2rem 1.5rem 2.5rem;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.page-subtitle {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 1.75rem;
}

/* Cards / sections */
.section-card {
  background: radial-gradient(circle at top left, rgba(0, 209, 255, 0.12), transparent 55%);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.25rem;
}

.section-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.section-card p {
  font-size: 0.95rem;
  opacity: 0.88;
}

/* Homepage grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.grid-card {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 60%);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.grid-card h3 {
  font-size: 1rem;
}

.grid-card p {
  font-size: 0.9rem;
  opacity: 0.85;
}

.grid-card a {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: #8ae2ff;
}

.grid-card a:hover {
  text-decoration: underline;
}

/* Small text / code paths */
.small-note {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 0.35rem;
}

code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.3rem;
  border-radius: 6px;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.9rem 1.5rem 1.4rem;
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: center;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .site-header {
    padding: 1rem 1.1rem;
  }

  main {
    padding: 1.5rem 1.1rem 2rem;
  }

  .brand-title {
    font-size: 1.25rem;
  }
}
