@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #071222;
  --text: #fff;
  --muted: #94a3b8;
  --accent: #93c5fd;
  --cyan: #22d3ee;
  --border: rgba(255, 255, 255, 0.06);
  --glass: rgba(255, 255, 255, 0.04);
  --max: 1140px;
  --article: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(37, 99, 235, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 10%, rgba(6, 182, 212, 0.14), transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 40%, rgba(59, 130, 246, 0.1), transparent 50%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(15, 33, 64, 0.9), transparent 60%);
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 18, 34, 0.85);
  backdrop-filter: blur(16px);
}

.site-header__inner,
.site-footer__inner,
.page-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
}

.logo__mark {
  display: flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(to bottom right, #3b82f6, #06b6d4);
}

.logo__mark span {
  width: 11px;
  height: 11px;
  rotate: 45deg;
  border-radius: 2px;
  background: #0a1628;
}

.logo__text {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: #cbd5e1;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--cyan);
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  background: linear-gradient(to right, #2563eb, #0891b2);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn-demo:hover {
  color: #fff;
  filter: brightness(1.08);
}

.hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.hero--index {
  padding-bottom: 3rem;
}

.pill {
  display: inline-flex;
  margin-bottom: 1.25rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  background: rgba(59, 130, 246, 0.1);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #93c5fd;
}

.hero h1 {
  max-width: 18em;
  margin: 0;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero__meta {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.article-shell {
  padding: 3rem 0 4rem;
}

.featured-image {
  max-width: var(--article);
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.featured-image__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-card {
  max-width: var(--article);
  margin: 0 auto;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.article-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #cbd5e1;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.375rem;
  line-height: 1.25;
  color: #fff;
}

.article-body h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.125rem;
  color: #e2e8f0;
}

.article-body p {
  margin: 0 0 1rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.article-body li {
  margin-bottom: 0.35rem;
}

.article-body blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid #0891b2;
  background: rgba(8, 145, 178, 0.08);
  color: #e2e8f0;
}

.article-body table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.article-body th,
.article-body td {
  padding: 0.625rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.article-body th {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.article-body img,
.article-body .article-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-body iframe {
  display: block;
  width: 100%;
  margin: 1.25rem 0;
  border: 0;
  border-radius: 0.75rem;
  aspect-ratio: 16 / 9;
}

.article-body hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-body strong {
  color: #f1f5f9;
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.article-list li {
  margin: 0;
}

.article-list a {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}

.article-list__thumb {
  width: 120px;
  min-height: 84px;
  flex: none;
  object-fit: cover;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-list__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

@media (max-width: 520px) {
  .article-list a {
    flex-direction: column;
  }

  .article-list__thumb {
    width: 100%;
    height: 160px;
  }
}

.article-list a:hover {
  border-color: rgba(96, 165, 250, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.article-list__title {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}

.article-list__date {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.9375rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(7, 18, 34, 0.85);
}

.site-footer__inner {
  display: grid;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.footer-links a {
  text-decoration: none;
  font-size: 15.5px;
}

.footer-contact {
  font-size: 15.5px;
  color: #cbd5e1;
  line-height: 1.6;
}

.footer-contact p {
  margin: 0 0 0.75rem;
  color: #64748b;
}

.footer-contact strong {
  color: #fff;
}

.page-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
