/* ==========================================
   Deven Kalathiya — Cloud + AI Portfolio
   ========================================== */

:root {
  /* Dark theme defaults */
  --bg: #07080b;
  --bg-elev: #0d0f14;
  --surface: rgba(20, 23, 30, 0.55);
  --surface-strong: rgba(28, 32, 42, 0.85);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f1f3f7;
  --text-muted: #8b94a3;
  --text-dim: #5e6675;

  /* Dual accent system */
  --cloud: #00ff88;        /* DevOps green */
  --cloud-soft: rgba(0, 255, 136, 0.15);
  --cloud-glow: rgba(0, 255, 136, 0.35);

  --ai: #a78bfa;           /* AI violet */
  --ai-soft: rgba(167, 139, 250, 0.15);
  --ai-glow: rgba(167, 139, 250, 0.4);

  --warn: #fbbf24;
  --danger: #f87171;

  /* Typography */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Scale */
  --container: 1240px;
  --radius: 14px;
  --radius-lg: 22px;
}

html[data-theme='light'] {
  --bg: #f7f8fb;
  --bg-elev: #ffffff;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --text: #0d121c;
  --text-muted: #525a6b;
  --text-dim: #8893a6;
  --cloud: #00a85a;
  --cloud-soft: rgba(0, 168, 90, 0.12);
  --cloud-glow: rgba(0, 168, 90, 0.3);
  --ai: #6d44d8;
  --ai-soft: rgba(109, 68, 216, 0.12);
  --ai-glow: rgba(109, 68, 216, 0.35);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 12% 20%, var(--cloud-soft), transparent 40%),
    radial-gradient(circle at 88% 70%, var(--ai-soft), transparent 40%);
  transition: background-color 0.4s, color 0.4s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--cloud); color: var(--bg); }

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--cloud); color: var(--bg); padding: 0.6rem 1rem;
  border-radius: 6px; font-weight: 600; z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* 3D background canvas */
#bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
}

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

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 8, 11, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
html[data-theme='light'] .nav { background: rgba(247, 248, 251, 0.8); }
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; gap: 1rem;
}
.nav-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.brand-prompt { color: var(--text); }
.brand-cursor { color: var(--cloud); animation: blink 1.2s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav-links {
  display: flex; gap: 1.8rem; align-items: center;
  font-family: var(--font-mono); font-size: 0.88rem;
}
.nav-links a {
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-slash { color: var(--cloud); }
.theme-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--text);
  transition: all 0.2s;
}
.theme-btn:hover { border-color: var(--cloud); color: var(--cloud); }
.theme-btn svg { width: 16px; height: 16px; }
.icon-sun { display: none; }
html[data-theme='light'] .icon-sun { display: block; }
html[data-theme='light'] .icon-moon { display: none; }

@media (max-width: 760px) {
  .nav-links li:nth-child(1), .nav-links li:nth-child(4) { display: none; }
  .nav-links { gap: 1rem; }
}
@media (max-width: 520px) {
  .nav-links li:nth-child(2) { display: none; }
}

/* ============ COMMON ============ */
main { padding-top: 70px; }
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem 1.5rem;
  position: relative;
}
.section-head { margin-bottom: 3rem; }
.section-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cloud);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.8rem;
  max-width: 620px;
}
.grad-text {
  background: linear-gradient(135deg, var(--cloud) 0%, var(--ai) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.glass {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--cloud);
  color: #06120c;
  box-shadow: 0 0 0 0 var(--cloud-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--cloud-glow);
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--cloud); color: var(--cloud); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.82rem; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: revealIn 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes revealIn { to { opacity: 1; transform: none; } }

/* Scroll-triggered reveal */
.scroll-reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.scroll-reveal.visible { opacity: 1; transform: none; }

/* ============ HERO ============ */
.hero {
  min-height: calc(100vh - 70px);
  max-width: var(--container); margin: 0 auto;
  padding: 4rem 1.5rem 4rem;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cloud);
  box-shadow: 0 0 8px var(--cloud-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
.hero-tagline {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.kw-cloud { color: var(--cloud); font-weight: 600; }
.kw-ai { color: var(--ai); font-weight: 600; }

/* Cert pills */
.cert-pills { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.cert-pill {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.cert-pill:hover { transform: translateY(-2px); }
.cert-glow {
  position: absolute; inset: -1px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cert-pill:hover .cert-glow { opacity: 1; }
.cert-cloud .cert-glow { box-shadow: 0 0 24px var(--cloud-glow); }
.cert-ai .cert-glow { box-shadow: 0 0 24px var(--ai-glow); }
.cert-cloud:hover { border-color: var(--cloud); }
.cert-ai:hover { border-color: var(--ai); }
.cert-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 1.1rem;
}
.cert-cloud .cert-icon { background: var(--cloud-soft); color: var(--cloud); }
.cert-ai .cert-icon { background: var(--ai-soft); color: var(--ai); }
.cert-meta { display: flex; flex-direction: column; }
.cert-label {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em;
}
.cert-name { font-weight: 700; font-size: 0.92rem; }
.cert-check {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 0.75rem; font-weight: 700;
  margin-left: 0.2rem;
}
.cert-cloud .cert-check { background: var(--cloud); color: var(--bg); }
.cert-ai .cert-check { background: var(--ai); color: var(--bg); }

.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.stat .stat-num {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--cloud), var(--ai));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.02em;
}
.stat .stat-lbl {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em;
}

/* Hero visual / orbit */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero-orbit {
  position: relative;
  width: 100%; max-width: 620px;
  aspect-ratio: 1;
  display: grid; place-items: center;
}
.hero-character {
  width: 100%; height: auto;
  z-index: 2;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5));
  animation: floatY 6s ease-in-out infinite;
}
@media (max-width: 900px) {
  .hero-orbit { max-width: 480px; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-18px) rotate(1.5deg); }
}
.orbit-ring {
  position: absolute;
  border: 1px dashed;
  border-radius: 50%;
  animation: spin 20s linear infinite;
}
.orbit-ring-1 { width: 78%; height: 78%; border-color: var(--cloud-soft); animation-duration: 22s; }
.orbit-ring-2 { width: 96%; height: 96%; border-color: var(--ai-soft); animation-duration: 30s; animation-direction: reverse; }
.orbit-ring-3 { width: 116%; height: 116%; border-color: var(--border); animation-duration: 40s; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-indicator {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-dim);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--cloud), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

