/* ----------------------------------------------------------------
   Teski — case study landing page
   Design tokens alinhados ao produto (paleta roxo-escura + violeta)
---------------------------------------------------------------- */

:root {
  color-scheme: dark;
  --bg: #191622;
  --bg-deep: #14111d;
  --bg-elevated: #1f1a2d;
  --bg-card: #252131;
  --bg-card-2: #2b2538;
  --border: rgba(225, 225, 230, 0.08);
  --border-strong: rgba(225, 225, 230, 0.14);
  --text: #e1e1e6;
  --text-heading: #f0f0f5;
  --text-subtle: #7a708f;
  --accent: #a78bfa;
  --accent-soft: rgba(167, 139, 250, 0.14);
  --accent-strong: #bd93f9;
  --green: #67e480;
  --amber: #e7de79;
  --red: #ff5555;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  --container: 1160px;
  --font: 'Inter Tight', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* ,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(1000px 600px at 85% -10%, rgba(167, 139, 250, 0.12), transparent 60%),
    radial-gradient(800px 500px at -10% 15%, rgba(189, 147, 249, 0.08), transparent 60%);
  background-attachment: fixed;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

h1, h2, h3, h4 {
  color: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 1.1rem + 3.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}

::selection { background: var(--accent); color: var(--bg); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 14px;
  z-index: 99;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ------ Header ------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-heading);
}
.brand-name { font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 0.92rem;
}
.site-nav a {
  color: var(--text-subtle);
  font-weight: 500;
  transition: color 0.2s ease;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--text-heading); }

@media (max-width: 820px) {
  .site-nav { display: none; }
}

@media (max-width: 520px) {
  .header-actions .btn-ghost { display: none; }
}

/* ------ Buttons ------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: #15111f;
  box-shadow: 0 8px 20px rgba(167, 139, 250, 0.25);
}
.btn-primary:hover { background: var(--accent-strong); color: #15111f; }

.btn-ghost {
  background: transparent;
  color: var(--text-heading);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent);
  color: var(--text-heading);
}

/* ------ Hero ------ */
.hero {
  position: relative;
  padding: clamp(56px, 6vw, 96px) 0 clamp(24px, 4vw, 40px);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -10% 40% 20% -10%;
  background: radial-gradient(closest-side, rgba(167, 139, 250, 0.25), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow.muted { color: var(--text-subtle); }
.eyebrow-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero-title { font-size: clamp(2.2rem, 1rem + 4vw, 4rem); margin-bottom: 18px; }
.hero-title .accent { color: var(--accent); }

.hero-lead {
  max-width: 640px;
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.88;
}

.hero-meta {
  margin: 32px 0 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-card) 60%, transparent);
}
.hero-meta div { min-width: 0; }
.hero-meta dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-subtle);
  margin-bottom: 6px;
}
.hero-meta dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-heading);
  font-weight: 600;
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pill-green {
  background: rgba(103, 228, 128, 0.14);
  color: var(--green);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 720px) {
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------ Hero preview window ------ */
.hero-preview {
  position: relative;
  z-index: 1;
  margin-top: 56px;
}
.window {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-card));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-deep) 70%, transparent);
}
.dot { width: 11px; height: 11px; border-radius: 999px; display: inline-block; }
.dot.red { background: #ff5f57; }
.dot.amber { background: #febc2e; }
.dot.green { background: #28c840; }
.window-url {
  margin-left: 14px;
  font-size: 0.82rem;
  color: var(--text-subtle);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.window-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 380px;
}

.w-sidebar {
  background: color-mix(in srgb, var(--bg-deep) 80%, var(--bg-card));
  padding: 18px 14px;
  border-right: 1px solid var(--border);
}
.w-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
}
.w-dot {
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.6);
}
.w-sidebar ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.w-sidebar li {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text-subtle);
  cursor: default;
}
.w-sidebar li.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.w-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  overflow: hidden;
}
.w-col {
  background: color-mix(in srgb, var(--bg) 60%, var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  min-width: 0;
}
.w-col header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 10px;
}
.w-col header span {
  background: rgba(255,255,255,0.04);
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.72rem;
}
.card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--text-heading);
  margin-bottom: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.card.small { font-size: 0.82rem; opacity: 0.82; }
