@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --primary: #0000C4;
  --primary-soft: #3333d8;
  --primary-10: rgba(0,0,196,0.06);
  --primary-20: rgba(0,0,196,0.12);
  --gray-50: #f7f8fb;
  --gray-100: #eef0f5;
  --gray-200: #dde1ea;
  --gray-300: #a0a7b8;
  --gray-400: #727a90;
  --gray-500: #515972;
  --gray-700: #2d3348;
  --gray-900: #111318;
  --white: #ffffff;
  --accent-warm: #D20F39;
  --accent-se: #bf616a;
  --accent-se-soft: rgba(191,97,106,0.08);
  --code-bg: #1e1e2e;
  --code-fg: #cdd6f4;
}
[data-theme="dark"] {
  --primary: #4d6dff;
  --primary-soft: #7b8fff;
  --primary-10: rgba(77,109,255,0.06);
  --primary-20: rgba(77,109,255,0.12);
  --gray-50: #131318;
  --gray-100: #1a1a22;
  --gray-200: #2a2a35;
  --gray-300: #55556a;
  --gray-400: #8b8b9a;
  --gray-500: #8b8b9a;
  --gray-700: #c8c8d0;
  --gray-900: #e8e8ed;
  --white: #09090b;
  --accent-warm: #f87171;
  --accent-se: #fca5a5;
  --accent-se-soft: rgba(252,165,165,0.06);
  --code-bg: #0d0d14;
  --code-fg: #cdd6f4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--gray-700); background: var(--white);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== TOP NAV ===== */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 2rem;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.3s;
}
[data-theme="dark"] .topnav { background: rgba(9,9,11,0.85); }
.nav-back {
  font-size: 0.82rem; font-weight: 500; color: var(--gray-400);
  text-decoration: none; display: flex; align-items: center; gap: 0.4rem;
}
.nav-back:hover { color: var(--primary); text-decoration: none; }
.nav-title {
  font-size: 0.82rem; font-weight: 700; color: var(--gray-900);
  letter-spacing: -0.2px;
}
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-links { display: flex; gap: 0.5rem; }
.nav-link {
  font-size: 0.72rem; font-weight: 500; color: var(--gray-400);
  padding: 0.3rem 0.7rem; border-radius: 6px;
  text-decoration: none; transition: all 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--accent-se); background: var(--accent-se-soft); text-decoration: none; }
.theme-btn {
  font-size: 0.75rem; font-weight: 600; color: #5566aa;
  background: rgba(0,0,196,0.08); border: 1.5px solid rgba(0,0,196,0.2);
  padding: 0.3rem 0.8rem; border-radius: 20px; cursor: pointer;
  transition: all 0.3s;
}
.theme-btn:hover { opacity: 0.85; transform: scale(1.05); }

