/* ==========================================================================
   Akshay Animated DSA — shared styles
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #060a18;
  --bg-elevated: #0b1228;
  --surface: #0f1833;
  --surface-2: #142045;
  --border: rgba(125, 165, 255, 0.14);
  --border-strong: rgba(125, 165, 255, 0.28);

  --text: #e8edfb;
  --text-muted: #9aa6c7;
  --text-dim: #6a769a;

  --cyan: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  --pink: #f472b6;
  --violet: #a78bfa;
  --red: #f87171;

  --gradient: linear-gradient(120deg, var(--cyan), var(--green));
  --glow-cyan: 0 0 24px rgba(34, 211, 238, 0.35);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

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

p {
  margin: 0 0 1em;
}

code,
.mono {
  font-family: var(--font-mono);
}

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

.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section {
  padding-block: clamp(72px, 10vw, 120px);
  position: relative;
}

.section--alt {
  background: linear-gradient(180deg, transparent, var(--bg-elevated) 12%, var(--bg-elevated) 88%, transparent);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  background: var(--gradient);
  color: #04121a;
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(34, 211, 238, 0.42);
}

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

.btn--ghost:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  transform: translateY(-2px);
}

.text-link {
  align-self: center;
  font-size: 0.93rem;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border-strong);
  transition: color 0.2s, border-color 0.2s;
}

.text-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.9rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(6, 10, 24, 0.78);
  backdrop-filter: blur(14px);
  border-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.45));
}

.brand span small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-block: 0;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.93rem;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

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

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: auto;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 72px 0 auto;
    background: rgba(6, 10, 24, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 16px var(--gutter) 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.3s var(--ease);
  }

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

  .nav-links {
    flex-direction: column;
    margin: 0;
  }

  .nav-links a {
    display: block;
    padding: 12px 14px;
    font-size: 1.05rem;
  }

  .nav-actions .btn {
    flex: 1;
  }
}

@media (min-width: 961px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 75% 40%, rgba(34, 211, 238, 0.14), transparent 70%),
    radial-gradient(45% 45% at 15% 80%, rgba(52, 211, 153, 0.1), transparent 70%),
    linear-gradient(180deg, transparent 70%, var(--bg));
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 700;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 580px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(34, 211, 238, 0.06);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.badge b {
  background: var(--gradient);
  color: #04121a;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(20px, 4vw, 40px);
  justify-content: start;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.1;
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Hero visual: logo with orbiting data chips */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
}

.hero-visual .logo-glow {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero-visual .logo-glow img {
  width: 100%;
  filter: drop-shadow(0 0 40px rgba(34, 211, 238, 0.45));
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--border-strong);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}

.orbit--inner {
  inset: 8%;
  animation-duration: 28s;
  animation-direction: reverse;
  border-style: dotted;
}

.orbit-chip {
  position: absolute;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: spin 40s linear infinite reverse;
}

.orbit--inner .orbit-chip {
  animation-duration: 28s;
  animation-direction: normal;
}

.orbit-chip i {
  font-style: normal;
  color: var(--cyan);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  50% { transform: translateY(-14px); }
}

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

  .hero-visual {
    max-width: 340px;
    order: -1;
  }

  .stats {
    grid-template-columns: repeat(2, auto);
  }
}