/* ============ ABOUT / TERMINAL ============ */
.about-grid {
  display: grid; grid-template-columns: 0.9fr 1.4fr;
  gap: 3rem; align-items: center;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-image { display: flex; justify-content: center; }
.float-img {
  width: 100%; max-width: 480px;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.45));
  animation: floatY 7s ease-in-out infinite;
}

.terminal {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}
.terminal-header {
  padding: 0.75rem 1rem;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
}
.terminal-dots { display: flex; gap: 8px; }
.terminal-dots span {
  width: 12px; height: 12px; border-radius: 50%;
}
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }
.terminal-title {
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.terminal-body {
  padding: 1.6rem;
  font-size: 0.88rem;
  line-height: 1.7;
}
.t-line { margin-top: 1rem; }
.t-line:first-child { margin-top: 0; }
.t-prompt { color: var(--cloud); margin-right: 0.4rem; }
.t-out { color: #6cf; margin-bottom: 0.8rem; }
.t-block { margin-top: 0.8rem; }
.cap-row {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 1rem; padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
}
.cap-row:last-child { border-bottom: none; }
.cap-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex; align-items: center;
  padding-left: 0.5rem;
  border-left: 2px solid;
}
.cap-cloud { color: var(--cloud); border-color: var(--cloud); }
.cap-ai { color: var(--ai); border-color: var(--ai); }
.cap-sec { color: #ff7a90; border-color: #ff7a90; }
.cap-mon { color: var(--warn); border-color: var(--warn); }
.cap-code { color: #6cf; border-color: #6cf; }
.cap-list { color: var(--text-muted); font-size: 0.85rem; }
.t-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--text);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

/* ============ STACK ============ */
.stack-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  align-items: center;
}
.stack-row:last-child { border-bottom: 1px solid var(--border); }
@media (max-width: 760px) {
  .stack-row { grid-template-columns: 1fr; gap: 1rem; }
}
.stack-label { display: flex; align-items: center; gap: 0.8rem; }
.stack-marker {
  width: 12px; height: 12px;
  border-radius: 2px;
}
.stack-marker-cloud { background: var(--cloud); box-shadow: 0 0 12px var(--cloud-glow); }
.stack-marker-ai { background: var(--ai); box-shadow: 0 0 12px var(--ai-glow); }
.stack-label h3 { font-size: 1.3rem; font-weight: 700; }
.stack-tools {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.tool {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 100px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.tool:hover {
  transform: translateY(-4px);
  border-color: var(--cloud);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}
.tool img { width: 56px; height: 56px; object-fit: contain; }
.tool span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.tool-text .tool-glyph {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ai-soft), transparent);
  border: 1px solid var(--ai-soft);
  font-size: 1.6rem; font-weight: 700;
  color: var(--ai);
}
.stack-tools-ai .tool:hover { border-color: var(--ai); }

/* ============ EXPERIENCE ============ */
.exp-card {
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.exp-card::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--cloud), var(--ai));
}
.exp-head {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.exp-role { font-size: 1.6rem; font-weight: 700; color: var(--cloud); }
.exp-company { font-size: 1.05rem; color: var(--text-muted); margin-top: 0.2rem; }
.exp-meta { text-align: right; color: var(--text-dim); font-family: var(--font-mono); font-size: 0.85rem; }
@media (max-width: 540px) { .exp-meta { text-align: left; } }
.exp-list { display: flex; flex-direction: column; gap: 0.9rem; }
.exp-list li { display: flex; gap: 1rem; line-height: 1.6; color: var(--text-muted); }
.exp-list strong { color: var(--text); font-weight: 600; }
.bullet { color: var(--cloud); flex-shrink: 0; }
.bullet-ai { color: var(--ai); }

/* ============ PROJECTS ============ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.proj-card {
  padding: 1.8rem;
  display: flex; flex-direction: column; gap: 0.8rem;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}
.proj-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}
.proj-tag {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.tag-devops { background: var(--cloud-soft); color: var(--cloud); }
.tag-ai { background: var(--ai-soft); color: var(--ai); }
.proj-card h3 { font-size: 1.2rem; font-weight: 700; }
.proj-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }
.proj-stack { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.proj-stack span {
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
}
.proj-links {
  display: flex; gap: 1rem; align-items: center; margin-top: auto; padding-top: 0.8rem;
}
.proj-links a {
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--cloud);
  font-weight: 600;
}
.proj-links a:hover { text-decoration: underline; }
.tag-ai ~ .proj-links a, .proj-card:has(.tag-ai) .proj-links a { color: var(--ai); }
.badge-soon {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--warn);
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 4px;
}

/* Pipeline viz */
.pipeline-viz {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative; overflow: hidden;
  flex-wrap: wrap; gap: 1rem;
}
.pipe-stage {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative; z-index: 2;
}
.pipe-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cloud);
  box-shadow: 0 0 12px var(--cloud-glow);
}
.pipe-flow {
  position: absolute;
  top: 50%; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, transparent, var(--cloud), var(--ai), transparent);
  opacity: 0.3;
  transform: translateY(-50%);
}
.pipe-flow::after {
  content: ''; position: absolute;
  top: -3px; left: -200px;
  width: 200px; height: 8px;
  background: linear-gradient(to right, transparent, var(--cloud), transparent);
  filter: blur(4px);
  animation: pipeFlow 3s linear infinite;
}
@keyframes pipeFlow {
  to { left: calc(100% + 200px); }
}

