/* ============================================================
   Kaduceo — shared design system
   Dark, executive, precise. Brand accent: #1AE5BE (mint)
   ============================================================ */

:root {
  --bg: #070c12;
  --bg-soft: #0a1118;
  --surface: #0e1721;
  --surface-2: #13202d;
  --border: rgba(148, 184, 209, 0.14);
  --border-strong: rgba(148, 184, 209, 0.28);
  --text: #e9f1f7;
  --muted: #9fb2c3;
  --faint: #6b7f92;
  --accent: #1ae5be;
  --accent-soft: rgba(26, 229, 190, 0.12);
  --accent-ink: #04231b;
  --cyan: #4cc3f7;
  --radius: 14px;
  --radius-lg: 22px;
  --nav-h: 76px;
  --font-display: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
}

/* ---------- Reset / base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; }

::selection { background: rgba(26, 229, 190, 0.3); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }

.lede {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--muted);
  max-width: 62ch;
}

.section-head { max-width: 720px; margin-bottom: 3rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--accent);
  opacity: 0.7;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.975rem;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 28px -10px rgba(26, 229, 190, 0.55);
}

.btn-primary:hover {
  background: #3cf0cd;
  box-shadow: 0 12px 34px -10px rgba(26, 229, 190, 0.7);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(7, 12, 18, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
}

.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  margin-left: auto;
}

.nav-links a:not(.btn) {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover { color: var(--text); }

.nav-cta { margin-left: 0.4rem; padding: 0.7rem 1.25rem; font-size: 0.9rem; }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-switch a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--faint);
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch a:hover { color: var(--text); }

.lang-switch a[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg { width: 20px; height: 20px; stroke: var(--text); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(7, 12, 18, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }

  .nav-links a:not(.btn) { padding: 0.9rem 0.25rem; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav-cta { margin: 1.1rem 0 0; justify-content: center; }

  .lang-switch { align-self: flex-start; margin-top: 1rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(4rem, 9vh, 7.5rem)) 0 clamp(3.5rem, 8vh, 6rem);
  overflow: hidden;
}

.hero::before {
  /* soft radial glow */
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 130%;
  background:
    radial-gradient(52% 46% at 68% 30%, rgba(26, 229, 190, 0.13), transparent 70%),
    radial-gradient(40% 38% at 22% 18%, rgba(76, 195, 247, 0.09), transparent 70%);
  pointer-events: none;
}

.hero::after {
  /* fine grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 184, 209, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 184, 209, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(75% 65% at 50% 30%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 30%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 820px; }

.hero .lede { margin-bottom: 2.4rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(26, 229, 190, 0.9);
}

/* ---------- Stats bar ---------- */

.stats {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 2rem 1.5rem;
  border-left: 1px solid var(--border);
}

.stat:first-child { border-left: none; }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.stat-value .unit { color: var(--accent); font-size: 0.72em; }

.stat-label {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid rgba(26, 229, 190, 0.25);
  margin-bottom: 1.2rem;
}

.card .icon svg { width: 23px; height: 23px; stroke: var(--accent); fill: none; stroke-width: 1.7; }

.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--muted); font-size: 0.975rem; margin: 0; }

.card .num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.9rem;
}

/* ---------- Steps (method) ---------- */

.steps { counter-reset: step; display: grid; gap: 1.25rem; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.9rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(26, 229, 190, 0.65);
}

.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.975rem; }

.step .tag {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

@media (max-width: 640px) {
  .step { grid-template-columns: 1fr; gap: 0.8rem; }
  .step-num { font-size: 2.2rem; }
}

/* ---------- Split (text + panel) ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

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

.panel {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
}

.panel h3 { margin-bottom: 1.2rem; }

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

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.975rem;
}

.check-list svg {
  flex: none;
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  margin-top: 3px;
}

/* ---------- Quote / proof band ---------- */

.proof {
  border: 1px solid rgba(26, 229, 190, 0.28);
  background:
    radial-gradient(120% 160% at 85% -20%, rgba(26, 229, 190, 0.14), transparent 55%),
    var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.2rem);
}

.proof blockquote {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.proof blockquote em { color: var(--accent); font-style: normal; }

.proof figcaption { color: var(--muted); font-size: 0.95rem; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0.8rem; max-width: 820px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1.4rem;
  transition: border-color 0.2s ease;
}

.faq details[open] { border-color: var(--border-strong); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent-soft); }