.card.done {
  opacity: 0.6;
  text-decoration: line-through;
  color: var(--text-subtle);
}
.card.with-tag { display: grid; gap: 8px; }
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
}
.tag.violet { background: rgba(167, 139, 250, 0.16); color: var(--accent); }
.tag.green { background: rgba(103, 228, 128, 0.16); color: var(--green); }
.tag.amber { background: rgba(231, 222, 121, 0.18); color: var(--amber); }

@media (max-width: 880px) {
  .window-body { grid-template-columns: 1fr; }
  .w-sidebar { display: none; }
  .w-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .w-board { grid-template-columns: 1fr; }
}

/* ------ Sections ------ */
.section {
  padding: clamp(64px, 7vw, 112px) 0;
  position: relative;
}
.section.bg-elevated {
  background: linear-gradient(180deg, var(--bg-deep), var(--bg));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}
.section-sub {
  color: var(--text-subtle);
  font-size: 1.05rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
}

.prose p { color: var(--text); font-size: 1.02rem; }
.prose strong { color: var(--text-heading); }
.bullets {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ------ Pillars ------ */
.pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pillars li {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pillars li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.pillar-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 10px;
}
.pillars h3 { font-size: 1.15rem; }
.pillars p { color: var(--text-subtle); margin: 0; }

@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ------ Features ------ */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-soft);
  margin-bottom: 16px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--text-subtle); margin: 0; }

@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }

/* ------ Stack ------ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.stack-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.stack-card h3 {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.stack-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.stack-card li {
  font-size: 0.98rem;
  color: var(--text);
  padding-left: 18px;
  position: relative;
}
.stack-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.7;
}
.stack-card strong { color: var(--text-heading); }

@media (max-width: 820px) { .stack-grid { grid-template-columns: 1fr; } }

/* ------ Swatches ------ */
.swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.swatch {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--bg-card);
}
.swatch span {
  display: block;
  height: 48px;
  border-radius: 8px;
  background: var(--c);
  margin-bottom: 10px;
  border: 1px solid var(--border);
}
.swatch b { display: block; font-size: 0.9rem; color: var(--text-heading); }
.swatch code {
  background: transparent;
  color: var(--text-subtle);
  padding: 0;
  font-size: 0.82rem;
}

@media (max-width: 600px) { .swatches { grid-template-columns: repeat(2, 1fr); } }