/* ============ STUDY HUB ============ */
.study-hub { position: relative; }
.study-hub::before {
  content: ''; position: absolute;
  top: 0; left: -10%; right: -10%; height: 100%;
  background: radial-gradient(ellipse at center, var(--ai-soft), transparent 60%);
  pointer-events: none; z-index: -1;
}
.track-switcher {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 3rem;
}
@media (max-width: 640px) { .track-switcher { grid-template-columns: 1fr; } }
.track-tab {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  transition: all 0.25s;
  position: relative;
}
.track-tab:hover { border-color: var(--border-strong); }
.track-tab.active { border-color: var(--cloud); box-shadow: 0 0 0 1px var(--cloud), 0 0 30px var(--cloud-soft); }
.track-tab[data-track="ai"].active { border-color: var(--ai); box-shadow: 0 0 0 1px var(--ai), 0 0 30px var(--ai-soft); }
.track-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 1.5rem;
  background: var(--cloud-soft); color: var(--cloud);
  flex-shrink: 0;
}
.track-tab[data-track="ai"] .track-icon { background: var(--ai-soft); color: var(--ai); }
.track-tab > div { flex: 1; }
.track-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.track-name { font-size: 1.05rem; font-weight: 700; margin-top: 0.1rem; }
.track-status {
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 0.25rem 0.6rem; border-radius: 999px; font-weight: 600;
}
.track-status-done { background: var(--cloud-soft); color: var(--cloud); }
.track-status-prep { background: rgba(251, 191, 36, 0.12); color: var(--warn); border: 1px solid rgba(251, 191, 36, 0.3); }

.track-content { display: none; flex-direction: column; gap: 2.5rem; }
.track-content.active { display: flex; }

.study-block {
  padding: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.study-block-title {
  font-size: 1.4rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.study-block-num {
  font-family: var(--font-mono); font-size: 0.85rem;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--cloud); color: var(--bg);
  border-radius: 8px;
  font-weight: 700;
}
.track-content[data-track="ai"] .study-block-num { background: var(--ai); }
.study-block-sub { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.5rem; }

.badge-live, .badge-soon {
  font-family: var(--font-mono); font-size: 0.7rem;
  padding: 0.2rem 0.6rem; border-radius: 4px;
}
.badge-live {
  background: var(--ai-soft); color: var(--ai);
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.badge-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ai); animation: pulse 1.5s ease-in-out infinite;
}