/* ---------- Topic marquee ---------- */
.marquee {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-track span {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 48px;
}

.marquee-track span::after {
  content: "◆";
  color: var(--cyan);
  font-size: 0.6rem;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  position: relative;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

.card:hover {
  border-color: var(--border-strong);
}

/* ---------- Visualizer ---------- */
.viz {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), var(--glow-cyan);
}

.viz-tabs {
  display: flex;
  gap: 4px;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.viz-tab {
  flex: none;
  padding: 9px 16px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: 500 0.9rem var(--font-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.viz-tab:hover {
  color: var(--text);
}

.viz-tab[aria-selected="true"] {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.viz-stage {
  padding: clamp(20px, 4vw, 40px) max(clamp(20px, 4vw, 40px), (100% - 860px) / 2);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  background:
    radial-gradient(circle at 1px 1px, rgba(125, 165, 255, 0.08) 1px, transparent 0) 0 0 / 22px 22px;
}

.viz-idea {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.viz-complexity {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.08);
}

.viz-note {
  min-height: 3.2em;
  font-size: 0.98rem;
  color: var(--text);
  padding: 12px 16px;
  border-left: 3px solid var(--cyan);
  background: rgba(34, 211, 238, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.viz-vars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.viz-var {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.viz-var b {
  color: var(--text);
  font-weight: 600;
}

.viz-var.is-changed {
  animation: pulse-var 0.6s var(--ease);
}

@keyframes pulse-var {
  30% { border-color: var(--amber); color: var(--amber); transform: scale(1.06); }
}

/* Array renderer */
.arr {
  --n: 8;
  position: relative;
  padding: 34px 0 70px;
}

.arr-cells {
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  gap: 6px;
  position: relative;
}

.arr-cell {
  aspect-ratio: 1;
  max-height: 68px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(0.8rem, 1.8vw, 1.05rem);
  position: relative;
  transition: background 0.35s, opacity 0.35s, transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.arr-cell small {
  position: absolute;
  top: -22px;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-dim);
}

.arr-cell.is-dim {
  opacity: 0.28;
}

.arr-cell.is-active {
  border-color: var(--amber);
  background: rgba(251, 191, 36, 0.16);
  transform: translateY(-4px);
}

.arr-cell.is-found {
  border-color: var(--green);
  background: rgba(52, 211, 153, 0.22);
  box-shadow: 0 0 22px rgba(52, 211, 153, 0.45);
  transform: translateY(-6px) scale(1.06);
}

.arr-window {
  position: absolute;
  top: -6px;
  bottom: -6px;
  border: 2px solid var(--cyan);
  border-radius: 14px;
  box-shadow: var(--glow-cyan);
  transition: left 0.45s var(--ease), width 0.45s var(--ease), opacity 0.3s;
  pointer-events: none;
}

.arr-pointer {
  position: absolute;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  transition: left 0.45s var(--ease), bottom 0.3s var(--ease), opacity 0.3s;
  color: var(--ptr, var(--cyan));
}

.arr-pointer::before {
  content: "";
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-bottom: 9px solid currentColor;
  margin-bottom: 2px;
}

.arr-pointer.is-stacked::before {
  display: none;
}

/* Graph renderer */
.graph svg {
  width: 100%;
  height: auto;
  max-height: 260px;
  overflow: visible;
}

.graph .edge {
  stroke: var(--border-strong);
  stroke-width: 2;
  transition: stroke 0.4s, stroke-width 0.4s;
}

.graph .edge.is-tree {
  stroke: var(--cyan);
  stroke-width: 3;
}

.graph .edge.is-checking {
  stroke: var(--amber);
  stroke-width: 3;
}

.graph .node circle {
  fill: var(--surface-2);
  stroke: var(--border-strong);
  stroke-width: 2;
  transition: fill 0.4s, stroke 0.4s;
}

.graph .node text {
  fill: var(--text);
  font: 600 14px var(--font-mono);
  text-anchor: middle;
  dominant-baseline: central;
}

.graph .node.is-queued circle {
  stroke: var(--cyan);
  fill: rgba(34, 211, 238, 0.18);
}

.graph .node.is-visited circle {
  stroke: var(--green);
  fill: rgba(52, 211, 153, 0.22);
}

.graph .node.is-current circle {
  stroke: var(--amber);
  fill: rgba(251, 191, 36, 0.3);
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.6));
}

.queue {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  min-height: 36px;
}

.queue-item {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  color: var(--text);
  animation: pop-in 0.35s var(--ease);
}

@keyframes pop-in {
  from { transform: scale(0.4); opacity: 0; }
}

/* Syntax colours (used by code snippets around the site) */
.tok-kw { color: #c792ea; }
.tok-type { color: #82aaff; }
.tok-num { color: #f78c6c; }
.tok-fn { color: #7fdbca; }
.tok-com { color: #637199; font-style: italic; }

.viz-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  border-color: var(--cyan);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn--play {
  background: var(--gradient);
  color: #04121a;
  border: 0;
}

.viz-progress {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
}

.viz-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient);
  transition: width 0.3s var(--ease);
}

.viz-step {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  min-width: 4.5em;
  text-align: right;
}

/* ---------- Compare (traditional vs animated) ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare .card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.compare-media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  position: relative;
}

/* Left: the wall of code */
.compare-media--code {
  background: #070c1d;
}

.wall-code {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 1vw, 0.74rem);
  line-height: 1.55;
  color: #c6d0ee;
  white-space: pre;
  opacity: 0.55;
  filter: saturate(0.5);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}

.doubt {
  position: absolute;
  padding: 6px 12px;
  border-radius: 12px 12px 12px 2px;
  background: rgba(248, 113, 113, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  opacity: 0;
  animation: doubt 6s ease-in-out infinite;
  animation-delay: calc(var(--d) * 1.6s);
}

.doubt code {
  font-size: 0.95em;
}

@keyframes doubt {
  0%, 100% { opacity: 0; transform: translateY(8px) scale(0.95); }
  10%, 45% { opacity: 1; transform: none; }
  60% { opacity: 0; transform: translateY(-6px); }
}

/* Right: the animated heap */
.compare-media--heap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 12px 12px;
  background:
    radial-gradient(70% 70% at 50% 40%, rgba(34, 211, 238, 0.1), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(125, 165, 255, 0.08) 1px, transparent 0) 0 0 / 22px 22px,
    #070c1d;
}

.heap-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.heap-edge {
  stroke: var(--border-strong);
  stroke-width: 2;
  transition: opacity 0.4s;
}

.heap-edge.is-hidden {
  opacity: 0;
}

.heap-node {
  transition: transform 0.7s var(--ease), opacity 0.5s;
}

.heap-node circle {
  fill: var(--surface-2);
  stroke: var(--violet);
  stroke-width: 2;
  transition: fill 0.4s, stroke 0.4s;
}

.heap-node text {
  fill: var(--text);
  font: 600 13px var(--font-mono);
  text-anchor: middle;
  dominant-baseline: central;
}

.heap-node.is-focus circle {
  stroke: var(--amber);
  fill: rgba(251, 191, 36, 0.28);
}

.heap-node.is-ok circle {
  stroke: var(--green);
  fill: rgba(52, 211, 153, 0.28);
}

.heap-node.is-gone {
  opacity: 0;
}

.heap-caption {
  margin: 8px 0 0;
  min-height: 1.6em;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text);
}

.compare-body {
  padding: clamp(22px, 3vw, 30px);
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.tag--bad { color: var(--red); background: rgba(248, 113, 113, 0.12); }
.tag--good { color: var(--green); background: rgba(52, 211, 153, 0.12); }

.compare-body p {
  color: var(--text-muted);
  margin: 0;
}

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

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-art {
  height: 170px;
  margin: -6px -6px 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.pillar-art svg {
  width: 85%;
  height: 85%;
}

.pillar h3 {
  font-size: 1.3rem;
}

.pillar p {
  color: var(--text-muted);
  margin: 0;
}

/* Pillar 1: animated tree */
.tree-edge {
  stroke: var(--border-strong);
  stroke-width: 2;
}

.tree-node {
  fill: var(--surface-2);
  stroke: var(--cyan);
  stroke-width: 2;
}

.tree-node-label {
  fill: var(--text);
  font: 600 12px var(--font-mono);
  text-anchor: middle;
  dominant-baseline: central;
}

.tree-walker {
  fill: none;
  stroke: var(--amber);
  stroke-width: 3;
  animation: tree-walk 6s ease-in-out infinite;
}

.tree-walker:nth-of-type(2) { animation-delay: -1.5s; }

@keyframes tree-walk {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  10%, 25% { opacity: 1; transform: scale(1); }
  35% { opacity: 0; }
}

/* Pillar 2: typing code */
.mini-code {
  width: 85%;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  color: #c6d0ee;
}

.mini-code span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: type 8s steps(30) infinite;
}

.mini-code span:nth-child(2) { animation-delay: 0.6s; }
.mini-code span:nth-child(3) { animation-delay: 1.2s; }
.mini-code span:nth-child(4) { animation-delay: 1.8s; }
.mini-code span:nth-child(5) { animation-delay: 2.4s; }

@keyframes type {
  0% { width: 0; }
  15%, 85% { width: 100%; }
  100% { width: 0; }
}

/* Pillar 3: pattern grid */
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  width: 80%;
}

.pattern-grid i {
  aspect-ratio: 1;
  border-radius: 5px;
  background: var(--surface-2);
  animation: pattern-light 4.8s ease-in-out infinite;
  animation-delay: calc(var(--d) * 0.12s);
}

@keyframes pattern-light {
  0%, 60%, 100% { background: var(--surface-2); }
  20% { background: var(--cyan); box-shadow: 0 0 12px rgba(34, 211, 238, 0.6); }
  35% { background: var(--green); }
}

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

/* ---------- Patterns showcase image ---------- */
.showcase {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.showcase-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s var(--ease);
}

.showcase-img:hover {
  transform: none;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
}

.check-list li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.check-list b {
  color: var(--text);
}

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

  .showcase-img {
    transform: none;
  }
}

/* ---------- Curriculum ---------- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  counter-reset: stage;
}

.roadmap::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--violet), var(--pink));
  opacity: 0.5;
}

.stage {
  counter-increment: stage;
  position: relative;
}

.stage-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: var(--bg);
  border: 2px solid var(--accent);
  color: var(--accent);
  font: 700 1.2rem var(--font-display);
  position: relative;
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 40%, transparent);
}

.stage-num::before {
  content: "0" counter(stage);
}

.stage .card {
  height: calc(100% - 80px);
}

.stage h3 {
  font-size: 1.15rem;
}

.stage ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.stage li {
  font-size: 0.93rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.stage li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.stage li small {
  display: block;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.stage:nth-child(1) { --accent: var(--cyan); }
.stage:nth-child(2) { --accent: var(--green); }
.stage:nth-child(3) { --accent: var(--violet); }
.stage:nth-child(4) { --accent: var(--pink); }

.center-cta {
  text-align: center;
  margin-top: 48px;
}

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

  .roadmap::before {
    display: none;
  }
}

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

  .stage .card {
    height: auto;
  }
}

/* ---------- Graph struggle section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
}

.split p {
  color: var(--text-muted);
}

.reasons {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.reason {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.reason-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(248, 113, 113, 0.12);
  color: var(--red);
  font-family: var(--font-mono);
  font-weight: 700;
}

.reason h4 {
  margin: 0 0 2px;
  font-size: 1rem;
}

.reason p {
  margin: 0;
  font-size: 0.93rem;
}

.tangle {
  aspect-ratio: 1;
  max-width: 480px;
  width: 100%;
  margin-inline: auto;
}

.tangle .t-edge {
  stroke: rgba(248, 113, 113, 0.35);
  stroke-width: 1.5;
  transition: stroke 1s, opacity 1s;
}

.tangle .t-node {
  transition: transform 1.2s var(--ease), fill 0.8s;
  fill: var(--red);
}

.tangle.is-untangled .t-edge {
  stroke: rgba(34, 211, 238, 0.55);
}

.tangle.is-untangled .t-node {
  fill: var(--cyan);
}

.tangle-caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 8px;
}

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

/* ---------- Mentorship ---------- */
.mentor {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(34, 211, 238, 0.14), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-elevated));
}

.mentor-main {
  padding: clamp(28px, 5vw, 56px);
}

.mentor-main h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
}

.mentor-main > p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.mentor-side {
  padding: clamp(28px, 5vw, 56px);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  background: rgba(6, 10, 24, 0.4);
}

.price {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
}

.price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.mentor-side p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 16px;
}

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

  .mentor-side {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.about-photo {
  position: relative;
  max-width: 400px;
  width: 100%;
  margin-inline: auto;
}

.about-photo img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 40% 30%;
  position: relative;
  z-index: 1;
}

.about-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--cyan);
  opacity: 0.5;
}

