:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.64);
  --dim: rgba(255, 255, 255, 0.46);
  --blue: #4f8cff;
  --red: #ff2b5d;
  --green: #00ff88;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(79, 140, 255, 0.22), transparent 34%),
    radial-gradient(circle at 84% 16%, rgba(255, 43, 93, 0.14), transparent 30%),
    radial-gradient(circle at 70% 82%, rgba(0, 255, 136, 0.08), transparent 30%),
    linear-gradient(180deg, #0a0d14 0%, var(--bg) 42%, #06070b 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 78%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header,
.page-shell,
.site-footer {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.site-header.is-simple {
  justify-content: center;
}

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

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--dim);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a,
.back-link,
.read-more,
.share-button,
.cta-button {
  border-radius: 999px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.back-link:hover,
.read-more:hover,
.share-button:hover,
.cta-button:hover {
  transform: translateY(-1px);
}

.page-shell {
  padding: clamp(2.5rem, 8vw, 6rem) 0 4rem;
}

.hero {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: #9bbdff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.35rem;
  font-size: clamp(3.25rem, 11vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.subtitle {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  line-height: 1.7;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.blog-card,
.article-shell,
.cta-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.blog-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  border-radius: 2rem;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.blog-card:hover {
  border-color: rgba(79, 140, 255, 0.32);
  box-shadow: 0 34px 110px rgba(79, 140, 255, 0.15);
  transform: translateY(-5px);
}

.visual {
  position: relative;
  min-height: 172px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(8, 10, 15, 0.42));
  pointer-events: none;
}

.visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 360ms ease, opacity 220ms ease;
}

.blog-card:hover .visual img {
  transform: scale(1.035);
}

.visual.is-fallback img {
  display: none;
}

.visual.blue {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.42), transparent 16%),
    linear-gradient(135deg, rgba(79, 140, 255, 0.78), rgba(10, 13, 20, 0.24));
}

.visual.green {
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.36), transparent 18%),
    linear-gradient(135deg, rgba(0, 255, 136, 0.58), rgba(79, 140, 255, 0.18));
}

.visual.red {
  background:
    radial-gradient(circle at 22% 72%, rgba(255, 255, 255, 0.28), transparent 16%),
    linear-gradient(135deg, rgba(255, 43, 93, 0.68), rgba(79, 140, 255, 0.16));
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-card h2 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.1;
}

.blog-card p {
  color: var(--muted);
  line-height: 1.65;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.6rem 0 1.2rem;
  color: var(--dim);
  font-size: 0.86rem;
  font-weight: 700;
}

.card-foot span + span::before {
  content: "•";
  margin-inline-end: 0.55rem;
  color: rgba(255, 255, 255, 0.3);
}

.read-more,
.back-link,
.share-button,
.cta-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  padding: 0 1rem;
  color: #fff;
  font-weight: 800;
}

.read-more:hover,
.back-link:hover,
.share-button:hover {
  border-color: rgba(79, 140, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.article-shell {
  max-width: 880px;
  margin: 2rem auto 0;
  border-radius: 2rem;
  padding: clamp(1.25rem, 5vw, 3rem);
}

.article-head {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.article-cover {
  min-height: clamp(220px, 42vw, 430px);
  margin: 2rem 0 0;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
}

.article-cover img {
  border-radius: inherit;
}

.article-head h1 {
  margin-top: 1rem;
  font-size: clamp(2.7rem, 8vw, 6rem);
}

.article-content {
  padding-top: 2rem;
}

.article-content h2 {
  margin: 2rem 0 0.8rem;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
}

.article-content p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  line-height: 1.85;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.cta-panel {
  margin-top: 2.5rem;
  border-radius: 1.6rem;
  padding: 1.35rem;
  background:
    radial-gradient(circle at 18% 0%, rgba(79, 140, 255, 0.22), transparent 42%),
    rgba(255, 255, 255, 0.06);
}

.cta-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.cta-button {
  margin-top: 0.5rem;
  border: 0;
  background: #fff;
  color: #080a0f;
}

.site-footer {
  padding: 2rem 0 3rem;
  color: var(--dim);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header,
  .page-shell,
  .site-footer {
    width: min(100% - 1rem, 1120px);
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .article-shell,
  .blog-card {
    border-radius: 1.4rem;
  }
}