/* Blueprint bars */
.blueprint { display: flex; flex-direction: column; gap: 0.8rem; }
.bp-row {
  display: grid; grid-template-columns: 220px 1fr 50px;
  gap: 1rem; align-items: center;
  font-size: 0.92rem;
}
@media (max-width: 600px) { .bp-row { grid-template-columns: 1fr 50px; } .bp-row .bp-bar { grid-column: 1 / -1; } }
.bp-name { color: var(--text); font-weight: 500; }
.bp-bar {
  height: 10px;
  background: var(--bg-elev);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.bp-fill {
  height: 100%;
  width: var(--w);
  background: linear-gradient(to right, var(--cloud), var(--cloud) 80%, #10ffa0);
  border-radius: 999px;
  box-shadow: 0 0 12px var(--cloud-glow);
}
.bp-ai .bp-fill { background: linear-gradient(to right, var(--ai), #d4b8ff); box-shadow: 0 0 12px var(--ai-glow); }
.bp-pct { font-family: var(--font-mono); color: var(--cloud); font-weight: 700; text-align: right; }
.bp-ai .bp-pct { color: var(--ai); }

/* Notes accordion */
.notes-accordion { display: flex; flex-direction: column; gap: 0.6rem; }
.note {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.note[open] { border-color: var(--cloud); }
.note-ai[open] { border-color: var(--ai); }
.note summary {
  padding: 1rem 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; gap: 0.8rem;
  list-style: none;
  font-weight: 500;
  position: relative;
  flex-wrap: wrap;
}
.note summary::-webkit-details-marker { display: none; }
.note summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1.4rem; color: var(--text-dim);
  transition: transform 0.2s;
}
.note[open] summary::after { content: '−'; }
.note-tag {
  font-family: var(--font-mono); font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: var(--cloud-soft); color: var(--cloud);
  border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.tag-ai-note { background: var(--ai-soft); color: var(--ai); }
.note-body {
  padding: 0 1.2rem 1.2rem;
  color: var(--text-muted); line-height: 1.7;
}
.note-body p { margin-bottom: 0.8rem; }
.note-body strong { color: var(--text); }
.note-link a { color: var(--cloud); font-weight: 600; }
.note-ai .note-link a { color: var(--ai); }

/* Resources grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.res-card {
  padding: 1.4rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: all 0.25s;
  position: relative;
}
.res-card:hover {
  transform: translateY(-3px);
  border-color: var(--cloud);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}
.track-content[data-track="ai"] .res-card:hover { border-color: var(--ai); }
.res-rank {
  position: absolute; top: 0.8rem; right: 0.8rem;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 700;
}
.res-type {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700;
}
.type-doc { background: rgba(108, 207, 255, 0.12); color: #6cf; }
.type-video { background: rgba(255, 122, 144, 0.12); color: #ff7a90; }
.type-practice { background: rgba(251, 191, 36, 0.12); color: var(--warn); }
.type-free { background: var(--cloud-soft); color: var(--cloud); }
.type-yt { background: rgba(248, 113, 113, 0.12); color: var(--danger); }
.res-card h4 { font-size: 1rem; font-weight: 700; }
.res-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }
.res-link {
  margin-top: auto;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--cloud); font-weight: 600;
}
.track-content[data-track="ai"] .res-link { color: var(--ai); }

/* Cheat list */
.cheat-list { display: flex; flex-direction: column; gap: 0.5rem; }
.cheat-list li {
  display: flex; gap: 1rem;
  padding: 0.9rem 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem; line-height: 1.55;
  align-items: flex-start;
}
.cheat-list strong { color: var(--text); }
.cheat-num {
  font-family: var(--font-mono); font-weight: 700;
  color: var(--cloud); flex-shrink: 0;
}

/* AI prep banner */
.ai-prep-banner {
  display: flex; gap: 1.2rem; align-items: center;
  padding: 1.5rem 1.8rem;
  background: linear-gradient(135deg, var(--ai-soft), transparent);
  border: 1px solid var(--ai);
  border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.banner-pulse {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ai);
  box-shadow: 0 0 0 0 var(--ai);
  animation: bannerPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes bannerPulse {
  0% { box-shadow: 0 0 0 0 var(--ai-glow); }
  70% { box-shadow: 0 0 0 14px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.ai-prep-banner h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.ai-prep-banner p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

/* Study CTA */
.study-cta {
  display: flex; gap: 2rem; align-items: center; justify-content: space-between;
  padding: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--cloud-soft), var(--ai-soft));
}
.study-cta h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.study-cta p { color: var(--text-muted); font-size: 0.92rem; }
.study-cta-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ============ NOW / LEARNING ============ */
.now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.now-card { padding: 1.5rem; }
.now-status {
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}
.now-status-active { color: var(--cloud); border-color: var(--cloud); }
.now-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.now-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.55; }
.now-progress {
  height: 6px; background: var(--bg-elev);
  border-radius: 999px; overflow: hidden;
  border: 1px solid var(--border);
}
.now-fill {
  height: 100%; width: var(--p);
  background: linear-gradient(to right, var(--cloud), var(--ai));
  border-radius: 999px;
}
.now-pct { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); margin-top: 0.5rem; }

/* ============ EDUCATION ============ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.edu-card {
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.edu-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface-strong);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.edu-icon-cloud { background: var(--cloud-soft); color: var(--cloud); }
.edu-icon-ai { background: var(--ai-soft); color: var(--ai); }
.edu-card h3 { font-size: 1.05rem; font-weight: 700; }
.edu-school { color: var(--text); font-size: 0.92rem; }
.edu-meta { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.78rem; }
.edu-link { color: var(--cloud); font-family: var(--font-mono); font-size: 0.82rem; margin-top: 0.5rem; }
.edu-pending { border-style: dashed; }
.edu-status { color: var(--ai); font-family: var(--font-mono); font-size: 0.82rem; margin-top: 0.5rem; }

/* ============ CONTACT ============ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 3rem; align-items: center;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-visual { display: flex; justify-content: center; }
.contact-visual img { max-width: 360px; }
.contact-links {
  display: flex; flex-direction: column; gap: 0.8rem;
}
.contact-link {
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: 1rem; align-items: center;
  padding: 1.1rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s;
}
.contact-link:hover {
  border-color: var(--cloud);
  transform: translateX(6px);
}
.contact-ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--cloud-soft); color: var(--cloud);
  font-size: 1.3rem; font-weight: 700;
}
.contact-lbl {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em;
}
.contact-val { font-weight: 600; color: var(--text); margin-top: 0.15rem; }
.contact-arrow {
  color: var(--text-dim);
  font-size: 1.2rem;
  transition: transform 0.25s, color 0.25s;
}
.contact-link:hover .contact-arrow {
  color: var(--cloud);
  transform: translateX(4px);
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--font-mono);
  color: var(--cloud);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.footer-tag, .footer-meta { color: var(--text-dim); font-size: 0.85rem; }
.footer-meta { font-family: var(--font-mono); }

/* ============================================
   INTERACTIVE TERMINAL
   ============================================ */
.terminal {
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.terminal-body {
  flex: 1;
  overflow-y: auto;
  max-height: 540px;
  scroll-behavior: smooth;
}
.terminal-body::-webkit-scrollbar { width: 6px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.t-welcome { color: var(--text-dim); font-style: italic; font-size: 0.82rem; }
.t-cmd-hint {
  color: var(--cloud);
  background: var(--cloud-soft);
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  font-style: normal;
}
.t-cmd-hint:hover { cursor: pointer; }

.t-error { color: var(--danger); }
.t-warn { color: var(--warn); }
.t-success { color: var(--cloud); }
.t-section { color: var(--ai); margin-top: 0.6rem; font-weight: 600; }
.t-tree { white-space: pre; line-height: 1.5; color: var(--text-muted); }
.t-link {
  color: var(--cloud);
  text-decoration: underline;
  text-decoration-color: var(--cloud-soft);
  text-underline-offset: 3px;
}
.t-link:hover { text-decoration-color: var(--cloud); }
.t-history { color: var(--text); }

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1.6rem 1.2rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: inherit;
  caret-color: var(--cloud);
  padding: 0.2rem 0;
}
.terminal-input::placeholder { color: var(--text-dim); }

.kbd {
  font-family: var(--font-mono);
  background: var(--cloud-soft);
  color: var(--cloud);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 0.85em;
}

/* ============================================
   BRANDED AI TOOL ICONS
   ============================================ */
.tool-brand {
  text-decoration: none;
  cursor: pointer;
}
.tool-svg {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3));
  transition: transform 0.25s, filter 0.25s;
}
.tool-svg svg { width: 100%; height: 100%; display: block; }
.tool-brand:hover .tool-svg {
  transform: scale(1.06) rotate(-2deg);
  filter: drop-shadow(0 10px 22px var(--ai-glow));
}

/* ============================================
   AI KNOWLEDGE HUB
   ============================================ */
.ai-hub { position: relative; }

.rag-arch {
  padding: 2.2rem;
  margin-bottom: 3.5rem;
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
}
.rag-arch::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cloud), var(--ai));
}
.rag-arch-head { margin-bottom: 1.8rem; }
.rag-arch-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ai);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.rag-arch-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.rag-arch-desc {
  color: var(--text-muted);
  max-width: 720px;
}

