@import url("icq6-base.css");

/* Marketing layout — tokens/components from design-preview-icq6.html */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.icq-desktop { overflow-x: hidden; line-height: 1.55; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }
a { color: inherit; text-decoration: none; }

/* Branded text links — same voice as footer nav */
.site-link,
.foot-col a,
.page-doc p a,
.page-doc li a,
.release-note a {
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.12s ease;
}
.site-link:hover,
.foot-col a:hover,
.page-doc p a:hover,
.page-doc li a:hover,
.release-note a:hover {
  color: var(--accent-dark);
}
.dark .site-link:hover,
.dark .foot-col a:hover,
.dark .page-doc p a:hover,
.dark .page-doc li a:hover,
.dark .release-note a:hover {
  color: var(--accent);
}

/* Nav */
header.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--icq-panel-bg) 90%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.brand .name { font-weight: 700; font-size: 15px; }
.brand .name span { color: var(--accent-dark); }
.dark .brand .name span { color: var(--accent); }

nav.links { display: flex; gap: 16px; align-items: center; }
nav.links a.nav-link { color: var(--text-muted); text-decoration: none; font-size: 13px; }
nav.links a.nav-link:hover { color: var(--text); }
.nav-tools { display: flex; align-items: center; gap: 6px; }
.lang {
  font-size: 11px; font-weight: 600; padding: 4px 8px;
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--teal-dark); text-decoration: none;
}
.dark .lang { color: var(--accent); }
.lang:hover { background: var(--hover-strong); }

/* Primary — design-preview login-submit / settings OK */
.site-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 88px; height: 44px; padding: 0 18px; border-radius: 12px;
  border: none; font-family: inherit; font-size: 14px; font-weight: 700;
  color: #fff; text-decoration: none; cursor: pointer;
  background: var(--grad);
  box-shadow: var(--gloss-highlight), var(--gloss-shadow);
  transition: filter 0.1s ease, transform 0.08s ease, box-shadow 0.08s ease;
}
.site-btn-primary:hover:not(:disabled) { filter: brightness(1.05); }
.site-btn-primary:active:not(:disabled) {
  transform: translateY(1px);
  filter: brightness(0.97);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.35);
}
.site-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; filter: none; transform: none; }
.site-btn-primary.site-btn-compact {
  height: 32px; padding: 0 16px; border-radius: 8px; font-size: 13px;
  border: 1px solid var(--chrome-border);
}

/* Secondary — design-preview settings Cancel */
.site-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--chrome-border); font-family: inherit;
  font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none;
  background: linear-gradient(180deg, var(--toolbar-top), var(--toolbar-bot));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.12s ease, filter 0.1s ease;
}
.site-btn-secondary:hover { background: var(--hover-strong); }
.site-btn-secondary.site-btn-compact {
  height: 32px; border-radius: 8px; font-size: 13px;
}
.dark .site-btn-secondary { box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }

.menu-toggle {
  display: none; background: var(--base-30); border: 1px solid var(--border);
  color: var(--text); border-radius: 6px; padding: 6px 10px; cursor: pointer;
}
.mobile-menu { display: none; flex-direction: column; gap: 2px; padding: 8px 0 12px; border-top: 1px solid var(--border); }
.mobile-menu a { color: var(--text-muted); text-decoration: none; padding: 10px; border-radius: 6px; }
.mobile-menu a:hover { background: var(--hover-strong); color: var(--text); }
.mobile-menu.open { display: flex; }
.icon-btn .theme-dark { display: none; }
.dark .icon-btn .theme-light { display: none; }
.dark .icon-btn .theme-dark { display: inline; }

