/* Utility pages: blog, press, status, trust, security, community, changelog */

/* ===== Page hero band ===== */
.page-hero {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-hero.tint {
  background:
    radial-gradient(ellipse 900px 500px at 50% 0%, rgba(47,99,245,.08), transparent 60%),
    linear-gradient(180deg, #fff, var(--surface));
}
.page-hero h1 { font-size: clamp(36px, 4.5vw, 56px); letter-spacing: -.03em; max-width: 18ch; }
.page-hero .lead { font-size: 19px; line-height: 1.5; color: var(--slate-2); margin-top: 16px; max-width: 60ch; }

/* ===== Blog ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.blog-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.blog-card:hover { border-color: var(--brand-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card .thumb {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.blog-card .thumb svg { width: 56%; height: 56%; opacity: .9; }
.blog-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card .cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }
.blog-card p { font-size: 13.5px; color: var(--slate-2); margin-top: 8px; line-height: 1.5; flex: 1; }
.blog-card .author-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px;
  font-size: 12px; color: var(--slate-3);
}
.blog-card .author-row .avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-cyan));
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-top: 40px;
  align-items: center;
  background: var(--panel);
  color: #fff;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
}
.blog-featured::before {
  content:'';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 600px 400px at 80% 30%, rgba(47,99,245,.4), transparent 65%);
  pointer-events: none;
}
.blog-featured .thumb {
  height: 380px;
  background: linear-gradient(135deg, #14297a, #2f63f5);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  position: relative; z-index: 2;
}
.blog-featured .thumb svg { width: 55%; height: 55%; opacity: .85; }
.blog-featured .body { padding: 48px; position: relative; z-index: 2; }
.blog-featured .cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #84acff; }
.blog-featured h2 { font-size: 32px; margin-top: 12px; letter-spacing: -.025em; color: #fff; }
.blog-featured p  { font-size: 16px; color: rgba(255,255,255,.75); margin-top: 16px; line-height: 1.55; max-width: 40ch; }
.blog-featured a { color: #fff; text-decoration: none; }
.blog-featured .author-row { display:flex; align-items:center; gap:10px; margin-top: 24px; color:#9097a8; font-size: 13px; }
.blog-featured .avatar { width:28px; height:28px; border-radius:50%; background: linear-gradient(135deg, var(--brand-400), var(--accent-cyan)); }
@media (max-width: 900px) { .blog-featured { grid-template-columns: 1fr; } .blog-featured .thumb { height: 240px; } .blog-featured .body { padding: 32px; } }

.blog-filter { display:flex; gap:8px; flex-wrap:wrap; margin: 24px 0 0; }
.blog-filter button {
  padding: 6px 12px; border: 1px solid var(--line); background: var(--card);
  border-radius: 999px; font: 500 13px var(--font-sans);
  color: var(--slate-2); cursor: pointer;
}
.blog-filter button.on { background: var(--panel); color:#fff; border-color: var(--ink); }

/* ===== Status page ===== */
.status-hero {
  background: linear-gradient(180deg, #f3fbf6, var(--surface));
  border-bottom: 1px solid var(--line);
}
.status-hero.bad { background: linear-gradient(180deg, #fef3f3, var(--surface)); }
.status-banner {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px;
  background: var(--card);
  border: 1px solid #b6e8c5;
  border-left: 4px solid var(--ok);
  border-radius: var(--r-lg);
  margin-top: 16px;
}
.status-banner.bad { border-color: #fecaca; border-left-color: var(--crit); }
.status-banner .lg-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 6px rgba(22,163,74,.18); }
.status-banner.bad .lg-dot { background: var(--crit); box-shadow: 0 0 0 6px rgba(239,68,68,.18); }
.status-banner h2 { font-size: 20px; font-weight: 600; }
.status-banner p { font-size: 13px; color: var(--slate-3); font-family: var(--font-mono); margin-top: 2px; }

.status-section { padding: 56px 0; }
.status-section h3 { font-size: 18px; margin-bottom: 16px; }
.status-services {
  display: grid; gap: 8px;
}
.status-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.status-row .name { font-weight: 500; }
.status-row .name .sub { display:block; font: 400 12px var(--font-mono); color: var(--slate-3); margin-top: 2px; }
.status-row .bar {
  display: flex; gap: 2px;
  height: 28px;
}
.status-row .bar span {
  flex: 1; min-width: 3px;
  background: var(--ok); border-radius: 1px;
  opacity: .92;
}
.status-row .bar span.warn { background: var(--warn); }
.status-row .bar span.crit { background: var(--crit); }
.status-row .right {
  display: flex; align-items: center; gap: 12px;
  font: 500 13px var(--font-sans);
  color: var(--ok);
}
.status-row .right .pct { font-family: var(--font-mono); font-size: 12px; color: var(--slate-3); }
.status-row .right .ok-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(22,163,74,.18); }

.status-regions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.region-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
}
.region-card .top { display: flex; align-items: center; justify-content: space-between; }
.region-card .nm { font-weight: 500; font-size: 14px; }
.region-card .pill {
  font: 500 11px var(--font-mono);
  background: #dcfce7; color: #166534;
  padding: 3px 8px; border-radius: 999px;
}
.region-card .pill.warn { background: #fef3c7; color: #92400e; }
.region-card .pill.crit { background: #fee2e2; color: #b91c1c; }
.region-card .stat { font-family: var(--font-mono); font-size: 12px; color: var(--slate-3); margin-top: 10px; }
@media (max-width: 900px) {
  .status-regions { grid-template-columns: 1fr 1fr; }
  .status-row { grid-template-columns: 1fr; gap: 12px; }
  .status-row .bar { height: 18px; }
}

.incident-list { display: grid; gap: 12px; }
.incident-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.incident-item .meta { display: flex; align-items: center; gap: 8px; font: 500 11px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--slate-3); margin-bottom: 8px; }
.incident-item .meta .badge { padding: 2px 8px; border-radius: 4px; }
.incident-item .meta .badge.resolved { background: #dcfce7; color: #166534; }
.incident-item .meta .badge.investigating { background: #fef3c7; color: #92400e; }
.incident-item .meta .badge.major { background: #fee2e2; color: #b91c1c; }
.incident-item h4 { font-size: 15px; font-weight: 500; }
.incident-item p { font-size: 13.5px; color: var(--slate-2); margin-top: 6px; line-height: 1.55; max-width: 70ch; }
.incident-item .updates { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.incident-item .upd { font-size: 13px; color: var(--slate-2); margin-bottom: 4px; }
.incident-item .upd .time { font-family: var(--font-mono); font-size: 11px; color: var(--slate-3); margin-right: 8px; }

/* ===== Trust / Security ===== */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.comp-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
}
.comp-card .badge {
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 14px var(--font-mono);
  letter-spacing: .04em;
  box-shadow: 0 8px 24px -8px rgba(47,99,245,.4);
}
.comp-card h4 { font-size: 14px; font-weight: 600; }
.comp-card p { font-size: 12.5px; color: var(--slate-3); margin-top: 4px; line-height: 1.5; }
.comp-card .lk { font-size: 12px; color: var(--brand-600); margin-top: 8px; display: inline-block; }
@media (max-width: 900px) { .compliance-grid { grid-template-columns: 1fr 1fr; } }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}
.principle .ic {
  width: 40px; height: 40px;
  background: var(--brand-50);
  color: var(--brand-600);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.principle h4 { font-size: 16px; }
.principle p { font-size: 14px; color: var(--slate-2); margin-top: 6px; line-height: 1.55; }
@media (max-width: 900px) { .principles-grid { grid-template-columns: 1fr; } }

/* ===== Community ===== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.community-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.community-card:hover { border-color: var(--brand-300); transform: translateY(-2px); }
.community-card .ic {
  width: 44px; height: 44px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 16px;
}
.community-card h3 { font-size: 17px; letter-spacing: -.01em; }
.community-card p { font-size: 14px; color: var(--slate-2); margin-top: 8px; line-height: 1.55; flex: 1; }
.community-card .stat {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-3);
  display: flex; align-items: center; gap: 8px;
}
.community-card .stat .n { color: var(--ink); font-weight: 500; font-size: 13.5px; }
@media (max-width: 900px) { .community-grid { grid-template-columns: 1fr; } }

.ambassadors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.amb {
  text-align: center;
  padding: 24px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.amb .av {
  width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 50%;
}
.amb h5 { font-size: 14px; font-weight: 600; }
.amb .loc { font-size: 12px; color: var(--slate-3); font-family: var(--font-mono); margin-top: 2px; }
.amb .tag { font-size: 11px; color: var(--brand-600); margin-top: 8px; display: inline-block; }
@media (max-width: 900px) { .ambassadors { grid-template-columns: 1fr 1fr; } }

/* ===== Changelog ===== */
.changelog-wrap {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 80px;
  padding: 56px 0 96px;
}
.changelog-side {
  position: sticky; top: 88px; align-self: start;
  font-size: 13px;
}
.changelog-side h4 { font: 600 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slate-3); margin-bottom: 12px; }
.changelog-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.changelog-side a { color: var(--slate-2); padding: 4px 8px; border-radius: 4px; display: block; }
.changelog-side a.active { background: var(--brand-50); color: var(--brand-700); font-weight: 500; }

.release {
  position: relative;
  padding-left: 48px;
  padding-bottom: 56px;
  border-left: 2px solid var(--line);
  margin-left: 8px;
}
.release::before {
  content: '';
  position: absolute;
  left: -8px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--brand-200);
}
.release:last-child { border-left-color: transparent; }
.release .ver { font-family: var(--font-mono); font-size: 12px; color: var(--brand-600); font-weight: 500; }
.release .date { font-family: var(--font-mono); font-size: 11px; color: var(--slate-3); margin-left: 8px; }
.release h2 { font-size: 26px; margin-top: 4px; margin-bottom: 12px; letter-spacing: -.02em; }
.release p { font-size: 15px; color: var(--slate-2); line-height: 1.6; max-width: 65ch; margin-bottom: 16px; }
.release h3 { font-size: 14px; margin-top: 20px; margin-bottom: 8px; }
.release h3 .badge {
  font: 600 10px var(--font-mono); letter-spacing: .06em;
  padding: 2px 8px; border-radius: 4px; margin-right: 8px; text-transform: uppercase;
}
.release h3 .badge.new { background: #dcfce7; color: #166534; }
.release h3 .badge.fix { background: #dbeafe; color: #1e40af; }
.release h3 .badge.imp { background: #fef3c7; color: #92400e; }
.release h3 .badge.brk { background: #fee2e2; color: #b91c1c; }
.release ul { padding-left: 24px; color: var(--slate-2); font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
@media (max-width: 900px) {
  .changelog-wrap { grid-template-columns: 1fr; gap: 32px; padding: 32px 0 64px; }
  .changelog-side { display: none; }
}

/* ===== Press ===== */
.press-mentions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.mention {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
.mention:hover { border-color: var(--brand-300); transform: translateY(-2px); }
.mention .src { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-3); margin-bottom: 8px; }
.mention h4 { font-size: 16px; line-height: 1.35; letter-spacing: -.01em; }
.mention .date { font-size: 12px; color: var(--slate-3); margin-top: 10px; font-family: var(--font-mono); }
@media (max-width: 900px) { .press-mentions { grid-template-columns: 1fr; } }

.media-kit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.media-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  background: var(--card);
  display: flex;
  align-items: center;
  gap: 20px;
}
.media-card .preview {
  width: 88px; height: 88px;
  border-radius: var(--r-md);
  background: var(--panel);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 88px;
}
.media-card .preview img { width: 56px; height: 56px; image-rendering: pixelated; }
.media-card.light .preview { background: var(--card); border: 1px solid var(--line); }
.media-card .body { flex: 1; }
.media-card h4 { font-size: 15px; }
.media-card p { font-size: 13px; color: var(--slate-2); margin-top: 4px; }
.media-card .dl-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.media-card .dl-row a { font-size: 12px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); text-decoration: none; font-family: var(--font-mono); }
@media (max-width: 900px) { .media-kit { grid-template-columns: 1fr; } }