/* ------ Metrics ------ */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 36px;
}
.metrics > div {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.metrics dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-subtle);
  margin-bottom: 10px;
}
.metrics dd.num {
  margin: 0 0 8px;
  font-size: clamp(2rem, 1rem + 2.8vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.metrics p {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.92rem;
}

@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .metrics { grid-template-columns: 1fr; } }

/* ------ Quote ------ */
.quote {
  margin: 0;
  padding: 28px 32px;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--bg-card) 70%, transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote p {
  font-size: 1.1rem;
  color: var(--text-heading);
  font-style: italic;
  margin: 0 0 10px;
}
.quote footer {
  color: var(--text-subtle);
  font-size: 0.9rem;
}

/* ------ FAQ ------ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-card) 70%, transparent);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item[open] {
  border-color: var(--border-strong);
  background: var(--bg-card);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: var(--text-heading);
  font-weight: 600;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: var(--radius);
}
.faq-q { flex: 1; }
.faq-chevron {
  flex: none;
  color: var(--text-subtle);
  transition: transform 0.2s ease, color 0.2s ease;
}
.faq-item[open] .faq-chevron {
  transform: rotate(90deg);
  color: var(--accent);
}
.faq-a {
  padding: 0 22px 20px;
  color: var(--text);
}
.faq-a p {
  margin: 0;
  color: var(--text);
  opacity: 0.92;
  line-height: 1.65;
}
@media (max-width: 520px) {
  .faq-item summary { padding: 16px 18px; font-size: 0.95rem; }
  .faq-a { padding: 0 18px 18px; }
}

/* ------ CTA ------ */
.cta-section {
  padding: clamp(56px, 7vw, 96px) 0;
}
.cta-inner {
  max-width: 680px;
  text-align: center;
  margin: 0 auto;
  padding: 48px 32px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(167, 139, 250, 0.18), transparent 70%),
    linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
}
.cta-inner h2 { margin-bottom: 10px; }
.cta-inner p {
  color: var(--text-subtle);
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.cta-inner .hero-actions { justify-content: center; }
.cta-inner .eyebrow { justify-content: center; }

/* ------ Lead form ------ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}
.lead-input {
  appearance: none;
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--text-heading);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lead-input::placeholder { color: var(--text-subtle); }
.lead-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.lead-input:disabled { opacity: 0.55; cursor: not-allowed; }

.lead-form .btn { height: 100%; }

.lead-hint {
  grid-column: 1 / -1;
  margin: 4px 4px 0;
  font-size: 0.85rem;
  color: var(--text-subtle);
  text-align: left;
}
.lead-success,
.lead-error {
  grid-column: 1 / -1;
  margin: 6px 4px 0;
  font-size: 0.92rem;
  text-align: left;
}
.lead-success {
  color: var(--green);
}
.lead-error {
  color: var(--red);
}
.lead-form.is-submitted .lead-input {
  border-color: var(--green);
}

@media (max-width: 540px) {
  .lead-form { grid-template-columns: 1fr; }
  .lead-form .btn { width: 100%; }
}

/* ------ Footer ------ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-deep);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-heading);
  font-weight: 600;
}
.footer-note { margin: 0; color: var(--text-subtle); font-size: 0.9rem; }
.site-footer nav { display: flex; gap: 18px; font-size: 0.92rem; }
.site-footer nav a { color: var(--text-subtle); }
.site-footer nav a:hover { color: var(--text-heading); }

@media (max-width: 620px) {
  .footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ------ Novidades / Updates ------ */
.updates-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.update-card {
  grid-column: span 2;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.update-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(167, 139, 250, 0.12);
}
/* Centra o 4º e 5º cards na segunda linha */
.update-card:nth-child(4) { grid-column: 2 / span 2; }
.update-card:nth-child(5) { grid-column: 4 / span 2; }
/* Stagger de entrada */
.update-card:nth-child(1).reveal { transition-delay: 0ms; }
.update-card:nth-child(2).reveal { transition-delay: 80ms; }
.update-card:nth-child(3).reveal { transition-delay: 160ms; }
.update-card:nth-child(4).reveal { transition-delay: 60ms; }
.update-card:nth-child(5).reveal { transition-delay: 140ms; }

.update-preview {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-deep) 80%, var(--bg));
  padding: 14px;
  display: flex;
  align-items: stretch;
}

.update-mini-window {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
  font-size: 0.8rem;
}

.update-mini-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
}