.about-photo .floating-tag {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: -20px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(11, 18, 40, 0.92);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  animation: float 5s ease-in-out infinite;
}

.floating-tag b {
  display: block;
  font-family: var(--font-display);
  color: var(--cyan);
}

.about h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
}

.about p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.social:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.06);
  transform: translateY(-2px);
}

.social svg {
  width: 18px;
  height: 18px;
}

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

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.quote {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote::before {
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 0.6;
  height: 28px;
  color: var(--cyan);
  opacity: 0.6;
}

.quote blockquote {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 0.95rem var(--font-display);
  color: #04121a;
  background: var(--gradient);
  flex: none;
}

.quote figcaption b {
  display: block;
  font-size: 0.97rem;
}

.quote figcaption span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.quote--featured {
  border-color: var(--border-strong);
  box-shadow: var(--glow-cyan);
}

@media (max-width: 1000px) {
  .testimonials {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-inline: auto;
  }
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s, background 0.3s;
}

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

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.03rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.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);
  background:
    linear-gradient(var(--cyan), var(--cyan)) center / 12px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) center / 2px 12px no-repeat;
  transition: transform 0.35s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(135deg);
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-muted);
}

.faq-answer p:last-child,
.faq-answer ol:last-child,
.faq-answer ul:last-child {
  margin-bottom: 0;
}