/* Hero — row 1: copy + feature panel; row 2: full-width demo */
.hero { position: relative; padding: 48px 0 40px; }
/* Green glow blobs — the same light the listing pages carry, so every page shares the mood */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(820px 300px at 16% -60px, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%),
    radial-gradient(520px 280px at 90% 1%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 74%);
}
.dark .hero::before {
  background:
    radial-gradient(820px 300px at 16% -60px, rgba(57, 255, 20, 0.22), transparent 70%),
    radial-gradient(520px 280px at 90% 1%, rgba(57, 255, 20, 0.12), transparent 74%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-intro { margin-bottom: 28px; }
.hero-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}
.hero-copy { min-width: 0; max-width: 560px; }
.hero-side { min-width: 0; }
.hero-side-panel { margin: 0; padding: 16px 18px 14px; }
.hero-side-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--teal-dark); margin-bottom: 12px;
}
.dark .hero-side-title { color: var(--accent); }
.hero-side-list {
  list-style: none; margin: 0 0 14px; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.hero-side-list li {
  font-size: 12px; line-height: 1.45; color: var(--text-muted);
}
.hero-side-list strong { color: var(--text); font-weight: 700; }
.hero-stats-panel {
  margin-top: 4px; padding-top: 12px;
  border-top: 1px dotted var(--border-strong);
  gap: 16px;
}
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px; border-radius: 999px; font-size: 11px;
  border: 1px solid var(--border); color: var(--text-muted);
  background: var(--base-30); margin-bottom: 14px;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--onlight);
}
.hero h1 { font-weight: 700; font-size: clamp(1.85rem, 4.5vw, 2.65rem); line-height: 1.12; margin-bottom: 12px; }
.hero h1 .grad { color: var(--accent-dark); }
.dark .hero h1 .grad { color: var(--accent); }
.hero p.lead { font-size: 15px; color: var(--text-muted); max-width: 540px; margin-bottom: 18px; line-height: 1.5; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: 24px; margin-top: 24px; flex-wrap: wrap; }
.stat .num { font-weight: 700; font-size: 18px; }
.stat .num span { color: var(--accent-dark); }
.dark .stat .num span { color: var(--accent); }
.stat .lbl { color: var(--text-faint); font-size: 11px; margin-top: 2px; }

/* Live ICQ6 demo — contained in site wrap */
.demo-wrap { position: relative; width: 100%; }
.demo-frame {
  display: block; width: 100%; height: min(600px, 80vh); min-height: 440px;
  border: 1px solid var(--window-outer); border-radius: 8px;
  background: var(--sidebar); box-shadow: var(--shadow-popup);
  overflow: hidden;
}
.demo-hint { margin-top: 10px; font-size: 11px; text-align: center; }

