/* ==========================================================================
   Videasy design system — the editorial "in depth" section + shared components.
   Linked from every page as /assets/videasy-design.css (loaded AFTER the
   inline <style> blocks, so these rules win). Brand: near-black #0a0c10,
   lime #bef264, cyan #67e8f9, Space Grotesk display + Inter body.
   ========================================================================== */

/* ---- section frame: gradient hairline on top, room to breathe ---- */
.rich-section { position: relative; padding-top: 8px; }
.rich-section::before {
  content: ""; display: block; height: 1px; margin: 8px 0 56px;
  background: linear-gradient(90deg, transparent, rgba(190,242,100,.55), rgba(103,232,249,.35), transparent);
}

/* ---- hero intro: eyebrow chip, big display heading, lead paragraphs ---- */
.rich-section .rich-hero { position: relative; max-width: 820px; margin-bottom: 52px; }
.rich-section .rich-hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; left: -160px; top: -180px;
  background: radial-gradient(closest-side, rgba(190,242,100,.12), transparent);
  pointer-events: none;
}
.rich-section .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: #bef264; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid rgba(190,242,100,.35); background: rgba(190,242,100,.07);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.rich-section .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: #bef264; }
.rich-section .rich-hero h2 {
  font-family: 'Space Grotesk','Inter',sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.08; letter-spacing: -.03em;
  font-weight: 700; color: #fff; margin: 0 0 20px;
}
.rich-section .rich-hero p { color: #cbd5e1; font-size: 1.125rem; line-height: 1.75; margin: 0 0 16px; }
.rich-section .rich-hero p:last-child { margin-bottom: 0; }

/* ---- article headings: lime tick + display type ---- */
.rich-section > h2 {
  font-family: 'Space Grotesk','Inter',sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.02em; color: #fff;
  margin: 60px 0 26px; display: flex; align-items: center; gap: 14px;
}
.rich-section > h2::before {
  content: ""; flex-shrink: 0; width: 28px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #bef264, #67e8f9);
}
.rich-section > p { color: #cbd5e1; font-size: 1.125rem; line-height: 1.75; margin: 0 0 20px; max-width: 820px; }
.rich-section > p strong { color: #fff; }
.rich-section a { color: #bef264; text-decoration: none; }
.rich-section a:hover { text-decoration: underline; }

/* ---- feature cards: numbered, top accent bar, hover lift ---- */
.rich-section .rich-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px; margin: 8px 0;
  counter-reset: vd-card;
}
@media (min-width: 768px) {
  .rich-section .rich-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rich-section .rich-card {
  counter-increment: vd-card; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #151a26, #12151d);
  border: 1px solid #232a3a; border-radius: 20px; padding: 28px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.rich-section .rich-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #bef264, #67e8f9); opacity: .85;
}
.rich-section .rich-card::after {
  content: "0" counter(vd-card); position: absolute; right: 20px; top: 18px;
  font-family: 'Space Grotesk',sans-serif; font-weight: 700; font-size: .85rem;
  letter-spacing: .12em; color: rgba(190,242,100,.55);
}
.rich-section .rich-card:hover {
  transform: translateY(-4px); border-color: rgba(190,242,100,.55);
  box-shadow: 0 20px 44px rgba(0,0,0,.5), 0 0 0 1px rgba(190,242,100,.2);
}
.rich-section .rich-card h3 {
  font-family: 'Space Grotesk',sans-serif; font-size: 1.3rem; font-weight: 700;
  color: #fff; margin: 0 0 10px; padding-right: 36px;
}
.rich-section .rich-card p { color: #cbd5e1; font-size: .98rem; line-height: 1.65; margin: 0; }
.rich-section .rich-card a { color: #bef264; font-weight: 600; white-space: nowrap; }

/* ---- steps: numbered cards with big lime discs ---- */
.rich-section .step {
  display: flex; gap: 20px; align-items: flex-start;
  background: #12151d; border: 1px solid #232a3a; border-radius: 20px;
  padding: 24px 28px; margin-bottom: 16px;
  transition: border-color .2s ease;
}
.rich-section .step:hover { border-color: rgba(190,242,100,.45); }
.rich-section .step-num {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 9999px;
  background: #bef264; color: #000; font-weight: 800; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk',sans-serif;
  box-shadow: 0 0 0 5px rgba(190,242,100,.14);
}
.rich-section .step p { color: #cbd5e1; font-size: 1.05rem; line-height: 1.7; margin: 0; padding-top: 10px; }
.rich-section .step p strong { color: #fff; }
.rich-section .step code {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px; padding: 2px 8px; font-size: .88em;
  font-family: ui-monospace,'Fira Code',monospace; color: #bef264;
}

/* ---- callout: lime-tinted CTA panel ---- */
.rich-section .callout {
  background: linear-gradient(120deg, rgba(190,242,100,.13), rgba(103,232,249,.06) 60%, transparent);
  border: 1px solid rgba(190,242,100,.4); border-left: 4px solid #bef264; border-radius: 18px;
  padding: 24px 28px; color: #e6e6f0; font-size: 1.08rem; line-height: 1.7; margin: 32px 0 8px;
}
.rich-section .callout strong { color: #bef264; }