/* ===== HERO ===== */
.hero {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; margin-top: 46px;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-50) 100%);
}
.hero-bg {
  position: absolute; inset: 0; overflow: hidden; opacity: 0.06;
  font-family: 'IBM Plex Mono', monospace; font-size: 14px;
  line-height: 2; color: var(--gray-900); pointer-events: none;
  white-space: pre; animation: codeScroll 40s linear infinite;
}
@keyframes codeScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.hero-inner { text-align: center; position: relative; z-index: 1; max-width: 700px; padding: 2rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent-se); padding: 0.4rem 1rem; border-radius: 20px;
  background: var(--accent-se-soft); border: 1px solid rgba(191,97,106,0.15);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: 3rem; font-weight: 900; letter-spacing: -1.5px;
  line-height: 1.1; color: var(--gray-900); margin-bottom: 1rem;
}
.hero h1 .hl {
  background: linear-gradient(135deg, var(--accent-se), #e85d04);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .hero h1 .hl {
  background: linear-gradient(135deg, #fca5a5, #fb923c);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 1.1rem; color: var(--gray-500); max-width: 520px; margin: 0 auto 2rem; line-height: 1.6; }
.hero-stats { display: flex; gap: 2.5rem; justify-content: center; }
.hero-stat-num { font-size: 2rem; font-weight: 800; color: var(--accent-se); font-family: 'IBM Plex Mono', monospace; }
.hero-stat-label { font-size: 0.72rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; color: var(--gray-400); display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ opacity: 0.5; transform: translateX(-50%) translateY(0); } 50%{ opacity: 1; transform: translateX(-50%) translateY(4px); } }

/* ===== SHOWCASE SECTION ===== */
.showcase {
  padding: 5rem 2rem; border-bottom: 1px solid var(--gray-100);
  position: relative; overflow: hidden;
}
.showcase.alt { background: var(--gray-50); }
.showcase-inner { max-width: 960px; margin: 0 auto; }

.sc-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent-se);
  margin-bottom: 0.5rem;
}
.sc-venue {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem; font-weight: 600; padding: 3px 10px;
  border-radius: 5px; background: var(--accent-se-soft);
  color: var(--accent-se); display: inline-block; margin-bottom: 0.75rem;
}
.sc-title {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px;
  color: var(--gray-900); line-height: 1.25; margin-bottom: 0.5rem;
}
.sc-authors { font-size: 0.82rem; color: var(--gray-500); margin-bottom: 0.3rem; }
.sc-authors .me { color: var(--accent-warm); font-weight: 600; }
.sc-desc { font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 1.5rem; max-width: 600px; }
.sc-links { display: flex; gap: 6px; margin-bottom: 2rem; flex-wrap: wrap; }
.sc-facts { display: flex; gap: 6px; margin: -1.25rem 0 2rem; flex-wrap: wrap; }
.fact-chip {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; background: var(--gray-50);
  border: 1px solid var(--gray-200); color: var(--gray-500);
}
.sc-link {
  font-size: 0.72rem; font-weight: 600; padding: 0.35rem 1rem;
  border-radius: 6px; border: 1.5px solid var(--gray-200);
  color: var(--primary); background: var(--white); text-decoration: none;
  transition: all 0.2s;
}
.sc-link:hover { border-color: var(--primary); text-decoration: none; }
[data-theme="dark"] .sc-link { background: var(--gray-100); }

/* ===== VIS: Code Translation Pipeline ===== */
.pipeline-wrap {
  display: flex; align-items: center; gap: 0; width: 100%;
}
.pipe-step {
  flex: 1; min-width: 0;
}
.pipe-arrow {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0 12px; flex-shrink: 0;
}
.pipe-arrow-line { width: 2px; height: 24px; background: var(--gray-200); border-radius: 1px; }
.pipe-arrow-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; font-weight: 600;
  color: var(--accent-se); padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--gray-200); background: var(--white); white-space: nowrap;
}
[data-theme="dark"] .pipe-arrow-label { background: var(--gray-100); }
.pipe-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.pipe-label .dot { width: 8px; height: 8px; border-radius: 50%; }
.code-panel {
  background: var(--code-bg); border-radius: 10px; padding: 16px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; line-height: 1.8;
  color: var(--code-fg); min-height: 240px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06); position: relative;
  white-space: pre-wrap; word-break: break-word;
}
.code-panel .cursor {
  display: inline-block; width: 7px; height: 14px; background: var(--accent-se);
  animation: blink 0.8s step-end infinite; vertical-align: middle; margin-left: 1px;
}
@keyframes blink { 0%,100%{ opacity: 1; } 50%{ opacity: 0; } }
.pipe-step.inactive .code-panel { opacity: 0.3; }
.pipe-step.active .code-panel { opacity: 1; box-shadow: 0 0 30px rgba(191,97,106,0.1); border-color: rgba(191,97,106,0.3); }
.pipe-step { transition: opacity 0.5s; }