/* Sections */
section { padding: 48px 0; }
.sec-head { text-align: center; max-width: 620px; margin: 0 auto 32px; }
.sec-head .section-label {
  display: inline-block; margin-bottom: 10px; padding: 4px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--teal-dark); border: 1px solid var(--border); border-radius: 999px;
  background: color-mix(in srgb, var(--base-30) 92%, transparent);
}
.dark .sec-head .section-label { color: var(--accent); }
.sec-head h2 { font-weight: 700; font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.15; }
.sec-head p { color: var(--text-muted); margin-top: 10px; font-size: 14px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.site-card {
  margin: 0; padding: 16px 18px 18px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.site-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-popup);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--icq-panel-border));
}
.site-card .ic {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: 10px; border-radius: 8px;
  color: var(--teal-dark); background: color-mix(in srgb, var(--accent) 10%, var(--base-30));
  border: 1px solid var(--border);
}
.dark .site-card .ic { color: var(--accent); }
.site-card .ic svg { width: 18px; height: 18px; stroke-width: 2; }
.site-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.site-card p { color: var(--text-muted); font-size: 13px; line-height: 1.45; margin: 0; }
.site-card .card-action { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.site-card .card-alt-link { font-size: 12px; font-weight: 600; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo-panel { margin: 0; padding: 18px 20px; }
.duo-panel h3 { font-size: 15px; font-weight: 700; margin: 8px 0 10px; }
.duo-panel ul { list-style: none; margin: 0; padding: 0; }
.duo-panel li {
  padding: 7px 0; border-bottom: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px;
  display: flex; gap: 8px; align-items: flex-start;
}
.duo-panel li:last-child { border-bottom: none; }
.duo-panel li::before { content: "▸"; color: var(--teal-dark); flex-shrink: 0; }
.dark .duo-panel li::before { color: var(--accent); }

.timeline { position: relative; max-width: 760px; margin: 0 auto; padding: 4px 0; }
.timeline::before {
  content: ""; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    color-mix(in srgb, var(--teal) 70%, var(--accent)) 45%,
    color-mix(in srgb, var(--border-strong) 55%, transparent) 100%
  );
}
.tl-item {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr);
  gap: 0 14px; align-items: start; margin-bottom: 18px;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-mark {
  position: relative; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  color: var(--teal-dark); background: var(--base-30);
  border: 1px solid var(--border);
  box-shadow: var(--inset-shadow), 0 0 0 4px color-mix(in srgb, var(--sidebar) 88%, transparent);
}
.tl-mark svg { width: 18px; height: 18px; stroke-width: 2; }
.tl-shipped .tl-mark {
  color: #fff; background: var(--grad);
  border-color: var(--chrome-border);
  box-shadow: var(--gloss-highlight), var(--gloss-shadow), 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.tl-next .tl-mark {
  color: var(--teal-dark); background: color-mix(in srgb, var(--accent) 12%, var(--base-30));
  border-color: color-mix(in srgb, var(--teal) 35%, var(--border));
}
.tl-later .tl-mark {
  color: var(--text-faint); background: transparent;
  border: 1px dashed var(--border-strong);
  box-shadow: none;
}
.dark .tl-mark { color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--desktop-bg) 90%, transparent); }
.dark .tl-shipped .tl-mark { color: var(--accent-dark); }
.dark .tl-next .tl-mark { background: color-mix(in srgb, var(--accent) 10%, var(--base-20)); }
.dark .tl-later .tl-mark { color: var(--text-muted); }
.tl-body { min-width: 0; padding: 2px 0 4px; }
.tl-item .phase {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 2px;
}
.dark .tl-item .phase { color: var(--accent); }
.tl-later .phase { color: var(--text-faint); }
.dark .tl-later .phase { color: var(--text-muted); }
.tl-item h3 { font-size: 15px; font-weight: 700; margin: 4px 0 6px; }
.tl-item p { color: var(--text-muted); font-size: 13px; max-width: 560px; margin: 0; line-height: 1.45; }
.tl-item .chips { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tl-item .chip {
  font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--teal-dark);
  background: color-mix(in srgb, var(--accent) 10%, var(--base-30));
}
.dark .tl-item .chip {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--base-20));
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
}

.cta-box { max-width: 560px; margin: 0 auto; text-align: center; padding: 24px 22px 22px; }
.cta-box h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.cta-box p { color: var(--text-muted); margin-bottom: 16px; font-size: 14px; }
.invite-form { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; }
.invite-form input { flex: 1; }
.invite-form button { border: none; cursor: pointer; }
.invite-note { margin-top: 12px; color: var(--text-faint); font-size: 11px; }
.invite-note code { color: var(--accent-dark); }
.dark .invite-note code { color: var(--accent); }
.invite-note.is-success { color: var(--teal-dark); font-size: 12px; }
.dark .invite-note.is-success { color: var(--accent); }

.release-note {
  margin-top: 18px; text-align: center; color: var(--text-faint); font-size: 11px;
}
.release-note a { font-weight: 600; }

footer { border-top: 1px solid var(--border); padding: 32px 0 24px; background: color-mix(in srgb, var(--sidebar) 80%, transparent); }
/* Bottom glow — light rising from under the page, mirroring the top blob */
footer { position: relative; }
footer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(900px 300px at 50% 118%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 72%);
}
.dark footer::after { background: radial-gradient(900px 300px at 50% 118%, rgba(57, 255, 20, 0.16), transparent 72%); }
footer > .wrap { position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.foot-brand p { color: var(--text-muted); max-width: 300px; margin-top: 10px; font-size: 12px; }
.foot-col h4 { font-size: 11px; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--teal-dark); }
.dark .foot-col h4 { color: var(--accent); }
.foot-col a { display: block; margin-bottom: 7px; font-size: 12px; }
.foot-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border);
  color: var(--text-faint); font-size: 11px;
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Join page (static/join.html) — same glow so it doesn't look like a different site */
.join-main { position: relative; }
.join-main::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(820px 300px at 20% -90px, color-mix(in srgb, var(--accent) 26%, transparent), transparent 72%);
}
.dark .join-main::before { background: radial-gradient(820px 300px at 20% -90px, rgba(57, 255, 20, 0.16), transparent 72%); }
.join-card { position: relative; z-index: 1; }