.rag-flow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.4rem 0;
}
.rag-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 0.9rem;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  min-width: 130px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: default;
}
.rag-node:hover {
  transform: translateY(-3px);
  border-color: var(--ai);
  box-shadow: 0 10px 24px var(--ai-glow);
}
.rag-node-icon { font-size: 1.6rem; }
.rag-node-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}
.rag-node-tech {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
}
.rag-node-source { border-color: var(--cloud); }
.rag-node-source:hover { box-shadow: 0 10px 24px var(--cloud-glow); border-color: var(--cloud); }
.rag-node-llm { border-color: var(--ai); }
.rag-node-output { border-color: var(--cloud); }
.rag-node-output:hover { box-shadow: 0 10px 24px var(--cloud-glow); border-color: var(--cloud); }

.rag-arrow {
  color: var(--ai);
  font-size: 1.4rem;
  font-weight: 700;
  opacity: 0.7;
}
@media (max-width: 760px) {
  .rag-flow { flex-direction: column; }
  .rag-arrow { transform: rotate(90deg); }
}

.rag-flow-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--border);
  margin-top: 0.5rem;
}
.rag-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--ai-soft);
  color: var(--ai);
  border: 1px solid var(--ai-soft);
}

.hub-head { margin-bottom: 1.6rem; }
.hub-head h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.hub-head p { color: var(--text-muted); max-width: 680px; }

.reading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.2rem;
  margin-bottom: 3rem;
}
.read-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
}
.read-card:hover {
  transform: translateY(-4px);
  border-color: var(--ai);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}
.read-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 4px;
}
.tag-arch { background: var(--ai-soft); color: var(--ai); }
.tag-tut { background: var(--cloud-soft); color: var(--cloud); }
.tag-paper { background: rgba(251, 191, 36, 0.15); color: var(--warn); }
.tag-blog { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.tag-tool { background: rgba(244, 114, 182, 0.15); color: #f472b6; }
.read-card h4 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.read-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  flex: 1;
}
.read-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}
.read-src { color: var(--text-dim); }
.read-arrow { color: var(--ai); font-size: 1.05rem; transition: transform 0.25s; }
.read-card:hover .read-arrow { transform: translateX(4px); }

.hub-cta {
  padding: 1.6rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  border: 1px solid var(--border-strong);
}
.hub-cta h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.3rem; }
.hub-cta p { color: var(--text-muted); font-size: 0.92rem; max-width: 540px; }


/* ============================================
   DRAWER OVERLAY (AI Hub / Study Vault)
   ============================================ */