/* ===== VIS: EmbedAgent MCU ===== */
.embed-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
}
.embed-prompt {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: 10px; padding: 16px; margin-bottom: 12px;
}
[data-theme="dark"] .embed-prompt { background: var(--gray-100); }
.embed-prompt-label {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  color: var(--gray-400); margin-bottom: 8px;
}
.embed-prompt-text { font-size: 0.88rem; color: var(--gray-700); line-height: 1.5; }
.embed-code-panel {
  background: var(--code-bg); border-radius: 10px; padding: 16px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; line-height: 1.8;
  color: var(--code-fg); min-height: 300px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  white-space: pre-wrap; word-break: break-word;
}
.embed-code-panel .cursor {
  display: inline-block; width: 7px; height: 14px; background: #60a5fa;
  animation: blink 0.8s step-end infinite; vertical-align: middle;
}
.mcu-board {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 20px; position: relative;
}
[data-theme="dark"] .mcu-board { background: var(--gray-100); }
.mcu-svg { width: 100%; height: auto; }
.mcu-chip { transition: all 0.5s; }
.mcu-chip.active { filter: drop-shadow(0 0 8px rgba(96,165,250,0.6)); }
.mcu-pin { transition: all 0.4s; }
.mcu-pin.active { fill: #60a5fa; }
.mcu-label-active { font-size: 10px; font-weight: 600; fill: #60a5fa; opacity: 0; transition: opacity 0.5s; }
.mcu-label-active.show { opacity: 1; }

/* ===== VIS: iCoRe Retrieval Flow ===== */
.icore-flow { display: flex; flex-direction: column; gap: 0; align-items: center; }
.icore-node {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: 10px; width: 100%; max-width: 600px;
  opacity: 0; transform: translateY(16px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.icore-node.visible { opacity: 1; transform: translateY(0); }
.icore-connector {
  width: 2px; height: 32px; background: var(--gray-200); position: relative;
  opacity: 0; transition: opacity 0.4s;
}
.icore-connector.visible { opacity: 1; }
.icore-connector::after {
  content: ''; position: absolute; bottom: -4px; left: -3px;
  width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 6px solid var(--gray-200);
}
.icore-icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.icore-text-title { font-size: 0.82rem; font-weight: 700; color: var(--gray-900); }
.icore-text-desc { font-size: 0.72rem; color: var(--gray-500); }

.node-report .icore-icon { background: rgba(248,113,113,0.1); }
.node-query .icore-icon { background: rgba(96,165,250,0.1); }
.node-retrieve .icore-icon { background: rgba(52,211,153,0.1); }
.node-correlate .icore-icon { background: rgba(251,191,36,0.1); }
.node-refine .icore-icon { background: rgba(167,139,250,0.1); }
.node-result .icore-icon { background: rgba(52,211,153,0.15); }

.icore-round-badge {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; font-weight: 600;
  color: var(--gray-400); padding: 2px 10px; border-radius: 10px;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  align-self: center; margin: 8px 0;
  opacity: 0; transition: opacity 0.4s;
}
[data-theme="dark"] .icore-round-badge { background: var(--gray-100); }
.icore-round-badge.visible { opacity: 1; }

/* ===== VIS: Cross-Lingual RAG ===== */
.rag-demo { position: relative; }
.rag-grid {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: start;
}
.rag-panel {
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--gray-200);
}
.rag-panel-header {
  padding: 10px 16px; background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.72rem; font-weight: 700; color: var(--gray-900);
  text-transform: uppercase; letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 8px;
}
[data-theme="dark"] .rag-panel-header { background: var(--gray-100); }
.rag-panel-body { padding: 12px; min-height: 280px; background: var(--white); }
[data-theme="dark"] .rag-panel-body { background: var(--gray-50); }
.rag-doc {
  padding: 8px 12px; border-radius: 6px; margin-bottom: 6px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; line-height: 1.6;
  color: var(--gray-500); background: var(--gray-50);
  border: 1px solid transparent; transition: all 0.4s;
  opacity: 0; transform: translateX(-10px);
}
[data-theme="dark"] .rag-doc { background: var(--gray-100); }
.rag-doc.visible { opacity: 1; transform: translateX(0); }
.rag-doc.highlight {
  border-color: rgba(167,139,250,0.4);
  background: rgba(167,139,250,0.06);
  color: var(--gray-700);
}
.rag-doc .doc-lang {
  font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 3px;
  display: inline-block; margin-bottom: 4px;
}
.lang-py { background: rgba(52,211,153,0.1); color: #0d9488; }
.lang-java { background: rgba(248,113,113,0.1); color: #dc2626; }
.lang-cpp { background: rgba(96,165,250,0.1); color: #2563eb; }
.lang-js { background: rgba(251,191,36,0.1); color: #d97706; }

.rag-arrows {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 0 16px; gap: 4px;
}
.rag-arrow-line { width: 2px; height: 20px; background: var(--gray-200); border-radius: 1px; }
.rag-arrow-icon {
  font-size: 0.85rem; color: var(--gray-400);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.5s;
}
[data-theme="dark"] .rag-arrow-icon { background: var(--gray-100); }
.rag-arrow-icon.active { background: rgba(167,139,250,0.1); border-color: rgba(167,139,250,0.3); color: #7c3aed; }
.rag-output {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; line-height: 1.8;
  color: var(--code-fg); padding: 12px; background: var(--code-bg);
  border-radius: 8px; min-height: 160px;
  white-space: pre-wrap; word-break: break-word;
}
.rag-output .cursor {
  display: inline-block; width: 7px; height: 14px; background: #a78bfa;
  animation: blink 0.8s step-end infinite; vertical-align: middle;
}

/* (All Papers mini-card section removed — replaced by individual featured sections) */

/* ===== FOOTER ===== */
.footer {
  padding: 1.5rem 2rem; border-top: 1px solid var(--gray-100);
  font-size: 0.75rem; color: var(--gray-400); text-align: center;
}

/* ===== SYNTAX COLORS ===== */
.s-kw { color: #cba6f7; }
.s-fn { color: #89b4fa; }
.s-str { color: #a6e3a1; }
.s-num { color: #fab387; }
.s-cm { color: #585b70; }
.s-type { color: #89dceb; }
.s-op { color: #94e2d5; }
.s-pp { color: #f38ba8; }

/* ===== GSAP TARGETS ===== */
.gsap-fade { opacity: 0; transform: translateY(20px); }

/* ===== TAKEAWAY + COMPACT ANIMATIONS ===== */
.sc-takeaway {
  margin-top: 1rem; padding: 0.8rem 1.2rem; border-radius: 10px;
  background: linear-gradient(135deg, rgba(124,58,237,0.06), var(--gray-50));
  border-left: 3px solid #7c3aed;
  font-size: 0.82rem; color: var(--gray-700); line-height: 1.5;
  display: flex; align-items: flex-start; gap: 0.6rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sc-takeaway:hover { transform: translateX(4px); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.takeaway-icon { font-size: 1.1rem; flex-shrink: 0; }
.compact-anim {
  margin-top: 1.4rem; padding: 1.2rem; border-radius: 12px;
  background: var(--panel, var(--white)); border: 1px solid var(--gray-100);
  min-height: 80px; overflow: hidden;
}
.mini-pipe { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mini-pipe-stage {
  padding: 0.5rem 0.9rem; border-radius: 8px; font-size: 0.74rem; font-weight: 600;
  background: var(--gray-50); border: 1px solid var(--gray-100); color: var(--gray-400);
  opacity: 0; transition: all 0.4s; cursor: default;
}
.mini-pipe-stage.on { opacity: 1; background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.2); color: #7c3aed; }
.mini-pipe-stage:hover { transform: scale(1.05); }
.mini-pipe-sep { color: var(--gray-300); font-weight: 700; opacity: 0; transition: opacity 0.3s; }
.mini-pipe-sep.on { opacity: 1; }
.mini-stat { margin-top: 0.8rem; font-family: 'IBM Plex Mono', monospace; font-size: 1.2rem; font-weight: 700; color: #7c3aed; opacity: 0; transition: opacity 0.5s; }
.mini-stat.on { opacity: 1; }
.mini-badge { display: inline-block; padding: 0.3rem 0.7rem; border-radius: 6px; font-size: 0.7rem; font-weight: 700; opacity: 0; transition: all 0.4s; margin-top: 0.5rem; }
.mini-badge.on { opacity: 1; }
.mini-badge.success { background: rgba(13,148,136,0.1); color: #0d9488; border: 1px solid rgba(13,148,136,0.2); }
.mini-badge.warning { background: rgba(220,38,38,0.08); color: #dc2626; border: 1px solid rgba(220,38,38,0.2); }
.feature-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.feature-tag {
  padding: 0.5rem 0.9rem; border-radius: 8px; font-size: 0.74rem; font-weight: 600;
  background: var(--gray-50); border: 1px solid var(--gray-100); color: var(--gray-400);
  opacity: 0; transform: scale(0.8); transition: all 0.4s; cursor: default;
}
.feature-tag.on { opacity: 1; transform: scale(1); border-color: rgba(124,58,237,0.2); color: var(--gray-700); }
.feature-tag.highlight { border-color: #7c3aed; background: rgba(124,58,237,0.1); color: #7c3aed; box-shadow: 0 0 10px rgba(124,58,237,0.15); }
.feature-tag:hover { transform: scale(1.08); }
.mini-progress { height: 8px; border-radius: 4px; background: var(--gray-100); overflow: hidden; margin-top: 0.8rem; }
.mini-progress-fill { height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #7c3aed, #0d9488); transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1); }

/* ===== INTERACTIVITY ===== */
.pipe-step { transition: transform 0.25s, box-shadow 0.25s; cursor: default; }
.pipe-step:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.pipe-step.active:hover { box-shadow: 0 8px 24px rgba(124,58,237,0.15); }

.fact-chip { transition: all 0.2s; cursor: default; }
.fact-chip:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.fact-chip:active { transform: scale(0.94); }

.icore-node { transition: all 0.25s; cursor: default; }
.icore-node:hover { transform: translateX(6px) scale(1.02); box-shadow: 0 4px 14px rgba(0,0,0,0.12); }

.rag-doc { transition: all 0.25s; cursor: pointer; border-radius: 8px; }
.rag-doc:hover { transform: translateX(4px); background: rgba(124,58,237,0.06); }

.mcu-pin { transition: all 0.3s; cursor: pointer; }
.mcu-pin:hover { fill: var(--primary) !important; filter: drop-shadow(0 0 6px var(--primary)); }
.mcu-pin.active { fill: var(--primary) !important; }

.embed-prompt { transition: transform 0.2s; cursor: default; }
.embed-prompt:hover { transform: scale(1.01); }

.sc-link { transition: all 0.2s; }
.sc-link:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); text-decoration: none; }
.sc-link:active { transform: translateY(0) scale(0.95); }

.icore-round-badge { transition: all 0.2s; cursor: default; }
.icore-round-badge:hover { transform: scale(1.08); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.92rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-num { font-size: 1.5rem; }
  .showcase { padding: 3rem 1.25rem; }
  .sc-title { font-size: 1.2rem; }
  .pipeline-wrap { flex-direction: column; gap: 0; }
  .pipe-arrow { flex-direction: row; padding: 8px 0; }
  .pipe-arrow-line { width: 24px; height: 2px; }
  .embed-grid { grid-template-columns: 1fr; }
  .rag-grid { grid-template-columns: 1fr; }
  .rag-arrows { flex-direction: row; padding: 12px 0; }
  .rag-arrow-line { width: 20px; height: 2px; }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .hero { min-height: 60vh; }
  .code-panel { font-size: 10px; padding: 12px; min-height: 180px; }
  .embed-code-panel { font-size: 10px; }
  .topnav { padding: 0.5rem 1rem; }
}