/* Doc pages (articles + privacy) — same hero system as the listings */
.page-doc { position: relative; padding: 26px 0 84px; }
.page-doc::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 300px;
  pointer-events: none; z-index: 0;
  background: radial-gradient(820px 300px at 14% -70px, color-mix(in srgb, var(--accent) 26%, transparent), transparent 72%);
}
.page-doc > .wrap { position: relative; z-index: 1; max-width: 780px; }
.page-doc .list-hero { margin: 6px 0 22px; }
.page-doc .list-hero h1 { font-size: clamp(26px, 3.6vw, 37px); }
.page-doc .back-link {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
  font-size: 12.5px; font-weight: 600;
}
.page-doc h2 { font-size: 17px; font-weight: 700; margin: 26px 0 10px; color: var(--text); }
.page-doc h3 { font-size: 14.5px; font-weight: 700; margin: 20px 0 8px; color: var(--text); }
.page-doc p, .page-doc li { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
.page-doc .meta { color: var(--text-muted); font-size: 12.5px; margin: 0; }
.page-doc ul { padding-left: 1.2rem; }
.page-doc code { font-size: 12.5px; color: var(--accent-dark); }
.dark .page-doc code { color: var(--accent); }
.page-doc .post-body { margin-top: 2px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; text-decoration: none; color: var(--text-muted); font-size: 12px; }
.back-link:hover { color: var(--accent-dark); }
.dark .back-link:hover { color: var(--accent); }

/* Blog / content sections */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.blog-card { display: flex; flex-direction: column; text-decoration: none; }
.blog-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.blog-card-cat {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--teal-dark); border: 1px solid var(--border); border-radius: 999px;
  padding: 3px 9px; background: color-mix(in srgb, var(--accent) 8%, var(--base-30));
}
.dark .blog-card-cat { color: var(--accent); }
.blog-card-date { font-size: 11px; color: var(--text-faint); white-space: nowrap; }
.blog-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.blog-card p { color: var(--text-muted); font-size: 13px; line-height: 1.45; margin: 0; }
.blog-foot-link { margin-top: 18px; text-align: center; font-size: 13px; }

.release-list { margin-top: 4px; }
.release-row {
  display: grid; grid-template-columns: 72px 96px minmax(0, 1fr); gap: 12px;
  align-items: center; padding: 12px 14px; margin-bottom: 8px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--base-30);
  text-decoration: none; color: var(--text); transition: transform 0.15s, box-shadow 0.15s;
}
.release-row:hover { transform: translateY(-1px); box-shadow: var(--shadow-popup); }
.release-ver { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; color: var(--accent-dark); }
.dark .release-ver { color: var(--accent); }
.release-date { font-size: 11px; color: var(--text-faint); }
.release-title { font-size: 13px; font-weight: 600; }

