:root {
  --blog-ink: #eaf3ff;
  --blog-muted: #9aa8bd;
  --blog-line: rgba(165, 190, 225, .14);
  --blog-panel: rgba(13, 20, 33, .84);
  --blog-cyan: #3bd4ff;
  --blog-violet: #9b74ff;
}

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/static/fonts/space-grotesk-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

.blog-page {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0 96px;
  color: var(--blog-ink);
}

.blog-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 340px;
  overflow: hidden;
  padding: clamp(32px, 7vw, 78px);
  border: 1px solid var(--blog-line);
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 87% 45%, rgba(108, 80, 207, .2), transparent 34%),
    linear-gradient(118deg, rgba(10, 19, 34, .98), rgba(16, 17, 35, .9));
  box-shadow: 0 32px 100px rgba(0, 0, 0, .24);
}

.blog-hero::after {
  position: absolute;
  right: 12%;
  bottom: -155px;
  width: 410px;
  height: 250px;
  border: 1px solid rgba(59, 212, 255, .17);
  border-radius: 50%;
  content: "";
  transform: rotate(-24deg);
}

.blog-hero-copy { position: relative; z-index: 1; max-width: 720px; }
.blog-kicker, .blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a9b5ca;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
}
.blog-kicker:hover { color: white; text-decoration: none; }
.blog-kicker img { width: 20px; height: 20px; object-fit: contain; }
.blog-hero h1 {
  margin: 20px 0 14px;
  color: #f5f8ff;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.04;
}
.blog-hero h1 em {
  color: transparent;
  background: linear-gradient(92deg, var(--blog-cyan), #8aa8ff 55%, #c284ff);
  background-clip: text;
  font-style: normal;
  -webkit-background-clip: text;
}
.blog-hero-copy > p { max-width: 550px; margin: 0; color: var(--blog-muted); font-size: 16px; line-height: 1.8; }
.blog-hero-mark {
  position: absolute;
  right: 8%;
  width: clamp(180px, 25vw, 330px);
  height: clamp(180px, 25vw, 330px);
  object-fit: contain;
  opacity: .14;
  transform: rotate(-12deg);
}

.blog-listing { padding-top: 70px; }
.blog-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.blog-eyebrow { margin: 0 0 8px; color: var(--blog-cyan); font-size: 10px; }
.blog-section-head h2 { margin: 0; color: var(--blog-ink); font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.04em; }
.blog-page-number { padding-bottom: 6px; color: var(--blog-muted); font-size: 12px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.blog-card {
  overflow: hidden;
  border: 1px solid var(--blog-line);
  border-radius: 18px;
  background: var(--blog-panel);
  transition: border-color .2s ease, transform .2s ease;
}
.blog-card:hover { border-color: rgba(59, 212, 255, .4); transform: translateY(-3px); }
.blog-card:first-child { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 1fr; }
.blog-card-image {
  position: relative;
  display: grid;
  min-height: 205px;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(ellipse at 67% 38%, rgba(107, 86, 231, .28), transparent 43%),
    linear-gradient(135deg, #102637, #19152d 70%, #25192e);
}
.blog-card:first-child .blog-card-image { min-height: 100%; }
.blog-card-image::after { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.04); content: ""; pointer-events: none; }
.blog-card-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .45s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.035); }
.blog-card-mark { width: 108px; height: 108px; object-fit: contain; opacity: .78; }
.blog-card-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(5, 10, 20, .62);
  color: white;
  font-size: 17px;
  place-items: center;
}
.blog-card-body { padding: 23px 24px 24px; }
.blog-card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: #94a3bb; font-size: 11px; }
.blog-card-meta time { color: var(--blog-cyan); }
.blog-card h3 { margin: 13px 0 8px; font-family: "Space Grotesk", Inter, sans-serif; font-size: 21px; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.blog-card h3 a { color: #f3f6ff; text-decoration: none; }
.blog-card h3 a:hover { color: var(--blog-cyan); }
.blog-card-body > p { margin: 0; color: var(--blog-muted); font-size: 13px; line-height: 1.75; }
.blog-read-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; color: #c5d6ef; font-size: 12px; font-weight: 600; text-decoration: none; }
.blog-read-link span { color: var(--blog-cyan); transition: transform .2s ease; }
.blog-read-link:hover { color: white; text-decoration: none; }
.blog-read-link:hover span { transform: translateX(3px); }
.blog-pagination { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; border-top: 1px solid var(--blog-line); padding-top: 18px; }
.blog-pagination a, .blog-article-footer a { color: #c9d8ee; font-size: 13px; text-decoration: none; }
.blog-pagination a:hover, .blog-article-footer a:hover { color: var(--blog-cyan); }
.blog-empty { padding: 74px 24px; border: 1px dashed var(--blog-line); border-radius: 22px; background: rgba(11, 17, 29, .5); text-align: center; }
.blog-empty-logo { display: block; width: 64px; height: 64px; object-fit: contain; margin: 0 auto; }
.blog-empty h2, .blog-empty h1 { margin: 12px 0 8px; font-family: "Space Grotesk", Inter, sans-serif; font-size: 25px; }
.blog-empty p { margin: 0; color: var(--blog-muted); }

.blog-article-page { max-width: 1000px; }
.blog-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 40px; color: #7e8ba1; font-size: 12px; }
.blog-breadcrumbs a { color: #a8b7ce; text-decoration: none; }
.blog-breadcrumbs a:hover { color: var(--blog-cyan); }
.blog-article-header { max-width: 820px; margin: 0 auto 34px; text-align: center; }
.blog-article-header h1 { margin: 18px 0 14px; color: #f5f8ff; font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(38px, 6vw, 62px); font-weight: 600; letter-spacing: -.05em; line-height: 1.08; }
.blog-article-excerpt { max-width: 720px; margin: 0 auto; color: #a9b7cb; font-size: 18px; line-height: 1.7; }
.blog-article-byline { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 22px; color: #8998ae; font-size: 12px; }
.blog-article-byline span:first-child { color: #dce8f8; font-weight: 600; }
.blog-article-cover { height: clamp(220px, 42vw, 470px); overflow: hidden; margin: 0 0 54px; border: 1px solid var(--blog-line); border-radius: 22px; background: linear-gradient(130deg, #102637, #19152d); }
.blog-article-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-article-layout { display: grid; grid-template-columns: 72px minmax(0, 720px); justify-content: center; gap: 34px; }
.blog-article-rail { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 9px; color: #72829a; font-size: 9px; font-weight: 700; letter-spacing: .2em; writing-mode: vertical-rl; }
.blog-rail-logo { width: 42px; height: 42px; object-fit: contain; }
.blog-content {
  color: #d6deeb;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.blog-content > * { margin-top: 0; margin-bottom: 1.35em; }
.blog-content h1, .blog-content h2, .blog-content h3 { margin-top: 1.9em; margin-bottom: .65em; color: #f4f7ff; font-family: "Space Grotesk", Inter, sans-serif; font-weight: 600; line-height: 1.25; letter-spacing: -.025em; }
.blog-content h1 { font-size: 2em; }
.blog-content h2 { font-size: 1.6em; }
.blog-content h3 { font-size: 1.25em; }
.blog-content p { margin: 0 0 1.35em; }
.blog-content a { color: var(--blog-cyan); text-decoration: underline; text-decoration-color: rgba(59, 212, 255, .4); text-underline-offset: 3px; }
.blog-content strong { color: #f5f8ff; font-weight: 700; }
.blog-content blockquote { margin: 1.7em 0; border-left: 3px solid var(--blog-cyan); padding: 8px 0 8px 20px; color: #b6c4d9; font-size: 1.12em; }
.blog-content pre { overflow-x: auto; margin: 1.5em 0; padding: 18px 20px; border: 1px solid var(--blog-line); border-radius: 10px; background: #080d16; color: #c9d9ee; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85em; line-height: 1.7; white-space: pre-wrap; }
.blog-content code { padding: .12em .35em; border-radius: 4px; background: rgba(94, 122, 164, .17); color: #a9dfff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; }
.blog-content pre code { padding: 0; background: transparent; color: inherit; }
.blog-content ol, .blog-content ul { margin: 0 0 1.45em; padding-left: 1.5em; }
.blog-content li { padding-left: .35em; margin: .35em 0; }
.blog-content img { display: block; max-width: 100%; height: auto; margin: 1.7em auto; border: 1px solid var(--blog-line); border-radius: 12px; }
.blog-content .ql-align-center { text-align: center; }
.blog-content .ql-align-right { text-align: right; }
.blog-content .ql-align-justify { text-align: justify; }
.blog-content .ql-indent-1 { padding-left: 3em; }
.blog-content .ql-indent-2 { padding-left: 6em; }
.blog-content .ql-indent-3 { padding-left: 9em; }
.blog-content .ql-indent-4 { padding-left: 12em; }
.blog-article-footer { display: flex; justify-content: space-between; gap: 18px; margin: 54px auto 0; padding-top: 22px; border-top: 1px solid var(--blog-line); color: #8d9bb0; font-size: 12px; }

@media (max-width: 860px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-card:first-child { grid-column: span 2; }
  .blog-article-layout { grid-template-columns: minmax(0, 720px); }
  .blog-article-rail { display: none; }
}
@media (max-width: 600px) {
  .blog-page { width: min(100% - 32px, 1180px); padding-top: 92px; }
  .blog-hero { min-height: 330px; padding: 32px 24px; border-radius: 22px; }
  .blog-hero-mark { right: -4%; opacity: .11; }
  .blog-hero-copy > p { font-size: 14px; }
  .blog-listing { padding-top: 48px; }
  .blog-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .blog-card:first-child { display: block; grid-column: auto; }
  .blog-card:first-child .blog-card-image { min-height: 205px; }
  .blog-card-body { padding: 20px; }
  .blog-section-head { align-items: start; }
  .blog-article-page { padding-top: 86px; }
  .blog-breadcrumbs { margin-bottom: 28px; }
  .blog-article-header h1 { font-size: 38px; }
  .blog-article-excerpt { font-size: 16px; }
  .blog-article-cover { margin-bottom: 34px; border-radius: 15px; }
  .blog-content { font-size: 15px; }
  .blog-article-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-card, .blog-card-image img, .blog-read-link span { transition: none; }
  .blog-card:hover { transform: none; }
}