.mini-dot { width: 7px; height: 7px; border-radius: 999px; flex-shrink: 0; }
.mini-dot.red   { background: #ff5f57; }
.mini-dot.amber { background: #febc2e; }
.mini-dot.green { background: #28c840; }

.update-mini-url {
  margin-left: 8px;
  font-size: 0.68rem;
  color: var(--text-subtle);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.update-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.update-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 9px;
  border-radius: 999px;
  width: fit-content;
}

.update-body .feature-icon { margin-bottom: 0; }
.update-body h3 { margin-bottom: 0; font-size: 1.05rem; }
.update-body p  { margin: 0; color: var(--text-subtle); font-size: 0.93rem; line-height: 1.5; }

/* ---- Kanban mini mockup ---- */
.um-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 10px;
}

.um-col {
  background: color-mix(in srgb, var(--bg) 70%, var(--bg-card));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px;
}

.um-col--cancelled {
  background: color-mix(in srgb, rgba(255,85,85,0.06) 100%, transparent);
  border-color: rgba(255, 85, 85, 0.22);
}

.um-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 6px;
}
.um-col-head span {
  background: rgba(255,255,255,0.05);
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 0.58rem;
  color: var(--text);
}
.um-col-head--cancelled { color: rgba(255, 85, 85, 0.8); }
.um-badge-red {
  background: rgba(255, 85, 85, 0.15);
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 0.58rem;
  color: var(--red);
}

.um-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 0.7rem;
  color: var(--text-heading);
  margin-bottom: 5px;
  line-height: 1.3;
}
.um-card.small { font-size: 0.64rem; opacity: 0.72; }
.um-card.done  { opacity: 0.45; text-decoration: line-through; color: var(--text-subtle); }
.um-card--cancelled {
  background: color-mix(in srgb, rgba(255,85,85,0.08) 100%, transparent);
  border-color: rgba(255, 85, 85, 0.2);
  color: rgba(255, 85, 85, 0.72);
  text-decoration: line-through;
}

/* ---- Chat mini mockup ---- */
.um-chat {
  padding: 10px;
  display: grid;
  gap: 8px;
}
.um-msg {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.um-msg--self { justify-content: flex-end; }

.um-avatar {
  width: 22px; height: 22px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.54rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0;
}

.um-bubble {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 10px 10px 10px 3px;
  padding: 6px 9px;
  font-size: 0.72rem;
  color: var(--text);
  line-height: 1.4;
  max-width: 82%;
}
.um-bubble--self {
  background: var(--accent-soft);
  border-color: rgba(167, 139, 250, 0.25);
  border-radius: 10px 10px 3px 10px;
}

.um-mention {
  color: var(--accent);
  font-weight: 600;
  animation: um-mention-pulse 2.4s ease-in-out infinite;
}
@keyframes um-mention-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; text-shadow: 0 0 8px rgba(167, 139, 250, 0.55); }
}

.um-mention-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.2);
  width: fit-content;
}

/* ---- Notification mini mockup ---- */
.um-notif-panel { padding: 10px; }

.um-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 7px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
}
.um-notif-count {
  background: var(--accent);
  color: #15111f;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
}

.um-notif-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  border-radius: 7px;
  margin-bottom: 3px;
  border: 1px solid transparent;
}
.um-notif-item--active {
  background: var(--accent-soft);
  border-color: rgba(167, 139, 250, 0.22);
  cursor: pointer;
  animation: um-notif-glow 2.6s ease-in-out infinite;
}
@keyframes um-notif-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
  50% { box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.14); }
}

.um-notif-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}
.um-notif-dot--read { background: var(--border-strong); }

.um-notif-content { flex: 1; min-width: 0; }
.um-notif-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.um-notif-sub { font-size: 0.6rem; color: var(--text-subtle); margin-top: 1px; }
.um-notif-arrow { color: var(--accent); flex-shrink: 0; }

/* ---- Finance mini mockup ---- */
.um-finance { padding: 10px; }

.um-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 8px;
}
.um-kpi {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.um-kpi-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
}
.um-kpi-value {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.um-top-list {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 9px;
  display: grid;
  gap: 4px;
}
.um-top-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  margin-bottom: 3px;
}
.um-top-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: var(--text);
  font-weight: 500;
}

/* ---- Upload mini mockup ---- */
.um-upload { padding: 10px; }

.um-file-list { display: grid; gap: 6px; margin-bottom: 8px; }

.um-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-subtle);
}
.um-file-item--error {
  border-color: rgba(255, 85, 85, 0.3);
  background: color-mix(in srgb, rgba(255,85,85,0.06) 100%, transparent);
}