.post-body h2 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
.post-body h3 { font-size: 14px; font-weight: 700; margin: 18px 0 6px; }
.post-body strong { color: var(--text); }
.post-body blockquote {
  margin: 14px 0; padding: 10px 16px; border-left: 3px solid var(--teal);
  background: color-mix(in srgb, var(--accent) 6%, var(--base-30));
  border-radius: 0 8px 8px 0; color: var(--text-muted); font-size: 13px;
}
.post-body a { color: var(--teal-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.dark .post-body a { color: var(--accent); }
.post-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; }
.post-body ul, .post-body ol { padding-left: 1.2rem; }
.post-body li { color: var(--text-muted); font-size: 13px; margin-bottom: 6px; }

/* Code blocks in articles — breathing room, monospace rhythm, copy button.
   Chroma paints a Monokai panel with inline background, so the panel gets its
   padding/margin here while the code text is pinned to a lime that reads on it. */
.post-body .highlight, .page-doc .highlight { margin: 18px 0; border-radius: 10px; overflow: hidden; }
.post-body pre, .page-doc pre {
  margin: 18px 0; padding: 14px 16px; border-radius: 10px; overflow-x: auto; tab-size: 4;
  font-size: 12.5px; line-height: 1.7;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
.post-body .highlight pre, .page-doc .highlight pre { margin: 0; border-radius: 0; }
.post-body pre code, .page-doc pre code { color: #86E24A; }
.post-body p code, .post-body li code { padding: 1px 5px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 12%, transparent); }

.code-wrap { position: relative; margin: 18px 0; }
.code-wrap pre, .code-wrap .highlight { margin: 0; }
/* keeps long lines from sliding under the copy button */
.code-wrap pre { padding-right: 72px; }
.code-copy {
  position: absolute; top: 8px; right: 8px; height: 26px; padding: 0 10px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.38);
  color: rgba(255, 255, 255, 0.72); font: inherit; font-size: 11px; font-weight: 600; line-height: 1;
  cursor: pointer; opacity: 0.55; transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.code-wrap:hover .code-copy, .code-copy:focus-visible { opacity: 1; }
.code-copy:hover { background: rgba(0, 0, 0, 0.58); color: #fff; }
.code-copy.is-done { opacity: 1; color: #86E24A; border-color: rgba(134, 226, 74, 0.5); }

@media (max-width: 900px) {
  .hero-intro-grid, .duo, .feature-grid, .foot-grid, .blog-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .hero-intro { margin-bottom: 0; }
  .hero { display: flex; flex-direction: column; gap: 20px; }
  .hero .wrap.demo-wrap { order: -1; }
  .feature-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-frame { border-radius: 12px; }
  nav.links .nav-link { display: none; }
}
.foot-release {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 16px; padding: 10px 0; border-top: 1px dashed var(--border-strong);
  color: var(--text-faint); font-size: 11px;
}
.foot-release-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--teal-dark);
}
.dark .foot-release-label { color: var(--accent); }
.foot-release a { color: var(--text-muted); font-size: 11px; }
.foot-release a:hover { color: var(--accent-dark); }
.dark .foot-release a:hover { color: var(--accent); }
@media (max-width: 767px) {
  .demo-frame {
    height: min(680px, 82vh);
    min-height: 520px;
  }
}
@media (max-width: 640px) {
  .feature-grid, .blog-grid { grid-template-columns: 1fr; }
  .release-row { grid-template-columns: 60px 80px minmax(0, 1fr); gap: 8px; }
  .invite-form { flex-direction: column; }
  .menu-toggle { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Listing pages redesign — /blog/ and /releases/ (EN + RU)
   Wide container, hero, featured card, card grid, release timeline.
   Uses ICQ6 tokens from icq6-base.css; light + dark both covered.
   ============================================================ */

.list-page { position: relative; padding: 26px 0 84px; }
.list-page .wrap { max-width: 1140px; }
.list-page::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 360px;
  pointer-events: none; z-index: 0;
  background: radial-gradient(820px 300px at 16% -60px, color-mix(in srgb, var(--accent) 26%, transparent), transparent 72%);
}
.list-page > .wrap { position: relative; z-index: 1; }

.list-hero { margin: 12px 0 26px; max-width: 780px; }
.list-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--teal-dark);
}
.dark .list-eyebrow { color: var(--accent); }
.list-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent);
}
.list-hero h1 {
  font-size: clamp(30px, 4.2vw, 44px); line-height: 1.06; letter-spacing: -0.022em;
  font-weight: 800; color: var(--text); margin: 0 0 12px;
}
.list-rule { width: 68px; height: 3px; border-radius: 2px; background: var(--grad); margin-bottom: 14px; }
.list-sub { color: var(--text); opacity: 0.86; font-size: 14.5px; line-height: 1.6; margin: 0; max-width: 64ch; }
.list-count { margin-top: 10px; font-size: 11.5px; color: var(--text-muted); }

.badge-cat {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--teal-dark); background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); white-space: nowrap;
}
.dark .badge-cat { color: var(--accent); background: rgba(57, 255, 20, 0.10); border-color: rgba(57, 255, 20, 0.28); }

/* Featured article */
.feat-card {
  display: grid; grid-template-columns: 1.4fr 1fr; overflow: hidden; margin-bottom: 18px;
  text-decoration: none; padding: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.feat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-popup); }
