:root {
  --meshcore-glow: #0D1A2B;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --bg-dark: #212529;
  --card-bg: #2a2f38;
  --card-hover-bg: #67ea94;
  --text-light: #ffffff;
  --text-dark: #212529;
  --card-radius: 14px;
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  --btn-color: #3a3f47;
  --btn-hover-color: #4a4f57;
}

.home,
.home * {
  box-sizing: border-box;
}

.home * {
  margin: 0;
  padding: 0;
}

.home {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  opacity: 0;
  transition: opacity .35s ease;
}

.home.is-loaded { opacity: 1; }
.home.is-leaving { opacity: 0; }

.home .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 960px;
  position: relative;
  z-index: 1;
}

.home .container {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  padding: 32px 24px;
  border-radius: var(--card-radius);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition:
    transform 0.2s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.home .container:hover {
  transform: translateY(-4px);
  background: rgba(103, 234, 148, 0.18);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  color: var(--text-light);
}

.home .container.glow-purple:hover {
  background: rgba(13, 26, 43, 0.35);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  color: var(--text-light);
}

.home .container.glow-purple:hover p {
  color: #dcdcdc;
}

.home .container h1 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

.home .container p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: #dcdcdc;
}

.home a.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  background-color: var(--btn-color);
  color: var(--text-light);
  transition: background-color 0.3s ease;
}

.home a.button:hover {
  background-color: var(--btn-hover-color);
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 rgba(103, 234, 148, 0.7); }
  50% { box-shadow: 0 0 20px rgba(103, 234, 148, 0.9); }
  100% { box-shadow: 0 0 0 rgba(103, 234, 148, 0.7); }
}

.glow {
  animation: pulseGlow 5s infinite;
}

@keyframes pulseGlowPurple {
  0% {
    box-shadow:
      0 0 6px rgba(13, 26, 43, 0.55),
      0 0 14px rgba(13, 26, 43, 0.45);
  }
  50% {
    box-shadow:
      0 0 14px rgba(13, 26, 43, 0.85),
      0 0 32px rgba(13, 26, 43, 0.75),
      0 0 48px rgba(13, 26, 43, 0.6);
  }
  100% {
    box-shadow:
      0 0 6px rgba(13, 26, 43, 0.55),
      0 0 14px rgba(13, 26, 43, 0.45);
  }
}

.glow-purple {
  animation: pulseGlowPurple 4.5s ease-in-out infinite;
}

.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.meshcore-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.meshcore-icon {
  font-size: 22px;
  line-height: 1;
}

.meshcore-text {
  line-height: 1;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 10px;
  background: #0D1A2B;
  color: #ffffff;
  line-height: 1;
}

.card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  padding: 16px;
  transition: transform .2s ease, background-color .3s ease, color .3s ease;
}

.blog,
.blog * {
  box-sizing: border-box;
}

.blog * {
  margin: 0;
  padding: 0;
}

.blog {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
  padding: 0;
  opacity: 0;
  transition: opacity .35s ease;
}

.blog.is-loaded { opacity: 1; }
.blog.is-leaving { opacity: 0; }

.blog .layout {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px;
  display: grid;
  gap: 5px;
  position: relative;
  z-index: 1;
}

.blog .header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
}

.blog .blog-controls {
  display: flex;
  justify-content: flex-start;
}

.blog .blog-filters {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.blog .blog-filters .btn.is-active {
  background-color: var(--btn-hover-color);
}

.blog .header {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.blog .header h1 {
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: 0.02em;
}

.blog .header p {
  color: #ffffff;
  margin-top: 8px;
  font-size: 1rem;
  max-width: 620px;
}

.blog .post-list {
  display: grid;
  gap: 20px;
}

.blog .post {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.blog .post .post-body {
  padding: 4%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
}

.blog .post h2 {
  font-size: 1.25rem;
  text-align: center;
  padding-top: 12px;
}

.blog .post .post-body h3 {
  margin-bottom: 12px;
}

.blog .post .meta {
  font-size: 0.9rem;
  color: #c7c7c7;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  text-align: center;
}

.blog .post p {
  color: #dcdcdc;
  line-height: 1.6;
  margin: 0 0 12px;
}

.blog .post p + p {
  margin-top: 12px;
}

.blog .post .post-body ul,
.blog .post .post-body ol,
.blog .post .post-body dl {
  padding-left: 24px;
}

.blog .post .post-body .post-image {
  margin: 12px 0 0;
}

.blog .post .post-body .post-image img {
  display: block;
  max-width: 100%;
  border-radius: 10px;
  margin: 0 auto;
}

.blog .post .post-body img.inline-image {
  float: right;
  max-width: 40%;
  margin: 6px 0 8px 16px;
  border-radius: 10px;
}

.blog .post .post-body img.inline-image.is-left {
  float: left;
  margin: 6px 16px 8px 0;
}

.blog .post .post-body img.inline-image.is-small {
  max-width: 30%;
}

.blog .post .post-body img.inline-image.is-medium {
  max-width: 45%;
}

.blog .post .post-body .post-image.is-small img {
  max-width: 60%;
}

.blog .post .post-body .post-image.is-medium img {
  max-width: 80%;
}

.blog .post blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid #67ea94;
  background: rgba(103, 234, 148, 0.08);
  color: #e6e6e6;
}

.blog .post pre {
  margin: 14px 0;
  padding: 14px 16px;
  background: #1c222b;
  border-radius: 10px;
  overflow-x: auto;
}

.blog .post code {
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 0.95em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

.blog .post pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.blog .post table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}

.blog .post th,
.blog .post td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
  text-align: left;
}

.blog .post th {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.blog .post hr {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 18px 0;
}

.blog .post dl {
  margin: 14px 0;
}

.blog .post dt {
  font-weight: 700;
  color: #ffffff;
}

.blog .post dd {
  margin: 0 0 10px 0;
  color: #dcdcdc;
}

.blog .post a {
  color: inherit;
  text-decoration: none;
}

.blog .post:hover {
  transform: translateY(-2px);
  background: rgba(103, 234, 148, 0.12);
}

.blog a.btn {
  display: inline-block;
  text-decoration: none;
}

.card:hover { transform: translateY(-2px); }
.card:focus-within { background-color: #2f3540; }

.btn {
  background: var(--btn-color);
  color: var(--text-light);
  border: 1px solid var(--field-border, var(--btn-hover-color));
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.btn:hover { background: var(--btn-hover-color); }

.tab {
  background: var(--btn-color);
  color: var(--text-light);
  border: 1px solid var(--field-border, var(--btn-hover-color));
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .2px;
}

.tab.active {
  background: rgba(103, 234, 148, 0.15);
  border-color: var(--accent, var(--card-hover-bg));
  box-shadow: 0 0 0 3px var(--focus-ring, rgba(103, 234, 148, 0.35));
}
