:root {
  --bg: #0f172a;
  --panel: #11192f;
  --accent: #22d3ee;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: #1f2937;
  --card: #0b1223;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  --radius: 14px;
  --font-body: 'Inter', 'Nunito', system-ui, -apple-system, sans-serif;
  --font-script: 'Sacramento', cursive;
}

body.theme-light {
  --bg: #f8fafc;
  --panel: #ffffff;
  --accent: #0ea5e9;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --card: #f1f5f9;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body.theme-light .tag {
  background: rgba(14, 165, 233, 0.2);
  color: #075985;
}

body.theme-light .button {
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.28), rgba(125, 76, 219, 0.2));
  color: #0f172a;
  border-color: rgba(14, 165, 233, 0.3);
}

body.theme-light .nav-links a.active,
body.theme-light .nav-links a:hover {
  background: rgba(14, 165, 233, 0.2);
  color: #0f172a;
}

body.theme-light .footer {
  background: #eef2f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(circle at 10% 20%, rgba(34, 211, 238, 0.08), transparent 25%),
              radial-gradient(circle at 80% 0%, rgba(125, 76, 219, 0.1), transparent 30%),
              var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

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

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 0;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--muted);
  margin: 8px 0 0;
}

.tag {
  background: rgba(34, 211, 238, 0.12);
  color: #7ee0f8;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.18), rgba(125, 76, 219, 0.14));
  color: #e0f7ff;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 18px 30px rgba(34, 211, 238, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 18px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand .avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, #7c3aed, #22d3ee);
  display: block;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(34, 211, 238, 0.22);
}

.nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a.active,
.nav-links a:hover {
  background: rgba(34, 211, 238, 0.1);
  color: #e0f7ff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px;
  border-radius: 12px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  display: grid;
  place-items: center;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 18px 30px rgba(34, 211, 238, 0.08);
}

.hero {
  padding: 120px 0 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 54px);
  margin: 0 0 12px;
  letter-spacing: -0.04em;
}

.hero p {
  color: var(--muted);
  margin-bottom: 18px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.badge-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.15);
  display: grid;
  place-items: center;
  color: #7ee0f8;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.card img.preview {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0b1223;
}

.card-title {
  margin: 0;
  font-size: 18px;
}

.card-desc {
  margin: 0;
  color: var(--muted);
}

.card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.stat {
  background: var(--panel);
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.list {
  display: grid;
  gap: 14px;
}

.list-item {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  display: grid;
  gap: 8px;
}

.list-item .meta {
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  background: rgba(9, 12, 22, 0.8);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 0;
    background: var(--panel);
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    width: min(360px, 92vw);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 540px) {
  .hero {
    padding-top: 90px;
  }

  .card img.preview {
    height: 140px;
  }
}