.drawer-shell {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.drawer-shell.open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 8, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
html[data-theme='light'] .drawer-backdrop { background: rgba(20, 25, 40, 0.55); }

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(1180px, 96vw);
  background: var(--bg);
  border-left: 1px solid var(--border-strong);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  transform: translateX(40px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}
.drawer-shell.open .drawer { transform: translateX(0); opacity: 1; }

body.drawer-locked { overflow: hidden; }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.6rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  flex-shrink: 0;
}
.drawer-title-wrap { display: flex; flex-direction: column; gap: 0.15rem; }
.drawer-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cloud);
}
.drawer-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.drawer-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: all 0.2s;
}
.drawer-close-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
  transform: rotate(90deg);
}

.drawer-body {
  flex: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 0;
}
@media (max-width: 900px) {
  .drawer-body { grid-template-columns: 1fr; }
}

.drawer-sidebar {
  border-right: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
}
@media (max-width: 900px) {
  .drawer-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    overflow-x: auto;
    padding: 1rem;
    gap: 0.7rem;
  }
}
.drawer-sidebar-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 0.4rem 0.2rem;
}
@media (max-width: 900px) {
  .drawer-sidebar-label { display: none; }
}

.drawer-nav-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  width: 100%;
  transition: all 0.2s;
  color: var(--text);
}
@media (max-width: 900px) {
  .drawer-nav-card {
    min-width: 240px;
    flex-shrink: 0;
  }
}
.drawer-nav-card:hover {
  border-color: var(--border-strong);
  transform: translateX(2px);
  background: var(--surface-strong);
}
.drawer-nav-card.active {
  border-color: var(--cloud);
  background: var(--cloud-soft);
  box-shadow: inset 3px 0 0 var(--cloud);
}
.dnc-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-elev);
  display: grid; place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--text-muted);
}
.dnc-icon-ai { color: var(--ai); }
.dnc-icon-cloud { color: var(--cloud); }
.drawer-nav-card.active .dnc-icon { color: var(--cloud); background: var(--bg); }
.dnc-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.dnc-name { font-weight: 700; font-size: 0.92rem; }
.dnc-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-sidebar-foot {
  margin-top: auto;
  padding-top: 1rem;
}
@media (max-width: 900px) {
  .drawer-sidebar-foot { display: none; }
}
.drawer-tip {
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 0.7rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 10px;
}
.drawer-tip kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 0.05rem 0.4rem;
  color: var(--text);
}

.drawer-content {
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 0;
}
.drawer-content::-webkit-scrollbar { width: 8px; }
.drawer-content::-webkit-scrollbar-track { background: transparent; }
.drawer-content::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

/* Drawer views: hidden by default, shown when active */
.drawer-view { display: none; }
.drawer-view.drawer-view-active { display: block; }
/* Inside the drawer, sections need different padding */
.drawer-content .section {
  max-width: none;
  padding: 2.5rem 2rem;
}
@media (max-width: 600px) {
  .drawer-content .section { padding: 1.6rem 1.1rem; }
}
.drawer-content .section-head { margin-bottom: 2rem; }

/* ============================================
   PDF CARDS (Cloud + AI Practitioner downloads)
   ============================================ */
.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.2rem;
  margin: 1.4rem 0;
}
.pdf-card {
  display: flex;
  gap: 1.2rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.pdf-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cloud), #FF6B35);
  opacity: 0;
  transition: opacity 0.25s;
}
.pdf-card-ai::before { background: linear-gradient(90deg, var(--ai), #34D399); }
.pdf-card:hover {
  transform: translateY(-3px);
  border-color: var(--cloud);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}
.pdf-card:hover::before { opacity: 1; }
.pdf-card-ai:hover { border-color: var(--ai); box-shadow: 0 14px 30px var(--ai-glow); }

.pdf-card-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}
.pdf-card-icon svg { width: 100%; height: 100%; }
.pdf-card-body { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.pdf-card-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 107, 53, 0.15);
  color: #FF6B35;
}
.pdf-tag-ai { background: var(--ai-soft); color: var(--ai); }
.pdf-tag-quick { background: rgba(52, 211, 153, 0.15); color: #34D399; }
.pdf-card h4 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.pdf-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }
.pdf-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.pdf-card-meta { color: var(--text-dim); }
.pdf-card-cta { color: var(--cloud); font-weight: 700; }
.pdf-card-ai .pdf-card-cta { color: var(--ai); }

.pdf-tip {
  margin-top: 1.2rem;
  padding: 0.9rem 1.1rem;
  background: var(--ai-soft);
  border: 1px dashed var(--ai);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
}

.cheat-list-compact { margin-top: 1.5rem; }

/* ============================================
   FEEDSPOT COMPANY SHOWCASE
   ============================================ */
.exp-head-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.exp-company-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(38, 132, 252, 0.08);
  border: 1px solid rgba(38, 132, 252, 0.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0.5rem;
}
.exp-company-logo img { width: 100%; height: 100%; object-fit: contain; }

.company-showcase {
  margin-top: 2rem;
  padding: 2.4rem;
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.company-showcase::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2684FC, #2CA4FC, var(--cloud));
}

.company-showcase-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.company-showcase-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.cs-logo {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 8px 20px rgba(38, 132, 252, 0.4));
}
.cs-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2684FC;
}
.cs-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.cs-intro {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 740px;
}

.cs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2.4rem;
  padding: 1.4rem;
  background: var(--bg-elev);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.cs-stat { text-align: center; }