.feat-body { padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 10px; }
.feat-body h2 {
  font-size: clamp(19px, 2.2vw, 26px); line-height: 1.2; font-weight: 800;
  letter-spacing: -0.012em; color: var(--text); margin: 0;
}
.feat-body p { color: var(--text-muted); font-size: 13.5px; line-height: 1.6; margin: 0; }
.feat-art {
  display: grid; place-items: center; min-height: 100%;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 46%, var(--icq-panel-bg)), color-mix(in srgb, var(--teal) 26%, var(--icq-panel-bg)));
  border-left: 1px solid var(--icq-panel-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.feat-art svg { width: 58px; height: 58px; stroke-width: 1.4; color: var(--teal-dark); opacity: 0.92; }
.dark .feat-art { background: linear-gradient(150deg, rgba(57, 255, 20, 0.13), rgba(57, 255, 20, 0.02)); border-left-color: rgba(255, 255, 255, 0.08); }
.dark .feat-art svg { color: var(--accent); }
.feat-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 12px; color: var(--text-muted); }
.feat-meta .dot { opacity: 0.6; }
.feat-cta { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; color: var(--teal-dark); }
.dark .feat-cta { color: var(--accent); }
.feat-card:hover .feat-cta svg { transform: translateX(3px); }
.feat-cta svg { width: 16px; height: 16px; transition: transform 0.16s ease; }

/* Article grid */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.blog-card {
  display: flex; flex-direction: column; overflow: hidden; padding: 0; text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
/* Guard: when the inner body wrapper is missing the card supplies its own padding.
   Listing cards once rendered flush to the border because padding was 0 and the
   wrapper was absent — never let that regress silently. */
.blog-card:not(:has(.blog-card-body)) { padding: 16px 18px 18px; gap: 8px; }
.blog-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-popup);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--icq-panel-border));
}
.blog-art {
  aspect-ratio: 16 / 5; min-height: 84px; display: grid; place-items: center;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 40%, var(--icq-panel-bg)), color-mix(in srgb, var(--teal) 22%, var(--icq-panel-bg)));
  border-bottom: 1px solid var(--icq-panel-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.blog-art svg { width: 30px; height: 30px; stroke-width: 1.5; color: var(--teal-dark); opacity: 0.92; }
.dark .blog-art { background: linear-gradient(140deg, rgba(57, 255, 20, 0.11), rgba(57, 255, 20, 0.015)); border-bottom-color: rgba(255, 255, 255, 0.07); }
.dark .blog-art svg { color: var(--accent); }
.blog-card-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card h3 { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--text); margin: 0; }
.blog-card p { color: var(--text-muted); font-size: 12.8px; line-height: 1.55; margin: 0; }
.card-foot {
  margin-top: auto; padding-top: 10px; display: flex; align-items: center;
  justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--text-muted);
}
.card-arrow { font-weight: 700; font-size: 14px; color: var(--teal-dark); transition: transform 0.16s ease; }
.dark .card-arrow { color: var(--accent); }
.blog-card:hover .card-arrow { transform: translateX(3px); }

/* Callout strip */
.list-callout {
  margin-top: 26px; padding: 16px 18px; border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border: 1px solid var(--icq-panel-border);
  background: linear-gradient(180deg, var(--icq-panel-top) 0%, var(--icq-panel-bg) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.dark .list-callout { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.list-callout strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 3px; }
.list-callout p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }

/* Unified buttons — same anatomy on the landing page and the listing pages.
   Primary: lime gradient + dark text (WCAG-safe). Ghost: toolbar gradient + border. */
.btn-primary, .site-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--chrome-border); font-family: inherit;
  font-size: 13.5px; font-weight: 700; color: #123A00; text-decoration: none;
  white-space: nowrap; background: var(--grad); cursor: pointer;
  box-shadow: var(--gloss-highlight), var(--gloss-shadow);
  transition: filter 0.1s ease, transform 0.08s ease;
}
.dark .btn-primary, .dark .site-btn-primary { color: #0A0A0A; }
.btn-primary:hover:not(:disabled), .site-btn-primary:hover:not(:disabled) { filter: brightness(1.05); }
.btn-primary:active:not(:disabled), .site-btn-primary:active:not(:disabled) { transform: translateY(1px); filter: brightness(0.97); }
.btn-primary:disabled, .site-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; filter: none; transform: none; }
.btn-primary svg, .btn-ghost svg { width: 15px; height: 15px; }