.um-file-info { flex: 1; min-width: 0; display: grid; gap: 1px; }
.um-file-name {
  font-size: 0.68rem;
  color: var(--text-heading);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.um-file-meta { font-size: 0.6rem; color: var(--text-subtle); }
.um-file-meta--error { color: var(--red); }
.um-file-ok { color: var(--green); flex-shrink: 0; }
.um-file-x  { color: var(--red);   flex-shrink: 0; }

.um-upload-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: var(--text-subtle);
  padding: 4px 2px 0;
}
.um-upload-footer strong { color: var(--text-heading); }

/* ---- Version group ---- */
.updates-version-group { display: grid; gap: 24px; }
.updates-version-group + .updates-version-group { margin-top: 48px; }

.updates-version-label {
  display: flex;
  align-items: center;
  gap: 14px;
}

.update-version-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(167, 139, 250, 0.22);
  padding: 3px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.update-version-date {
  font-size: 0.82rem;
  color: var(--text-subtle);
  white-space: nowrap;
}

.update-version-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Changelog ─────────────────────────────────────────────────────────── */
.changelog {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--border);
}

.changelog-entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.changelog-aside {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 18px;
}

.changelog-tag {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(167, 139, 250, 0.22);
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
}

.changelog-date {
  font-size: 0.8rem;
  color: var(--text-subtle);
  padding-left: 2px;
}

.changelog-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changelog-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.changelog-item:first-child { padding-top: 0; }
.changelog-item:last-child  { border-bottom: none; padding-bottom: 0; }

.cl-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  width: 90px;
  justify-content: center;
  white-space: nowrap;
}

.cl-badge--purple {
  color: #c4b5fd;
  background: rgba(147, 51, 234, 0.14);
}

.cl-badge--green {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.12);
}

.cl-badge--amber {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
}

.cl-text {
  flex: 1;
  min-width: 0;
}

.cl-text strong {
  display: block;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 3px;
}

.cl-text p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-subtle);
  line-height: 1.55;
}

.cl-text code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.82em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1px 5px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .changelog-entry {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .changelog-aside { padding-top: 0; flex-direction: row; align-items: center; gap: 12px; }
}

/* ---- Taska mini mockup ---- */
.um-taska-panel {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.um-taska-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.um-taska-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1a0a2e;
  border: 1px solid rgba(167,139,250,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.um-taska-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 4px;
}

.um-taska-beta {
  font-size: 0.48rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(245,158,11,0.18);
  color: #fbbf24;
  padding: 1px 4px;
  border-radius: 999px;
}

.um-taska-sub {
  font-size: 0.55rem;
  color: var(--text-subtle);
  margin-top: 1px;
}

.um-taska-msgs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.um-taska-msg {
  font-size: 0.6rem;
  line-height: 1.4;
  padding: 5px 8px;
  border-radius: 10px;
  max-width: 92%;
}

.um-taska-msg--user {
  background: #9333ea;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.um-taska-msg--bot {
  background: rgba(255,255,255,0.07);
  color: var(--text-body);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.um-taska-action {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.55rem;
  color: #a78bfa;
  background: rgba(147,51,234,0.12);
  border: 1px solid rgba(147,51,234,0.22);
  padding: 4px 8px;
  border-radius: 8px;
  align-self: flex-start;
}

.um-taska-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.um-chip {
  font-size: 0.52rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-subtle);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.um-taska-greeting {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(167,139,250,0.08);
  border-radius: 8px;
  border: 1px solid rgba(167,139,250,0.15);
}

.um-taska-greeting-icon { font-size: 1rem; }

.um-taska-greeting-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-heading);
}

/* ── purple badge variant ── */
.update-badge--purple {
  color: #c4b5fd;
  background: rgba(147,51,234,0.14);
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .updates-grid { grid-template-columns: repeat(2, 1fr); }
  .update-card,
  .update-card:nth-child(4),
  .update-card:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 560px) {
  .updates-grid { grid-template-columns: 1fr; }
}

/* ------ Reveal animation ------ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