.faq .faq-a { padding: 0 0 1.3rem; color: var(--muted); font-size: 0.975rem; max-width: 68ch; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(26, 229, 190, 0.3);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(90% 140% at 15% -30%, rgba(26, 229, 190, 0.2), transparent 55%),
    linear-gradient(150deg, #0d1a1c, var(--surface) 60%);
}

.cta-band h2 { max-width: 22ch; }
.cta-band .lede { margin-bottom: 2rem; }

/* ---------- Contact / form ---------- */

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-lines { display: grid; gap: 1.1rem; margin-top: 1.6rem; }

.contact-line {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.975rem;
}

.contact-line svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.8; flex: none; }
.contact-line a:hover { color: var(--accent); }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  gap: 1.1rem;
}

.field { display: grid; gap: 0.45rem; }

.field label { font-size: 0.875rem; font-weight: 600; color: var(--muted); }

.field input,
.field textarea,
.field select {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 0.975rem;
  padding: 0.8rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.field textarea { resize: vertical; min-height: 120px; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 229, 190, 0.15);
}

.form-note { font-size: 0.8rem; color: var(--faint); margin: 0; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 3.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.8rem;
}

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer .brand img { height: 26px; }

.footer-tagline { color: var(--muted); font-size: 0.95rem; max-width: 34ch; margin-top: 1rem; }

.footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1rem;
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer ul a { color: var(--muted); font-size: 0.95rem; transition: color 0.15s ease; }
.footer ul a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--faint);
  font-size: 0.85rem;
}

/* ---------- Listing pages (blog & publications) ---------- */

.page-head {
  position: relative;
  padding: calc(var(--nav-h) + clamp(3.5rem, 8vh, 6rem)) 0 clamp(2.5rem, 5vh, 3.75rem);
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 130%;
  background:
    radial-gradient(52% 46% at 68% 30%, rgba(26, 229, 190, 0.13), transparent 70%),
    radial-gradient(40% 38% at 22% 18%, rgba(76, 195, 247, 0.09), transparent 70%);
  pointer-events: none;
}

.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 184, 209, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 184, 209, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(75% 65% at 50% 30%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 30%, black 30%, transparent 100%);
  pointer-events: none;
}

.page-head .container { position: relative; z-index: 1; }

.listing { padding-bottom: clamp(4rem, 9vw, 7rem); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.post-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; padding: 1.7rem 1.6rem; }

.card-link {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card-link .arrow { transition: transform 0.18s ease; }
.card-link:hover .arrow { transform: translateX(3px); }

.post-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(26, 229, 190, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

.post-card h3 { font-size: 1.125rem; margin: 0; }
.post-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.empty-state .icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid rgba(26, 229, 190, 0.25);
  margin: 0 auto 1.4rem;
}

.empty-state .icon svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.7; }
.empty-state h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.empty-state p { color: var(--muted); max-width: 48ch; margin-inline: auto; }

/* ---------- Article pages ---------- */

.page-head--article { padding-bottom: clamp(2rem, 4vh, 3rem); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.6rem;
  transition: color 0.15s ease;
}

.back-link:hover { color: var(--accent); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.article-chips { display: inline-flex; flex-wrap: wrap; gap: 0.45rem; }

.chip {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
}

.article-main { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem); }

.article-body { max-width: 780px; }

.article-body h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  margin: 2.6rem 0 1rem;
}

.article-body h3 { font-size: 1.25rem; margin: 2.2rem 0 0.8rem; }
.article-body h4 { font-size: 1.1rem; margin: 1.8rem 0 0.7rem; }
.article-body h5 { font-size: 1rem; margin: 1.6rem 0 0.6rem; color: var(--muted); }

.article-body p { margin: 0 0 1.15rem; line-height: 1.75; }

.article-body ul, .article-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.45rem;
  color: var(--text);
}

.article-body li::marker { color: var(--accent); }

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(26, 229, 190, 0.4);
}

.article-body a:hover { text-decoration-color: var(--accent); }

.article-body img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 1.6rem 0;
}

.article-body figure { margin: 1.8rem 0; }

.article-body figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--faint);
  line-height: 1.5;
}

.article-body blockquote {
  margin: 1.6rem 0;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body blockquote p { margin: 0; color: var(--muted); }

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

.article-body th, .article-body td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--surface-2);
  font-weight: 600;
}

.article-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
  font-size: 0.875rem;
}

.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
}

.embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.8rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-video {
  width: 100%;
  margin: 1.8rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #000;
}

.media-fallback { font-size: 0.9rem; color: var(--muted); }

.article-end { margin-top: 3rem; }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0s);
}

.reveal.in { opacity: 1; transform: none; }

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