.cs-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2684FC, #2CA4FC);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.cs-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

.cs-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-left: 0.7rem;
  border-left: 3px solid #2684FC;
}

.cs-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2.4rem;
}
.cs-product {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.cs-product:hover {
  transform: translateY(-3px);
  border-color: #2684FC;
  box-shadow: 0 12px 24px rgba(38, 132, 252, 0.2);
}
.cs-product-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cs-icon-reader { background: rgba(38, 132, 252, 0.12); color: #2684FC; }
.cs-icon-scheduler { background: rgba(52, 211, 153, 0.12); color: #34D399; }
.cs-icon-publisher { background: rgba(167, 139, 250, 0.12); color: var(--ai); }
.cs-icon-podcast { background: rgba(251, 146, 60, 0.12); color: #FB923C; }
.cs-product-icon svg { width: 24px; height: 24px; }
.cs-product-body { flex: 1; min-width: 0; }
.cs-product-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.cs-product-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  background: linear-gradient(135deg, #FB923C, #F59E0B);
  color: #fff;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.cs-product-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cs-highlights { margin-top: 2rem; }
.cs-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.cs-highlight {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cs-highlight-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
.cs-highlight strong {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.cs-highlight p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}


/* ============================================
   FLOATING RIGHT-SIDE DOCK (AI Hub / Study Vault)
   ============================================ */
.side-dock {
  position: fixed;
  top: 50%;
  right: 1.2rem;
  transform: translateY(-50%) translateX(0);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 0.85rem 1rem;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.side-dock.visible {
  opacity: 1;
  pointer-events: auto;
}
.side-dock.collapsed {
  width: 52px;
  padding: 0.5rem;
}
.side-dock.collapsed .sd-text,
.side-dock.collapsed .sd-arrow,
.side-dock.collapsed .side-dock-label {
  display: none;
}
.side-dock.collapsed .side-dock-btn {
  padding: 0.6rem;
  justify-content: center;
}
.side-dock.collapsed #side-dock-toggle svg { transform: rotate(180deg); }

.side-dock-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.1rem 0.5rem 0.4rem;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 0.2rem;
}

.side-dock-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 11px;
  text-align: left;
  color: var(--text);
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.side-dock-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cloud-soft), var(--ai-soft));
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.side-dock-btn:hover { transform: translateX(-3px); border-color: var(--border-strong); }
.side-dock-btn:hover::before { opacity: 0.6; }
.sd-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.sd-icon-ai { background: var(--ai-soft); color: var(--ai); }
.sd-icon-cloud { background: var(--cloud-soft); color: var(--cloud); }
.sd-text {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 0.1rem;
  position: relative; z-index: 1;
}
.sd-name { font-weight: 700; font-size: 0.85rem; }
.sd-sub { font-size: 0.7rem; color: var(--text-dim); }
.sd-arrow {
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: transform 0.2s, color 0.2s;
  position: relative; z-index: 1;
}
.side-dock-btn:hover .sd-arrow { color: var(--cloud); transform: translateX(2px); }

.side-dock-toggle {
  position: absolute;
  top: 50%;
  left: -14px;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}
.side-dock-toggle:hover { color: var(--cloud); border-color: var(--cloud); }
.side-dock-toggle svg { transition: transform 0.3s; }

@media (max-width: 760px) {
  .side-dock {
    top: auto;
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    transform: none;
    flex-direction: row;
    width: auto;
    padding: 0.5rem;
    gap: 0.4rem;
  }
  .side-dock-label, .side-dock-toggle, .sd-arrow, .sd-sub { display: none; }
  .side-dock-btn { flex: 1; padding: 0.5rem; }
  .sd-text { flex-direction: row; align-items: center; gap: 0.4rem; }
  .sd-name { font-size: 0.78rem; }
  .side-dock.collapsed { width: auto; padding: 0.5rem; }
}
@media (max-width: 760px) {
  /* Hide side dock when drawer is open on mobile so it doesn't conflict */
  .drawer-shell.open ~ * .side-dock,
  body.drawer-locked .side-dock { opacity: 0; pointer-events: none; }
}

/* Active state when drawer is open with that view */
.side-dock-btn.active {
  border-color: var(--cloud);
  background: var(--cloud-soft);
}
.side-dock-btn.active::before { opacity: 0.4; }

/* ============================================
   EXPANDABLE SECTIONS (Know more / Show less)
   ============================================ */
.cs-stats-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.cs-strip-stat {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.cs-strip-num {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2684FC, #2CA4FC);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.cs-strip-lbl {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.cs-strip-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}
@media (max-width: 600px) {
  .cs-strip-divider { display: none; }
}

.cs-expandable {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}
.company-showcase[data-expandable].expanded .cs-expandable {
  max-height: 3000px;
  opacity: 1;
}
.cs-expandable-inner {
  padding-top: 1.4rem;
  border-top: 1px dashed var(--border);
  margin-top: 0.6rem;
}

.cs-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  margin-top: 1.2rem;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.cs-toggle-btn:hover {
  border-color: #2684FC;
  background: rgba(38, 132, 252, 0.1);
  color: #2684FC;
}
.cs-toggle-chevron { transition: transform 0.3s; }
.cs-toggle-text-less { display: none; }
.company-showcase[data-expandable].expanded .cs-toggle-text-more { display: none; }
.company-showcase[data-expandable].expanded .cs-toggle-text-less { display: inline; }
.company-showcase[data-expandable].expanded .cs-toggle-chevron { transform: rotate(180deg); }

/* ============================================
   MILLIONPODCASTS PRODUCT (uses real SVG logo)
   ============================================ */
.cs-product-featured {
  border-color: rgba(94, 119, 251, 0.3);
  background: linear-gradient(135deg, rgba(94, 119, 251, 0.05), rgba(248, 40, 90, 0.04));
}
.cs-product-featured:hover {
  border-color: #5e77fb;
  box-shadow: 0 12px 24px rgba(94, 119, 251, 0.25);
}
.cs-icon-millionpodcasts {
  width: 84px;
  height: 44px;
  background: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  display: grid;
  place-items: center;
}
.cs-icon-millionpodcasts img { max-width: 100%; max-height: 100%; }

/* ============================================
   AI HUB - PROMINENT PDF BLOCK (top of view)
   ============================================ */
.ai-pdf-block {
  margin-bottom: 2.6rem;
  padding: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--ai-soft);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.ai-pdf-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ai), #34D399);
}
.ai-pdf-block-head { margin-bottom: 1.2rem; }
.ai-pdf-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--ai);
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.ai-pdf-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.ai-pdf-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 700px;
  line-height: 1.55;
}


/* ============================================================
   STUDY VAULT — 4 GitHub Pages site cards
   ============================================================ */
.study-vault { position: relative; }
.study-vault::before {
  content: '';
  position: absolute;
  inset: -10% -5% auto auto;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle at 70% 30%, var(--cloud-glow), transparent 60%);
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.vault-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.6rem 1.5rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
  isolation: isolate;
}
.vault-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, var(--accent, var(--cloud-glow)) 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.vault-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}
.vault-card:hover::after { opacity: 0.9; }