.faq-answer b {
  color: var(--text);
}

.faq-answer li {
  margin-bottom: 6px;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(50% 120% at 50% 0%, rgba(34, 211, 238, 0.18), transparent 70%),
    var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.cta-band p {
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
}

.cta-band .hero-cta {
  justify-content: center;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 40px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- Course page ---------- */
.page-hero {
  padding: 140px 0 60px;
  position: relative;
  overflow: clip; /* not hidden: that would break the sticky price card */
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 70% 0%, rgba(34, 211, 238, 0.14), transparent 70%);
  pointer-events: none;
}

.course-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-areas:
    "intro   aside"
    "modules aside";
  column-gap: clamp(28px, 4vw, 56px);
  align-items: start;
  position: relative;
}

.course-intro { grid-area: intro; }
.course-modules { grid-area: modules; }
.price-card { grid-area: aside; }

.course-top h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.course-meta svg {
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

.course-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  margin-top: 32px;
}

.price-card {
  position: sticky;
  top: 96px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), var(--glow-cyan);
  border-color: var(--border-strong);
}

.price-card .price {
  margin: 8px 0 4px;
}

.offer {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amber);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
}

.price-card .btn {
  width: 100%;
  margin-top: 12px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 8px;
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.steps li::before {
  content: counter(step);
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font: 600 0.8rem var(--font-mono);
}

.price-card .note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 14px 0 0;
}

