:root {
  --bg: #050814;
  --bg-elevated: #0b1020;
  --accent: #34d399;
  --accent-soft: rgba(52, 211, 153, 0.12);
  --border-subtle: rgba(148, 163, 184, 0.3);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --danger: #f97373;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.8);
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617, #020617 45%, #020617);
  color: var(--text-main);
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(to bottom, rgba(15,23,42,0.98), rgba(15,23,42,0.92));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(52,211,153,0.6);
}

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

.brand-title {
  font-weight: 650;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

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

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15,23,42,0.9);
}

.nav-line {
  width: 18px;
  height: 2px;
  border-radius: 4px;
  background: var(--text-main);
}

.main-nav {
  position: fixed;
  inset-inline: 0.75rem;
  top: 3.3rem;
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.6rem;
  background: rgba(15,23,42,0.98);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 16px 40px rgba(15,23,42,0.9);
}

.main-nav a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.main-nav a:hover {
  background: rgba(15,23,42,0.9);
  color: var(--text-main);
}

.main-nav.nav-open {
  display: flex;
  overflow-x: auto;
}

@media (min-width: 840px) {
  .nav-toggle {
    display: none;
  }
  .main-nav {
    position: static;
    display: flex !important;
    flex-direction: row;
    background: transparent;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 0.2rem 0.35rem;
    box-shadow: none;
    max-width: 100%;
  }
}

.page-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.2rem 1.1rem 3rem;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  max-width: 38rem;
  font-size: 0.95rem;
}

.hero {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, rgba(52,211,153,0.14), transparent 55%),
              radial-gradient(circle at bottom right, rgba(59,130,246,0.16), transparent 55%),
              linear-gradient(135deg, rgba(15,23,42,0.98), rgba(2,6,23,0.98));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148,163,184,0.35);
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.hero p {
  color: var(--text-muted);
  max-width: 32rem;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  background: rgba(15,23,42,0.9);
  text-decoration: none;
}

.button.primary {
  border-color: rgba(52,211,153,0.8);
  background: linear-gradient(to right, #22c55e, #22c55e);
  color: #022c22;
}

.button.primary:hover {
  filter: brightness(1.05);
}

.hero-note {
  margin-top: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(15,23,42,0.9);
  border: 1px dashed rgba(148,163,184,0.5);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.banner {
  margin: 1.1rem 0 1.6rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  border: 1px solid rgba(52,211,153,0.5);
}

.banner h2 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.banner p {
  font-size: 0.9rem;
}

.banner-note {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.section {
  margin-bottom: 1.6rem;
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(to bottom, var(--bg-elevated), #020617);
  border: 1px solid rgba(31,41,55,0.9);
}

.section h2 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.section p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

@media (min-width: 720px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(to bottom right, var(--bg-elevated), #020617);
  border: 1px solid rgba(31,41,55,0.9);
  box-shadow: 0 14px 30px rgba(15,23,42,0.75);
}

.card h2 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.card-link {
  display: inline-flex;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.resource-list li {
  padding: 0.75rem 0.75rem;
  border-radius: 0.9rem;
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(31,41,55,0.9);
}

.resource-list h3 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
}

.resource-list p {
  margin: 0.2rem 0;
  font-size: 0.86rem;
}

.resource-list .meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.mini-list {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.mini-list li {
  margin-bottom: 0.35rem;
}

.site-footer {
  border-top: 1px solid rgba(15,23,42,1);
  padding: 1.2rem 1.1rem 1.8rem;
  background: radial-gradient(circle at top, #020617, #020617);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
  max-width: 1080px;
  margin: 0 auto 0.8rem;
}

@media (min-width: 720px) {
  .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer-main h2 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.footer-main p,
.footer-main li {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-main ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-main li + li {
  margin-top: 0.3rem;
}

.bmc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.15);
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.35), rgba(15,23,42,0.95));
  font-size: 0.8rem;
  color: #fef3c7;
  text-decoration: none;
}

.footer-meta {
  max-width: 1080px;
  margin: 0 auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 720px) {
  .footer-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