.btn-ghost, .site-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--border-strong); font-family: inherit;
  font-size: 13.5px; font-weight: 700; color: var(--text); text-decoration: none;
  white-space: nowrap; cursor: pointer;
  background: linear-gradient(180deg, var(--toolbar-top), var(--toolbar-bot));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: background 0.12s ease, filter 0.1s ease;
}
.dark .btn-ghost, .dark .site-btn-secondary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.btn-ghost:hover, .site-btn-secondary:hover { filter: brightness(1.03); }

.btn-compact, .site-btn-compact { height: 32px; padding: 0 15px; border-radius: 9px; font-size: 12.5px; }

/* Releases — featured build */
.rel-feat {
  position: relative; overflow: hidden; display: block; text-decoration: none;
  padding: 20px 22px; margin-bottom: 24px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.rel-feat:hover { transform: translateY(-2px); box-shadow: var(--shadow-popup); }
.rel-feat::after {
  content: ""; position: absolute; right: -50px; top: -50px; width: 190px; height: 190px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%);
}
.rel-feat-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rel-ver {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--teal-dark);
}
.dark .rel-ver { color: var(--accent); }
.rel-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; color: #123A00;
  background: var(--grad); border: 1px solid var(--chrome-border);
}
.dark .rel-badge { color: #0A0A0A; }
.rel-date { font-size: 12px; color: var(--text-muted); }
.rel-feat h2 {
  font-size: clamp(18px, 2.1vw, 24px); line-height: 1.22; font-weight: 800;
  letter-spacing: -0.012em; color: var(--text); margin: 0 0 10px; max-width: 46ch;
}
.rel-feat p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); max-width: 70ch; }
.rel-feat h2 a { color: inherit; text-decoration: none; }
.rel-feat h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rel-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

/* Releases — timeline of older builds */
.rel-timeline { position: relative; padding-left: 24px; display: flex; flex-direction: column; gap: 14px; }
.rel-timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, transparent), color-mix(in srgb, var(--accent) 6%, transparent));
}
.rel-item {
  position: relative; display: block; text-decoration: none; padding: 15px 17px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.rel-item::before {
  content: ""; position: absolute; left: -24px; top: 20px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.rel-item:hover {
  transform: translateX(3px); box-shadow: var(--shadow-popup);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--icq-panel-border));
}
.rel-item-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.rel-item .rel-ver { font-size: 15px; }
.rel-item h3 { font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--text); margin: 0 0 6px; }
.rel-item p { margin: 0; font-size: 12.8px; line-height: 1.55; color: var(--text-muted); }

/* Keyboard focus — cards are large links, default outline is lost on green */
.site-card:focus-visible, .feat-card:focus-visible, .blog-card:focus-visible, .rel-item:focus-visible,
.btn-primary:focus-visible, .btn-ghost:focus-visible, .rel-feat h2 a:focus-visible,
.site-btn-primary:focus-visible, .site-btn-secondary:focus-visible {
  outline: 2px solid var(--accent-dark); outline-offset: 2px; border-radius: 12px;
}
.dark .site-card:focus-visible, .dark .feat-card:focus-visible, .dark .blog-card:focus-visible, .dark .rel-item:focus-visible,
.dark .btn-primary:focus-visible, .dark .btn-ghost:focus-visible, .dark .rel-feat h2 a:focus-visible,
.dark .site-btn-primary:focus-visible, .dark .site-btn-secondary:focus-visible {
  outline-color: var(--accent);
}

@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-card { grid-template-columns: 1fr; }
  .feat-art { min-height: 124px; border-left: 0; border-top: 1px solid var(--icq-panel-border); }
  .dark .feat-art { border-top-color: rgba(255, 255, 255, 0.08); }
}
@media (max-width: 640px) {
  .list-page { padding: 18px 0 60px; }
  .list-hero h1 { font-size: 30px; }
  .blog-grid { grid-template-columns: 1fr; }
  .feat-body { padding: 18px 17px 17px; }
  .rel-feat { padding: 16px 16px 18px; }
  .list-callout { flex-direction: column; align-items: flex-start; }
}