.vault-card-glow {
  position: absolute;
  inset: -40% -40% auto auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, var(--accent, var(--cloud-glow)), transparent 70%);
  filter: blur(50px);
  opacity: 0.18;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.vault-card:hover .vault-card-glow { opacity: 0.45; }

/* Per-card accent colour */
.vault-docker { --accent: rgba(36, 150, 237, 0.55); }
.vault-k8s    { --accent: rgba(50, 108, 229, 0.55); }
.vault-cloud  { --accent: var(--cloud-glow); }
.vault-ai     { --accent: var(--ai-glow); }

.vault-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.vault-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.4rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.vault-docker .vault-icon { color: #2496ed; box-shadow: 0 0 0 1px rgba(36, 150, 237, 0.25) inset; }
.vault-k8s    .vault-icon { color: #326ce5; box-shadow: 0 0 0 1px rgba(50, 108, 229, 0.25) inset; }
.vault-cloud  .vault-icon { color: var(--cloud); box-shadow: 0 0 0 1px var(--cloud-soft) inset; }
.vault-ai     .vault-icon { color: var(--ai); box-shadow: 0 0 0 1px var(--ai-soft) inset; }

.vault-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.vault-docker .vault-tag,
.vault-k8s    .vault-tag { color: #6db4ff; border-color: rgba(50, 108, 229, 0.35); }
.vault-cloud  .vault-tag { color: var(--cloud); border-color: var(--cloud-soft); }
.vault-ai     .vault-tag { color: var(--ai); border-color: var(--ai-soft); }

.vault-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.vault-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  flex-grow: 0;
}

.vault-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.2rem 0 0.4rem;
  padding: 0;
}
.vault-bullets li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.vault-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent, var(--cloud));
  opacity: 0.85;
}

.vault-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border);
}
.vault-cta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.vault-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s ease;
}
.vault-card:hover .vault-arrow {
  transform: translate(4px, -4px);
}
.vault-docker:hover .vault-arrow,
.vault-docker:hover .vault-cta { color: #6db4ff; }
.vault-k8s:hover    .vault-arrow,
.vault-k8s:hover    .vault-cta { color: #6db4ff; }
.vault-cloud:hover  .vault-arrow,
.vault-cloud:hover  .vault-cta { color: var(--cloud); }
.vault-ai:hover     .vault-arrow,
.vault-ai:hover     .vault-cta { color: var(--ai); }

/* Side-dock — extra icon variants for Docker / K8s */
.sd-icon-docker { background: rgba(36, 150, 237, 0.15); color: #6db4ff; }
.sd-icon-k8s    { background: rgba(50, 108, 229, 0.15); color: #6db4ff; }

/* When dock has 4 items, ensure it stays visible without overflow on shorter screens */
@media (max-height: 720px) and (min-width: 761px) {
  .side-dock { gap: 0.35rem; padding: 0.7rem 0.7rem 0.85rem; }
  .side-dock-btn { padding: 0.55rem 0.65rem; }
  .sd-icon { width: 30px; height: 30px; font-size: 0.95rem; }
  .sd-name { font-size: 0.8rem; }
  .sd-sub  { font-size: 0.68rem; }
}

/* Mobile: collapse 4-item dock into a more compact horizontal bar */
@media (max-width: 760px) {
  .vault-bullets { display: none; }
  .vault-card { padding: 1.3rem 1.2rem; }
}