.modules {
  display: grid;
  gap: 12px;
  counter-reset: module;
}

.module {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: module;
  transition: border-color 0.3s;
}

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

.module summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 16px;
  align-items: center;
}

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

.module summary::before {
  content: counter(module, decimal-leading-zero);
  grid-row: span 2;
  font: 600 0.85rem var(--font-mono);
  color: var(--cyan);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--border-strong);
}

.module h3 {
  font-size: 1.1rem;
  margin: 0;
}

.module-count {
  grid-row: span 2;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.module summary p {
  grid-column: 2;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lessons {
  list-style: none;
  margin: 0;
  padding: 4px 22px 18px 78px;
  display: grid;
  gap: 6px;
}

.lesson {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(6, 10, 24, 0.5);
  border: 1px solid var(--border);
  font-size: 0.93rem;
}

.lesson-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lesson-title svg {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  flex: none;
}

.lesson.has-preview .lesson-title svg {
  color: var(--green);
}

.lesson-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: auto;
}

.lesson-duration {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.lesson-preview {
  font: 600 0.8rem var(--font-body);
  color: var(--green);
  background: transparent;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s;
}

.lesson-preview:hover {
  background: rgba(52, 211, 153, 0.12);
}

.module-count b {
  display: block;
  font-weight: 600;
  color: var(--green);
}

.modules-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin: 56px 0 24px;
}

.modules-head .course-section-title {
  margin: 0;
}

/* Video preview dialog */
.video-dialog {
  width: min(960px, 100% - 32px);
  max-width: none;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), var(--glow-cyan);
}

.video-dialog[open] {
  animation: pop-in 0.35s var(--ease);
}

.video-dialog::backdrop {
  background: rgba(3, 6, 15, 0.8);
  backdrop-filter: blur(6px);
}

.video-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 14px 22px;
  border-bottom: 1px solid var(--border);
}

.video-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.video-head form {
  margin: 0;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.course-section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 56px 0 24px;
}

@media (max-width: 960px) {
  .course-top {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "aside" "modules";
    row-gap: 32px;
  }

  .price-card {
    position: static;
  }
}

@media (max-width: 600px) {
  .lessons {
    padding-left: 22px;
  }

  .module summary {
    grid-template-columns: auto 1fr;
  }

  .module-count {
    display: none;
  }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

  .mini-code span {
    width: 100%;
  }

  .doubt {
    opacity: 1;
    animation: none;
  }
}
